	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);

function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
	if ((version == 4)) 
	{
		var top = document.getElementById("top");
		if(top)
		{top.style["background"] = "url('')";}
		
		for(var j=0; j<document.images.length; j++)
		{
			var img = document.images[j]
			var imgName = img.src.toUpperCase()
			if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
			{


				var imgID = (img.id) ? "id='" + img.id + "' " : ""

				if(img.id == "indexmenu")
				{
					indexmenureplace();
				}
				else{

				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
				if (img.align == "right") imgStyle = "float:right;" + imgStyle
				if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
				var strNewHTML = "<span " + imgID + imgClass + imgTitle
				+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
				+ " filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
				+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 

				img.outerHTML = strNewHTML
				j = j-1;

				}
			}
		}
	}    
}

function indexmenureplace()
{
	var menudiv = document.getElementById("indemenuDiv");
	var linkmenu = "<a href='zh-cn/index.html' target='_self'>Chinese</a>"
			+"&nbsp;&nbsp;&nbsp;&nbsp;"
			+"<a href='en-us/index.html' target='_self'>English</a>"
			+"&nbsp;&nbsp;&nbsp;&nbsp;"
			+"<a href='de-de/index.html' target='_self'>Deutsch</a>";
	menudiv.innerHTML = linkmenu;
}

if(browser == "Microsoft Internet Explorer")
window.attachEvent("onload", correctPNG);

function ShowDialog(url) {
            var iWidth=450;
            var iHeight=450;
            var iTop=(window.screen.height-iHeight)/2;
            var iLeft=(window.screen.width-iWidth)/2;
            window.open(
            url,null,"Scrollbars=no,Toolbar=no,Location=no,Direction=no,Resizeable=no,Width="+iWidth+" ,Height="+iHeight+",top="+iTop+",left="+iLeft);
}