$(document).ready(function(){  
    StartCountDown("clock1","12/31/2010 11:59 PM ");

    $('a[rel*=lightbox]').lightBox({
        imageLoading:   '/img/lightbox-ico-loading.gif', 	// (string) Path and the name of the loading icon
        imageBtnPrev:   '/img/lightbox-btn-prev.gif',	 	// (string) Path and the name of the prev button image
        imageBtnNext:   '/img/lightbox-btn-next.gif',	 	// (string) Path and the name of the next button image
        imageBtnClose:  '/img/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
        imageBlank:	    '/img/lightbox-blank.gif'    		// (string) Path and the name of a blank image (one pixel)
    });
    
    // Slideshow options
    $.fn.supersized.options = {  
        startwidth: 1280,  
        startheight: 800,
        vertical_center: 1,
        slideshow: 1,
        navigation: 0,
        transition: 1,
        pause_hover: 0,
        slide_counter: 0,
        slide_captions: 0,
        slide_interval: 10000,
        start_fade: 2500  
    };
    
    if (/MSIE ((5\\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32") {
        $.fn.supersized.options = { 
            slideshow: 0,
            transition: 0,
            start_fade: 0
        };
    };

    // Slideshow init
    $('#supersize').supersized(); 
        
    $('body.home a.nav').click(function(){
        return false;
    });
    
    $("body.home li.nav-news a").click(function(){
        $('.decal').removeClass('pos2');                    
        $('.decal').addClass('decal pos1');
        $('.item1').show();
        $('.item2').hide();
    });
    
    $("body.home li.nav-about a").click(function(){
        $('.decal').removeClass('pos1');
        $('.decal').addClass('decal pos2');
        $('.item1').hide();
        $('.item2').show();
    });

    var url = new RegExp("/about$");

    if (url.test(window.location)) {
        $('.decal').removeClass('pos1');
        $('.decal').addClass('decal pos2');
        $('.item1').hide();
        $('.item2').show();
    };

});
