function center_start() {
	document.write("<center>");
}
function center_end() {
	document.write("</center>");
}

function go_back() {
	history.go(-1);
}

// Display link info on browser status bar
function caption(text_string) {
	window.status = text_string;
}
// Display link info plus a picture
function super_caption(text_string, img_path, img_obj_name) {
	//window.status = text_string;
	//if (document.images) {
		//document.images[img_obj_name].src = img_path;
	//}
}

function version_warning() {
}

//eval(unescape("%66%75%6E%63%74%69%6F%6E%20%74%69%6D%65%73%74%61%6D%70%28%74%73%74%61%6D%70%29%20%7B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%3C%70%20%63%6C%61%73%73%3D%5C%22%74%69%6D%65%73%74%61%6D%70%5C%22%3E%22%20%2B%20%74%73%74%61%6D%70%20%2B%20%22%3C%62%72%20%2F%3E%68%74%74%70%3A%2F%2F%77%77%77%2E%63%68%61%6E%67%68%61%69%2E%6F%72%67%2F%3C%2F%70%3E%22%29%3B%0D%0A%7D"));

function header(version) {
	dayName = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	monthName = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	var now = new Date();
	var t = now.getFullYear();

	//center_start();
	document.write("<table cellpadding=\"0\" cellspacing=\"0\" width=760>");
	document.write("<tr>");

	//document.write("<td>");
	////document.write("<td background=\"" + version + "\" width=\"760\" height=\"199\">");
	//document.write("<p class=\"left noindent fg-version bg-header\" style=\"line-height:180%\">");
	////document.write("<p class=\"left noindent fg-version\" style=\"line-height:180%\">");
	////document.write("&nbsp;" + version);
	////document.write("</p>");
	////document.write("</td>");

	//document.write("<td>");
	document.write("<td background=\"" + version + "\" height=\"199\" valign=\"top\">");
	//document.write("<p class=\"right fg-header bg-header\" style=\"line-height:180%\">");
	document.write("<p class=\"right fg-header\" style=\"line-height:180%\">");
	document.write(dayName[now.getDay()] + ", " + monthName[now.getMonth()] + " " + now.getDate()
	               + ", " + now.getFullYear() + "&nbsp;");
	document.write("</p>");
	document.write("</td>");

	document.write("</tr>");
	document.write("</table>");
	//center_end();
}

// Display header
function header_nolink(version) {
	header(version);
}
eval(unescape("%66%75%6E%63%74%69%6F%6E%20%74%61%69%6C%28%29%20%7B%0D%0A%09%76%61%72%20%6E%6F%77%20%3D%20%6E%65%77%20%44%61%74%65%28%29%3B%0D%0A%09%76%61%72%20%74%20%3D%20%6E%6F%77%2E%67%65%74%46%75%6C%6C%59%65%61%72%28%29%3B%0D%0A%0D%0A%09%63%65%6E%74%65%72%5F%73%74%61%72%74%28%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%3C%74%61%62%6C%65%3E%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%3C%74%72%3E%3C%74%64%3E%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%3C%70%20%63%6C%61%73%73%3D%5C%22%63%65%6E%74%65%72%20%66%67%2D%68%65%61%64%65%72%20%62%67%2D%68%65%61%64%65%72%5C%22%3E%22%29%3B%0D%0A%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%7C%20%3C%61%20%63%6C%61%73%73%3D%5C%22%74%61%69%6C%5C%22%20%68%72%65%66%3D%5C%22%68%74%74%70%3A%2F%2F%77%77%77%2E%63%68%61%6E%67%68%61%69%2E%6F%72%67%2F%5C%22%20%74%61%72%67%65%74%3D%5C%22%5F%74%6F%70%5C%22%20%74%69%74%6C%65%3D%5C%22%48%6F%6D%65%5C%22%3E%u8FD4%u56DE%u9996%u9875%20%28%48%4F%4D%45%29%3C%2F%61%3E%20%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%7C%20%3C%61%20%63%6C%61%73%73%3D%5C%22%74%61%69%6C%5C%22%20%68%72%65%66%3D%5C%22%68%74%74%70%3A%2F%2F%77%77%77%2E%63%68%61%6E%67%68%61%69%2E%6F%72%67%2F%62%62%73%2F%69%6E%64%65%78%2E%70%68%70%5C%22%20%74%69%74%6C%65%3D%5C%22%53%74%61%72%73%20%46%6F%72%75%6D%5C%22%20%74%61%72%67%65%74%3D%5C%22%5F%62%6C%61%6E%6B%5C%22%3E%u7E41%u661F%u5BA2%u6808%3C%2F%61%3E%20%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%7C%20%3C%61%20%63%6C%61%73%73%3D%5C%22%74%61%69%6C%5C%22%20%68%72%65%66%3D%5C%22%68%74%74%70%3A%2F%2F%77%77%77%2E%63%68%61%6E%67%68%61%69%2E%6F%72%67%2F%63%6F%6E%74%65%6E%74%73%2F%69%6E%74%72%6F%64%75%63%74%69%6F%6E%2F%63%6F%70%79%72%69%67%68%74%2E%68%74%6D%6C%5C%22%20%74%69%74%6C%65%3D%5C%22%54%65%72%6D%73%20%6F%66%20%55%73%65%5C%22%3E%u7248%u6743%u58F0%u660E%3C%2F%61%3E%20%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%7C%20%3C%61%20%63%6C%61%73%73%3D%5C%22%74%61%69%6C%5C%22%20%68%72%65%66%3D%5C%22%6D%61%69%6C%74%6F%3A%6C%75%5F%63%68%61%6E%67%68%61%69%40%79%61%68%6F%6F%2E%63%6F%6D%5C%22%20%74%69%74%6C%65%3D%5C%22%45%6D%61%69%6C%5C%22%3E%u7AD9%u957F%u4FE1%u7BB1%20%28%45%4D%41%49%4C%29%3C%2F%61%3E%20%7C%3C%62%72%3E%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%43%6F%70%79%72%69%67%68%74%20%5C%26%63%6F%70%79%5C%3B%20%31%39%39%39%2D%22%20%2B%20%74%20%2B%20%22%20%62%79%20%43%68%61%6E%67%68%61%69%20%4C%75%2E%20%41%6C%6C%20%72%69%67%68%74%73%20%72%65%73%65%72%76%65%64%2E%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%3C%2F%70%3E%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%3C%2F%74%64%3E%3C%2F%74%72%3E%22%29%3B%0D%0A%09%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%3C%2F%74%61%62%6C%65%3E%22%29%3B%0D%0A%09%63%65%6E%74%65%72%5F%65%6E%64%28%29%3B%0D%0A%7D"));



