// Preload Images - Utility Advance Search Button
as = new Image(); as.src="/stellent/fragments/bnianavigation/images/utility_advSearch.gif";
asRO = new Image(); asRO.src="/stellent/fragments/bnianavigation/images/utility_advSearch_ro.gif";
asON = new Image(); asON.src="/stellent/fragments/bnianavigation/images/utility_advSearch_on.gif"

// Preload Images - Utility Search Tips Button
st = new Image(); st.src="/stellent/fragments/bnianavigation/images/utility_searchTips.gif";
stRO = new Image(); stRO.src="/stellent/fragments/bnianavigation/images/utility_searchTips_ro.gif";
stON = new Image(); stON.src="/stellent/fragments/bnianavigation/images/utility_searchTips_on.gif"

// Preload Images - Global Navigation
ab = new Image(); ab.src="/stellent/fragments/bnianavigation/images/nav_aboutBarrow.gif";
abRO = new Image(); abRO.src="/stellent/fragments/bnianavigation/images/nav_aboutBarrow_ro.gif";
abON = new Image(); abON.src="/stellent/fragments/bnianavigation/images/nav_aboutBarrow_on.gif"

pr = new Image(); pr.src="/stellent/fragments/bnianavigation/images/nav_physiciandirectory.gif";
prRO = new Image(); prRO.src="/stellent/fragments/bnianavigation/images/nav_physiciandirectory_ro.gif";
prON = new Image(); prON.src="/stellent/fragments/bnianavigation/images/nav_physiciandirectory_on.gif"

ms = new Image(); ms.src="/stellent/fragments/bnianavigation/images/nav_medSpecialities.gif";
msRO = new Image(); msRO.src="/stellent/fragments/bnianavigation/images/nav_medSpecialities_ro.gif";
msON = new Image(); msON.src="/stellent/fragments/bnianavigation/images/nav_medSpecialities_on.gif"

rc = new Image(); rc.src="/stellent/fragments/bnianavigation/images/nav_researchClinicals.gif";
rcRO = new Image(); rcRO.src="/stellent/fragments/bnianavigation/images/nav_researchClinicals_ro.gif";
rcON = new Image(); rcON.src="/stellent/fragments/bnianavigation/images/nav_researchClinicals_on.gif";

pf = new Image(); pf.src="/stellent/fragments/bnianavigation/images/nav_patientVisitor.gif";
pfRO = new Image(); pfRO.src="/stellent/fragments/bnianavigation/images/nav_patientVisitor_ro.gif";
pfON = new Image(); pfON.src="/stellent/fragments/bnianavigation/images/nav_patientVisitor_on.gif"

ei = new Image(); ei.src="/stellent/fragments/bnianavigation/images/nav_eduInformation.gif";
eiRO = new Image(); eiRO.src="/stellent/fragments/bnianavigation/images/nav_eduInformation_ro.gif";
eiON = new Image(); eiON.src="/stellent/fragments/bnianavigation/images/nav_eduInformation_on.gif"

// Preload Images - Utility Contact Us Button
cu = new Image(); cu.src="/stellent/fragments/bnianavigation/images/utility_contactUs.gif";
cuRO = new Image(); cuRO.src="/stellent/fragments/bnianavigation/images/utility_contactUs_ro.gif";
cuON = new Image(); cuON.src="/stellent/fragments/bnianavigation/images/utility_contactUs_on.gif"

// Preload Images - Utility Career Opportunities Button
co = new Image(); co.src="/stellent/fragments/bnianavigation/images/utility_careerOpp.gif";
coRO = new Image(); coRO.src="/stellent/fragments/bnianavigation/images/utility_careerOpp_ro.gif";
coON = new Image(); coON.src="/stellent/fragments/bnianavigation/images/utility_careerOpp_on.gif"

// Preload Images - Utility Search Button
sbtn = new Image(); sbtn.src="/stellent/fragments/bnianavigation/images/utility_searchButton.gif";
sbtnRO = new Image(); sbtnRO.src="/stellent/fragments/bnianavigation/images/utility_searchButton_ro.gif";
sbtnON = new Image(); sbtnON.src="/stellent/fragments/bnianavigation/images/utility_searchButton_on.gif"


// Preload Images - Utility Bar Buttons
pp = new Image(); pp.src="/stellent/fragments/bnipagetoolbox/images/btn_printPage.gif";
ppRO = new Image(); ppRO.src="/stellent/fragments/bnipagetoolbox/images/btn_printPage_ro.gif";
ppON = new Image(); ppON.src="/stellent/fragments/bnipagetoolbox/images/btn_printPage.gif"

ep = new Image(); ep.src="/stellent/fragments/bnipagetoolbox/images/btn_emailPage.gif";
epRO = new Image(); epRO.src="/stellent/fragments/bnipagetoolbox/images/btn_emailPage_ro.gif";
epON = new Image(); epON.src="/stellent/fragments/bnipagetoolbox/images/btn_emailPage.gif"

ct = new Image(); ct.src="/stellent/fragments/bnipagetoolbox/images/btn_fontSm.gif";
ctRO = new Image(); ctRO.src="/stellent/fragments/bnipagetoolbox/images/btn_fontSm_ro.gif";
ctON = new Image(); ctON.src="/stellent/fragments/bnipagetoolbox/images/btn_fontSm.gif"


// Preload Images - BQ Utility Giving Button
bqcg = new Image(); bqcg.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/dv067316.gif";
bqcgRO = new Image(); bqcgRO.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/dv067313.gif";

// Preload Images - BQ Utility Subscribe Button
bqsb = new Image(); bqsb.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/dv067317.gif";
bqsbRO = new Image(); bqsbRO.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/dv067314.gif";

// Preload Images - BQ Utility Search Button
bqsr = new Image(); bqsr.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/dv067318.gif";
bqsrRO = new Image(); bqsrRO.src="/stellent/groups/public/@xinternet_con_com/documents/webcontent/dv067315.gif";



// **********************************************************************

//var currentURL = document.location.href; // Grab URL to test for bookmarking
//var bookMark = 'none'; // Set default value

// On page load function
function init() {
}

// Rollover Image Change 
function imgChg(imageID) {
  if (killRollouts) {document.images[imageID].src = eval(imageID + "RO.src");}
}

// Rollout Image Change 
function imgChgBack(imageID) { 
  if (killRollouts) {document.images[imageID].src = eval(imageID + ".src");}
}


function searchImgChg(btnId) {
  if (killRollouts) {btnId.src = sbtnRO.src;}
}
    
function searchImgChgBack(btnId) { 
  if (killRollouts) {btnId.src = sbtn.src;}
}
    
    
  
// **********************************************************************

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
function BrowserDetectVeryLite(){
	var ua = navigator.userAgent.toLowerCase(); 
	this.isMac   = (ua.indexOf('mac') != -1);
	this.isIE    = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -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) ) );
	
	// 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)


// Check for rollovers
var killRollouts = false;
var killRollouts = (document.getElementById || document.all || document.images) ? 1:0;

 