var TransparentIDs=new Array('MapButton0','MapButton1','MapButton2','MapButton3')


if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent && navigator.userAgent.indexOf("Opera")==-1)
    {
        window.attachEvent("onload", LoadPng);
    }

 

function LoadPng()

{
    var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
    var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5 && Number(rslt[1]) < 7);


   for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--)
    {

        
        if (itsAllGood && img.src.match(/\.png$/i) != null)
        {
            var src = img.src;
            img.style.width = img.width + "px";
            img.style.height = img.height + "px";
            img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
            img.src = "/images/1px.gif";
        }
        
        
   
        
    }
 
 
 
    for (var i = document.all.length - 1, obj = null; (obj = document.all[i]); i--) 
     {
		
		if (itsAllGood && ((obj.currentStyle.backgroundImage.match(/contact-us-page-bg\.png\"\)$/i) != null) || (obj.currentStyle.backgroundImage.match(/map-page-popgfgdup-bg\.png\"\)$/i) != null) || isTransparent(obj.id) ) && (obj.currentStyle.backgroundImage != "none"))
		{
		    var mode = 'scale';
		    var bg	= obj.currentStyle.backgroundImage;
		    var src = bg.substring(5,bg.length-2);
		    if (obj.currentStyle.backgroundRepeat == 'no-repeat') {
			    mode = 'crop';
		    }
		    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + mode + "')";
		    obj.style.backgroundImage = 'url('+'/images/1px.gif'+')';
		        
		}	
		


        
	}
		
 
 

}



function isTransparent(theValue) {
    for(checkValue = 0; checkValue < TransparentIDs.length-1; checkValue++){
        if((TransparentIDs[checkValue] == theValue))
            return true;
    }

    return false;

} 





        //if (img.src.match(/book-now.gif$/i) == null) 
        //{
            // img.style.visibility = "visible";
        //}