var ie = (document.all) ? 1:0 // detects ie
var dom = (document.getElementById && !document.all) ? 1:0 //detects mozilla browsers like NS6 & 7

// Helps Setup SubNavDropDown Kill for MacIE
// Helps Setup SubNavDropDown Kill for MacIE
function BrowserDetectVeryLite(){
	var ua 			= navigator.userAgent.toLowerCase(); 
    this.isMajor 	= parseInt(navigator.appVersion);
    this.isMinor 	= parseFloat(navigator.appVersion);	
	this.isMac  	= (ua.indexOf('mac') != -1);
	this.isWin 		= ( (ua.indexOf("win")!=-1) || (ua.indexOf("16bit")== -1) ); 
	this.isIE   	= ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) );
	this.isIE5    	= (this.isIE && (this.isMajor == 4) && (ua.indexOf("msie 5.0")!=-1));
	this.isIE5up    = (this.isIE && (this.isMajor >= 4) && (ua.indexOf("msie 5.0") ==-1));		
	this.isNS   	= ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
	this.isNS6 		= (this.isNS && ((this.isMajor == 5) || (this.isMajor == 6)));
	this.isNS7up  	= (this.isNS && (this.isMajor >= 7));
	this.isOpera   	= (ua.indexOf("opera") != -1);
	this.isSafari 	= (ua.indexOf("applewebkit") != -1);	

	// browser version
	n = ua.indexOf('netscape');
	NSversion = ua.substring(n+8,n+9);

	this.versionMinor = parseFloat(navigator.appVersion); 
	this.versionMajor = parseInt(this.versionMinor); 
	// correct version number
	if (this.isIE && this.versionMinor >= 4) {
		this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );}
}

var browser = new BrowserDetectVeryLite();

getVer = browser.versionMinor.toString()
isIE50 = (getVer.indexOf('5.0')!=-1?true:false)

var killRollouts;
if(browser.isMac && browser.isIE5){killRollouts = true;}
if(browser.isIE && (browser.isMajor < 4)){killRollouts = true;}
if(browser.isNS && (browser.isMajor < 5)){killRollouts = true;}
//*** following line commented out per per Brian C. -- 
//if(NSversion == "6"){killRollouts = true} 
// **********************************************************************

function hideDivById(divId)
{
//alert(document.getElementById(divId).style.display);
if (document.getElementById(divId).style.display == "block")
	{
		document.getElementById(divId).style.display = "none";
	}
else
	{
		document.getElementById(divId).style.display = "block";
	}

}

// Preload Images for Global Nav
printBtn = new Image(); printBtn.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/rgu_print.gif";
printBtnRO = new Image(); printBtnRO.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/rgu_print_ovr.gif";
emailBtn = new Image(); emailBtn.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/rgu_email.gif";
emailBtnRO = new Image(); emailBtnRO.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/rgu_email_ovr.gif";
textBtn = new Image(); textBtn.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/rgu_testsize_sma.gif";
textBtnRO = new Image(); textBtnRO.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/rgu_testsize_sma_ovr.gif";


// **********************************************************************


// RollOver Image Change Script
function imgChg(imageID) {document.images[imageID+"Img"].src = eval(imageID + "RO.src");}
function imgChgBack(imageID) {document.images[imageID+"Img"].src = eval(imageID + ".src");}

