// executes after HEAD script includes, but before page body

RunXBCompatRoutines();

Initialise();
function Initialise() {
	// DISABLED (causes status messages to be removed if not over a link): window.defaultStatus = "";
	AttachEvent( window, "load", OnLoad );
	//document.body.ondblclick = function() {	DbgMsg(event.srcElement.outerHTML); }
}

// called for all pages on page load
function OnLoad() {
	InitLinksBehaviour();
	if(document.getElementById("tblMenu"))
		OnFramesetPageLoad();
	else
		OnContentPageLoad();
}


// make window status equal link title on mouseover + target absolute URLs to new window
function InitLinksBehaviour() {
	if(window.event && document.getElementsByTagName) {
		var x, oLinks = document.getElementsByTagName("a");
		for(x in oLinks) {
			if(oLinks[x].protocol && (oLinks[x].protocol != "javascript:") && oLinks[x].hostname && (oLinks[x].hostname != location.hostname)) oLinks[x].target = "_blank";
			if(is.Obj(oLinks[x])) AttachEvent(oLinks[x], "mouseover", function(e) { window.status = this.title; event.returnValue = true; } );
		}
	}
}
