pageLoad();

function pageLoad(){
	try{
		if(document.getElementById("siteactiontd").childNodes.length > 1)
			document.getElementById("sharepointLoginDiv").style.display = "block";
		else
			document.getElementById("sharepointLoginDiv").style.display = "none";

		document.onkeyup = doFastLogin;
		setTimeout("preperTheHighLightText()", 1);			
	}
	catch(e){
		setTimeout("pageLoad()", 1);
	}
}

function setScrollAmount(thisMarquee, scrollAmount){
	thisMarquee.scrollAmount = scrollAmount;
}

function doFastLogin(e){
    if(window.event) e = window.event;
    if(!e.altKey && e.ctrlKey) return;
    if(e.keyCode != 76)		   return;
    document.location.href = "/_layouts/Authenticate.aspx?Source=" + document.location.pathname;
}