///	Window.onload

function addLoadEvent(f) 
{	var oldf = window.onload;
	if (typeof window.onload != 'function'){window.onload=f;}
	else {window.onload=function(){if (oldf){oldf()};f();}}
}

function styleCurrentLink()
{	if (document.getElementsByTagName("a"))
	{	var	ThisURL			=	document.URL;
		var	aLink			=	document.getElementsByTagName("a");
		var	LinkQTY			=	aLink.length;
		for (var i = 0; i < LinkQTY; i++)	{if (aLink[i] == ThisURL) aLink[i].className += " current";	}

		///	Site Customization
		if (ThisURL.indexOf("/aboutus-")>-1 && document.getElementById("ng0")) 
		{document.getElementById("ng0").className = " current";
		};

		if (ThisURL.indexOf("/solutions-")>-1 && document.getElementById("ng1")) 
		{document.getElementById("ng1").className = " current";
		};

		if (ThisURL.indexOf("/news-")>-1 && document.getElementById("ng2")) 
		{document.getElementById("ng2").className = " current";
		};

		if (ThisURL.indexOf("/partners-")>-1 && document.getElementById("ng3")) 
		{document.getElementById("ng3").className = " current";
		};

		if ( (ThisURL.indexOf(".com")+6>ThisURL.length) && document.getElementById("nHome")) 
		{	document.getElementById("nHome").className = " current";
		};
	}
}
addLoadEvent(styleCurrentLink);

function authenticate()
{	///	Provided by Client
	n=0;while (n<1000000){n++;};
	window.location.replace("loginfail.html");
}