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 ''; 
} 




/****************************************************
 ÇÃ·¡½Ã Ãâ·Â ÇÔ¼ö 
 ¾ÆÀÌµð, 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 bluring(){ 
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
 } 
 document.onfocusin=bluring; 



/****************************************************
ÀÌ¹ÌÁö ¸¶¿ì½º¿À¹ö
*****************************************************/


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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 MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




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

function menu(tm,sm) { 

//--------------------------------------------------------[»ç¾÷¼Ò°³]

	if(tm == "1") {
		if(sm == "1")
			location.href = "/cro/html/sub01_01.html";  
		else if(sm == "2")
			location.href = "/cro/html/sub01_02.html";  
		else if(sm == "3")
			location.href = "/cro/html/sub01_03.html";  
		else if(sm == "4")
			location.href = "/cro/html/sub01_04.html";  

	}







//--------------------------------------------------------[Âü¿©±â°üÇöÈ²]

	else if(tm == "2") {

		if(sm == "1")
			location.href = "/cro/html/sub02_01.html";  
		else if(sm == "2")
			location.href = "/cro/html/sub02_02.html";  
		else if(sm == "3")
			location.href = "/cro/html/sub02_03.html";  
		else if(sm == "4")
			location.href = "/cro/html/sub02_04.html";  
		else if(sm == "5")
			location.href = "/cro/html/sub02_05.html";  

	}



//--------------------------------------------------------[»ç¾÷³»¿ë]

	else if(tm == "3") {

		if(sm == "1")
			location.href = "/cro/html/sub03_01.html";  
		else if(sm == "2")
			location.href = "/cro/html/sub03_02.html";  
		else if(sm == "3")
			location.href = "/cro/html/sub03_03.html";  
		else if(sm == "4")
			location.href = "/cro/html/sub03_04.html";  
		else if(sm == "5")
			location.href = "/cro/html/sub03_05.html";  

	}




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

	else if(tm == "4") {

		if(sm == "1")
			location.href = "/tt/site/ttboard.cgi?db=cro_data";   
		
	}


//--------------------------------------------------------[¾Ë¸²¸¶´ç]

	else if(tm == "5") {

		if(sm == "1")
			location.href = "/tt/site/ttboard.cgi?db=cro_notice";   
		else if(sm == "2")
			location.href = "/cro/html/sub05_02.html";  
		else if(sm == "3")
			location.href = "/cro/html/sub05_03.html";  
		else if(sm == "4")
			location.href = "/cro/html/sub05_04.html";  
		else if(sm == "5")
			location.href = "/cro/html/sub05_05.html";  
		else if(sm == "6")
			location.href = "/cro/html/sub05_06.html";  

	}




}



/****************************************************
 ¸ÞÀÎ °Ô½ÃÆÇ ¸ñ·Ï
*****************************************************/

	function showZone01() {
		document.all['Zone01'].style.display = 'inline';
		document.all['Zone02'].style.display = 'none';
	}
	function showZone02() {
		document.all['Zone01'].style.display = 'none';
		document.all['Zone02'].style.display = 'inline';
	}
