// s: source url
// d: flash id
// w: source width
// wp : IF source width Percent THEN Here "%" Else ""
// h: source height
// hp : IF source height Percent THEN Here "%" Else ""
// t: wmode ("" for none, transparent, opaque ...)
function flash_mode(s,d,w,h,t){
        return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width="+w+" height="+h+" id="+d+"><PARAM name=\"allowScriptAccess\" value=\"always\" /><param name=wmode value="+t+" /><param name=movie value="+s+" /><param name=quality value=high /><embed src="+s+" quality=high wmode="+t+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed></object>";
}

// write document contents
function documentwrite(src){
        document.write(src);
}


function goCategory(num1, num2, num3)	{
	
	var num=String(num1)+String(num2)+String(num3);
	
	if (num1=="home")	{		top.location.href("/index.html");	}
	else	if (num==100)	{		top.location.href("/about/index.html");	}					//È¸»ç¼Ò°³
	else	if (num==110)	{		top.location.href("/about/index.html");	}					//ceoÀÎ»ç¸»
	else	if (num==120)	{		top.location.href("/about/sub2.html");	}					//VISION
	else	if (num==130)	{		top.location.href("/about/sub3.html");	}					//¿¬Çõ
	else	if (num==140)	{		top.location.href("/about/sub4.html");	}					//Á¶Á÷µµ±¸¼º
	else	if (num==150)	{		top.location.href("/about/sub5.html");	}					//PR
	else	if (num==160)	{		top.location.href("/about/sub6.html");	}					//Contact Us
	
	else	if (num==170)	{		top.location.href("/about/subManag1.html");	}					//À±¸®°æ¿µ
	else	if (num==171)	{		top.location.href("/about/subManag1.html");	}				//À±¸®°æ¿µ¼Ò°³
	else	if (num==172)	{		top.location.href("/about/subManag2.html");	}				//À±¸®±Ô¹ü
	else	if (num==173)	{		top.location.href("/about/subManag3.html");	}				//À±¸®°æ¿µ¼Ò½Ä
	else	if (num==174)	{		top.location.href("/about/subManag4.html");	}				//À±¸®»ó´ã/Á¦º¸
	
	else	if (num==200)	{		top.location.href("/business/index.html");	}				//»ç¾÷¼Ò°³
	else	if (num==210)	{		top.location.href("/business/index.html");	}				//»ç¾÷¼Ò°³
	else	if (num==220)	{		top.location.href("/business/sub2.html");	}					//»ç¾÷¼Ò°³
	else	if (num==230)	{		top.location.href("/business/sub3.html");	}					//»ç¾÷¼Ò°³

	else	if (num==211)	{		top.location.href("/business/sub_01_1.html");	}					//»ç¾÷¼Ò°³	
	else	if (num==212)	{		top.location.href("/business/sub_01_2.html");	}					//»ç¾÷¼Ò°³
	else	if (num==213)	{		top.location.href("/business/sub_01_3.html");	}					//»ç¾÷¼Ò°³
	else	if (num==214)	{		top.location.href("/business/sub_01_4.html");	}					//»ç¾÷¼Ò°³
	else	if (num==215)	{		top.location.href("/business/sub_01_5.html");	}					//»ç¾÷¼Ò°³	
	else	if (num==216)	{		top.location.href("/business/sub_01_6.html");	}					//»ç¾÷¼Ò°³	
	else	if (num==217)	{		top.location.href("/business/sub_01_7.html");	}					//»ç¾÷¼Ò°³
	else	if (num==221)	{		top.location.href("/business/sub_02_1.html");	}					//»ç¾÷¼Ò°³
	else	if (num==222)	{		top.location.href("/business/sub_02_2.html");	}					//»ç¾÷¼Ò°³	
	else	if (num==223)	{		top.location.href("/business/sub_02_3.html");	}					//»ç¾÷¼Ò°³	
	else	if (num==231)	{		top.location.href("/business/sub_03_1.html");	}					//»ç¾÷¼Ò°³
		
	else	if (num==300)	{		top.location.href("/recruit/index.html");	}					//ÀÎÀç»ó
	else	if (num==310)	{		top.location.href("/recruit/index.html");	}					//ÀÎÀç»ó
	else	if (num==320)	{		top.location.href("/recruit/sub2.html");	}					//ÀÎ»çÁ¦µµ
	else	if (num==330)	{		top.location.href("/recruit/sub3.html");	}					//Ã¤¿ëÀýÂ÷
	else	if (num==340)	{		top.location.href("/recruit/sub4.html");	}						//ÀÔ»çÁö¿ø
	
	else	{	top.location.href("/index.html");	}	

}

function family(num)	{
	if (num==1)	{		window.open("http://www.okcashbag.com");	}				//OKÄ³½¬¹é
	if (num==2)	{		window.open("http://weddingclub.okcashbag.com");	}		//OK¿þµùÅ¬·´
	if (num==3)	{		window.open("http://babyclub.okcashbag.com");	}			//º£ÀÌºñÅ¬·´
	if (num==4)	{		window.open("http://www.tourvis.com");	}					//Åõ¾îºñ½º
	if (num==5)	{		window.open("http://www.ennavi.co.kr");	}					//¿£³ªºñ
	if (num==6)	{		window.open("http://www.s-movilion.com");	}				//S-Movilion
	if (num==7)	{		window.open("http://www.skmnc.com");	}					//SK¸¶ÄÉÆÃ¾ØÄÄÆÛ´Ï
	if (num==8)	{		window.open("http://www.skenergy.com");	}					//SK¿¡³ÊÁö
	if (num==9)	{		window.open("http://www.sknetworks.com");	}				//SK³×Æ®À¨½º
}


