// JavaScript Document

var imgs = new Array(4);
for (var i = 0; i < 4; i++) {
	 imgs[i] = new Image();
}
function chg1pic(a, img1) {
	document[a].src=[img1];
}
function leftArrowOn(a) {
	document[a].src=imgs[0].src;
}
function leftArrowOff(a) {
	document[a].src=imgs[1].src;
}
function rightArrowOn(a) {
	document[a].src=imgs[2].src;
}
function rightArrowOff(a) {
	document[a].src=imgs[3].src;
}
							
var popupWin = null;

function genericWin(url, name, window_options) {
	popupWin = window.open(url,name,window_options)
	popupWin.focus();
}

function diagramWin(url) {
	popupWin = window.open(url,"PegAero","width=680,height=800,scrollbars=yes,resizable=yes");
	popupWin.focus();
}

function protector(mouseevent) {
	if (navigator.appName == 'Netscape' && (mouseevent.which == 2 || mouseevent.which == 3))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
		alert("Please contact Pegasus Aeromarine Inc. for a copy of this image.  Thank You.");
		return false;
	} else return true;
}

document.onmousedown=protector;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.mousedown=protector;