/****************************************************
 ¸ÞÀÎ °Ô½ÃÆÇ ¸ñ·Ï
*****************************************************/

	function showCompany01() {
		document.all['CZone01'].style.display = 'inline';
		document.all['CZone02'].style.display = 'none';
		document.all['CZone03'].style.display = 'none';
		document.all['CZone04'].style.display = 'none';
		document.all['CZone05'].style.display = 'none';
		document.all['CZone06'].style.display = 'none';
		document.all['CZone07'].style.display = 'none';
		document.all['CZone08'].style.display = 'none';
	}
	function showCompany02() {
		document.all['CZone01'].style.display = 'none';
		document.all['CZone02'].style.display = 'inline';
		document.all['CZone03'].style.display = 'none';
		document.all['CZone04'].style.display = 'none';
		document.all['CZone05'].style.display = 'none';
		document.all['CZone06'].style.display = 'none';
		document.all['CZone07'].style.display = 'none';
		document.all['CZone08'].style.display = 'none';
	}
	function showCompany03() {
		document.all['CZone01'].style.display = 'none';
		document.all['CZone02'].style.display = 'none';
		document.all['CZone03'].style.display = 'inline';
		document.all['CZone04'].style.display = 'none';
		document.all['CZone05'].style.display = 'none';
		document.all['CZone06'].style.display = 'none';
		document.all['CZone07'].style.display = 'none';
		document.all['CZone08'].style.display = 'none';
	}
	function showCompany04() {
		document.all['CZone01'].style.display = 'none';
		document.all['CZone02'].style.display = 'none';
		document.all['CZone03'].style.display = 'none';
		document.all['CZone04'].style.display = 'inline';
		document.all['CZone05'].style.display = 'none';
		document.all['CZone06'].style.display = 'none';
		document.all['CZone07'].style.display = 'none';
		document.all['CZone08'].style.display = 'none';
	}
	function showCompany05() {
		document.all['CZone01'].style.display = 'none';
		document.all['CZone02'].style.display = 'none';
		document.all['CZone03'].style.display = 'none';
		document.all['CZone04'].style.display = 'none';
		document.all['CZone05'].style.display = 'inline';
		document.all['CZone06'].style.display = 'none';
		document.all['CZone07'].style.display = 'none';
		document.all['CZone08'].style.display = 'none';
	}
	function showCompany06() {
		document.all['CZone01'].style.display = 'none';
		document.all['CZone02'].style.display = 'none';
		document.all['CZone03'].style.display = 'none';
		document.all['CZone04'].style.display = 'none';
		document.all['CZone05'].style.display = 'none';
		document.all['CZone06'].style.display = 'inline';
		document.all['CZone07'].style.display = 'none';
		document.all['CZone08'].style.display = 'none';
	}
	function showCompany07() {
		document.all['CZone01'].style.display = 'none';
		document.all['CZone02'].style.display = 'none';
		document.all['CZone03'].style.display = 'none';
		document.all['CZone04'].style.display = 'none';
		document.all['CZone05'].style.display = 'none';
		document.all['CZone06'].style.display = 'none';
		document.all['CZone07'].style.display = 'inline';
		document.all['CZone08'].style.display = 'none';
	}
	function showCompany08() {
		document.all['CZone01'].style.display = 'none';
		document.all['CZone02'].style.display = 'none';
		document.all['CZone03'].style.display = 'none';
		document.all['CZone04'].style.display = 'none';
		document.all['CZone05'].style.display = 'none';
		document.all['CZone06'].style.display = 'none';
		document.all['CZone07'].style.display = 'none';
		document.all['CZone08'].style.display = 'inline';
	}



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

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

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

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

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

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

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

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













/****************************************************
 Áöµµ¸µÅ©
*****************************************************/


// ÇöÀçÅÇ¹øÈ£
var tabScroll=5

// Ä«Å×°í¸®º° ÀÌº¥Æ® ¹è³Ê ÅÇ ÀüÈ¯ //
function switchMainIndexCaTab(tNo)
{
	var frm = document.all;
	var ua = window.navigator.userAgent.toLowerCase();
	if ((ua.indexOf('msie')) != -1) {	// MSÀÍ½ºÇÃ·Î·¯ÀÇ °æ¿ì
		// ¼±ÅÃµÈ Ç×¸ñ Ç¥½Ã
		//frm["tabCaBtn" + tNo].src="http://fiximage.10x10.co.kr/web2010/main/cttab_" + tNo + "on.gif";
		frm["eventCaTab" + tNo].filters.blendTrans.Apply();
		frm["eventCaTab" + tNo].style.zIndex="20";
		frm["eventCaTab" + tNo].style.visibility = "visible";
		frm["eventCaTab" + tNo].filters.blendTrans.Play();
		
		// ¹öÆ° ¸®¼Â
		for(i=1;i<=6;i++) {
			var tmp = "0"+i;
			if(tNo!=tmp) {
				//frm["tabCaBtn" + tmp].src="http://fiximage.10x10.co.kr/web2010/main/cttab_0" + i + ".gif";
			}
		}
	
		// ÀÌÀüÇ×¸ñ Ã³¸®
		tabChk = "N";
		tabLast = tNo;
		hiddenCaTab();
	}
	else {	// ±âÅ¸ ºê¶ó¿ìÀú
		// ¼±ÅÃµÈ Ç×¸ñ Ç¥½Ã
		var ftb = MM_findObj("tabCaBtn" + tNo);
		var fte = MM_findObj("eventCaTab" + tNo);
		//ftb.src="http://fiximage.10x10.co.kr/web2010/main/cttab_" + tNo + "on.gif";
		fte.style.visibility = "visible";

		// ·¹ÀÌ¾î ¹× ¹öÆ° ¸®¼Â
		for(i=1;i<=6;i++) {
			var tmp = "0"+i;
			ftb = MM_findObj("tabCaBtn" + tmp);
			fte = MM_findObj("eventCaTab" + tmp);
			if(tNo!=tmp) {
				//ftb.src="http://fiximage.10x10.co.kr/web2010/main/cttab_" + tmp + ".gif";
				fte.style.visibility = "hidden";
			}
		}
	}
}


