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 logout(str){
  ret = confirm(str);			
  if (!ret) return; 
  window.location="logout.jsp";
}

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_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_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 lightOn(onItem,path){//ºô­¶¹w³]«G¿O
	var onItem;
	var path;
	document.getElementById(onItem).src = 'images/'+path
}

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; }
}

function set_submenu(subobj,tarobj,xpadding,ypadding){ 
document.getElementById(subobj).style.left = document.getElementById(tarobj).offsetLeft + xpadding;
document.getElementById(subobj).style.top = document.getElementById(tarobj).offsetTop + ypadding;
}

function overAll(n){
	for (var i = 1;i<6;i++){
		if (n == i){
			MM_swapImage('cmenu'+i,'','images/cmenu_0'+i+'_over.gif',1);
			MM_showHideLayers('s'+i+'Txt','','show');
		} else {
			MM_swapImage('cmenu'+i,'','images/cmenu_0'+i+'.gif',1);
			MM_showHideLayers('s'+i+'Txt','','hide');
		}
	}
}
function upAll(n){
	MM_swapImage('cmenu'+n,'','images/cmenu_0'+n+'.gif',1);
	MM_swapImage('cmenu1','','images/cmenu_01_over.gif',1);
	set_submenu('s1Txt','root',230,730);
	MM_showHideLayers('s1Txt','','show');
}




/*banner=
'<table width="900"  border="0" align="center" cellpadding="0" cellspacing="0">'+
'     <tr>'+
'          <td><img src="images/index_top_01.gif" width="900" height="13"></td>'+
'     </tr>'+
'</table>'+
'<table width="900"  border="0" align="center" cellpadding="0" cellspacing="0">'+
'     <tr>'+
'          <td><img src="images/index_top_02.gif" width="285"><a href="index.jsp" onMouseOver="MM_swapImage(\'top_03\',\'\',\'images/index_top_03_02_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_03_02.gif" name="top_03" width="60" height="30" border="0" id="top_03"></a><a href="a_01.jsp" onMouseOver="MM_swapImage(\'top_04\',\'\',\'images/index_top_04_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_04.gif" name="top_04" width="90" border="0" id="top_04"></a><a id="b_01" href="b_01.jsp" onMouseOver="MM_swapImage(\'top_05\',\'\',\'images/index_top_05_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_05.gif" name="top_05" width="87" border="0" id="top_05"></a><a id="login" href="c_01.jsp" onMouseOver="MM_swapImage(\'top_06\',\'\',\'images/index_top_06_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_06.gif" name="top_06" width="105" border="0" id="top_06"></a><a onMouseOver="MM_swapImage(\'top_07\',\'\',\'images/index_top_07_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_07.gif" name="top_07" width="88" border="0" id="top_07"></a><a href="e_01.jsp" onMouseOver="MM_swapImage(\'top_08\',\'\',\'images/index_top_08_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_08.gif" name="top_08" width="93" border="0" id="top_08"></a><img src="images/index_top_09.gif"></td>'+
'     </tr>'+
'</table>'+
'<table width="900"  border="0" align="center" cellpadding="0" cellspacing="0">'+
'     <tr>'+
'          <td><img src="images/templet_banner_01.gif" width="441" height="165"><img src="images/templet_banner_02.gif" width="459" height="165"></td>'+
'     </tr>'+
'</table>'*/

banner=
'<table width="900"  border="0" align="center" cellpadding="0" cellspacing="0">'+
'     <tr>'+
'          <td><img src="images/index_top_01.gif" width="900" height="13"></td>'+
'     </tr>'+
'</table>'+
'<table width="900"  border="0" align="center" cellpadding="0" cellspacing="0">'+
'  <tr> '+
'    <td><img src="images/index_top_02.gif"><a href="index.jsp" onMouseOver="MM_swapImage(\'top_03\',\'\',\'images/index_top_03_02_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_03_02.gif" name="top_03" width="60" height="30" border="0" id="top_03"></a><a href="a_01.jsp" onMouseOver="MM_swapImage(\'top_04\',\'\',\'images/index_top_04_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_04.gif" name="top_04" width="90" border="0" id="top_04"></a><a id="b_01" href="b_01.jsp" onMouseOver="MM_swapImage(\'top_05\',\'\',\'images/index_top_05_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_05.gif" name="top_05" width="87" border="0" id="top_05"></a><a id="login" href="c_01.jsp" onMouseOver="MM_swapImage(\'top_06\',\'\',\'images/index_top_06_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img id="top_06" src="images/index_top_06.gif" name="top_06" width="105" border="0"></a><a href="g_01.jsp" onMouseOver="MM_swapImage(\'top_061\',\'\',\'images/index_top_11_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_11.gif" name="top_061" width="92" height="30" border="0" id="top_06"></a><a href="../oral.pdf" target="_blank" onMouseOver="MM_swapImage(\'top_07\',\'\',\'images/index_top_07_over.gif\',1);MM_swapImage(\'top_11\',\'\',\'images/index_top_11_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_07.gif" name="top_07" border="0" id="top_07"></a><a href="e_01.jsp" onMouseOver="MM_swapImage(\'top_08\',\'\',\'images/index_top_08_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="images/index_top_08.gif" name="top_08" border="0" id="top_08"></a><img src="images/index_top_09.gif"></td>'+
'  </tr>'+
'</table>'+
'<table width="900"  border="0" align="center" cellpadding="0" cellspacing="0">'+
'     <tr>'+
'          '+
'    <td><img src="images/templet_banner_01.gif" width="441" height="165" border="0" usemap="#Map2"><img src="images/templet_banner_02.gif" width="459" height="165"></td>'+
'     </tr>'+
'</table>'+
'<map name="Map2">'+
'  <area shape="rect" coords="58,25,347,59" href="http://edu-show.tkb.com.tw/" target="_blank">'+
'</map>'

down=
'<table width="900"  border="0" align="center" cellpadding="0" cellspacing="0">'+
'     <tr>'+
'          <td><img src="images/templet_down_01.gif" width="900" height="132" border="0" usemap="#Map"></td>'+
'     </tr>'+
'</table>'+
'<map name="Map">'+
'     <area shape="rect" coords="130,60,232,102" href="http://www.tkblearning.com.tw">'+
'     <area shape="rect" coords="82,52,125,100" href="http://www.tkb.com.tw/">'+
'     <area shape="rect" coords="249,79,461,100" href="http://www.tkb.com.tw/">'+
'     <area shape="rect" coords="482,77,749,102" href="mailto:rosan953@tkb.com.tw">'+
'</map>'
