function bootup(){
	if (location.hash.substr(1) == "") { location.hash="#main"; }
	/*@cc_on
	@if (@_jscript_version > 5.6)
		var tds = document.getElementsByTagName("a"); setTimeout(process, 1);
		for( var x=0; x < tds.length; x++ ){tds[x].onclick = function(){setTimeout(process, 1);};}
	@end @if (@_jscript_version == 5.7)
		for( var x=0; x < document.getElementsByTagName("h2").length; x++ ){document.getElementsByTagName("h2")[x].style.marginTop = "1.2em";}
	@end @*/
}
function process(){
	var css = document.getElementById(location.hash.substr(1)).style; var el = document.getElementsByTagName("div")[1];
	if (location.hash.substr(1) == "main") {css.margin = "-11.5em 0 0 -158px"; el.style.display = "none";  document.getElementById("news").style.marginLeft = "0";
	} else if (location.hash.substr(1) == "home") {document.getElementById("main").style.margin = "-13em 0 0 -158px"; el.style.display = "none"; document.getElementById("news").style.display = "none";
	} else {
		document.getElementById("main").style.margin = "-13em 0 0 -330px";
		document.getElementById("news").style.marginLeft = "-999em"; el.style.display = "block";
		for( var x=0; x < el.childNodes.length; x++ ){el.childNodes[x].style.display = "none";}
		document.getElementById(location.hash.substr(1)).lastChild.style.paddingBottom = "2em";
		css.border = "#CCCCCC solid"; css.borderWidth = "0 5px 5px 0"; css.display = "block";
		css.height = "24em"; css.margin = "-13em 0 0 10px"; css.overflowY = "scroll";
		css.padding = "1em 2em"; css.position = "fixed"; css.width = "250px";
	}
}
window.onload=bootup;