$(document).ready(function(){
	$("div#banner").codaSlider();
	$(".thumb-gallery li").hover(function() {
	  $(this).siblings("li").find("a").addClass("inactive");
	}, function() {
 	  $(this).siblings("li").find("a").removeClass("inactive");
	});	
	$("#nav li").hover(function() {
	  $(this).find("div.dropdown").fadeIn( 200, function() {
		$(this).find("ul.subnav").slideDown("fast");	  	
	  });
	}, function() {
	  $(this).find("div.dropdown").fadeOut("fast");
	  $(this).find("div.dropdown ul.subnav").slideUp("fast");
	});	
	$(".dropdown ul li").hover(function() {
	  $(this).siblings("li").find("a").css("color","#6c6c6c");
    }, function() {
	  $(this).siblings("li").find("a").css("color","#dfe0e0");
	});
	var gallery = $('#gallery').galleriffic('#thumbs', {
        delay:                  3000, // in milliseconds
        numThumbs:              500, // The number of thumbnails to show page
        preloadAhead:           40, // Set to -1 to preload all images
        enableTopPager:         false,
        enableBottomPager:      true,
        loadingContainerSel:    '#loading',
        imageContainerSel:      '#slideshow', // The CSS selector for the element within which the main slideshow image should be rendered
        renderSSControls:       false, // Specifies whether the slideshow's Play and Pause links should be rendered
        renderNavControls:      false, // Specifies whether the slideshow's Next and Previous links should be rendered
        enableHistory:          true, // Specifies whether the url's hash and the browser's history cache should update when the current slideshow image changes 
        autoStart:              false // Specifies whether the slideshow should be playing or paused when the page first loads 
    });
});