function checkBrowser(){
	this.win=(navigator.platform=="Win32")?1:0;
	this.mac=(navigator.platform=="MacPPC")?1:0;
	this.ver=navigator.appVersion;
	this.ua=navigator.userAgent;
	this.dom=document.getElementById?1:0;						/* The getElementById method is applicable to 5th generation browsers only. */
	this.ie6=(this.ver.indexOf("MSIE 6")!=-1 && this.dom)?1:0   /* PJM added to handle ie6 */
	this.ie5=(this.ver.indexOf("MSIE 5")!=-1 && this.dom)?1:0; 	/* Will handle both ie5 and ie5.5 */
	this.opera=(this.ua.indexOf("Opera")!=-1)?1:0; 	/* opera
	this.ie4=(document.all && !this.dom)?1:0;					/* Specifically ie4 */
	this.ns5up=(this.dom && parseInt(this.ver)>=5)?1:0;			/* Netscape 6 (Mozilla) */
	this.ns4=(document.layers && !this.dom)?1:0;				
	this.nucleus=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6)?1:0;		/* Only IE or Navigator */
	this.ie=(this.ie4 || this.ie5 || this.ie6 || this.ns6)?1:0;					/* Allows single test on nucleus.ie */
	this.nav=(this.ns4)?1:0;										/* Allows single test on nucleus.nav */
	return this
}
var nucleus = new checkBrowser();

// Sets the default page status
defaultStatus="Hosted Exchange experts, XE2"

// Standard print code
function printIt(){  
	if (window.print) {
		window.print() ;  
	}else{
		var browsername = '<OBJECT ID="browsername1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd', browsername);
		browsername1.ExecWB(6, 2);
	}
}

// Open Popup
function popupURL(URL,name,width,height, scrollWin){
	var winLeft = (screen.width - width) / 2;
	var winUp = (screen.height - height) / 2;
	win = window.open(URL,name, 'toolbar=no, resizable=yes, scrollbars='+scrollWin+', width='+width+', height='+height+',left='+winLeft+',top='+winUp);
}

// stylesheet for safari firefox and opera
if(nucleus.ns5up || nucleus.opera){
	document.write('<link rel="stylesheet" type="text/css" href="/css/ns6fix.css" />');
}

// mac only css
if(nucleus.mac){
	document.write('<link rel="stylesheet" type="text/css" href="/css/macfix.css" />');
}

/* resize browser for smaller windows - if required */
function checkSize(){
	if(window.innerWidth != null){
		if(window.innerWidth<962){
			window.innerWidth = 962;
		}
	}
	if (document.body.clientWidth != null){
		if(document.body.clientWidth<962){

			//document.body.clientWidth = parseInt(869);
    setTimeout ("window.resizeTo(1024,768)",300); 
//			alert(document.body.clientWidth);
		}
	}
}
//window.onresize = checkSize;
//window.onload = checkSize;

// mac safari only fix anchor link
function getHash()
{
if ((navigator.userAgent.toLowerCase().indexOf("safari") != -1) && (window.location.href.match(/#(\w.+)/))) window.location.replace(window.location.hash);
return false;
}