// JavaScript Document

function over(which,ext,num) {
	if (document.images) {
		if (num == undefined) {
			document.images[which].src = "/images/" + which + "_hi" + ext;
		} else {
			document.images[which+num].src = "/images/" + which + "_hi" + ext;
		}
	}
}
	
function out(which,ext,num) {
	if (document.images) {
		if (num == undefined) {
			document.images[which].src = "/images/" + which + ext;
		} else {
			document.images[which+num].src = "/images/" + which + ext;
		}
	}
}
	
function imageSwap(which,newImage,ext) {
	if (document.images) {
		document.images[which].src = "/images/" + newImage + ext;
	}
}

function launch(URL,myW,myH,pageName) {
	var eric=window.open(URL, pageName,"scrollbars=yes,resizable=yes,toolbar=yes,width=" + myW + ",height=" + myH,1);
	eric.moveTo(15,15);
	eric.focus();
}

function openWin(imageName, imageWidth, imageHeight, alt, posLeft, posTop) {
	var objWin;
	
	objWin = window.open("", "newWindow", "width=" + imageWidth + ", height=" + imageHeight + ", left=" + posLeft + ", top=" + posTop);
	objWin.document.open();
	objWin.document.write('<html>');
		objWin.document.write('<title>' + alt + '</title>');
		objWin.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
			objWin.document.write('<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">');
				objWin.document.write('<tr>');
					objWin.document.write('<td align="center" valign="middle">');
						objWin.document.write('<img src=' + imageName + ' alt=' + alt + '>'); 
					objWin.document.write('</td>');
				objWin.document.write('</tr>');
			objWin.document.write('</table>');
		objWin.document.write('</body>');
	objWin.document.write('</html>');
	objWin.document.close();
	objWin.focus();
} //openWin

function openCallback() {
	var callback = window.open("/callbackrequest.asp", "callbackWindow", "resizable=no,toolbar=no,width=" + 250 + ",height=" + 400,1);
	callback.moveTo(15,15);
	callback.focus();
}

function openAnnouncements() {
	var popup = window.open("/announcements.asp", "announcementsWindow", "scrollbars=yes,resizable=yes,toolbar=no,width=" + 500 + ",height=" + 600,1);
	popup.moveTo(15,15);
	popup.focus();
}
