var win=null;function NewWindow(mypage,myname,w,h,scroll,pos){if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/4:100;TopPosition=(screen.height)?(screen.height-h)/4:100;}else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';win=window.open(mypage,myname,settings);}// onresize for ns4var origWidth, origHeight;if (document.layers) {	origWidth = window.innerWidth; origHeight = window.innerHeight;	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }}var cur_lyr;	// holds id of currently visible layerfunction swapLayers(id) {  if (cur_lyr) hideLayer(cur_lyr);  showLayer(id);  cur_lyr = id;}function showLayer(id) {  var lyr = getElemRefs(id);  if (lyr && lyr.css) lyr.css.visibility = "visible";}function hideLayer(id) {  var lyr = getElemRefs(id);  if (lyr && lyr.css) lyr.css.visibility = "hidden";}function getElemRefs(id) {	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;	if (el) el.css = (el.style)? el.style: el;	return el;}