//IE specific tarnsitions for nav
function addFilt(obj){
	//alert(obj);
	obj.style.backgroundColor="#FEEFD0";			
	//obj.style.filter="flipv()";
	}
function remFilt(obj){
	obj.style.backgroundColor="";
}

//pre-load images to browser

 if (document.images) {
var rewOn = new Image();
rewOn.src = "images/rew_on.gif";
var rewOff = new Image();
rewOff.src = "images/rew.gif";

var stopOn = new Image();
stopOn.src = "images/stop_on.gif";
var stopOff = new Image();
stopOff.src = "images/stop.gif";

var playOn = new Image();
playOn.src = "images/play_on.gif";
var playOff = new Image();
playOff.src = "images/play.gif";
}

/* rollover function */
function flipImages() {
  if (document.images) {
    for (var i=0; i<flipImages.arguments.length; i+=2) {
      document[flipImages.arguments[i]].src = eval(flipImages.arguments[i+1] + ".src");
    }
  }
}

function startList(id) {
if (document.all&&document.getElementById) {
navRoot = document.getElementById(id);
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", "");
   }
   }
  }
 }
}



function closePopUpWindow(){
	if (window.openedWindow && !window.openedWindow.closed){
		window.openedWindow.close();
	}
}

function popUpWindow(theURL,winName,features) {
	window.onunload = closePopUpWindow;
	closePopUpWindow();
	features = (features) ? features : "resizable,width=550,height=425,left=350,top=180,screenX=350,screenY=180";
	winName = (winName) ? winName : "_win";	
	window.openedWindow = window.open(theURL,winName,features);
	return false;
}

//to stop stupid norton preventing debug	
window.onerror = "";	