﻿// JScript File
//gets a object safely between all browsers
function getElement(sID){if(document.getElementById){return document.getElementById(sID);}else if(document.all){return document.all[sID];}else if(document.layers){return document.layers[sID];}}



/*function Popup(url, width, height)
{
	window.open(url, '', 'scrollbars=yes,resizable=yes,width=' + width + ',height=' + height);
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+="over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace("over", "");
   }
   }
  }
 }
}
window.onload=startList;*/




function siteWindow(location) {			
	var newWin = window.open(''+location+'','newWin',config='width=800,height=500,scrollbars=no,resizeable=no,toolbar=no,status=no,location=no,menubar=no,directories=no');
	var resWidth = screen.width;
	var resHeight = screen.height;
	var resX = ( resWidth - 800)/2;
					
	if ( screen.height >= 500) {
		var resY = (( resHeight - 450 )/2 ) - 50; 
	}
	else {
		var resY = (( resHeight - 450 )/2 ) - 20;
	}
  
	x = (resX);
	y = (resY);
	newWin.moveTo(x,y); 
}

