﻿//dms 03/18/2008 - show/hide the sign in link at the top
//to make this work - ON THE MASTER PAGE
// add id='signinlink' to the div that surrounds the control
// add style="display:none;" to hide
// the control will look like:
// <div style="float:right;display:none;" id="signinlink">
//	 <wssuc:Welcome id="explitLogout" runat="server"/>
// </div>
//
//need to add this to the bottom of the master page too to execute the code
//<script type="text/javascript" language="javascript">signinlink();</script>
//
//this function will unhide if dev-internet or staging-internet
function signinlink()
{
	//window.alert("signin");
	//this will show the sign in link at the top of the page 
	//if the host name is not www.accessclarkcounty.com
	var hostname = window.location.hostname;
	//window.alert(hostname);
	
	if ( (hostname == "staging-internet") 
		|| (hostname == "staging-internet.co.clark.nv.us") 
		|| (hostname == "ccitspqa1m.co.clark.nv.us") )
	{
		//window.alert(window.document.all.item("signinlink").style.display);
		
		//dms 02/25/2011 - inc159210 - BEGIN
		// due to a change in the IE8 object model, the following no longer works
		///window.document.all.item("signinlink").style.display = "";
		
		var sil = window.document.getElementById("signinlink");
	    var d = sil.style;
	    d.display = "";
	    //dms 02/25/2011 END
	}
}
