function Is() {
	var agent = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);
	this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	this.ns2 = (this.ns && (this.major == 2));
	this.ns3 = (this.ns && (this.major == 3));
	this.ns4 = (this.ns && (this.major >= 4));
	this.ie   = (agent.indexOf("msie") != -1);
	this.ie3  = (this.ie && (this.major == 2));
	this.ie4  = (this.ie && (this.major >= 4));
	this.op3 = (agent.indexOf("opera") != -1);
	this.ns6 = (navigator.userAgent.indexOf("Netscape6") != -1) 
	this.ns7 = (navigator.userAgent.indexOf("Netscape/7.0") != -1) 
	this.ns702 = (navigator.userAgent.indexOf("Netscape/7.02") != -1) 
	//this.ns73 = (navigator.userAgent.indexOf("Netscape/7") == 73)
	//this.ns72 = (navigator.userAgent.indexOf("Netscape/7") && (this.major == 2))  
	this.Mac5 = ((navigator.appVersion.indexOf("Mac") != -1) || (navigator.appVersion.indexOf("PPC") != -1)) && (navigator.appVersion.indexOf("5.") != -1);
	//if(is.Mac5){alert("mackintosh")}
	}

var n = navigator;
var ua = ' ' + n.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);
var av = n.appVersion;
var pl = n.platform.toLowerCase();
var an = n.appName.toLowerCase();

//alert(n.userAgent.toLowerCase())

//alert(navigator.userAgent.indexOf("Netscape/7"))
//alert(navigator.appVersion.indexOf("Netscape/7"))

IE5 = (navigator.appVersion.indexOf("MSIE 5.")!=-1)
IE6 = (navigator.appVersion.indexOf("MSIE 6.")!=-1)
IE5plus = IE5 || IE6;

//if(navigator.userAgent.indexOf("Netscape/7") != -1) {
  // do ns 7 stuff
//} else if (navigator.userAgent.indexOf("Netscape6") != -1) {

  // do ns 6 stuff
//}

var is = new Is();

if(is.ns4) {

	doc = "document.layers";
	sty = "";
	htm = ".document";
    vis = "show";

} 

if(is.ie4) {

	doc = "document.all";
	sty = ".style";
	htm = "document";
    vis = "visible"
	
	
}

else if (is.ns6) {
	
	doc = "document.getElementById(";
	sty = ").style";
	htm = "document";
    vis = "visiblity"
	
}  

else if (is.ns7) {
	
	doc = "document.getElementById(";
	sty = ").style";
	htm = "document";
    vis = "visiblity"
	
}


 
/*
The javascript function printPage() is called from /includes/global/footer_print.inc, 
and it opens a window with content formatted such that it that will fit on a 
standard 8.5x11 sheet of paper when printed.  
*/

var printWin;

function printPage(thePath) {
	printWin = window.open(thePath, 'printableWin','width=590,height=440,menubar=yes,toolbar=yes,scrollbars=yes');
	printWin.focus();
}

/*
Code for Netscape 4 Resize bug 
This is a workaround for a Netscape 4 bug that causes 
stylesheets to be corrupted when the window is resized.


if (document.layers) {
	var widthCheck = window.innerWidth;
	var heightCheck = window.innerHeight;
	window.onResize = resizeFix;
}

function resizeFix() {
	with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href;
	}}
	
}*/



