//	CCChike-g.js  -  scripts for the gallery pages
//	includes CCCGlobal.js and makeHikeWindow()

//	CCCGlobal.js  -  scripts for all pages (makeNewWindow, goBack, twoClicks)
//	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
}

//	function goBack()
function goBack() { window.history.back(); }

//	function twoClicks() - opens explanatory window for goBack()
var tcWindow = null;
function twoClicks() {
  if (tcWindow && !tcWindow.closed)
     { tcWindow.close(); }
  tcWindow = window.open('/TwoClicks.php','tcWindow','width=535,height=176'); 
    tcWindow.focus();
}//	CCCSlides.js  -  scripts for the slide show

//	function makeHikeWindow() - slide show version of makeNewWindow()
var hikeWindow = null;
function makeHikeWindow(loc) {
  if (hikeWindow && !hikeWindow.closed)
     { hikeWindow.close(); }
  hikeWindow = window.open(loc,'slideWindow1','width=950,height=641');
    return false;
    hikeWindow.focus();
}
