﻿// Flash Load
function flashObject(file_name,flashVar,width,height){
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '">');
  document.write('<param name="movie" value="' + file_name + '">');
  document.write('<param name=FlashVars value="' + flashVar + '">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="bgcolor" value="#ffffff">');
  document.write('<param name="wmode" value="transparent">');
  document.write('<param name="allowScriptAccess" value="always">');
  document.write('<param name="base" value=".">');
  document.write('<embed src="' + file_name +'" FlashVars="' + flashVar +'" width="' + width + '" height="' + height + '" quality="high" bgcolor="#ffffff" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowNetworking="all" base="."></embed>');
  document.write('</object>');
}

// Tab Menu
function latestList(num) {
	var TD_block = "latest" + num;
	var TDname1 = "tab" + num;

	for(i=1; i<=3; i++) {
		var TD_num = "latest" + i;
		var TDname2 = "tab" + i;
		document.getElementById(TD_num).style.display="none";
		document.getElementById(TDname2).style.backgroundPosition="-114px 0px";
	}
	document.getElementById(TD_block).style.display="block";
	document.getElementById(TDname1).style.backgroundPosition="-14px 0px";
}

// Show Hide Layer
function showLayer(num) {
	document.getElementById("linkList" + num).style.display = "block";
	document.getElementById("button" + num + "Open").style.display = "none";
	document.getElementById("button" + num + "Close").style.display = "block";
}

function hideLayer(num) {
	document.getElementById("linkList" + num).style.display = "none";
	document.getElementById("button" + num + "Open").style.display = "block";
	document.getElementById("button" + num + "Close").style.display = "none";
}

// Flash Menu Show Hide
function flashMax(){ 
	document.all['mainMnu'].style.height = 150; //확장사이즈 
} 

function flashMin(){ 
	document.all['mainMnu'].style.height = 26; //축소사이즈 
} 

// PNG
var clear="../_common/images/clear.gif"; //path to clear.gif

document.write('<script type="text/javascript" id="ct" defer="defer" src="javascript:void(0)"><\/script>');var ct=document.getElementById("ct");ct.onreadystatechange=function(){pngfix()};pngfix=function(){var els=document.getElementsByTagName('*'),ip=/\.png/i,al="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='",i=els.length,uels=new Array(),c=0;while(i-->0){if(els[i].className.match(/unitPng/)){uels[c]=els[i];c++;}}if(uels.length==0)pfx(els);else pfx(uels);function pfx(els){i=els.length;while(i-->0){var el=els[i],es=el.style,elc=el.currentStyle,elb=elc.backgroundImage;if(el.src&&el.src.match(ip)&&!es.filter){es.height=el.height;es.width=el.width;es.filter=al+el.src+"',sizingMethod='crop')";el.src=clear;}else{if(elb.match(ip)){var path=elb.split('"'),rep=(elc.backgroundRepeat=='no-repeat')?'crop':'scale',elkids=el.getElementsByTagName('*'),j=elkids.length;es.filter=al+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';if(j!=0){if(elc.position!="absolute")es.position='static';while(j-->0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}};};
