//pop up + roll over code 
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=300,left = 490,top = 362');");
}

/*
	firdom()
	written by Chris Heilmann (http://www.onlinetools.org)
*/

function firdom(){
	if(document.getElementsByTagName && document.createElement){
		for (l=1;l<=6;l++){
			h1s=document.getElementsByTagName('h'+l);
			scanandreplace(h1s,'h'+l);
		}
	}
}
function scanandreplace(h1s,tag){
	for(i=0;i<h1s.length;i++){
		for(f=0;f<replaceImages.length;f++){
			chunks=replaceImages[f].split('|');
			thish1=document.getElementsByTagName(tag)[i];
			if(thish1.firstChild.nodeValue==chunks[0]){
				newImg=document.createElement('img');			
				newImg.setAttribute('alt',chunks[0])
				newImg.setAttribute('src',chunks[1])
				// or newImg.src=chunks[1];
				thish1.replaceChild(newImg,thish1.firstChild)
			}
		}
	}
}
window.onload=firdom;

function homeImage(){
var imgNum = 5;
var ranNum = Math.random();
var ranNum1 = Math.round( (imgNum-1) * ranNum);
imgList = new Array
imgList[0] = "back1.jpg"
imgList[1] = "back2.jpg"
imgList[2] = "back3.jpg"
imgList[3] = "back4.jpg"
imgList[4] = "back5.jpg"
var imgName = imgList[ranNum1];
document.write('<img src="images/' + imgName + '" width="670" height="241" border="0">')
}

function openWindow(URI){
	window.open(URI, "_blank");
	return false;
}
