  $(document).ready(function(){

	/*Modal Boxes*/
		
			$("a.play-video, a.play-video-small").fancybox({
				hideOnContentClick: false,
				width:853,
				height:480
			});							 
							 
							 
    $('#mast').bxSlider({
						   	auto:true,
							pagerSelector:'.morevid ul li'	,
							pager: true,
							controls: false,
							pause: 8000
						   });
	

     

 
/*Tabs for the Graphic*/ 
  $(".upper a").hover(function(){
		$(".infographic").animate({height: "335px"},"fast");
		$('.lower').hide();	
		$(".upper a").animate({top: "49px"},{queue:false,duration:'fast'}).removeClass('active'); 
		}, function() {	
	});	
  
	 $(".upper .homeowners").hover(function(){
    	$(".upper .homeowners").animate({top: "66px"},{queue:false,duration:'fast'}).addClass('active'); 
		$(".lower.homeowners").animate({opacity: "show"},'fast');
	}, function() {
	});
  
    $(".upper .retailers").hover(function(){
    	$(".upper .retailers").animate({top: "66px"},{queue:false,duration:'fast'}).addClass('active');
		$(".lower.retailers").animate({opacity: "show"},'fast');
	}, function() {
	});
	
	  $(".upper .weatherization").hover(function(){
    	$(".upper .weatherization").animate({top: "66px"},{queue:false,duration:'fast'}).addClass('active'); 
		$(".lower.weatherization").animate({opacity: "show"},'fast');
	}, function() {
	});
	  
	$(".upper .contractors").hover(function(){
		$(".upper .contractors").animate({top: "66px"},{queue:false,duration:'fast'}).addClass('active');
		$(".lower.contractors").animate({opacity: "show"},'fast');
	}, function() {
	});
		
	$(".upper .architects").hover(function(){
    	$(".upper .architects").animate({top: "66px"},{queue:false,duration:'fast'}).addClass('active'); 
		$(".lower.architects").animate({opacity: "show"},'fast');
	}, function() {
	});			

					  });  
  
  
  
  $(document).ready(function(){
  $('#newsticker').bxSlider({
					 controls:true,
					 pause:10000,
					 prevImage:'images/btn_prev.png',
					 nextImage:'images/btn_next.png'					 
					     });
    });
