function init() {
	moveTopLink();
	fixIE();
}
function moveTopLink() {
//<!--a quick and ugly fix in response to change of requirement-->
	var tlink = parent.document.getElementById("toplink");
	var t = document.getElementById("topic");
	if(t != null && tlink != null) {
		var dir = getParentDir(document.location);
		tlink.innerHTML = t.innerHTML.replace(/<a /gi, "<a target='fcontent' ").replace(/href=\"#/gi, "href=\"index.html#").replace(/href=\"/gi, "href=\"" + dir);
	} else {
	}
}
function fixIE() {
	if(navigator.userAgent.indexOf("MSIE") > 0) {
		// height
		var top = document.getElementById("topic");
		if(top) top.style.height = "59px";
		// img td width
		document.styleSheets[0].rules[document.styleSheets[0].rules.length-1].style.width = parseInt(document.body.clientWidth * 0.6) + "px";
	}
}
function getParentDir(s) {
	s += "";
	var p = s.lastIndexOf("/");
	return s.substring(s.lastIndexOf("/", p - 1) + 1, p + 1);
}