
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;
}
/* Functions that swaps images. */
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];}
}
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;
}

/* Functions that handle preload. */
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 to capture and display date  */
function showdate()
{
  day = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")

  month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
  now = new Date();
  document.write("<" + "FONT FACE=\"Verdana,Arial,Helvetica\" COLOR=\"#000000\" SIZE=\"-2\">");
  document.write("Today is " + day[now.getDay()] + ", " + month[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear());
  document.write("<" + "/FONT>");
}


/* Function to display large bg logo in MSIE only  */
function bg_logo()
{
        // Assign the platform type to a Variable
var browser = navigator.appName.substr(0,3);
        // If statements testing for which platform
//     alert("the value of browser is:"+ browser)
  if (browser == "Net")
 {
    document.writeln(" ");
  }
  else
  {
     document.writeln("<style>");
    document.writeln("<!--");
    document.writeln("body {background-image:url(images/kclogo_10.jpg); background-position: 360px 200px; background-repeat: no-repeat; background-attachment: fixed}");
    document.writeln("-->");
    document.writeln("</style>");
  }
}




function lastMod()		{
var lastmoddate = document.lastModified;

// Create an if statement to test the value of lastmoddate
if(lastmoddate == 0)
{

document.writeln("Last Modified: Unknown");
}
else
{
document.writeln("<FONT face=verdana SIZE=\"1\" color=#000066>");

document.writeln("This page last modified: " + lastmoddate);}
		}

function mod_date()
{
var lastmoddate = document.lastModified;

// Create an if statement to test the value of lastmoddate
if(lastmoddate == 0)
{
document.writeln("Last Modified: Unknown<BR>© 2002 Copyright Knights of Columbus");
}
else
{
document.writeln("<FONT face=verdana SIZE=\"1\" color=#666666>");

document.writeln("&copy;2002 Knights of Columbus - 5793");
document.writeln("<br>");
document.writeln("Site design courtesy Personal Digital Imaging, Wasaga Beach, ON");
document.writeln("<br>");
document.writeln("This page last modified: " + lastmoddate);}
		}


function openWindow() {
leftPos=0
if (screen) {
	leftPos=screen.width-650
	}
window.open('kc_christmas_mass_sched.html', 'xxx', 'width=640,height=515,left='+leftPos+',top=0,resizable=no,scrollbars=no,location=no,status=no,toolbar=no,menubar=no,directories=no')
						}

function opendarrinWindow() {
leftPos=0
if (screen) {
	leftPos=screen.width-265
	}
window.open('fr_darrin.html', 'xxx', 'width=255,height=440,left='+leftPos+',top=0,resizable=no,scrollbars=no,location=no,status=no,toolbar=no,menubar=no,directories=no')
						}


function openWindowPDF() {
leftPos=0
if (screen) {
	leftPos=screen.width-410
	}
WindowPDF = window.open('take-5/pdf_error.html', 'xxx', 'width=400,height=440,left='+leftPos+',top=0,resizable=0,scrollbars=1,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowPDF.focus()
						}

function openWindowMary(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-800
	}
//WindowMary = window.open('http://www.stmaryscollingwood.ca', 'xxx', 'width=800,height=600,left='+leftPos+',top=0,resizable=0,scrollbars=1,location=0,status=0,toolbar=0,menubar=0,directories=0')
WindowMary = window.open(URL, 'xxx', 'width=800,height=600,top=0,left='+leftPos+',resizable=1,scrollbars=1,location=1,status=1,toolbar=1,menubar=1,directories=1')
WindowMary.focus()
						}

function openWindowStrip(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-630
	}
windowStrip=window.open(URL,"myNewWindow", 'width=620,height=80,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
windowStrip.focus()
						}

function openWindowClips(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-630
	}
windowClips=window.open(URL,"xxx", 'width=620,height=240,left='+leftPos+',top=110,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
windowClips.focus()
						}

function openWindowNew(URL) {
newWindow=window.open(URL,"myNewWindow", 'width=750,height=550,left=0,top=0,resizable=1,scrollbars=1,location=0,status=0,toolbar=1,menubar=0,directories=0')
newWindow.focus()
						}

function openWindowOfficer(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-450
	}
office=window.open(URL,"officer", 'width=440,height=370,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
office.focus()
						}
		
					
function openWindowEmail(URL) {
newWindow=window.open(URL,"myNewWindow",'width=400,height=400,left=100,top=100,resizable=0,scrollbars=1,location=0,status=0,toolbar=1,menubar=0,directories=0')
// newWindow.focus()
						}
						
function openWindowBB(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-470
	}
newWindow=window.open(URL,"myNewWindow", 'width=460,height=420,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}
							
								
function openWindowParade(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-740
	}
newWindow=window.open(URL,"myNewWindow", 'width=730,height=540,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}
								
function openWindowKnightLites(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-790
	}
newWindow=window.open(URL,"myNewWindow", 'width=780,height=580,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}

function openWindowYardSale(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-650
	}
newWindow=window.open(URL,"myNewWindow", 'width=640,height=500,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}
							
function openWindow2006(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-670
	}
newWindow=window.open(URL,"myNewWindow", 'width=660,height=540,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
newWindow.focus()
						}
							
function openWindow640(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-660
	}
Window640=window.open(URL,"640", 'width=650,height=480,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window640.focus()
						}
							
function openWindow640V(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-500
	}
Window640V=window.open(URL,"640V", 'width=490,height=730,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window640V.focus()
						}
							
function openWindow480(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-500
	}
Window480=window.open(URL,"480", 'width=490,height=420,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window480.focus()
						}
							
function openWindow480V(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-380
	}
Window480V=window.open(URL,"480V", 'width=370,height=540,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window480V.focus()
						}
							
function openWindow800(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-830
	}
Window800=window.open(URL,"800", 'width=820,height=660,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window800.focus()
						}
										
function openWindow640_480(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-660
	}
Window640=window.open(URL,"640", 'width=650,height=560,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window640.focus()
						}
							
function openWindow540V(URL) {
leftPos=0
if (screen) {
	leftPos=screen.width-480
	}
Window640V=window.open(URL,"580V", 'width=470,height=540,left='+leftPos+',top=0,resizable=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,directories=0')
Window640V.focus()
						}

