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\">");
	document.write("<tr>");

	document.write("<td>");
	document.write("<p class=\"left noindent fg-version bg-header\" style=\"line-height:180%\">");
	document.write("&nbsp;" + version);
	document.write("</p>");	
	document.write("</td>");

	document.write("<td>");
	document.write("<p class=\"right fg-header bg-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"));
// 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:lu_changhai@yahoo.com\">");
	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\" />");
	}
}
