if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
	widthCheck = window.innerWidth
	heightCheck = window.innerHeight
	window.onResize = resizeFix
}
function resizeFix() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href
}

// Function that pops up a window of a specific size on all target browsers
//    Pass the window URL, the width and the height
function popWindow(urlVal,windowName,widthVal,heightVal,scrollBars,menuBar,reSizeable) {
	var paraString
	var wt
	var ht

	// Bug fix: we are now blanking the windowName variable
	windowName == "";
	
	wt = widthVal;
	ht = heightVal;

	paraString = "width=" + wt + ",height=" + ht;
	if (scrollBars == 1) {
		paraString = paraString + ",scrollbars=yes";
		} else {
		paraString = paraString + ",scrollbars=no";
		}
	if (menuBar == 1) {
		paraString = paraString + ",menubar=yes";
		}
	if (reSizeable == 1) {
		paraString = paraString + ",resizable=yes";
		}
	if(is.ie && is.pc) {
		if(typeof(poppedWindow) == "object") {
			poppedWindow.close();
			if(is.ie4) {
				poppedWindow = window.open(urlVal,windowName,paraString);
			}
		}
	}
	poppedWindow = window.open(urlVal,windowName,paraString);

	poppedWindow.focus();
}

// Function that passes the appropriate glossary URL, name and size to the popWindow function
function popGallery(urlVal) {
	if (is.ns) {
		popWindow(urlVal,"pictureWindow",800,600,0,0,0);
	} else {
		popWindow(urlVal,"pictureWindow",800,655,0,0,0);

	}
}


// Function that passes the appropriate glossary URL, name and size to the popWindow function
function popGlossary(urlVal) {
	popWindow(urlVal,"glossaryWindow",246,310,1,0,0); 
}

// Function use to display external sites on a separate popup
function popExternal(urlVal) {
	popWindow(urlVal,"externalWindow",720,570,1,1,1);
}

// Function use to display future driven site on a separate popup
function popFutureDriven(urlVal) {
	var ht
	var wt
	
	if ((is.ns) && (is.mac)) {
		wt = 775;
		ht = 552;
	} else if (is.ns) {
		wt = 775;
		ht = 554;
	} else {
		wt = 775;
		ht = 550;
	}
	
	popWindow(urlVal, "futureWindow",wt,ht,0);
}


// Function use to display videos on a separate popup
function popVideo(urlVal,widthVal,heightVal) {
	var wt = widthVal;
	var ht = heightVal + 103;
	
	popWindow(urlVal,"mediaWindow",wt,ht,0,0,0);
}