var arVersion = navigator.appVersion.split("MSIE");
var version = parseFloat(arVersion[1]);

function fixPNG(myImage) 
{
    var theDiv = myImage.parentNode
	if (!isNaN(version) && theDiv.className == "m_menu") { theDiv.style.paddingTop = "0px"; }
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
	   if (theDiv.className == "m_menu") {
	      theDiv.onmouseover = function() { this.style.backgroundImage = "url(images/m_menu_bg.gif)"; }
	      theDiv.onmouseout = function() { this.style.backgroundImage = ""; }
	   }
	   
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText;
	   var strNewHTML = "<img src='images/spacer.gif' border='0' width='" + myImage.width + "' height='" + myImage.height + "' style=\""
	   			 + "filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + myImage.src + "', sizingMethod='scale');\" />";
	   /*var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"margin-bottom:3px;width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"" 
				  + "></span>";*/
	   myImage.outerHTML = strNewHTML;
    }
}
function changeColorDiv(){
    if ((version >= 5.5) && (version < 7) && (document.body.filters)){
		for (var i=1; i<=4; i++){
		  var menu = document.getElementById("menu"+i);
		  menu.onmouseover = function() { this.style.color = "#2783c0"; }
		  menu.onmouseout = function() { this.style.color = "#ff7200"; }
		}
	}
}
