//set the number of the button(tag) and block count, the number of button and block must be the same.
//button's id =  tag + n (n=number, start at 0)
//block's id = menuBlock + n (n=number, start at 0)
//last edit at 下午 02:43 2005/7/20 by Jainbin Huang

menuCnt = 4

function initCL(defaultID){
	
	mrOBJ = document.getElementById("menuROW");
	mrOBJ.style.display = '';
	
	for (i = 0 ; i < menuCnt ; i ++){
		if (i == parseInt(defaultID)){
			obj = document.getElementById("menuBlock" + i);
			obj.style.display = '';
		}else{	
			obj = document.getElementById("menuBlock" + i);
			obj.style.display = 'none';
		}
	}
	
	////mcif = document.getElementById("mainCont");
	////if (document.all && mcif){
		//IE
		//alert(mcif.document.body.scrollHeight);
		////mcif.style.height = mcif.document.body.offsetHeight;
	////}else if (mcif){
		//FF
		//mcif.style.height = window.frames[1];
		//alert(mcif.innerHeight);
		//doesn't work, see http://www.mozilla.org/projects/security/components/same-origin.html
		//Jainbin Huang
		//alert(window.frames[0].window.innerHeight);
		//alert(document.domain);
		//mcif.style.height = mcif.document.body.scrollHeight;//alert(mcif.contentDocument); in FF, contentDocument is the iframe's document
		////mcif.style.height = 900;
	////}

	//testing code
	/*if (document.all){
		//IE
		alert(window.frames(0).window.document.all.ifstyle.href);
	}else{
		//FF
		alert(window.frames[0].window.document.styleSheets[0].href);
	}*/
}

function chooseCSS(){
	
	currentDate = new Date();
	cHours = currentDate.getHours();
	if (cHours < 12){
		document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"mainIndexDAY.css\" id=\"stylePATH\">");
	}else if (cHours >17){
		document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"mainIndexDAY.css\" id=\"stylePATH\">");
	}else{
		document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"mainIndexDAY.css\" id=\"stylePATH\">");
	}
}

function switchBlock(displayID){
	for (i = 0 ; i < menuCnt ; i ++){
		if (i == parseInt(displayID)){
			obj = document.getElementById("menuBlock" + i);
			obj.style.display = '';
			
			//BELOW IS TESTING CODE
			tagObj = document.getElementById("tag" + i);
			tagObj.style.borderColor = '#ffffff';
			
		}else{	
			obj = document.getElementById("menuBlock" + i);
			obj.style.display = 'none';
			tagObj = document.getElementById("tag" + i);
			tagObj.style.borderColor = '#999999';
		}
	}
}

function swapCSS(path){
	mcif = document.getElementById("mainCont");
	//alert(mcif.document.getElementById("ifstyle"));
	style = document.getElementById("stylePATH");
	style.href = path;
	if (document.all){
		window.frames(0).window.document.all.ifstyle.href = path;
	}else{
		//window.frames[0].window.ifstyle.href = path;
		window.frames[0].window.document.styleSheets[0].href = path;
	}
}

function debugHeight(){

}

function openHotNewsWin(url){
	//THIS IS FOR NEWS SMALL WINODW FUNCTION
	newsWin = window.open(url,"hotnewsWin","width=650,height=300,scrollbars=no,resizeable=no,toolbar=no,status=no");
}

function openWin(url){
	//THIS IS FOR NEWS SMALL WINODW FUNCTION
	newsWin = window.open(url,"newsWin","width=620,height=450,scrollbars=no,resizeable=no,toolbar=no,status=no");
}

function openURL(url){
	//THIS IS FOR NORMAL LINK LIKE 'A HREF TARGET = _BLANK' FUNCTION
	newsBlankWin = window.open(url,"newBlankWIN");
}

function loadIframe(url){
	
	iframeOBJ = document.getElementById("mainCont");
	iframeOBJ.src = url;
	
}


