/*
$(document).ready(function(){
	$('#header').delay(1000).show();
});
*/


//nav hover
$(document).ready(function(){
  $('.content-navigation li a').hover(function(){
    $(this).animate({paddingLeft: '+=5px'}, 200);
  }, function(){
    $(this).animate({paddingLeft: '-=5px'}, 200);
  });

 $('.icons').hide();
 $('.icons').delay(600).show().addClass('rotateInDownLeft');

// 978 GS Script 
  jQuery('div#gs-overlay').gsoverlay({
    trigger: jQuery('a#gs-overlay-badge'),
    grid: 978,
    color: '#aa1b4a',
    opacity: 0.2
  });

//image slideshows
        	$('#slider').nivoSlider({
        		effect:'fade',
        		pauseTime:6000,
   		        pauseOnHover:true //Stop animation while hovering
        	});

/*
// set the the fade in and out of images
$(function() {
// OPACITY OF BUTTON SET TO 50%
$("a.fade img").css("opacity","1");
 
// ON MOUSE OVER
$("a.fade img").hover(function () {
 
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 0.5
}, "fast");
},
 
// ON MOUSE OUT
function () {
 
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 1.0
}, "fast");
});
});
*/

/* button reveals new features on homepage 
	$('#whatsNew').hide();

  $('#toggleButton').click(function(){
    $('#whatsNew').animate(
    {'height':'toggle'}, 'slow', 'easeOutCirc'
    );
  });
*/

//colorbox 
			//Examples of how to assign the ColorBox event to elements
			$(".vimeo-video").colorbox({width:"80%", height:"80%", iframe:true});
		 
		
//colorbox calendar gallery		
$(function(){
$('a[rel=cal]').colorbox({
  transition: 'fade',
  speed: 500,
  current: "{current} of {total} calendar photos"
});

});


		
});
		

