//popup windows
function popUp(URL) {var v1 = "wi";
var v2 = "ndo";
var v3 = "w.op";
var v4 = "en";
eval("marinapop = "+v1+v2+v3+v4+"(URL, 'marinapop', 'toolbar=0,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=500,left = 455,top = 275');");}
function imageOpen(image) {var v1 = "wi";
var v2 = "ndo";
var v3 = "w.op";
var v4 = "en";
URL = "imagewin.php?image=" + image;
eval("marinamap = "+v1+v2+v3+v4+"(URL, 'marinamap', 'toolbar=0,location=0,scrollbars=0,statusbar=0,menubar=0,resizable=0,width=770,height=400,left = 455,top = 275');");}

//browse screen select script
function browseSelect(id){
	document.getElementById("browse"+id).style.color = "#6A91C0";
	document.getElementById("browse"+id).style.backgroundColor = "#FFFFFF";
	document.getElementById("browse"+id).style.border = "1px solid #6A91C0";
	document.getElementById("browse"+id).style.margin = "10px";
	document.getElementById("thumb"+id).style.borderColor = "#0074BC";
	document.getElementById("thumb"+id).style.backgroundColor = "#FFFFFF";
}
function browseDeSelect(id){
	document.getElementById("browse"+id).style.color = "#2C5587";
	document.getElementById("browse"+id).style.backgroundColor = "";
	document.getElementById("browse"+id).style.border = "0";
	document.getElementById("browse"+id).style.margin = "11px";	document.getElementById("thumb"+id).style.borderColor = "#2D5688";
	document.getElementById("thumb"+id).style.backgroundColor = "#333333";
}


// footer positioningfunction getWindowHeight() {	var windowHeight = 0;	if (typeof(window.innerHeight) == 'number') {		windowHeight = window.innerHeight;	}	else {		if (document.documentElement && document.documentElement.clientHeight) {			windowHeight = document.documentElement.clientHeight;		}		else {			if (document.body && document.body.clientHeight) {				windowHeight = document.body.clientHeight;			}		}	}	return windowHeight;}function setFooter() {	if (document.getElementById) {		var windowHeight = getWindowHeight();		if (windowHeight > 0) {			var contentHeight = document.getElementById('container').offsetHeight;			var footerElement = document.getElementById('footer');			var footerHeight  = footerElement.offsetHeight;			if (windowHeight - (contentHeight + footerHeight) >= 0) {				footerElement.style.position = 'absolute';				footerElement.style.top = (windowHeight - footerHeight) + 'px';
				document.getElementById('browsecont').style.height = (windowHeight - footerHeight - 130) + 'px';			}			else {				footerElement.style.position = 'static';
				document.getElementById('browsecont').style.height = "auto";			}		}	}}window.onload = function() {	setFooter();}window.onresize = function() {	setFooter();}