function setStatus(displayStr) 
{ 
	window.status=displayStr;
} 

function removeBlueBox() 
{ 
	obj = window.event.srcElement; 
		if (obj.tagName == "IMG" || obj.tagName == "A") { 
		obj.blur(); 
		} 
}

// BROWSER VERSION CHECKER
	var its;
	var browserName;
	var browserNameLong;
	var browserNew;
	var preloadFlag = false;
	var Macintosh = navigator.userAgent.indexOf('Mac')>0;

	function its() {
		var n = navigator;
		var ua = ' ' + n.userAgent.toLowerCase();
		var pl = n.platform.toLowerCase();
		var an = n.appName.toLowerCase();

		// browser version
		this.version = n.appVersion;
		this.nn = ua.indexOf('mozilla') > 0;

		// 'compatible' versions of mozilla aren't navigator
		if(ua.indexOf('compatible') > 0) {
			this.nn = false;
		}

		this.opera = ua.indexOf('opera') > 0;
		this.ie = ua.indexOf('msie') > 0;
		this.major = parseInt( this.version );
		this.minor = parseFloat( this.version );

		// platform
		this.mac = ua.indexOf('mac') > 0;
		this.win = ua.indexOf('win') > 0;

		// workaround for IE5 & IE6 which both reports at version 4.0
		if(this.ie) {
			if(ua.indexOf("msie 5") || ua.indexOf("msie 6") > 1) {
			var msieIndex = navigator.appVersion.indexOf("MSIE") + 5;
			this.major = parseFloat(navigator.appVersion.substr(msieIndex,3));
			}
		}

		return this;
	}

	function browserNaming() {
		its = new its();

		// is it a DOM-enabled browser?
		if (!document.getElementById) {
			browserNew = false;
		}
		else {
			browserNew = true;
		}

		// need the name, too
		if (its.opera) {
			browserName = "Opera";
		}
		else if (its.ie) {
			browserName = "IE";
		}
		else {
			browserName = "NS";
		}
		// and the number
		browserNameLong = browserName + its.major;
	}

// OPEN WINDOW FUNCTION
// pulls in customized link, width, height, scrollability
function popUpNew(Page, Width, Height, Scroll) {
window.open(Page,"popUpWindow",'width='+Width+',height='+Height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+Scroll+',copyhistory=no,resizable=yes');
 }
// other changes:
// toolbar - icon bar at top of browser
// location - address bar at top of browser
// directories - links bar at top of browser
// status - progression bar at bottom of browser
// menubar - textual links (File, Edit, etc) at top of the browser
// copyhistory - new window retains history list from parent window
// resizable - allows window to be resized

// FIX N4 CSS ISSUE	
// Netscape 4 has a nasty bug of forgetting an external stylesheet is attached when the browswer is resized
// This script compensates for Netscape's shortsightedness

function reloadPage () {
		if (innerWidth != origWidth || innerHeight != origHeight) {
			location.reload();
			}
		}

if ((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==4)) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	onresize = reloadPage;
	}
	

//ADD N4 STYLESHEET
// Add a stylesheet that is better suited for Netscape 4 browsers, since they can not handle CSS2 properly
function addN4style () {
 if (parseInt(navigator.appVersion) < 5 && browserName == "NS") { 
 	document.write("<link rel='stylesheet' href='../css/n4under.css'>"); 
	} 
  }
  
// SWAP IMAGE
function swapImage (name, source) {
	var image;
	image = findDOMimage(name);
	image.src = source;
}  

// -->