var loadPixFlag = 0;

function loadPix() {
	if (document.images) {
		welcomeon = new Image(617,31);
		welcomeon.src = "gizmos/welcome2b.gif";

		loadPixFlag = 1;
	}
}

if (document.images) {
		welcomeoff = new Image(617,31);
		welcomeoff.src = "gizmos/welcome1b.gif";
}

function flipOn(imgName) {
	if (document.images && loadPixFlag) {
		imgOn = eval(imgName + "on.src");
		document[imgName].src = imgOn;
	}
}

function flipOff(imgName) {
	if (document.images && loadPixFlag) {
		imgOff = eval(imgName + "off.src");
		document[imgName].src = imgOff;
	}
}

function framebuster() {
	if (self.parent.frames.length != 0) self.parent.location=document.location;
}

function startup(formfocus) {
	framebuster();
	loadPix();
	if (formfocus==1) {
		document.forms[0].elements[1].focus();
	}
}

function PopupPhoto(PID) {
	if (document.images) {
		var PhotoURL = "photo.cfm?pid="+PID;
		pw=window.open(PhotoURL,"pw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=525,screenX=50,screenY=50,top=50,left=50");
	} else {
		alert( '\nSorry, this Feature requires Netscape Navigator, Version 3.0 or greater\n'+
				'or Microsoft Internet Explorer, Version 4.0+.\n\n' );
	}
}

function PopupCert() {
	url = "whalewatcher.html";
	if (document.images) {
		PopCert = open(url,"cw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=650,screenX=50,screenY=50,top=50,left=50");
	} else {
		location.href = url;
	}
}
