function fixPNG(element)
{
  	if (/MSIE (5\.5|6|7|8).+Win/.test(navigator.userAgent))
  	{
    	var src;
      	src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
      	if (src)
      	{
        	src = src[1];
        	element.runtimeStyle.backgroundImage="none";
      	}
    	if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
  	}
}

jsHover = function()
{
	var hEls = document.getElementById("menu").getElementsByTagName("LI");
	var hEls_2 = document.getElementById("menu_2").getElementsByTagName("LI");
	for (var i=0, len=hEls.length; i<len; i++)
	{
		hEls[i].onmouseover=function() { this.className+=" jshover"; }
		hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
	}
	hEls_2[0].onmouseover=function() { this.className+=" jshover"; }
	hEls_2[0].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
}
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);

if (/MSIE (5\.5|6|7|8).+Win/.test(navigator.userAgent))
{
	document.write("<link rel='stylesheet' href='/css/menu_ie.css'>");
}
else
{
	document.write("<link rel='stylesheet' href='/css/menu.css'>");
}
