var d=document;
var flag=false;

if (d.images) {
	fish_Over = new Image();  fish_Over.src = "images/starfish.gif";
	flag=true;
}
function rollOver(imgName) {
	if (document.images && (flag == true)) {
		d[imgName].src = fish_Over.src;
	}
}
function rollOut(imgName) {
	if (document.images && (flag == true)) {
		d[imgName].src = "images/0.gif";
	}
}

rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
}

function rand(number) {
        return Math.ceil(rnd()*number);
}

function addPhotoHeader(maxNum, fileName){
	x = rand(maxNum);
	d.write('<img src="images/header_photos/' + fileName + x + '.jpg" alt="" width="542" height="80" border="0" title="" id="photoHeaderKeyline"></a><br>');

}

function popUp(thisURL, winWidth, winHeight) {
	window.open(thisURL,"LaPlayaPDF",'toolbar=0,width='+winWidth+',height='+winHeight+',status=0,scrollbars=1,resizable=1,menubar=0');
}