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

var loadPixFlag = 0;

function loadPix() {
	if (document.images) {
		oneon = new Image(24,20);
		oneon.src = "/images/bookmark02.jpg";

		twoon = new Image(24,20);
		twoon.src = "/images/home02.jpg";

		threeon = new Image(24,20);
		threeon.src = "/images/print02.jpg";

		fouron = new Image(24,20);
		fouron.src = "/images/contact02.jpg";

		loadPixFlag = 1;
	}
}

if (document.images) {
		oneoff = new Image(24,20);
		oneoff.src = "/images/bookmark01.jpg";

		twooff = new Image(24,20);
		twooff.src = "/images/home01.jpg";

		threeoff = new Image(24,20);
		threeoff.src = "/images/print01.jpg";

		fouroff = new Image(24,20);
		fouroff.src = "/images/contact01.jpg";
}

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 startup() {
	framebuster();
	loadPix();
}

function bookmark(url,title) {
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
		window.external.AddFavorite(url,title);
	} else if (navigator.appName == "Netscape") {
		window.sidebar.addPanel(title,url,"");
	} else {
		alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
	}
}

function PopupEmail(id) {
	if (document.images) {
		var FileURL = "mailform.cfm?id=" + id;
		gw=window.open(FileURL,"dw","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=350,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' );
	}
}

