function link(type)
{   
//	var contpath = "/home";
	var contpath = "";

/* ¸ÞÀÎ------------------------------------------------------------------------------- */
	if(type==01)
	 self.location="../main/main.html"; /* ¸ÞÀÎÈ­¸é */
	if(type==02)
	 self.location="../sitemap/sub_02.html"; /*  ÃßÃµ»çÀÌÆ®*/
	if(type==03)
	 self.location="../sitemap/sub_01.html"; /* »çÀÌÆ®¸Ê */


	if(type==05)
	 self.location="../login/search.html"; /* id/pwÃ£±â */
	if(type==06)
	 self.location="../login/join.html"; /* È¸¿ø°¡ÀÔ */



/* ÇÐ±³¼Ò°³------------------------------------------------------------------------------- */
	if(type==11)
	 self.location="../intro/sub_01.html"; /* ÀÎ»ç¸» */
	if(type==12)
	 self.location="../intro/sub_02.html"; /* ÇÐ±³»óÂ¡ */
	if(type==13)
	 self.location="../intro/sub_03.html"; /* ¿¬Çõ */
	if(type==14)
	 self.location="../intro/sub_04.html"; /* ±³À°¸ñÇ¥ */
	if(type==15)
	 self.location="../intro/sub_05.html"; /* ±³Á÷¿ø¼Ò°³ */
	if(type==16)
	 self.location="../intro/sub_06.html"; /* ÇÐ±³ÇöÈ² */
	if(type==17)
	 self.location="../intro/sub_07.html"; /* ¿À½Ã´Â±æ */




/* ±³À°È°µ¿------------------------------------------------------------------------- */
	if(type==21)
	 self.location="../edu/sub_01.html"; /* Çà»çÀÏÁ¤   */
	if(type==22)
	 self.location="../edu/sub_02.html"; /* ÇÐ±³¾Ù¹ü(ÇÐ±³Çà»ç)   */
	if(type==222)
	 self.location="../edu/sub_022.html"; /* ÇÐ±³¾Ù¹ü(ÇÐ»ýÈ°µ¿)   */
	if(type==23)
	 self.location="../edu/sub_03.html"; /*  °øÁö»çÇ×  */
	if(type==24)
	 self.location="../edu/sub_04.html"; /*  ÇÐ±³¼Ò½Ä  */


/* °Ô½ÃÆÇ------------------------------------------------------------------------- */
	if(type==31)
	 self.location="../board/sub_01.html"; /* ÇÐ»ý°Ô½ÃÆÇ */
	if(type==32)
	 self.location="../board/sub_02.html"; /* ÇÐºÎ¸ð°Ô½ÃÆÇ */
	if(type==33)
	 self.location="../board/sub_03.html"; /* ±Þ½Ä°Ô½ÃÆÇ */
	if(type==34)
	 self.location="../board/sub_04.html"; /* ÇÐ±³¿î¿µÀ§¿øÈ¸ */


/* ÀÚ·á½Ç------------------------------------------------------------------------- */
	if(type==41)
	 self.location="../data/sub_01.html"; /* ÀÏ¹ÝÀÚ·á */
	if(type==42)
	 self.location="../data/sub_02.html"; /* ÇÐ½ÀÀÚ·á */



/* »ó´ã½Ç------------------------------------------------------------------------- */
	if(type==51)
	 self.location="../counsel/sub_01.html"; /* ÇÐ»ý»ó´ã½Ç */
	if(type==52)
	 self.location="../counsel/sub_02.html"; /* ÇÐºÎ¸ð»ó´ã½Ç */



/* ¼öÇàÆò°¡------------------------------------------------------------------------- */
	if(type==61)
	 self.location="../sooheng/sub_01.html"; /* ¼öÇàÆò°¡ (±¹¾î) */





/* ±³Á÷¿ø½Ç------------------------------------------------------------------------- */
	if(type==71)
	 self.location="../teacher/sub_01.html"; /* °øÁö»çÇ×  */
	if(type==72)
	 self.location="../teacher/sub_02.html"; /* ±³Á÷¿ø°Ô½ÃÆÇ */
	if(type==73)
	 self.location="../teacher/sub_03.html"; /* ±³Á÷¿øÀÚ·á½Ç */


}

function flashWrite( id, flashUri, vWidth, vHeight ) {
   var _obj_ = "";

   _obj_ = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + vWidth + '" height="' + vHeight + '" id="' + id + '" align="middle">';
	_obj_ += '<param name="movie" value="' + flashUri + '" />';
   _obj_ += '<param name="quality" value="high" />';
   _obj_ += '<param name="wmode" value="transparent" />    ';
   _obj_ += '<param name="bgcolor" value="#ffffff" />        ';
   _obj_ += '<embed src="' + flashUri + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + vWidth +'" height="' + vHeight + '" id="' + id + '" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>    ';
   _obj_ += '</object>';
   document.writeln( _obj_ );
}

