function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Please note:  All Content Copyright 2006 Apex Fire Services.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;


function browser_name() {
		var browser_name = navigator.appName;
		return browser_name;
	}

	function browser_version() {
		var browser_version = parseFloat(navigator.appVersion);
		return browser_version;
	}

	function browser_os() {
		if(navigator.appVersion.indexOf("Win95") > 0) return "WIN95";
		else if(navigator.appVersion.indexOf("Win16") > 0) return "WIN31";
		else if(navigator.appVersion.indexOf("WinNT") > 0) return "NT";
		else if(navigator.appVersion.indexOf("Mac") > 0) return "MAC";
		else if(navigator.appVersion.indexOf("UNIX") > 0) return "UNIX";
		else return "UNKNOWN";
	}

var browserOk = false;

if (browser_name() == "Netscape" && browser_version() >= 3.0) browserOk = true;
else if (browser_name() == "Microsoft Internet Explorer" && browser_version() >= 3.0) browserOk = true;

function chg_button(titlename, onoff) 
{
	if (browserOk == true) {
			document[titlename].src = "images/button_" + titlename + "_" + onoff + ".gif"
	}
}

function chg_map(titlename, onoff) 
{
	if (browserOk == true) {
			document[titlename].src = "images/map_button_" + titlename + "_" + onoff + ".gif"
	}
}

function open_window (page) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);

	new_window = window.open (page,"a" + counter + "a","width=780,height=450,toolbar=no,location=no,scrollbars=yes,directories=no,menubar=no,resizable=yes");
}

function open_photo (image_path) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);

	new_window = window.open ("photo_enlarge.asp?path="+image_path,"a" + counter + "a","width=660,height=680,toolbar=no,location=no,scrollbars=no,directories=no,menubar=no,resizable=no");
}

function run_null () {
	do_nothing = "this";
}

function open_otherimage (imagefile, width, height) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);


	new_window = window.open (imagefile,"a" + counter + "a","width="+width+",height="+height+",toolbar=no,location=no,scrollbars=no,directories=no,menubar=no,resizable=no");
}