// ÀÌº¥Æ® ¹è³Ê ¼û±èÃ³¸®(1ÃÊ ÈÄ ½ÇÇà)
function hiddenCaTab()
{
	var frm = document.all;
	// ·¹ÀÌ¾î ¸®¼Â
	if(tabChk=="Y")	{
		for(i=1;i<=6;i++) {
			var tmp = "0"+i;
			if(tabLast!=tmp)	{
				frm["eventCaTab0" + i].style.visibility = 'hidden';
			}
			frm["eventCaTab0" + i].style.zIndex="10";
		}
		clearTimeout(tabTimeOut2);
	}
	else
	{	
		tabChk="Y";
		tabTimeOut2 = setTimeout(hiddenCaTab,0);
	}
}





/****************************************************
Áöµµ¸µÅ©
*****************************************************/

function map(tm,sm) { 

//--------------------------------------------------------[°æ±âµµ]

	if(tm == "1") {
		if(sm == "1")
			location.href = "/cro/html/map/gyeonggi01.html";  

	}


//--------------------------------------------------------[°­¿øµµ]

	else if(tm == "2") {

		if(sm == "1")
			location.href = "/cro/html/map/gangwon01.html";  
		else if(sm == "2")
			location.href = "/cro/html/map/gangwon02.html";  
	}


//--------------------------------------------------------[Ãæ³²]

	else if(tm == "3") {

		if(sm == "1")
			location.href = "/cro/html/map/chungnam01.html";   
		else if(sm == "2")
			location.href = "/cro/html/map/chungnam02.html";   
	}



//--------------------------------------------------------[ÃæºÏ]

	else if(tm == "4") {

		if(sm == "1")
			location.href = "/cro/html/map/chungbuk01.html";   
		else if(sm == "2")
			location.href = "/cro/html/map/chungbuk02.html";   

		
	}


//--------------------------------------------------------[°æºÏ]

	else if(tm == "5") {

		if(sm == "1")
			location.href = "/cro/html/map/gyeongbuk01.html";  
		else if(sm == "2")
			location.href = "/cro/html/map/gyeongbuk02.html";  
		else if(sm == "3")
			location.href = "/cro/html/map/gyeongbuk03.html";  
		else if(sm == "4")
			location.href = "/cro/html/map/gyeongbuk04.html";  
		else if(sm == "5")
			location.href = "/cro/html/map/gyeongbuk05.html";  
	}

//--------------------------------------------------------[ÀüºÏ]

	else if(tm == "6") {

		if(sm == "1")
			location.href = "/cro/html/map/jeonbuk01.html";   

	}
//--------------------------------------------------------[Àü³²]

	else if(tm == "7") {

		if(sm == "1")
			location.href = "/cro/html/map/jeonnam01.html";   
		else if(sm == "2")
			location.href = "/cro/html/map/jeonnam02.html";   
		else if(sm == "3")
			location.href = "/cro/html/map/jeonnam03.html";   
		else if(sm == "4")
			location.href = "/cro/html/map/jeonnam04.html";   
		else if(sm == "5")
			location.href = "/cro/html/map/jeonnam05.html";   
	}

//--------------------------------------------------------[°æ³²]

	else if(tm == "8") {

		if(sm == "1")
			location.href = "/cro/html/map/gyeongnam01.html";   
		else if(sm == "2")
			location.href = "/cro/html/map/gyeongnam02.html";   
		else if(sm == "3")
			location.href = "/cro/html/map/gyeongnam03.html";   
		else if(sm == "4")
			location.href = "#";   

	}
//--------------------------------------------------------[Á¦ÁÖµµ]

	else if(tm == "9") {

		if(sm == "1")
			location.href = "/cro/html/map/jeju01.html";   

	}

}
