function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 





/****************************************************
¸µÅ©½Ã ÀÌ¹ÌÁö Å×µÎ¸® »èÁ¦
*****************************************************/
 function bluring(){ 
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
 } 
 document.onfocusin=bluring; 





/****************************************************
¸Þ´º¸µÅ©
*****************************************************/

function menu(tm,sm) { 

//--------------------------------------------------------[È¸»ç ]

	if(tm == "1") {
		if(sm == "1")
			location.href = "/index.html?TPL=content1.tpl";   
		else if(sm == "2")
			location.href = "/index.html?TPL=content3.tpl";   

	}



//--------------------------------------------------------[Á¦Ç°]

	else if(tm == "2") {

		if(sm == "1")
			location.href = "/index.html?TPL=content5.tpl";   
		else if(sm == "2")
			location.href = "/index.html?TPL=content6.tpl";   
		else if(sm == "3")
			location.href = "/index.html?TPL=content7.tpl";   
		else if(sm == "4")
			location.href = "/index.html?TPL=content8.tpl";   
		else if(sm == "5")
			location.href = "/index.html?TPL=content9.tpl";   
		else if(sm == "6")
			location.href = "/index.html?TPL=content10.tpl";   
		else if(sm == "7")
			location.href = "/index.html?TPL=content11.tpl";  
		else if(sm == "8")
			location.href = "/index.html?TPL=content12.tpl";  
	}


//--------------------------------------------------------[´ë¸®Á¡]

	else if(tm == "3") {

		if(sm == "1")
			location.href = "/index.html?TPL=content4.tpl";   
		else if(sm == "2")
			location.href = "/index.html?TPL=formmail3.tpl";   

	}



//--------------------------------------------------------[°í°´]

	else if(tm == "4") {

		if(sm == "1")
			location.href = "/index.html?TPL=notice.tpl";   
		else if(sm == "2")
			location.href = "/index.html?TPL=board1.tpl";   
		else if(sm == "3")
			location.href = "/index.html?TPL=board2.tpl";   
	}

//--------------------------------------------------------[ÀÚ·á½Ç]

	else if(tm == "5") {

		if(sm == "1")
			location.href = "/index.html?TPL=board2.tpl";   
		else if(sm == "2")
			location.href = "/index.html?TPL=board3.tpl";   
		else if(sm == "3")
			location.href = "/index.html?TPL=board4.tpl"; 
		else if(sm == "4")
			location.href = "/index.html?TPL=board4.tpl";  
		

	}



}





/****************************************************
 ÇÃ·¡½Ã Ãâ·Â ÇÔ¼ö 
 ¾ÆÀÌµð, URL, Æø, ³ôÀÌ¸¸ ÀÔ·Â¹Þ¾Æ¼­ Ãâ·Â
*****************************************************/
function FlashCommon( id, ObjUri, vWidth, vHeight ) {

	var str = "";
	str  = '<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="' + vWidth + '" height="' + vHeight + ' id="' + id + '" align="middle">';
	str += '<param name="movie" value="' + ObjUri + '">';
	str += '<param name="quality" value="high">';
	str += '<param name="wmode" value="transparent">';
	str += '<param name="bgcolor" value="#ffffff">';
	str += '<embed src="' + ObjUri + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + vWidth + '" height="' + vHeight + '" id="' + id + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
	str += '</object>';

	document.writeln(str);
}





function fNewwin2()  {
 cw=screen.availWidth; // È­¸é ³Êºñ
 ch=screen.availHeight; // È­¸é ³ôÀÌ

 sw=480;// ¶ç¿ï Ã¢ÀÇ ³Êºñ
 sh=320;// ¶ç¿ï Ã¢ÀÇ ³ôÀÌ

 ml=(cw-sw)/2;// °¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ xÀ§Ä¡
 mt=(ch-sh)/2;// °¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ yÀ§Ä¡

  NewWindow=window.open('/userData/mov2.html','model','width='+sw+',height='+sh+',top='+mt+',left='+ml+',toobar=no,scrollbars=auto,menubar=no,status=no ,directories=no,');
}
