// BROWSER SNIFFER FOR DHTML SCRIPTS 
DOM = (document.getElementById) ? true : false;
NS4 = (document.layers) ? true : false;
IE = (document.all) ? true : false;
IE4 = IE && !DOM;
Mac = (navigator.appVersion.indexOf("Mac") != -1);
IE4M = IE4 && Mac;
IsMenu = (DOM || NS4 || (IE4 && !IE4M));
BrowserString = NS4 ? "NS4" : DOM ? "DOM" : "IE4";
if(window.event + "" == "undefined") event = null;
function f_PopUp(){return false};
function f_PopDown(){return false};
popUp = f_PopUp;
popDown = f_PopDown;

//pop up windows for quality network pages to display the certification images
var newqwin;
function openWin(pageURL)
{
	var theHeight = 600;
	var theWidth = 500;
	var theTop=(screen.height/2)-(theHeight/2);
  	var theLeft=(screen.width/2)-(theWidth/2);
  	var features='height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scrollbars=no,resizable=no,toolbar=no,menubar=yes,location=no,status=yes";
	newqwin = window.open(pageURL,'',features);
}

function openWindow2(pageURL)
{
	newwin = window.open(pageURL,"DDE2","width=638,height=381,resizable=yes,toolbar=no,menubar=yes,location=no,status=yes,scrollbars=yes")
	setTimeout('newwin.focus();',250);
}

function openWindowPDF(pageURL)
{
	if (browser.indexOf("Explorer") >= 0){
		newwin = window.open(pageURL,"DDE","width=638,height=381,resizable=yes,toolbar=no,menubar=yes,location=no,status=yes,scrollbars=yes")
		setTimeout('newwin.focus();',250);
	}else{
	window.location=pageURL;
	}
}
	
function openWindowSWF(pageURL)
{
	if (browser.indexOf("Explorer") >= 0){
		newwin = window.open(pageURL,"DDE","width=575,height=390,resizable=yes,toolbar=no,menubar=yes,location=no,status=yes,scrollbars=yes")
		setTimeout('newwin.focus();',250);
	}else{
	window.location=pageURL;
	}
}	

function openWindowSWF2(pageURL)
{
	if (browser.indexOf("Explorer") >= 0){
		newwin = window.open(pageURL,"DDE","width=575,height=550,resizable=yes,toolbar=no,menubar=yes,location=no,status=yes")
		setTimeout('newwin.focus();',250);
	}else{
	window.location=pageURL;
	}
}	
	
function openWindowCRG(url,name,width,height,features) 
{
	var winLeft = (screen.width - width) / 2;
	if (winLeft < 0) winLeft = 0;
	var winTop = (screen.height - height) / 2;
	if (winTop < 0 || winTop <= 55) winTop = 0;
	newwin = window.open(url,name,"width=" + width + ",height=" + height + ",top=" + winTop + ",left=" + winLeft + "," + features);
	setTimeout('newwin.focus()',250);
}

// NETSCAPE CSS RESIZE BUG FIX
function WM_netscapeCssFix() {
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function WM_netscapeCssFixCheckIn() {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object;
    }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
      document.WM.WM_netscapeCssFix = new Object;
      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = WM_netscapeCssFix;
  }
}

