function popUpHelp(theURL,theWidth,theHeight,theScroll,theResize) {
var theProperties = "width=" + theWidth +",height=" + theHeight + ",scrollbars=" + theScroll + ",resizable=" + theResize+",top=0,left=0";
popUpWindow = window.open(theURL,"",theProperties)
}

/*
This code is from Dynamic Web Coding 
www.dyn-web.com 
Permission granted to use this code as long as this 
entire notice is included.
*/

dom = (document.getElementById) ? true : false;
ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
ns4 = (document.layers && !dom) ? true : false;
ie4 = (document.all && !dom) ? true : false;
nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

var curPg='lyr1';	// put id of first layer here
function loadLyr(pg) {
	var oldPg = curPg;
	hide(oldPg);
  curPg = pg;
	show(pg);
}

function show(lyr) {
	var theLyr = (ns4)? document.relDiv.document.layers[lyr] : (ie4)? document.all[lyr].style : (ie5||ns5)? document.getElementById(lyr).style: null;
	if (!theLyr) return;
	theLyr.visibility = "visible";
}

function hide(lyr) {
	var theLyr = (ns4)? document.relDiv.document.layers[lyr] : (ie4)? document.all[lyr].style : (ie5||ns5)? document.getElementById(lyr).style: null;
	if (!theLyr) return;
	theLyr.visibility = "hidden";	
}

function settimes(){
 window.setTimeout("expired()",13000)
}

// var theLayer = 2;
var theLayer = (1 + Math.round(Math.random() * (4)));

function expired(){
 loadLyr('lyr'+theLayer); //Put here the next page
 theLayer=theLayer+1;
 if (theLayer > 5) {
 theLayer = 1;
 }
 settimes();
}