// fixPNG(); http://www.tigir.com/js/fixpng.js (author Tigirlas Igor)
function fixPNG(element)
{
	if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
	{
		var src;

		if (element.tagName=='IMG')
		{
			if (/\.png$/.test(element.src))
			{
				src = element.src;
				element.src = "img/px.gif";
			}
		}
		else
		{
			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')";
	}
}

/*menu_hoverIE*/
function hoverIE ( id ) {
    if (navigator.appVersion.search(/MSIE 5(\.5)?|6/)!=-1) {
        var element=document.getElementById( id )   
        if (!element) return;
        element.onmouseover = function(){ this.className+=' hover'; }
        element.onmouseout = function() {this.className = this.className.replace(" hover", ""); } 
    }
}

function ul_menu_hoverIE( id ){
    if (navigator.appVersion.search(/MSIE 5(\.5)?|6/)!=-1) {
        var UL=document.getElementById( id )   
        if (!UL) return;
        var Li=UL.getElementsByTagName('Li')
        for (var i=0; i<Li.length; i++){
            Li[i].onmouseover = function(){this.className+=' hover'}
            Li[i].onmouseout = function() {this.className = this.className.replace(" hover", ""); } 
           // if (! Li[i].previousSibling) Li[i].className+=' first-child'
        }
    }
}