function fix_IE6()
{
	if (document.body.filters)
	{
		for(i=0; i<document.images.length; i++)
		{
			img = document.images[i];
			name = img.src;
			if (name.substring(name.length-4, name.length).toLowerCase() == ".png")
			{
				id	= img.id ? "id='" + img.id + "' " : "";
				cls	= img.className ? "class='" + img.className + "' " : "";
				cursor	= img.parentElement.href ? "cursor: hand;" : "";

				img.outerHTML = "<span style=\"display:inline-block;width:" + img.width + "px;height:" + img.height + "px;" 
					+ cursor + img.style.cssText + ";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
					+ "(src='" + img.src + "', sizingMethod='scale');\"" + id + cls + "></span>";
				i--;
			}
		}
	}
}


function fix_IE()
{
	av = navigator.appVersion.split("MSIE");
	ver = parseFloat(av[1]);

	if (ver >= 5.5 && ver < 7)
		fix_IE6();

	if (document.all)
	{
		uls = document.getElementsByTagName('UL');
		for(i = 0; i < uls.length; i++)
		{
			if (uls[i].className == 'dropdown')
			{
				var lis = uls[i].getElementsByTagName('LI');

				for (j = 0; j < lis.length; j++)
				{
                    
					if(lis[j].lastChild.tagName == 'UL')
					{
						lis[j].onmouseover = function() { this.lastChild.style.display = 'block'; }
						lis[j].onmouseout = function() { this.lastChild.style.display = 'none'; }
					}
				}
			}
		}
	}
}



