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_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){//網頁預設亮燈
	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');
}

top_menu= 
'<table width="735" border="0" align="center" cellpadding="0" cellspacing="0">'+
'  <tr> '+
'    <td valign="top" bgcolor="#666666"> <table width="100%" border="0" cellpadding="0" cellspacing="0">'+
'        <tr> '+
'          <td><img src="images/top_menu_01.gif" width=19 height=27 alt=""></td>'+
'          <td><a href="index.htm"><img src="images/top_menu_02.gif" alt="" name="Image1" width=43 height=27 border="0" id="Image1" onMouseOver="MM_swapImage(\'Image1\',\'\',\'images/top_menu_02_over.gif\',1)" onMouseOut="MM_swapImgRestore()"></a></td>'+
'          <td><a href="http://www.tkblearning.com.tw/"><img src="images/top_menu_03.gif" alt="" name="Image2" width=77 height=27 border="0" id="Image2" onMouseOver="MM_swapImage(\'Image2\',\'\',\'images/top_menu_03_over.gif\',1)" onMouseOut="MM_swapImgRestore()"></a></td>'+
'          <td><a href="mailto:marketing@tkblearning.com.tw"><img src="images/top_menu_04.gif" alt="" name="Image3" width=67 height=27 border="0" id="Image3" onMouseOver="MM_swapImage(\'Image3\',\'\',\'images/top_menu_04_over.gif\',1)" onMouseOut="MM_swapImgRestore()"></a></td>'+
'          <td><img src="images/top_menu_05.gif" width=529 height=27 alt=""></td>'+
'        </tr>'+
'      </table>'+
'      <table width="100%" border="0" cellpadding="0" cellspacing="0">'+
'        <tr> '+
'          <td width="3%"><img src="images/top_menu_06.gif" width=19 height=34 alt=""></td>'+
'          <td width="11%"><a href="course.htm"><img src="images/top_menu_07.gif" alt="" name="Image4" width=80 height=34 border="0" id="Image4" onMouseOver="MM_swapImage(\'Image4\',\'\',\'images/top_menu_07_over.gif\',1)" onMouseOut="MM_swapImgRestore()"></a></td>'+
'          <td width="10%"><a href="products.htm"><img src="images/top_menu_08.gif" alt="" name="Image5" width=75 height=34 border="0" id="Image5" onMouseOver="MM_swapImage(\'Image5\',\'\',\'images/top_menu_08_over.gif\',1)" onMouseOut="MM_swapImgRestore()"></a></td>'+
'          <td width="10%"><a href="specially.htm"><img src="images/top_menu_09.gif" alt="" name="Image6" width=76 height=34 border="0" id="Image6" onMouseOver="MM_swapImage(\'Image6\',\'\',\'images/top_menu_09_over.gif\',1)" onMouseOut="MM_swapImgRestore()"></a></td>'+
'          <td width="11%"><a href="teacher.htm"><img src="images/top_menu_10.gif" alt="" name="Image7" width=78 height=34 border="0" id="Image7" onMouseOver="MM_swapImage(\'Image7\',\'\',\'images/top_menu_10_over.gif\',1)" onMouseOut="MM_swapImgRestore()"></a></td>'+
'          <td width="10%"><a href="http://www.tkblearning.com.tw/web/serviceField/class_subject.jsp"><img src="images/top_menu_11.gif" alt="" name="Image8" width=76 height=34 border="0" id="Image8" onMouseOver="MM_swapImage(\'Image8\',\'\',\'images/top_menu_11_over.gif\',1)" onMouseOut="MM_swapImgRestore()"></a></td>'+
'          <td width="45%"><img src="images/top_menu_12.gif" width=331 height=34 alt=""></td>'+
'        </tr>'+
'      </table>'



top_right=
'<img src="images/in_top_03.gif">'



index_down=
'<table width="735" border="0" cellpadding="0" cellspacing="0">'+
'        <tr> '+
'          <td width="165"><img src="images/index_down_02.gif" alt="" height=83 border="0" usemap="#Map" href="http://www.tkblearning.com.tw/"></td>'+
'          <td width="570" background="images/index_down_03.gif">'+
'<table width="100%" border="0" cellpadding="0" cellspacing="2">'+
'              <tr> '+
'                <td height="25" colspan="2"> <script language="JavaScript" src="http://www.tkblearning.com.tw/Index/unjsp_cprs/format3.js" type="text/JavaScript"></script> '+
'                  <script language="JavaScript" type="text/javascript">unjsp_cprs(\'12\',\'#FFFFFF\',\'246E00\',\'545\',\'-------------------------------------------------\');'+
'</script> </td>'+
'              </tr>'+
'              <tr valign="top"> '+
'                <td width="62%" height="32" class="text_down" ><font color="#B70000">◎TKB數位學堂為回饋社會，凡清寒(領有縣市政府低收入戶證明書)、<br> '+
'                    　殘障 (中度以上) 學子，'+
'一律五折優惠 ( 代理課程及函授產品除外)，<br>'+
'　我們真心希望清寒子弟也能享有同齡學子的夢想！'+
'</font><br> </td>'+
'                <td width="38%" class="text_down" ><font color="#B70000">◎TKB數位學堂學習場次，依季節彈<br>'+
'&nbsp;&nbsp;&nbsp;&nbsp;性調整，不便之處，敬請見諒！</font></td>'+
'              </tr>'+
'            </table>'+
'          </td>'+
'        </tr>'+
'      </table>'+


'<map name="Map">'+
'  <area shape="rect" coords="23,8,61,48" href="http://www.tkb.com.tw/" target="_blank">'+
'  <area shape="rect" coords="70,11,155,50" href="http://www.tkblearning.com.tw/" target="_blank">'+
'</map>'