//Allow IE4 to work with us.
  	if(!document.getElementById && document.all){
	  document.getElementById = function(id) {return document.all[id];}
	}

/* rollover function */
function flipImages() {
  if (document.images) {
    for ($i=0; i<flipImages.arguments.length; i+=2) {
      document[flipImages.arguments[i]].src = eval(flipImages.arguments[i+1] + ".src");
    }
  }
}	

function closePopUpWindow(){
	if (window.openedWindow && !window.openedWindow.closed){
		window.openedWindow.close();
	}
}

function popUpWindow(theURL,winName,features) {
	window.onunload = closePopUpWindow;
	closePopUpWindow();
	window.openedWindow = window.open(theURL,winName,features+",left=150,top=180,screenX=150,screenY=180");
	return (window.openedWindow);
}

// JavaScript Document

function startList(){
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", "");
   }
   }
  }
 }
}

var regex_email = /^[\w\d\._-]+@[\w\d-\.]+\.\w{2,4}(\.\w{2})?$/;

//to stop stupid norton preventing debug	
window.onerror = "";