// Copyright 2000-2008, DataCom\OTA, Inc.
// Setup
g_on=new Image(200,105);
g_on.src="g_on.jpg";
g_off=new Image(200,105);
g_off.src="g_off.jpg";

bf_on=new Image(200,105);
bf_on.src="bf_on.jpg";
bf_off=new Image(200,105);
bf_off.src="bf_off.jpg";

kp_on=new Image(200,105);
kp_on.src="kp_on.jpg";
kp_off=new Image(200,105);
kp_off.src="kp_off.jpg";

al_on=new Image(200,105);
al_on.src="al_on.jpg";
al_off=new Image(200,105);
al_off.src="al_off.jpg";
	
//Set Cookie for Current Page
function scPage(cName) {
	document.cookie = "cPage" + "=" + cName+";path=/;";
}

// Roll Over Buttons
function turnOn(imgName) {
	document[imgName].src=eval(imgName + "_on.src");
}

function turnOff(imgName) {
	document[imgName].src=eval(imgName + "_off.src");
}

//Jump Menu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//Open Files
function openFileA(theFile, theWindow, theBar, theSize, theWidth, theHeight) {
    window.open (theFile, theWindow,"status=no,location=no,toolbars="+theBar+",menubar="+theBar+",directories=no,scrollbars=yes,resizable="+theSize+",width="+theWidth+",height="+theHeight);
}

function openFile(theFile) {
    window.open (theFile, "Apple");
}

function hideDiv() {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById('flashOpen').style.display = 'none';
	} else {
		if (document.layers) { // Netscape 4
			document.flashOpen.display = 'none';
		} else { // IE 4
			document.all.flashOpen.style.display = 'none';
		}
	}
}

// Write the Display File

function playList(mFile) {
  newWindow=window.open('','Movie','width=340,height=360,scrollbars=no,resizable=no');
  newWindow.document.writeln('<html>');
  newWindow.document.writeln('<head>');
  newWindow.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
  newWindow.document.writeln('<!-- Copyright 2000-2008, DataCom\OTA, Inc. -->');
  newWindow.document.writeln('<title>Northland Foundation</title>');
  newWindow.document.writeln('<link rel="stylesheet" type="text/css" href="com.nof.c.type.css">');
  newWindow.document.writeln('<script type="text/javascript">');
  newWindow.document.writeln('function playMov(mFile) {');
  newWindow.document.writeln('newWindow=window.open(\'\',\'Movie\',\'width=340,height=360,scrollbars=no,resizable=no\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<html>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<head>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<!-- Copyright 2000-2008, DataCom\OTA, Inc. -->\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<title>Northland Foundation</title>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<link rel="stylesheet" type="text/css" href="com.nof.c.type.css">\');');
  newWindow.document.writeln('newWindow.document.writeln(\'</head>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<body>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<EMBED SRC="'+mFile+'.mov" WIDTH="320" HEIGHT="255" AUTOPLAY="true" CONTROLLER="true" LOOP="false" PLUGINSPAGE="http://www.apple.com/quicktime">\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<p>&nbsp;</p>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<center><a href="javascript:window.close()"><font size="1">CLOSE</font></a></center>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'</body>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'</html>\');');
  newWindow.document.writeln('newWindow.document.close();');
  newWindow.document.writeln('  }');
  newWindow.document.writeln('function playWmv(mFile) {');
  newWindow.document.writeln('newWindow=window.open(\'\',\'Movie\',\'width=340,height=360,scrollbars=no,resizable=no\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<html>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<head>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<!-- Copyright 2000-2008, DataCom\OTA, Inc. -->\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<title>Northland Foundation</title>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<link rel="stylesheet" type="text/css" href="com.nof.c.type.css">\');');
  newWindow.document.writeln('newWindow.document.writeln(\'</head>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<body>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<EMBED SRC="'+mFile+'.wmv" WIDTH="320" HEIGHT="285" AUTOPLAY="true" CONTROLLER="true" LOOP="false">\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<p>&nbsp;</p>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'<center><a href="javascript:window.close()"><font size="1">CLOSE</font></a></center>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'</body>\');');
  newWindow.document.writeln('newWindow.document.writeln(\'</html>\');');
  newWindow.document.writeln('newWindow.document.close();');
  newWindow.document.writeln('  }');
  newWindow.document.writeln('</script>');
  newWindow.document.writeln('</head>');
  newWindow.document.writeln('<body>');
  newWindow.document.writeln('<p>&nbsp;</p>');
  newWindow.document.writeln('<p style="text-align:center"><a href="javascript:playMov();">Click for Quicktime version.</a></p>');
  newWindow.document.writeln('<p>&nbsp;</p>');
  newWindow.document.writeln('<p style="text-align:center"><a href="javascript:playWmv();">Click for Windows Media Player version.</a></p>');
  newWindow.document.writeln('<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>');
  newWindow.document.writeln('<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>');
  newWindow.document.writeln('<center><a href="javascript:window.close()"><font size="1">CLOSE</font></a></center>');
  newWindow.document.writeln('</body>');
  newWindow.document.writeln('</html>');
  newWindow.document.close();
  }
