
function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}
if (document.images) {
  image1on = new Image();
  image1on.src ="images/image1_ov.gif";
  image2on = new Image();
  image2on.src ="images/image2_ov.gif";
  image3on = new Image();
  image3on.src ="images/image3_ov.gif";
  image4on = new Image();
  image4on.src ="images/image4_ov.gif";
  image5on = new Image();
  image5on.src ="images/image5_ov.gif";
  image6on = new Image();
  image6on.src ="images/image6_ov.gif";
  image7on = new Image();
  image7on.src ="images/image7_ov.gif";
  image8on = new Image();
  image8on.src ="images/image8_ov.gif";
  image1off = new Image();
  image1off.src = "images/image1.gif";
  image2off = new Image();
  image2off.src = "images/image2.gif";
  image3off = new Image();
  image3off.src = "images/image3.gif";
  image4off = new Image();
  image4off.src = "images/image4.gif";
  image5off = new Image();
  image5off.src = "images/image5.gif";
  image6off = new Image();
  image6off.src = "images/image6.gif";
  image7off = new Image();
  image7off.src = "images/image7.gif";
  image8off = new Image();
  image8off.src = "images/image8.gif";
}
  otherImageDefault = new Image();
  otherImageDefault.src = "images/otherImage.gif";
  otherImage1 = new Image();
  otherImage1.src = "images/otherImage1.gif";
  otherImage2 = new Image();
  otherImage2.src = "images/otherImage2.gif";
  otherImage3 = new Image();
  otherImage3.src = "images/otherImage3.gif";
  otherImage4 = new Image();
  otherImage4.src = "images/otherImage4.gif";
  otherImage5 = new Image();
  otherImage5.src = "images/otherImage5.gif";
  otherImage6 = new Image();
  otherImage6.src = "images/otherImage6.gif";
  otherImage7 = new Image();
  otherImage7.src = "images/otherImage7.gif";
  otherImage8 = new Image();
  otherImage8.src = "images/otherImage8.gif";
  anotherImageDefault = new Image();
  anotherImageDefault.src = "images/anotherImage.gif";
  anotherImage1 = new Image();
  anotherImage1.src = "images/anotherImage1.gif";
  anotherImage2 = new Image();
  anotherImage2.src = "images/anotherImage2.gif";
  anotherImage3 = new Image();
  anotherImage3.src = "images/anotherImage3.gif";
  anotherImage4 = new Image();
  anotherImage4.src = "images/anotherImage4.gif";
  anotherImage5 = new Image();
  anotherImage5.src = "images/anotherImage5.gif";
  anotherImage6 = new Image();
  anotherImage6.src = "images/anotherImage6.gif";
  anotherImage7 = new Image();
  anotherImage7.src = "images/anotherImage7.gif";
  anotherImage8 = new Image();
  anotherImage8.src = "images/anotherImage8.gif";


var width,height
var image,ext
var cond1,cond2
function transferview(image,width,height) {
	if (width==0) cond1=" "
		else cond1="width="+(width+20)+"";
	if (height==0) {cond2=" "
			scroll="yes"}
		else {cond2="height="+(height+70)+""
		     };

	var s1 ="<TITLE>St. Thomas More</TITLE>"
	var s15=""
	var s2 ="<CENTER><IMG SRC='"+image+"' BORDER=0>"
	var s3 ="<FORM><INPUT TYPE='BUTTON' VALUE='Close Window'"+
		" onClick='self.close()'>"
	var s4 ="</FORM></CENTER></BODY>"

	ImageWindow=window.open("", "newwin"+width,
"toolbar=no,scrollbars="+scroll+",menubar=no,"+cond1+","+cond2);
	ImageWindow.document.write(s1+s15+s2+s3+s4)
	ImageWindow.document.close()
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}










	
