function correctPNG()
{
   for(var i=0; i<document.images.length; i++)
   {
	   var img = document.images[i]
	   var imgName = img.src.toUpperCase()
	   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
		   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
		   i = i-1
	   };
   };
};

if(navigator.userAgent.indexOf("MSIE")>-1)
{
	window.attachEvent("onload", correctPNG);
};
function classProjuctShow(obj)
{
	var divObjs =document.getElementsByTagName('div');
	for(var i=0; i<divObjs.length; i++)
	{
		if(divObjs[i].getAttribute("name") == "classproject")
		{
			divObjs[i].className ='lefttree_items01';
		}
	}
	obj.className='lefttree_item01';
}
function showSwf(strpath,intwidth,intheight,transpart)
{
    var swfHTML="";
    if(transpart=="1")
    {
        swfHTML="<embed src='"+strpath+"' allowfullscreen='true' wmode='transparent' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+intwidth+"' height='"+intheight+"'></embed>";
    }
    else
    {
        swfHTML="<embed src='"+strpath+"' allowfullscreen='true'  quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+intwidth+"' height='"+intheight+"'></embed>";
    }
    document.write(swfHTML);
}
function setheight()
{
    var objheight=document.getElementById("news_detail_height").offsetHeight+200;
    var objheight01=document.getElementById("news_detail_height01");
    var objheight02=document.getElementById("news_detail_height02");
    
    objheight01.style.height=objheight+"px";
    objheight02.style.height=objheight+"px";
}
function setpicheight()
{
    var objheight=document.getElementById("showpro_detail_height").offsetHeight;
    var objheight01=document.getElementById("showpro_detail_height01");
    var objheight02=document.getElementById("showpro_detail_height02");
    
    objheight01.style.height=objheight+"px";
    objheight02.style.height=objheight+"px";
}
