function link(type)
{   
//	var contpath = "/home";
	var contpath = "";

/* ¸ÞÀÎ------------------------------------------------------------------------------- */
	if(type==01)
	 self.location="/main/main.asp"; /* È¨À¸·Î */


/* ABOUT TLBU ------------------------------------------------------------------------ */
	if(type==11)
	 self.location="/aboutTLBU/goals.asp?pnum=1"; /* Goals */
	if(type==12)
	 self.location="/aboutTLBU/presidential.asp?pnum=2"; /* Presidential Address */
	if(type==13)
	 self.location="/aboutTLBU/history.asp?pnum=3"; /* TLBU History */
	if(type==14)
	 self.location="/aboutTLBU/system.asp?pnum=4"; /* TLBU System */
	if(type==15)
	 self.location="/aboutTLBU/media.asp?pnum=5"; /* TLBU Media */
	if(type==16)
	 self.location="/aboutTLBU/ui.asp?pnum=6"; /* TLBU UI */
	if(type==17)
	 self.location="/aboutTLBU/email_tel.asp?pnum=7"; /* E-mail & Telephone */



/* FACULTY MEMBERS ------------------------------------------------------------------------ */
	if(type==21)
	 self.location="/faculty/member.asp?pnum=1"; /* Faculty Members */



/* LIBRARY ------------------------------------------------------------------------- */
	if(type==31)
	 self.location="/library/introduction.asp?pnum=1"; /* Introduction */
	if(type==32)
	 self.location="/library/regulation.asp?pnum=2"; /* Borrowing & Circulation Requlations */
	if(type==33)
	 self.location="/library/call_number.asp?pnum=3"; /* Call Number Guide */
	if(type==34)
	 self.location="/library/rules.asp?pnum=4"; /* Rules in the Library */
	if(type==35)
	 self.location="http://untreaty.un.org"; /* IUN Treaties Database */



/* CAMPUS LIFE ------------------------------------------------------------------------- */
	if(type==41)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=notice&IT=LT"; /* Students Notice */
	if(type==42)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=sGallery&IT=LT"; /* Students Gallery */
	if(type==43)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=bulletin&IT=LT"; /* Students Bulletin */
	if(type==44)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=archive&IT=LT"; /* Academic Archive */
	


/*  ACADEMICS ------------------------------------------------------------------------- */
	if(type==51)
	 self.location="/academic/calendar.asp?pnum=1"; /* Academic Calendar */
	if(type==52)
	 self.location="/academic/description.asp?pnum=2"; /* Subject' Description */
	if(type==53)
	 self.location="/academic/student.asp?pnum=3"; /* Sutdent Registration */



/*  NEWS ------------------------------------------------------------------------- */
	if(type==61)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=news&IT=LT"; /* News */
	if(type==62)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=events&IT=LT"; /* Events */
	if(type==63)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=TLBUGallery&IT=LT"; /* TLBU Gallery */


/*  ADMISSIONS ------------------------------------------------------------------------- */
	if(type==71)
	 self.location="/admissions/qualification.asp?pnum=1"; /* Qualifications */
	if(type==72)
	 self.location="/admissions/application.asp?pnum=2"; /* Application Forms */
	if(type==73)
	 self.location="/admissions/admissions_result.asp?pnum=3&sYear=2007"; /* Admissions Result */
	 
	 
/*  FOUNDATION ------------------------------------------------------------------------- */
	if(type==81)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=minutes&IT=LT"; /* Budget Report */
	if(type==82)
	 self.location="/admin/boardAdmin/bbs.asp?sBoardId=foundation&IT=LT"; /* Minutes of TLBU Board of Director¡¯s Meeting */
	if(type==83)
	 self.location="/foundation/directors.asp?pnum=3"; /* Board of Directors */
	 
	 
/*  UTIL MENU ------------------------------------------------------------------------- */
	if(type==91)
	 self.location="/util_menu/policy.asp?pnum=1"; /* Privacy Pollicy */
	if(type==92)
	 self.location="/util_menu/campus_tour.asp?pnum=2"; /* Campus Tour */
	if(type==93)
	 self.location="/util_menu/sitmeap.asp?pnum=3"; /* Sitemap */
		 
	 
/*  MEMBERSHIP ------------------------------------------------------------------------- */
	if(type==101)
	 self.location="/member/login.asp?pnum=1"; /* Login */
	if(type==102)
	 self.location="/member/member_join.asp?pnum=2"; /* Member Join */
	if(type==103)
	 self.location="/member/idpw_search.asp?pnum=3"; /* idpw_search */
	if(type==104)
	 self.location="/member/member_modify.asp?pnum=4"; /* Member Modify */
	if(type==105)
	 self.location="/member/member_del.asp?pnum=5"; /* Member Secession */


}

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_ );
}

function setMedia(src, Ow, Oh, Pw, Ph) { //object width, height, param width, height  //
	var Media_html = "";
  	Media_html += '<OBJECT id=MPlay1 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 ';
    Media_html += '    type=application/x-oleobject height='+Oh+'';
    Media_html += '    standby="Loading Microsoft Windows Media Player components..." width='+Ow+' ';
    Media_html += '    classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>';
    Media_html += '   <PARAM NAME="Width" VALUE="'+Pw+'">';
    Media_html += '   <PARAM NAME="Height" VALUE="'+Ph+'">';
    Media_html += '   <PARAM NAME="FileName" VALUE="'+src+'">';
    Media_html += '   <PARAM NAME="Volume" VALUE="10">';
    Media_html += '   <PARAM NAME="AnimationatStart" VALUE="1">';
    Media_html += '   <PARAM NAME="AutoSize" VALUE="0">';
  	Media_html += '   <PARAM NAME="TransparentatStart" VALUE="1">';
    Media_html += '   <PARAM NAME="ControlType" VALUE="1">';
  	Media_html += '   <PARAM NAME="EnableContextMenu" VALUE="0">';
    Media_html += '   <PARAM NAME="EnablePositionControls" VALUE="0">';
    Media_html += '   <PARAM NAME="ShowTracker" VALUE="1">';
    Media_html += '   <PARAM NAME="AutoStart" VALUE="1">';
    Media_html += '   <PARAM NAME="ShowControls" VALUE="1">';
    Media_html += '   <PARAM NAME="ClickToPlay" VALUE="1">';
    Media_html += '   </OBJECT>';
	document.write(Media_html);
}

<!--·¹ÀÌ¾î
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
