﻿function openPopupWindow(theURL, winName, features)
{
	window.open(theURL,winName,features);
}

function toggleHomeLayer(layerIDPnl, layerIDImg, layerIDPnlSub)
{
    $('.homePanels').hide();
    $(layerIDPnl).css("display", "inline"); 
    $(layerIDImg).show();
    $(layerIDPnlSub).show();
}

function popupSnow(url)
{
    window.open(url, "Snow Report", "location=1,status=1,scrollbars=1,width=330,height=230");
}

$(document).ready(function(){ 

      if($.browser.msie && $.browser.version.substr(0,1)=="6")
      {
       var images = $("#heroContainer li img");
       for(x=0;x<images.length;x++)
       {
        //thisSource = $("#heroContainer li img:eq("+x+")").attr("src");
        //$("#heroContainer li img:eq("+x+")").attr("src",thisSource.replace(".png",".gif"));    
       }
      }    
    $(document).pngFix(); 
        
}); 

$(document).ready(function(){
	//$(document).pngFix();
	
	var heroListWidth = $("#heroContainer ul").width();
	//alert(heroListWidth);


	$("#heroContainer li").hover(
		function(){
			oldWidth = $(this).width();
			newAdder = 271-oldWidth;
			newWidth = heroListWidth+newAdder;
			$("#heroContainer ul").width(newWidth);
			$(this).css("margin-left","0px");
			$(this).css("margin-right","0px");			
			$(".inActive",this).hide();
			$("div",this).show();
              if($.browser.msie && $.browser.version.substr(0,1)=="6")
              {
                $(".active",this).pngFix();            
              }
		},
		function(){
			$(this).css("margin-left","9px");
			$(this).css("margin-right","9px");
			$("#heroContainer ul").width("593px");
			$(".inActive",this).show();
			$(this).pngFix();
			$("#heroContainer div").hide();
			$("#heroContainer ul").width(heroListWidth);
		}
	);
});