function tail_lcl() {
	var now = new Date();
	var t = now.getFullYear();

	center_start();



	////07.5.28 got rid of JS top menu document.write("<table cellpadding=\"0\" cellspacing=\"0\" width=778 align=center border=0>");
	document.write("<table cellpadding=\"0\" cellspacing=\"0\" width=762 align=center border=0>");
	//document.write("<tbody>");

	//document.write("<tr><td colSpan=2 height=3></td></tr>");
        //document.write("<tr><td class=footer-navcell colSpan=2><p>&nbsp;</p></td></tr>");  //cssc/default.css


	document.write("<tr>");



	//document.write("<td class=footer-details colSpan=2>");
	document.write("<td colSpan=2>");
	document.write("<p class=\"center fg-header bg-header\" style=\"line-height:180%\">");


	document.write("");
	document.write(" ");
	document.write("");
	document.write("| ");
	//document.write("<P>");
	document.write("<A title=\"Home\" href=\"http://www.LondonChineseLanguage.co.uk/home.php\" target=\"\"><FONT color=\"#a0f0f0\">Home</FONT></A>");
	//document.write("</P>");
	document.write(" | ");
	document.write("<A title=\"About us\" href=\"http://www.LondonChineseLanguage.co.uk/aboutus.php\" target=\"\"><FONT color=\"#a0f0f0\">About us</FONT></A>");
	document.write(" | ");
	document.write("<A title=\"Resources\" href=\"http://www.LondonChineseLanguage.co.uk/resources/resources.php\" target=\"\"><FONT color=\"#a0f0f0\">Resources</FONT></A>");
	document.write(" | ");
	document.write("<A title=\"Terms & Conditions\" href=\"http://www.LondonChineseLanguage.co.uk/terms_conditions.php\" target=\"\"><FONT color=\"#a0f0f0\">Terms & Conditions</FONT></A>");
	document.write(" | ");
	document.write("<A title=\"Contact us\" href=\"http://www.LondonChineseLanguage.co.uk/contactus.php\" target=\"\"><FONT color=\"#a0f0f0\">Contact us</FONT></A>");
	document.write(" | ");
	document.write("<A title=\"Add to favorites\" href=\"javascript:window.external.addFavorite('http://www.londonchineselanguage.co.uk','Chinese training in London');\"><FONT color=\"#a0f0f0\">Add to favorites</FONT></A>");
	document.write(" |");
	document.write("<BR>");
	//document.write("<FONT class=\"size11\">London Chinese Language is a trading name of Wycha Ltd (VAT No. 999999999, registered in England and Wales as Company No. 0000000) <br>");
	//document.write("Head Office: 49 Dalberg Road, SW2 1AJ, UK Tel: 0789 4553 499 (UK), e-mail: ");
	//document.write("Tel: 0789 4553 499 (UK), e-mail: ");
	document.write("e-mail: ");
              //emailme("enquiry@londonchineselanguage.com");
	document.write("<a href=\"mailto:info@londonchineselanguage.co.uk\" style=\"text-decoration: none;\" class=\"size12\">info@londonchineselanguage.co.uk</a></FONT>");
	document.write("<BR>");
	document.write("Copyright &copy; 2003-" + t + " by London Chinese Language. All rights reserved.");
	document.write(" ");   //can not change to another line.
	document.write(" ");
	document.write(" ");



	document.write("</p>");
	document.write("</td>");

	document.write("</tr>");
	//document.write("</tbody>");
	document.write("</table>");







	center_end();
}






