var pUrl;

window.onload=function(){
	if (document.getElementById('dlgSaving') != null)
	{
		document.getElementById('dlgSaving').style.display = 'none';
		document.getElementById('dlgSaving').style.visibility = 'visible';
		document.getElementById('boost').style.height = document.body.clientHeight;
	}
	
	if (document.getElementById('focusInput') != null)
		document.getElementById('focusInput').focus();
	
	if (document.getElementById('secretanswer') != null)
		document.getElementById('secretanswer').focus();
	
	if (pUrl == "PRINTME")
	{
		window.print();
		pUrl = null;
	}
}

function rowin(obj)
{
	obj.cells[0].style.background='#599859';
	obj.cells[1].style.background='#599859';
	obj.cells[0].style.color='white';
	obj.cells[1].style.color='white';
}

function rowout(obj)
{
	obj.cells[0].style.background='#d1e6d1';
	obj.cells[1].style.background='#d1e6d1';
	obj.cells[0].style.color='black';
	obj.cells[1].style.color='black';
}

function yrowin(obj)
{
	obj.cells[0].style.background='#599859';
	obj.cells[1].style.background='#599859';
	obj.cells[0].style.color='white';
	obj.cells[1].style.color='white';
}

function yrowout(obj)
{
	obj.cells[0].style.background='#ffffaa';
	obj.cells[1].style.background='#ffffaa';
	obj.cells[0].style.color='black';
	obj.cells[1].style.color='black';
}

var menutext;

function cellout(obj)
{
	obj.style.background='#599859';
	obj.style.background='url(images/vhead_fat.jpg)';
	obj.style.color='white';
	obj.style.borderTop='1px solid #599859';
	obj.style.borderLeft='1px solid #599859';
	obj.style.borderRight='1px solid #599859';
	obj.style.borderBottom='1px solid #599859';
	var o = document.getElementById('MenuText');
	o.innerHTML = menutext;
}

function cellin(obj)
{
	var txt = new Array(5);
	menutext = document.getElementById('MenuText').innerHTML;
	txt[0] = "Keep Yourself Focused on Your Onboarding Process";
	txt[1] = "Track All of Your Early Win Objectives";
	txt[2] = "Insight from Within the Industry";
	txt[3] = "All of Your Onboarding Resources";
	txt[4] = "Your Personal and Company Information";
	
	obj.style.background='white';
	obj.style.color='#599859';
	obj.style.borderTop='1px solid #599859';
	obj.style.borderLeft='1px solid #599859';
	obj.style.borderRight='1px solid #599859';
	obj.style.borderBottom='1px solid white';
	var o = document.getElementById('MenuText');
	if (obj.innerHTML == "Onboarding Focus")
		o.innerHTML = txt[0];
	if (obj.innerHTML == "Early Win Objectives")
		o.innerHTML = txt[1];
	if (obj.innerHTML == "Industry Insight")
		o.innerHTML = txt[2];
	if (obj.innerHTML == "Resources")
		o.innerHTML = txt[3];
	if (obj.innerHTML == "Participant Administration")
		o.innerHTML = txt[4];
}




/////////////////////////////////////////////////////////////////////////////// Browser Detection Code //////////

// Browser Detection Javascript
// copyright 1 February 2003, by Stephen Chapman, Felgall Pty Ltd

// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.

function whichBrs() {
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1) return 'Opera';
	if (agt.indexOf("staroffice") != -1) return 'Star Office';
	if (agt.indexOf("beonex") != -1) return 'Beonex';
	if (agt.indexOf("chimera") != -1) return 'Chimera';
	if (agt.indexOf("netpositive") != -1) return 'NetPositive';
	if (agt.indexOf("phoenix") != -1) return 'Phoenix';
	if (agt.indexOf("firefox") != -1) return 'Firefox';
	if (agt.indexOf("safari") != -1) return 'Safari';
	if (agt.indexOf("skipstone") != -1) return 'SkipStone';
	if (agt.indexOf("msie") != -1) return 'Internet Explorer';
	if (agt.indexOf("netscape") != -1) return 'Netscape';
	if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
	if (agt.indexOf('\/') != -1) {
	if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
	return navigator.userAgent.substr(0,agt.indexOf('\/'));}
	else return 'Netscape';} else if (agt.indexOf(' ') != -1)
	return navigator.userAgent.substr(0,agt.indexOf(' '));
	else return navigator.userAgent;
}
