//input text
function cnj_search(field,type){ 
if (!field.value && type) field.value = field.defaultValue;  // click before   
} 
function cnj_search2(field,type){ 
if (field.value == field.defaultValue && type) field.value = ''; // click after
} 

//layer Popup
function popshow( icnt ) {
	document.getElementById("popup"+icnt).style.display = "block";	
}
function pophidden( icnt ) {
	document.getElementById("popup"+icnt).style.display = "none";
}

//text layer 
function txtshow( icnt ) {
	document.getElementById("txt"+icnt).style.display = "block";	
}
function txthidden( icnt ) {
	document.getElementById("txt"+icnt).style.display = "none";
}

// Flash publish
function swfprint(furl,fwidth,fheight,transoption)	{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<!-- Hixie method -->');
	document.write('<!--[if !IE]> <-->');
	document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');
	if (transoption == "t")	{
		document.write(' wmode="transparent"');
	} else if	(transoption == "o")	{
		document.write(' wmode="opaque"');
	}
	document.write('></object>');
	document.write('<!--> <![endif]-->');
	document.write('</object>');
}

//·¹ÀÌ¾î¸Þ´º
function subMenu(cnt){
	if(cnt<=8){
		for(i=0;i<8;i++){
			var hide=eval("document.all.a_" + i);
			if(cnt==i){
				hide.style.display="";
			}else{
				hide.style.display="none";
			}
		}
	}else{
		for(i=0;i<8;i++){
			var hide=eval("document.all.a_" + i);
				hide.style.display="none";
		}
	}
}
