<!--
var flag=false;
function DrawImage(ImgD,x,y){
   var image=new Image();
   image.src=ImgD.src;
   if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>= x/y){
     if(image.width>x){  
     ImgD.width=x;
     ImgD.height=(image.height*x)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     }
    else{
     if(image.height>y){  
     ImgD.height=y;
     ImgD.width=(image.width*y)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     }
    }
} 
//-->

function setFontSize(n)
{
	var elements = document.getElementsByTagName('blockquote');
	for (var i=0; i<elements.length; i++)
	{
		var element = elements[i];
		if (element.getAttribute('name') != 'content') continue;
		element.style.fontSize   = n + 'px';
		element.style.lineHeight = (8 + n) + 'px';
	}
}

function NewsWindow(id)
{
  window.open('visual_detail.asp?id='+id,'infoWin', 'height=768,width=1024,scrollbars=yes,resizable=yes');
}

//±κΗ©ΗΠ»»
function setTab(name,cursel,n,hcla,cla){
	for(i=1;i<=n;i++)
	{
  		var menu=document.getElementById(name+i);
  		var con=document.getElementById("con_"+name+"_"+i);
  		menu.className=i==cursel?hcla:cla;
  		con.style.display=i==cursel?"block":"none";
 	}
}




function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function menuFix() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
 	for (var i=0; i<sfEls.length; i++) 
	{
		sfEls[i].onmouseover=function() 
		{
	  		this.className+=(this.className.length>0? " ": "") + "sfhover";
  		}
  		sfEls[i].onMouseDown=function() 
		{
  			this.className+=(this.className.length>0? " ": "") + "sfhover";
  		}
  		sfEls[i].onMouseUp=function() 
		{
  			this.className+=(this.className.length>0? " ": "") + "sfhover";
  		}
  		sfEls[i].onmouseout=function() 
		{
  			this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
  		}
 	}
}


window.onload=function(){
	menuFix();
}
