// Makes Hover Menu Item Active
		function menuChecker(){
		 var docID=document.body.id
		 for (i=1; i<12; i++){
		  if (docID=='b'+i){
		   $('#menu'+i).fadeIn(900);
		   $('#menu'+i+' a').css({backgroundPosition: 'bottom'});
		  }
		 }
		}

		

$(document).ready(function() {
		// make our drop menu animate
		function mainmenu(){
		$(" #nav ul ").css({display: "none"}); // Opera Fix
		$(" #nav li").hover(
				function(){
					$(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(400);
				},
				function(){
					$(this).find('ul:first').fadeOut(350);
				});
		}				
		mainmenu();		
			
		// Hover Block footer logo
		$('ul.hover_block li').hover(function(){
				$(this).find('img').animate({left:'257px'},{queue:false,duration:400});
			}, function(){
				$(this).find('img').animate({left:'0px'},{queue:false,duration:400});
		 });
		
					
				// Hover Block footer logo
				$('#slideshow div:first').fadeIn(1100, function() {
					
					$('#slideshow').cycle({ 
						fx:     'scrollLeft', 
						speed:  700, 
						timeout: 4000, 
						pager:  '#nav2', 
						pauseOnPagerHover: true, 
						randomizeEffects: false, 
						pagerAnchorBuilder: function(idx, slide) { 
						 
							return '#nav2 div:eq(' + idx + ') a'; 
						} 
					});
					
					   });
			   
					   
					
		
	
		
					$("a.open-banner-show").click(function() {
						$('#slickbox111').animate({ height: '497px', overflow: 'visible'}, 
										   {
											  duration: 2000, 
											  specialEasing: {
											  width: 'linear',
											  height: 'easeOutBounce'
											}, 
												complete: function() {
													
													$('#nav2').fadeIn(300).delay(700),	
								
													$('.close-banner-hide').fadeIn(400).delay(300)
												
													}
													
											  });
											  $('.open-banner-show').fadeOut(0);
											});
							
												
 
	 
					 
					$("a.close-banner-hide").click(function() {
						$('#slickbox111').animate({ height: '320px', overflow: 'visible'}, 
										   {
											  duration: 2000, 
											  specialEasing: {
											  width: 'linear',
											  height: 'easeOutBounce'
											}, 
												complete: function() {
													
				
					
					$('#slickbox111').slideDown(1500).delay(900); 
					
					$('.open-banner-show').fadeIn(900).delay(3500);
													
													
													
													}
													
											  });
											 	$('.close-banner-hide').fadeOut(0);
											});

	});
	
	
	
//stLight.options({publisher:'1d2e4b05-3ad7-4cdc-a5c8-e58946e220cf'});

