

	//do nothing - sometimes useful
	function voidOut() {
	}

	//  THESE FUNCTIONS ALLOW THE VISITOR TO SEE INFORMATION IN A POP-UP WINDOW

	var WinFile="";
	var WinTool="";
	var WinMenu="";
	var WinScroll="";
	var WinWide="";
	var WinHigh="";

	var winl = (screen.width - WinWide) / 2;
	var wint = (screen.height - WinHigh) / 2;

	var url="";
	var name="";
	var rs="";
	var w="";
	var h="";
	var s="";

	// open new window
	function openWindow(url, name, rs, w, h, status) {
	  var resize = "";
	  if (rs) {
	    resize = "resizable,";
	  }
	  popupWin = window.open(url, name, 'top=0,left=0,location=0,scrollbars,' + resize +
'width=' + w + ',height=' + h + ',status=yes');
	  window.name = 'opener';
	}


	function pop(WinFile,WinTool,WinMenu,WinScroll,WinWide,WinHigh) {

	    var str1 = WinFile;

	    var str2 =	'"status=yes,toolbar=' + WinTool +',directories=no,menubar=' + WinMenu +',location=yes,scrollbars=' + WinScroll +',width=' +WinWide+' ,height='+WinHigh+'"';

   	    msg=open(str1,"PreviewWindow",str2);

   	    if (parseInt(navigator.appVersion) >= 4) { msg.window.focus(); }

	}

	function popCenter(WinFile,WinTool,WinMenu,WinScroll,WinWide,WinHigh) {

	    var str1 = WinFile;

	    var str2 =	'"top=' + winl + ',left=' + wint + ',location=0,statusbar=0,toolbar=' + WinTool +',directories=no,menubar=' + WinMenu +',resizable=0,scrollbars=' + WinScroll +',width=' + WinWide +' ,height='+ WinHigh +'"';

   	    msg=open(str1,"PreviewWindow",str2);

   	    if (parseInt(navigator.appVersion) >= 4) { msg.window.focus(); }

	}

	function popLeft(WinFile,WinTool,WinMenu,WinScroll,WinWide,WinHigh) {

	    var str1 = WinFile;

	    var str2 =	'"top=0,left=0,location=0,statusbar=0,toolbar=' + WinTool +',directories=no,menubar=' + WinMenu +',resizable=0,scrollbars=' + WinScroll +',width=' + WinWide +' ,height='+ WinHigh +'"';

   	    msg=open(str1,"PreviewWindow",str2);

   	    if (parseInt(navigator.appVersion) >= 4) { msg.window.focus(); }

	}

	function popUp(WinFile,WinTool,WinMenu,WinScroll,WinWide,WinHigh) {

	    var str1 = WinFile;

	    var str2 =	'"status=yes,toolbar=' + WinTool +',directories=no,menubar=' + WinMenu +',location=yes,scrollbars=' + WinScroll +',width=' +WinWide+' ,height='+WinHigh+'"';

   	    msg=open(str1,"PreviewWindow",str2);

   	    if (parseInt(navigator.appVersion) >= 4) { msg.window.focus(); }

	}

	function pop1(WinFile) {

	    var str1 = WinFile;

	    var str2 =	'"status=yes,toolbar=yes,directories=no,menubar=yes,location=yes,scrollbars=yes,width=740,height=350"';

   	    msg=open(str1,"PreviewWindow",str2);

   	    if (parseInt(navigator.appVersion) >= 4) { msg.window.focus(); }

	}


	function footnote() {

		document.write('<CENTER>');
		document.write('<TABLE WIDTH="600" BORDER="0" CELLPADDING="0" CELLSPACING="0">');
		document.write('<TBODY><TR>');
		document.write('<TD WIDTH="110" BGCOLOR="#CC0000" ALIGN="center">');
		document.write('<FONT FACE="Verdana, Arial, Helvetica, Sans-Serif" COLOR="#FFFFFF" SIZE="1">');
		document.write('<B>Copyright 2004<BR>Community Frontiers</B>');
		document.write('</FONT></TD>');
		document.write('<TD WIDTH="490" BGCOLOR="#FF9900" ALIGN="center">');
		document.write('<FONT FACE="Verdana, Arial, Helvetica, Sans-Serif" COLOR="#591E8A" SIZE="1">');
		document.write('<B><FONT COLOR="#FFFFFF">URL </FONT> www.tinman.org &nbsp; ');
		document.write('<FONT COLOR="#FFFFFF">Email</FONT> sbraiden@tinman.org &nbsp; ');
		document.write('<FONT COLOR="#FFFFFF">Phone</FONT> 1-519-258-9168</B></FONT></TD>');
		document.write('</TR></TBODY></TABLE>');
		document.write('<FONT FACE="Verdana, Arial, Helvetica, Sans-Serif" SIZE="1" COLOR="#003399"><B>');
		document.write('challenging . exploring . talking . thinking . ');
		document.write('learning . integrating . applying . innovating . ');
		document.write('sharing . celebrating . sustaining');
		document.write('</B></FONT>');
		document.write('</CENTER>');

	}



	// CHECK THE BROWSER

	ver = navigator.appVersion;
	app = navigator.appName;

	// This is the length in milliseconds that an 
	// images 'on' file will remain active after an "onMouseOver".

	var LINKTIME = 3000;
        
	function BrowserOK()
        {
                if (app == "Netscape" && parseInt(ver) > 2 || app == "Microsoft Internet Explorer" && parseInt(ver) > 3)
                return true
                else
                return false
        }



	// GET THE DATE TO PERSONALIZE THE GREETINGS

	today=new Date();

	// Build an array initializer
	function isnArray() {
		argnr=isnArray.arguments.length
		for (var i=0;i<argnr;i++) {
			this[i+1] = isnArray.arguments[i];
		}
	 }

	// And months and day arrays
	var isnMonths=new
	isnArray("January","February","March","April","May","June","July","August","September","October","November","December");

	var isnDays= new 	isnArray("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");


	// open the Pavilions Navigator

	var remote = null;

	function remoteStart() {

		if (BrowserOK()) { 

			remote = window.open('', 'TheRemote', 'width=640,height=300,resizable=0,toolbar=0,scrollbars=no');

			if (remote != null) {
				if (remote.opener == null) {
					remote.opener = self;
				}
			}

			remote.location.href = 'Pavilions/Nav/openNavigatorMap.html'; 

		}	// EOIf BrowserOK

		else { 
			remote = window.open('openNavigatorMap.html', 'TheRemote', 'width=640,height=300,resizable=0,toolbar=0,scrollbars=no');
		}

	}	// EOFunction startRemote


