var popWindow = null;

function popwindow(url,width,height) {
	var midX = (screen.width/2)-(width/2);
	var midY = (screen.height/2)-(height/2);
	popWindow = window.open (''+[url]+'','popwin', "width="+[width]+",height="+[height]+",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,top="+midY+",left="+midX+",screenX="+midX+",screenY="+midY+"");
	popWindow.focus();

}



var mImgList = new Array("home","prospective","calendar","student","pto","admissions","about","contact","alumni","student");
var mOutImg = new Array();
var mOverImg = new Array();
var i,j;

if(document.images) {
	for(i=0;i<mImgList.length;i++) {
		mOutImg[mImgList[i]] = new Image();
		mOutImg[mImgList[i]].src = "/images/m_"+mImgList[i]+".png";
		mOverImg[mImgList[i]] = new Image();
		mOverImg[mImgList[i]].src = "/images/m_"+mImgList[i]+"_on.png";
	}
}


function mOvr(img) {
	if(document.images && document.images[img] && document.images[img].src.indexOf("_sel")==-1) {
		if(document.images[img].filters) { document.images[img].filters.blendTrans.apply(); }
		document.images[img].src = mOverImg[img].src;
		if(document.images[img].filters) { document.images[img].filters.blendTrans.play(); }
	}
}


function mOut(img) {
	if(document.images && document.images[img] && document.images[img].src.indexOf("_sel")==-1) {
		if(document.images[img].filters) { document.images[img].filters.blendTrans.apply(); }
		document.images[img].src = mOutImg[img].src;
		if(document.images[img].filters) { document.images[img].filters.blendTrans.play(); }
	}
}
