﻿var myMenu = "";
var myImg = "";
var now = new Date();

function showhideMenu(me, mi){

	if (myImg!= ""){
		document.getElementById(myImg).src = "images/"+myImg+".gif";
		myImg = "";
	}
		
	if (document.getElementById(mi)){
		document.getElementById(mi).src = "images/"+mi+"o.gif";
		myImg = mi;
	}

	if (myMenu != "" && myMenu != me){
		document.getElementById(myMenu).style.display = "none";

	}
	if (document.getElementById(me)){
		document.getElementById(me).style.display ="inline";
		myMenu = me;
	}
}

function showfooter(){
	document.write ("<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td>");
	document.write ("<p class='myFooter'>PRIVACY POLICY | <a href=contactus.aspx style='color:#3399CC; text-decoration: none;'>CONTACT US</a><br />");
	document.write ("COPYRIGHT " +  now.getFullYear() + " BY HKUE. ALL RIGHT RESERVED.");
	document.write ("IF YOU HAVE ANY QUESTIONS OR COMMENTS,  PLEASE CONTACT US.</p>	");
	document.write ("</td><td width=120 align=right valign=bottom><img src=images/iso.gif style=margin-bottom:15px;></td></tr></table>");
}

function showcfooter(){
	document.write ("<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td>");
	document.write ("<p class='myFooter'>PRIVACY POLICY | <a href=contactus_c.aspx style='color:#3399CC; text-decoration: none;'>聯絡我們</a><br />");
	document.write ("COPYRIGHT " +  now.getFullYear() + " BY HKUE. ALL RIGHT RESERVED.");
	document.write ("IF YOU HAVE ANY QUESTIONS OR COMMENTS,  PLEASE CONTACT US.</p>	");
	document.write ("</td><td width=120 align=right valign=bottom><img src=images/iso.gif style=margin-bottom:15px;></td></tr></table>");
}

window.onload = function (){
	if (document.getElementById("newstb") && document.getElementById("myContent")){
		relocation();
	}
}

function relocation(){
	document.getElementById("newstb").style.height = (document.getElementById("maintb").scrollHeight - 512) + "px";
	document.getElementById("myContent").style.height = (document.getElementById("maintb").scrollHeight - 220) + "px";	
}