function topBAR(){
		document.write("<table width=\"90%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\"><!-- class=\"mtbl\"-->");
			document.write("<tr>");
				document.write("<td width=\"10\" class=\"shadowLEFT\"></td>");
				document.write("<td height=\"38\" class=\"topBlockBGC\">");
					document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
						document.write("<tr>");
							document.write("<td class=\"topBlockBG\" valign=\"bottom\" height=\"38\"><a href=\"index.htm\"><img src=\"images/topmark.gif\" border=\"0\"></a></td>");
							document.write("<td width=\"165\" align=\"right\"><a href=\"http://www.chihlee.edu.tw/tel/tel.xls\" target=\"_blank\"><img src=\"images/ico_tel.gif\" class=\"ico\" border=\"0\" alt=\"行政電話\"></a><a href=\"http://mail.chihlee.edu.tw\" target=\"_blank\"><img src=\"images/ico_mail.gif\" class=\"ico\" border=\"0\" alt=\"Web Mail\"></a><a href=\"http://www.chihlee.edu.tw/office/k203/\" target=\"_blank\"><img src=\"images/ico_lib.gif\" class=\"ico\" border=\"0\" alt=\"圖書館\"></a><a href=\"sitemap.htm\"><img src=\"images/ico_map.gif\" class=\"ico\" border=\"0\" alt=\"網站地圖\"></a><a href=\"http://www.chihlee.edu.tw/net_top.htm\" target=\"_blank\"><img src=\"images/ico_net.gif\" class=\"ico\" border=\"0\" alt=\"網路流量\" style=\"margin-right : 6px\"></a></td>");
						document.write("</tR>");
					document.write("</table>");
				document.write("</td>");
				document.write("<td width=\"10\" class=\"shadowRIGHT\"></td>");
			document.write("</tr>");
			document.write("<tr>");
				document.write("<td width=\"10\" class=\"shadowLEFT\"></td>");
				document.write("<tD height=\"140\" class=\"midBlockBG\">");
					document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
						document.write("<tr>");
							document.write("<td valign=\"top\" class=\"midBlockMarkPIC\"><img src=\"images/d11.gif\" width=\"265\" height=\"1\"></td>");
							document.write("<td height=\"140\" width=\"350\" valign=\"top\" class=\"midBlockBGC\">");
								document.write("<!--img src=\"images/impNews.gif\"><br--><div class=\"fnt10ptwb\" style=\"margin : 3px\">【重要訊息公告】</div>");
								document.write("<!--start of headline-->");
	
								document.write("<iframe src=\"headline.htm\" name=\"headline\" scrolling=\"auto\" frameborder=\"0\" id=\"headline\" style=\"width : 345 ; height : 110\"></iframe>");
	
								document.write("<!--ul style=\"margin-top : 0px\">");
									document.write("<li class=\"fnt10ptwb\">「資訊軟體人才職業訓練網路工程師班及資料庫設計班」於6月1日起開始報名</li>");
								document.write("</ul-->");
								document.write("<!--end of imp headline-->");
							document.write("</td>");
						document.write("</tr>");
					document.write("</table>");
				document.write("</td>");
				document.write("<td width=\"10\" class=\"shadowRIGHT\"></td>");
			document.write("</tr>");
	
			document.write("<tr>");
				document.write("<td width=\"10\" class=\"shadowLEFT\"></td>");
				document.write("<td height=\"38\" class=\"thirdBlockBGC\">");
					document.write("<!--main button (tag)-->");
	
					document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td width=\"80%\"><img id=\"tag0\" src=\"images/tagStd2.gif\" class=\"tagImgON\" onclick=\"switchBlock('0'),this.style.borderColor = '#BD0000'\"><img id=\"tag1\" src=\"images/tagTeacher2.gif\" class=\"tagImg\" onclick=\"switchBlock('1'),this.style.borderColor = '#0051A2'\"><img id=\"tag2\" src=\"images/tagAlu2.gif\" class=\"tagImg\" onclick=\"switchBlock('2'),this.style.borderColor = '#009900'\"><img id=\"tag3\" src=\"images/tagTester2.gif\" class=\"tagImg\" onclick=\"switchBlock('3'),this.style.borderColor = '#CC9900'\"><!--img src=\"images/gap.gif\"--><a href=\"http://58.86.31.34/\" target=\"_blank\"><img id=\"tag4\" src=\"images/tagExtendedEdu.gif\" border=\"0\" class=\"tagImg\" onclick=\"this.style.borderColor = '#CC9900'\"></a><img src=\"images/gap.gif\"><a href=\"http://www.chihlee.edu.tw/pe/\" target=\"_blank\"><img id=\"tag5\" src=\"images/tagPE.gif\" border=\"0\" class=\"tagImg\" onclick=\"this.style.borderColor = '#CC9900'\"></a></td><td width=\"20%\" align=\"right\"><div style=\"margin-right : 10px\" class=\"fnt10ptb\"><!--a href=\"http://www.chihlee.edu.tw/\" style=\"color : white\">[中文版]</a--> <a href=\"http://www.chihlee.edu.tw/94/en/index.htm\" style=\"color : white\">[English]</a></div></td></tr></table>");
	
							document.write("<!--testing css swap-->");
							document.write("<!--span class=\"fnt10ptwb\" onclick=\"swapCSS('mainIndexNIGHT.css')\" style=\"cursor : pointer\">NIGHT</span-->");
							document.write("<!--span class=\"fnt10ptwb\" onclick=\"swapCSS('mainIndexMID.css')\" style=\"cursor : pointer\">MID</span-->");
							document.write("<!--span class=\"fnt10ptwb\" onclick=\"swapCSS('mainIndexDAY.css')\" style=\"cursor : pointer\">DAY</span-->");
							document.write("<!--end of testing css swap-->");
	
					document.write("<!--img id=\"tag0\" src=\"images/tagStd2.gif\" class=\"tagImgON\" onclick=\"switchBlock('0')\"><img id=\"tag1\" src=\"images/tagTeacher2.gif\" class=\"tagImg\" onclick=\"switchBlock('1')\"><img id=\"tag2\" src=\"images/tagAlu2.gif\" class=\"tagImg\" onclick=\"switchBlock('2')\"><img id=\"tag3\" src=\"images/tagTester2.gif\" class=\"tagImg\" onclick=\"switchBlock('3')\"-->");
	
					document.write("<!--end of main button (tag)-->");
				document.write("</td>");
				document.write("<td width=\"10\" class=\"shadowRIGHT\"></td>");
			document.write("</tr>");
	
			document.write("<tr id=\"menuROW\">");
				document.write("<td width=\"10\" class=\"shadowLEFT\"></td>");
				document.write("<td height=\"140\" bgcolor=\"#ffffff\" class=\"menuBlockS\" style=\"padding-top : 5px\">");
					document.write("<!--menu block-->");
	
	
					document.write("<!--student MenuBlock #0-->");
					document.write("<div id=\"menuBlock0\" class=\"menuBGS\">");
						document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
							document.write("<tr>");
								document.write("<td height=\"140\" valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"index.htm\"><div class=\"btn\">最新消息</div></a>");
									document.write("<a href=\"adminDept.htm\"><div class=\"btn\">行政單位</div></a>");
									document.write("<a href=\"eduDept.htm\"><div class=\"btn\">教學單位</div></a>");
									document.write("<a href=\"aboutHistory.htm\"><div class=\"btn\">榕園簡介</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/tel/tel.xls\"><div class=\"btn\">行政電話</div></a>");
									document.write("<a href=\"stdClub.htm\"><div class=\"btn\">學生社團</div></a>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"http://mail.chihlee.edu.tw\" target=\"_blank\"><div class=\"btn\">電子郵件</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/student/index.htm\" target=\"_blank\"><div class=\"btn\">學生手冊</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/Page10091/menus/index.htm\" target=\"_blank\"><div class=\"btn\">網路使用手冊</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/wireless/index.htm\" target=\"_blank\"><div class=\"btn\"><div class=\"btn\">無線網路使用說明</div></a>");
									document.write("<a href=\"http://140.131.77.90/michelle/default.htm\" target=\"_blank\"><div class=\"btn\">學生選課系統</div></a>");
									document.write("<a href=\"http://140.131.77.90/score/w1000.html\" target=\"_blank\"><div class=\"btn\">學生查詢系統</div></a>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"http://140.131.77.90/select/aqq.asp\" target=\"_blank\"><div class=\"btn\">課表查詢</div></a>");
									//document.write("<a href=\"http://www.chihlee.edu.tw/Page10091/class.htm\" target=\"_blank\"><div class=\"btn\">電腦教室課表查詢</div></a>");
                                    document.write("<a href=\"http://www.chihlee.edu.tw/office/b100/page_calander/calender.htm\" target=\"_blank\"><div class=\"btn\">行事曆</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/office/k203/\" target=\"_blank\"><div class=\"btn\">圖書館</div></a>");
									document.write("<a href=\"http://140.131.77.98/tg/welcome.htm\" target=\"_blank\"><div class=\"btn\">教學評量</div></a>");
									document.write("<a href=\"http://140.131.77.65/news/guest_news_detail.asp?gnid=6145\" target=\"_blank\"><div class=\"btn\">信件招領</div></a>");
									document.write("<a href=\"http://140.131.77.96/student/student.html\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">減免學雜費及就貸查詢系統</div></a>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"isTABLE.htm\"><div class=\"btn\">資訊服務</div></a>");
									document.write("<a href=\"irSE.htm\"><div class=\"btn\">網路資源</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/network_rule.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">網路使用規範</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/law/publisher/index.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">智慧財產權</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/icr/index.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">電腦網路內容分級</div></a>");
									//document.write("<a href=\"http://140.131.77.96/student/student.html\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">減免學雜費及就貸查詢系統</div></a>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
							document.write("</tr>");
						document.write("</table>");
					document.write("</div>");
					document.write("<!--end student MenuBlock #0-->");
	
	
					document.write("<!--teacher MenuBlock #1-->");
					document.write("<div id=\"menuBlock1\" style=\"display : none\" class=\"menuBGT\">");
						document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
							document.write("<tr>");
								document.write("<td height=\"140\" valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"index.htm\"><div class=\"btn\">最新消息</div></a>");
									document.write("<a href=\"adminDept.htm\"><div class=\"btn\">行政單位</div></a>");
									document.write("<a href=\"eduDept.htm\"><div class=\"btn\">教學單位</div></a>");
									document.write("<a href=\"aboutHistory.htm\"><div class=\"btn\">榕園簡介</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/tel/tel.xls\"><div class=\"btn\">行政電話</div></a>");
									document.write("<a href=\"stdClub.htm\"><div class=\"btn\">學生社團</div></a>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"http://mail.chihlee.edu.tw\" target=\"_blank\"><div class=\"btn\">電子郵件</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/office/b100/page_calander/calender.htm\" target=\"_blank\"><div class=\"btn\">行事曆</div></a>");
									document.write("<a href=\"http://140.131.77.98/tchscore/welcome.htm\" target=\"_blank\"><div class=\"btn\">教師成績輸入</div></a>");
									//document.write("<a href=\"http://www.chihlee.edu.tw/Page10091/class.htm\" target=\"_blank\"><div class=\"btn\">電腦教室課表查詢</div></a>");
									document.write("<a href=\"http://140.131.77.90/select/aqq.asp\" target=\"_blank\"><div class=\"btn\">課表查詢</div></a>");
									document.write("<a href=\"http://140.131.77.96/student/student.html\" target=\"_blank\"><div class=\"btn\">註冊系統</div></a>");
									document.write("<a href=\"http://140.131.77.65/news/guest_news_detail.asp?gnid=6145\" target=\"_blank\"><div class=\"btn\">信件招領</div></a>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
                                    document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"newsPublish.htm\" target=\"_blank\"><div class=\"btn\">發佈新聞</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/office/k203/\" target=\"_blank\"><div class=\"btn\">圖書館</div></a>");
     								document.write("<a href=\"isTABLE.htm\"><div class=\"btn\">資訊服務</div></a>");
									document.write("<a href=\"irSE.htm\"><div class=\"btn\">網路資源</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/network_rule.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">網路使用規範</div></a>");
									//document.write("<a href=\"http://140.131.77.65/news/guest_news_detail.asp?gnid=6145\" target=\"_blank\"><div class=\"btn\">信件招領</div></a>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"http://www.chihlee.edu.tw/law/publisher/index.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">智慧財產權</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/icr/index.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">電腦網路內容分級</div></a>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
							document.write("</tr>");
						document.write("</table>");
					document.write("</div>");
					document.write("<!--student MenuBlock #1-->");
	
					document.write("<!--alu MenuBlock #2-->");
					document.write("<div id=\"menuBlock2\" style=\"display : none\" class=\"menuBGG\">");
						document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
							document.write("<tr>");
								document.write("<td height=\"140\" valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"index.htm\"><div class=\"btn\">最新消息</div></a>");
									document.write("<a href=\"adminDept.htm\"><div class=\"btn\">行政單位</div></a>");
									document.write("<a href=\"eduDept.htm\"><div class=\"btn\">教學單位</div></a>");
									document.write("<a href=\"aboutHistory.htm\"><div class=\"btn\">榕園簡介</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/tel/tel.xls\"><div class=\"btn\">行政電話</div></a>");
									document.write("<a href=\"stdClub.htm\"><div class=\"btn\">學生社團</div></a>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"http://220.130.193.163/\" target=\"_blank\"><div class=\"btn\">校友會</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/office/k203/\" target=\"_blank\"><div class=\"btn\">圖書館</div></a>");
									document.write("<a href=\"isTABLE.htm\"><div class=\"btn\">資訊服務</div></a>");
									document.write("<a href=\"irSE.htm\"><div class=\"btn\">網路資源</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/network_rule.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">網路使用規範</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/law/publisher/index.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">智慧財產權</div></a>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
							document.write("</tr>");
						document.write("</table>");
					document.write("</div>");
					document.write("<!--alu MenuBlock #2-->");
	
					document.write("<!--tester MenuBlock #3-->");
					document.write("<div id=\"menuBlock3\" style=\"display : none\" class=\"menuBGTE\">");
						document.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
							document.write("<tr>");
								document.write("<td height=\"140\" valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"index.htm\"><div class=\"btn\">最新消息</div></a>");
									document.write("<a href=\"adminDept.htm\"><div class=\"btn\">行政單位</div></a>");
									document.write("<a href=\"eduDept.htm\"><div class=\"btn\">教學單位</div></a>");
									document.write("<a href=\"aboutHistory.htm\"><div class=\"btn\">榕園簡介</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/tel/tel.xls\"><div class=\"btn\">行政電話</div></a>");
									document.write("<a href=\"stdClub.htm\"><div class=\"btn\">學生社團</div></a>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"testerPAPER.htm\"><div class=\"btn\">考古題</div></a>");
									document.write("<a href=\"aboutAddHB.htm\"><div class=\"btn\">交通資訊</div></a>");
									document.write("<a href=\"isTABLE.htm\"><div class=\"btn\">資訊服務</div></a>");
									document.write("<a href=\"irSE.htm\"><div class=\"btn\">網路資源</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/network_rule.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">網路使用規範</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/law/publisher/index.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">智慧財產權</div></a>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"http://n2006.chihlee.edu.tw/\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">北區二年制技術系進修部聯合登記分發</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/5sch/index.html\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">五專聯合登記分發</div></a>");
									document.write("<a href=\"http://me.moe.edu.tw/\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">技專校院招生宣導網</div></a>");
									document.write("<a href=\"http://www.jwit.edu.tw/~95expo/\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">全國技職博覽會網</div></a>");
									document.write("<a href=\"http://www.tcte.edu.tw/\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">技專校院入學測驗中心</div></a>");
									document.write("<a href=\"http://www.techadmi.edu.tw/\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">技專校院招生策進總會 </div></a>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<a href=\"http://www.chihlee.edu.tw/office/e100/link7.html\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">本校在職專班獨招資訊</div></a>");
									document.write("<a href=\"http://www.chihlee.edu.tw/office/f100/link7.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">本校進修學校(院)獨招資訊</div></a>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
								document.write("<td valign=\"top\" align=\"center\">");
									document.write("<img src=\"images/d11.gif\" width=\"110\" height=\"1\"><br>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
									document.write("<div class=\"btn\"></div>");
								document.write("</td>");
							document.write("</tr>");
						document.write("</table>");
					document.write("</div>");
					document.write("<!--tester MenuBlock #3-->");
	
					document.write("<!--end of menu block-->");
				document.write("</td>");
				document.write("<td width=\"10\" class=\"shadowRIGHT\"></td>");
			document.write("</tr>");
	
			document.write("<tr>");
				document.write("<td width=\"10\" class=\"shadowLEFT\"></td>");
				document.write("<td height=\"1\" bgcolor=\"#AAAAAA\"></td>");
				document.write("<td width=\"10\" class=\"shadowRIGHT\"></td>");
			document.write("</tr>");
	
			document.write("<tr>");
				document.write("<td width=\"10\" class=\"shadowLEFT\"></td>");
				document.write("<td height=\"450\" bgcolor=\"#ffffff\" valign=\"top\">");
}

function bottomBAR(){
				document.write("</td>");
				document.write("<td width=\"10\" class=\"shadowRIGHT\"></td>");
			document.write("</tr>");
			
			document.write("<tr>");
				document.write("<td width=\"10\" class=\"shadowLEFT\"></td>");
				document.write("<td height=\"38\" class=\"thirdBlockBGC\" align=\"right\">");
					document.write("<div class=\"fnt8ptwb\" style=\"margin-right : 5px ; margin-bottom : 5px\">");
					document.write("No.313, Sec. 1, Wunhua Rd., Banciao City, Taipei County 220, Taiwan(R.O.C) TEL:2257-6167, 2257-6168 Fax:2255-9674");
					document.write("</div>");
					document.write("<div class=\"fnt8ptwb\" style=\"margin-right : 5px\">");
					document.write("地址：台北縣板橋市文化路1段313號 電話：2257-6167, 2257-6168 傳真：2255-9674");
					document.write("</div>");
				document.write("</td>");
				document.write("<td width=\"10\" class=\"shadowRIGHT\"></td>");
			document.write("</tr>");
			
		document.write("</table>");
}

function menuAC(){
	
	//AC = ABOUT THE CHIHLEE
	
	document.write("<span class=\"fnt10ptb\" style=\"color : #888888\">創校緣起</span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"aboutHistory.htm#ac1\">校史</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"aboutSong.htm#ac1\">校歌</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"aboutSCM.htm#ac1\">校訓</a></span><br><br>");
	
	document.write("<span class=\"fnt10ptb\" style=\"color : #888888\">榕園家長</span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"aboutPF.htm#ac1\">小檔案</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"aboutWRI.htm#ac1\">學術著作</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"aboutEX.htm#ac1\">學經歷</a></span><br><br>");
	
	document.write("<span class=\"fnt10ptb\" style=\"color : #888888\">校址地圖</span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"files/path.doc\" target=\"_blank\">交通路線圖</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"images/map.gif\" target=\"_blank\">街道圖</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"aboutAddHB.htm#ac1\">校址說明書</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"http://www.chihlee.edu.tw/map/map_all.htm\" target=\"_blank\">校園導覽</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br><br>");
	
}


function menuTEL(){
	
	//TEL = Telephone
	
	document.write("<span class=\"fnt10pt\">．<a href=\"telIndex.htm#ac1\">首頁</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telLEA.htm#ac1\">學務處</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telLES.htm#ac1\">教務處</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telREF.htm#ac1\">進修部</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telEDP.htm#ac1\">各系科</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telMON.htm#ac1\">總務處</a></span><br>");
		
	document.write("<span class=\"fnt10pt\">．<a href=\"telREFAC.htm#ac1\">進修學校學院</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telDEV.htm#ac1\">研發合作處</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telCC.htm#ac1\">圖書資訊中心</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telGENEDU.htm#ac1\">推廣教育中心</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telGIRL.htm#ac1\">女生宿舍</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telCIVIC.htm#ac1\">福利委員會</a></span><br>");
		
	document.write("<span class=\"fnt10pt\">．<a href=\"telOTHERADMIN.htm#ac1\">其他行政單位</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"telOTHER.htm#ac1\">其他類</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"files/931tel.xls\" target=\"_blank\">電話總表下載</a></span><br>");

}


function menuIS(){
	
	//IR = Internet Service
	
	document.write("<span class=\"fnt10pt\">．<a href=\"http://mail.chihlee.edu.tw/\" target=\"_blank\">Web Mail</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"isTABLE.htm#ac1\">表格下載</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"http://www.chihlee.edu.tw/office/b100/page_calander/calender.htm\">行事曆</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"http://220.130.193.163\">校友會</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"http://www.chihlee.edu.tw/virus/virus.htm\">校區電腦病毒站</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br>");

}


function menuIR(){
	
	//IS = Internet Resource
	
	document.write("<span class=\"fnt10pt\">．<a href=\"http://www.chihlee.edu.tw/Page10091/menus/index.htm\" target=\"_blank\">網路使用手冊</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"http://www.chihlee.edu.tw/wireless/index.htm\" target=\"_blank\">無線網路使用說明</a></span><img src=\"images/popup4.gif\" align=\"absmiddle\"><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irSE.htm#ac1\">搜尋引擎</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irDL.htm#ac1\">檔案下載</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irINFO.htm#ac1\">生活資訊</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irGOV.htm#ac1\">政府機關</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irENT.htm#ac1\">休閒娛樂</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irJOB.htm#ac1\">求職求才</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irFREE.htm#ac1\">免費資源</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irNEWS.htm#ac1\">新聞資源</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"irPUBLISHER.htm#ac1\">圖書公司</a></span><br>");

}

function menuSARS(){
	
	//SARS = SARS information
	
	document.write("<span class=\"fnt10ptb\" style=\"color : #888888\">詳細資訊</span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"sarsDATA01.htm#ac1\">通告</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"sarsDATA02.htm#ac1\">SARS因應防治計畫</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"images/data32.gif\" target=\"_blank\">SARS校內通報流程</a><img src=\"images/popup4.gif\" align=\"absmiddle\" border=\"0\"></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"images/data42.gif\" target=\"_blank\">因應SARS疫情處理流程</a><img src=\"images/popup4.gif\" align=\"absmiddle\" border=\"0\"></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"sarsDATA05.htm#ac1\">致理技術學院因應SARS<br>　實施居家學習暫行要點</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"sarsDATA06.htm#ac1\">停課、復課辦法</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"sarsDATA07.htm#ac1\">宿舍SARS防疫計畫<br>　92.05.02</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"sarsDATA08.htm#ac1\">SARS Q&A</a></span><br><br>");
	
	document.write("<span class=\"fnt10ptb\" style=\"color : #888888\">相關表格下載</span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"files/S1.xls\" target=\"_blank\">通報表</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"files/S2.doc\" target=\"_blank\">致理技術學院SARS單位<br>　異常通報表</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"files/S3.doc\" target=\"_blank\">致理技術學院SARS班級<br>　異常通報表</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"files/S4.doc\" target=\"_blank\">防治SARS福利餐廳餐廚<br>　人員健康管制表</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"files/S5.doc\" target=\"_blank\">系科疫情連絡簿</a></span><br>");
	document.write("<span class=\"fnt10pt\">．<a href=\"files/S6.doc\" target=\"_blank\">SARS通報案例調查表</a></span><br>");
	

}

function menuBANNER(){
	//RIGHT BANNER
	
	document.write("<a href=\"http://www.chihlee.edu.tw/ev2015/\" target=\"_blank\"><img src=\"images/adv24.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://epaper.edu.tw/\" target=\"_blank\"><img src=\"images/adv26.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://me.moe.edu.tw/95junior/\" target=\"_blank\"><img src=\"images/adv17.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://helpdreams.moe.edu.tw\" target=\"_blank\"><img src=\"images/adv13.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://yes.ejob.gov.tw\" target=\"_blank\"><img src=\"images/adv18.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://techexpo.moe.edu.tw/\" target=\"_blank\"><img src=\"images/adv20.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://me.moe.edu.tw/award/\" target=\"_blank\"><img src=\"images/adv21.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://ed.arte.gov.tw/\" target=\"_blank\"><img src=\"images/adv23.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://english.www.gov.tw/UN/\" target=\"_blank\"><img src=\"images/adv22.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
    document.write("<a href=\"http://n2006.chihlee.edu.tw\" target=\"_blank\"><img src=\"images/adv15.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://flu.cdc.gov.tw\" target=\"_blank\"><img src=\"images/adv16.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://heartvj.chihlee.edu.tw/\" target=\"_blank\"><img src=\"images/adv25.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://www.chihlee.edu.tw/scholarship/index.htm\" target=\"_blank\"><img src=\"images/adv14.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://www1.chihlee.edu.tw/teachers/affairs/newstu/index.htm\" target=\"_blank\"><img src=\"images/adv08.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	//document.write("<a href=\"http://www.chihlee.edu.tw/office/k203/\" target=\"_blank\"><img src=\"images/adv05.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://www.chihlee.edu.tw/office/i100/i100/index.htm\" target=\"_blank\"><img src=\"images/adv01.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://140.131.84.192/e-dimension/index.htm\" target=\"_blank\"><img src=\"images/adv07.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	document.write("<a href=\"http://www.chihlee.edu.tw/elearning/elearning.htm\" target=\"_blank\"><img src=\"images/adv02.gif\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	//document.write("<a href=\"http://tech.must.edu.tw/\" target=\"_blank\"><img src=\"images/adv12.jpg\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	//document.write("<a href=\"http://me.moe.edu.tw\" target=\"_blank\"><img src=\"images/94moe.jpg\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
    document.write("<a href=\"http://www.ris.gov.tw/docs/f0a.html\" target=\"_blank\"><img src=\"images/adv11.jpg\" border=\"0\" style=\"margin-bottom : 5px\"></a><br>");
	
	//document.write("<a href=\"http://n2005.chihlee.edu.tw/\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">北區二年制技術系進修部聯合登記分發</div></a>");
	//document.write("<a href=\"http://www.chihlee.edu.tw/network_rule.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">網路使用規範</div></a>");
	//document.write("<hr style=\"height : 1px\"><a href=\"http://heartvj.chihlee.edu.tw/\"><div class=\"fnt10pt\" style=\"margin-bottom : 1px\">致理部落格(耕心小站)</div></a>");
	document.write("<hr style=\"height : 1px\"><a href=\"sarsDATA01.htm\"><div class=\"fnt10pt\" style=\"margin-bottom : 1px\">SARS 防疫特區</div></a>");
	//document.write("<a href=\"http://www.chihlee.edu.tw/law/publisher/index.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 3px\">智慧財產權</div></a>");
    document.write("<a href=\"http://www.chihlee.edu.tw/office/i100/fund/index.htm\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 1px\">教育部獎補助計畫</div></a>");
	document.write("<a href=\"http://rich.nyc.gov.tw\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 1px\">大專rich工讀-攜手計畫</div></a>");
	document.write("<a href=\"http://speed.nyc.gov.tw\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 1px\">95青年職場體驗計畫</div></a><!--hr style=\"height : 1px\"-->");
	//document.write("<a href=\"http://www.ejob.gov.tw\" target=\"_blank\"><div class=\"fnt10pt\" style=\"margin-bottom : 1px\">全國就業e網</div></a>");

	
}