function correctPNG() 
{
	for(var i = 0; i < document.images.length; i++)
	{
		var img = document.images[i];
		var imgName = img.src.toLowerCase();
		if (imgName.substring(imgName.length - 3, imgName.length) == "png")
		{
			var imgID = img.id ? "id=\"" + img.id + "\" " : "";
			var imgClass = img.className ? "class=\"" + img.className + "\" " : "";
			var imgTitle = img.title ? "title=\"" + img.title + "\" " : "title=\"" + img.alt + "\" ";
			var imgStyle = "display:inline-block;" + img.style.cssText;
			if (img.align == "left")
				imgStyle = "float:left;" + imgStyle;
			else if (img.align == "right")
				imgStyle = "float:right;" + imgStyle;
			if (img.parentElement.href)
				imgStyle = "cursor:hand;" + imgStyle;
			var newHTML = "<span " + imgID + imgClass + imgTitle + " style=\"width:" + img.width + "px;height:" + img.height + "px;" + imgStyle + ";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=&quot;" + img.src + "&quot;,sizingMethod=&quot;scale&quot;);\"></span>";
			img.outerHTML = newHTML;
			i--;
		}
	}
}

if (window.attachEvent)
	window.attachEvent("onload", correctPNG);

function menuInit()
{
	if (screen.width < 640)
		return;
	var nav = document.getElementById("Navigation");
	for (var i = 0; i < nav.childNodes.length; i++)
		if (nav.childNodes[i].nodeName.toLowerCase() == "div")
			nav.removeChild(nav.childNodes[i--]);
	dm_init();
}

if (screen.width >= 800)
{
	document.styleSheets[0].disabled = true;
	document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"" + appPath + "/include/screen.css\" media=\"projection,screen,tv\" />");
}
