$(document).ready(function() {

    $('#logo').click(function() {document.location.href='/';});
    $('#videoLibrary').load('/includes/modules/videoLibrary/_videoLibrary.aspx'); 
    $('#imageGallery').load('/includes/modules/imageGallery/_imageGallery.aspx'); 

	
   // $(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:385});
   // $(".mediaAudio").colorbox({iframe:true, innerWidth:540, innerHeight:200});
   
	$('.page_module:nth-child(3n+1)').addClass('etm');    
   


    $(function(){
        $('#slideshow').exposure({controlsTarget : '#controls', 
        showThumbs : false, 
        autostartSlideshow : true,
        slideshowDelay : 8000,
        onImage : function(image, imageData, thumb) {
                $('.exposureWrapper > .exposureLastImage').stop().fadeOut(500, function() {
                    $(this).remove();
                });
                image.hide().stop().fadeIn(1000);
                
	$(".extra .line1").dropShadow({left: -10, top: 0, opacity: 8, blur: 6});
	$(".extra .line2").dropShadow({left: -60, top: -12, opacity:8, blur: 6});                    
                
            }
        });	
    });

    $("a[rel='slideshow1']").colorbox({ opacity:0.8});
    $("a[rel='slideshow1']").each(function(){ $(this).colorbox({ title:$(this).attr('title') }) });

    $('.visitVideo').click(function() {
        document.location.href='/video-gallery.html'
    });

    $('.visitImage').click(function() {
        document.location.href='/image-gallery.html'
    });

    $(".videoContainer").colorbox({iframe:true, innerWidth:640, innerHeight:385});


    $(".monthHeader a").addClass(); 


    $('#fld_site_search').focus(function() {
        if (this.value == 'search'){
        	this.value = '';
    	}
    });

    $('#imgGal_whereToStay').click(function() {
        document.location.href='/image-gallery-where-to-stay.html'
    });

    $('#imgGal_whereToStay').click(function() {
        document.location.href='/image-gallery-where-to-stay.html'
    });
    
	$("img[src='/assets/COB_chamberstar.png']").addClass("chamber");

	$("#weatherContainer").MyGoogleWeather({
	  bCelsius:false, 
	  template: "<span id='weatherIcon'>{icon}</span>{temp}"
	});



});




function doSiteSearch(){
    document.sitesearch.submit();
}