// CHECK TIME OF DAY

function dayPart() {
	var oneDate = new Date()
	var theHour = oneDate.getHours()
	if (theHour < 12) {
		return "morning"
	}
	if (theHour < 17) {
		return "afternoon"
	}
	return "evening"
}


	//  FRIENDLY TIME MONITOR

	function number(x) {
		if (x==1) return "one"; if (x==2) return "two"; if (x==3) return "three";
		if (x==4) return "four"; if (x==5) return "five"; if (x==6) return "six";
		if (x==7) return "seven"; if (x==8) return "eight"; if (x==9) return "nine";
		if (x==10) return "ten"; if (x==11) return "eleven"; if (x==12) return "twelve";
		return x; //default
	}

	function ishtime(h,m) {
		h = number(h)
		if (m<=3 || m>57) return h+" o'clock";
		if (m<=7)  return "five past "+h;
		if (m<=12) return "ten past "+h;
		if (m<=17) return "quarter past "+h;
		if (m<=23) return "twenty past "+h;
		if (m<=28) return "twenty-five past "+h;
		if (m<=33) return "half past "+h;
		if (m<=38) return "twenty-five to "+h;
		if (m<=43) return "twenty to "+h;
		if (m<=48) return "quarter to "+h;
		if (m<=53) return "ten to "+h;
		if (m<=58) return "five to "+h;
		return "h:m"; // never reached?
	}

	function daytime(h) {
		if (!h || h>21) return " in the evening"
		if (h<12) return " in the morning!";
		if (h<=18) return " in the afternoon";
		return ""; // default
	}

	function ish(h,m) {
		if (!h && !m) { // if no time supplied, use the system time
			time = new Date()
			h = time.getHours()
			m = time.getMinutes()
		}
		z = daytime(h);
		h = h % 12 // fix to 12 hour clock
		if (m>57 && time.getSeconds()>30) m++; // round seconds
		if (m>60) m=0 // round up minutes
		if (m>33) h++ // round up hours
		if (h>12)  h = 1 // the clock turns round..
		if (h==0) h = 12
		return " It's now about "+ishtime(h,m)+", and I'm glad that you're able to visit."
	}


// -- THIS NEXT SET OF FUNCTIONS CLEARS THE ONMOUSEOVER STATUS STRING
// -- WHICH THE BROWSER DOESN'T DO ON IT'S OWN
   
    // This is the length in milliseconds that a 
    // links 'message' will remain in the status bar.
    //

    // Call this function from a link's onMouseover handler.
    // Pass it the string you want displayed for the link.
    // EXAMPLE: 
    //  <A HREF="foo.html" onMouseOver="return holdStatus('foo bar')">
    //
    function holdStatus(msg) {
       window.status = msg
       setTimeout("clearStatus()",LINKTIME);
       return true
    }
  
    function clearStatus() {
       window.status=""
    }



	// IMAGE FADER

	function high(which2){
		theobject=which2
		highlighting=setInterval("highlightit(theobject)",50)
	}

	function low(which2){
		clearInterval(highlighting)
		which2.filters.alpha.opacity=20
	}

	function highlightit(cur2){
		if (cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=5
		else if (window.highlighting)
		clearInterval(highlighting)
	}


	// SOUND EFFECTS HANDLER REMOVED