function timestamp(tstamp) {
	document.write("<p>");
	document.write("<tr>");
	document.write("<td ALIGN=right>");
	document.write("" + tstamp + "<br>" + "Yujian Wang");
	document.write("</td>");
	document.write("</tr>");
	document.write("</p>");
	}






















// Display a customized tail
function tail2(content) {
	center_start();
	document.write("<table>");
	document.write("<tr><td>");
	document.write("<p class=\"center fg-header bg-header\" style=\"line-height:180%\">");
	document.write(content);
	document.write("</p>");
	document.write("</td></tr>");
	document.write("</table>");
	center_end();
}

// Opens homepage version 1.0
function homepage_v1(relative_path, window_name) {
	window.open(relative_path, window_name, 'status=yes, width=550, height=550');
}
// Opens homepage version 2.0
function homepage_v2(relative_path, window_name) {
	window.open(relative_path, window_name, 'status=no, width=920, height=580');
}
// Opens frontpage of GlobalTalk
function globaltalk(relative_path, window_name) {
	window.open(relative_path, window_name, 'status=no, width=825, height=570');
}

// Provide an email link to the given text
function emailme(txt) {

	document.write("<a href=\"mailto:gt2008@hotmail.co.uk\" title=\"Contact Me\">");
	document.write(txt);
	document.write("</a>");
}

// Provide background music
function bgsound(src) {
	if (navigator.appName == "Netscape") {
		document.write("<embed src=\"" + src + "\" loop=\"true\" width=\"0\" height=\"0\" autostart=\"true\" autoplay=\"true\" />");

	} else {
		document.write("<bgsound src=\"" + src + "\" loop=\"-1\" />");
	}
}


function build_menu(page) {
var root='';
if (page==4 || page==7) {root='../';}
var Menu0=new Array("Home",root+"graphics/icons/icon_frontpage.gif",root+"home.php","prdct","link2",0,20,50);
var Menu1=new Array("About us",root+"graphics/icons/icon_translate.gif",root+"aboutus.php","elec","link2",0,20,50);
var Menu2=new Array("Services",root+"graphics/icons/icon_link.gif",root+"services.php","pc","link2",0,20,50);
var Menu3=new Array("Online learning",root+"graphics/icons/icon_technology.gif",root+"learning.php","soft","link2",0,20,50);
var Menu4=new Array("Trainers",root+"graphics/icons/icon_forum.gif",root+"trainers/trainers.php","serv","link2",0,20,50);
var Menu5=new Array("Client Feedback",root+"graphics/icons/icon_album.gif",root+"clientfeedback.php","ePro","link2",0,20,50);
var Menu6=new Array("Contact us",root+"graphics/icons/icon_email.gif",root+"contactus.php","ePro","link2",0,20,50);
var Menu7=new Array("Terms & Conditions",root+"graphics/icons/icon_frontpage.gif",root+"terms_conditions/terms_conditions.php","tc","link2",0,20,50);
var Menu=new Array(Menu0,Menu1,Menu2,Menu3,Menu4,Menu5,Menu6,Menu7);
Menu[page][4]='topMenu_active_item';



document.write("<SCRIPT type=text/javascript>header(\""+root+"images/logo"+page+".jpg\")</SCRIPT>");


document.write("<DIV id=topMenu>");
document.write("      <UL>");

for(i=0;i<7;i++)
{
document.write("<LI id="+Menu[i][3]+"><A class="+Menu[i][4]+" onmouseover=\"javascript:super_caption('"+Menu[i][0]+"','"+Menu[i][1]+"','icons'); return true\"	 ");
document.write("					      title=\""+Menu[i][0]+"\"	");
document.write("					      onmouseout=\"javascript:super_caption('', '"+root+"graphics/icons/icon_transparent.gif', 'icons'); return true\" 	");
document.write("					      href=\""+Menu[i][2]+"\">"+Menu[i][0]+"</A></LI> ");
}
document.write("	<LI id=icon><IMG title=\"\" height=10 alt=\" \" src=\""+root+"images/clear.gif\" width=0 border=0> ");
document.write("	<IMG height=25 alt=\"\" src=\""+root+"graphics/icons/icon_transparent.gif\" width=32 name=icons> ");
document.write("	<IMG title=\"\" height=10 alt=\" \" src=\""+root+"images/clear.gif\" width=0 border=0></LI> ");

document.write("        </UL></DIV>");

	}













function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
