//	vn.js		Javascript for ViewingNotes
//			includes CCCglobal.js, openIt-closeIt.js, and vnCache();

//	CCCGlobal.js  -  scripts for all pages opening Javascript windows
//	function makeNewWindow()
var newWindow = null;                           // initialize newWindow variable
function makeNewWindow(loc,name,size) {
//     Since we have varying sizes and shapes of windows, we need to
//     close it first, if it exists, so newWindow will open correctly.
  if (newWindow && !newWindow.closed)           // check for an open window
     { newWindow.close(); }                     // and close it if it exists
  newWindow = window.open(loc,name,size);       // then create the newWindow
    return false;                               // override the href #, and
    newWindow.focus();                          // be certain it is on top
}
//	openIt and closeIt opens/closes popup text boxes
function  openIt(elId) { document.getElementById (elId).style.visibility = "visible"; }
function closeIt(elId) { document.getElementById (elId).style.visibility = "hidden";  }

//	vnCache()
function vnCache() {
var vnPix = new Array() ;
  vnPix[0] = new Image(496,262) ;
  vnPix[0].src = "/ScenicU-12/images/PatchworkQuilt.jpg" ;
  vnPix[1] = new Image(435,650) ;
  vnPix[1].scr = "CalfCreekRA/images/Lower_falls.jpg" ;
  vnPix[2] = new Image(570,650) ;
  vnPix[2].src = "CalfCreekRA/images/Upper_Falls.jpg" ;
}
