<!-- Standard variable definitions for web site
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// This file is included for Global setings and it requires monthly changing
// as well as changing whenever the site has changed (upDated var)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// Modified 07/11/09 LV
var resn = window.screen.width + window.screen.height;
var upDated = "Updated  07/11/09";		// indicates currency of site maintenance
var cpRight = "2003 - 2009"; 	// copyright year variable
var selDte = " ";
var selMnth = new Array();
selMnth[0] = " ";		// January
selMnth[1] = " ";		// February
selMnth[2] = " ";		// March
selMnth[3] = " ";		// April
selMnth[4] = " ";		// May
selMnth[5] = " ";		// June
selMnth[6] = " ";		// July
selMnth[7] = " ";		// August
selMnth[8] = " ";		// September
selMnth[9] = " ";		// October
selMnth[10] = " ";		// November
selMnth[11] = " ";		// December

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 function insertUpdate (){
    document.write("<EM CLASS='special'><CENTER>" +upDated +"</EM></CENTER>");
  }

// - - - Replacement routing to insert Last Updated and Webmaster and PS Logo
 function insertUpdtLogo (){
    document.write("<EM CLASS='special'><CENTER>" +upDated +"</EM></CENTER>");
    document.write("<EM CLASS='command'>Webmaster<br><a CLASS='Link' href='mailto:im2bike4ever@gmail.com?subject=RE. LVPL Web Site' TITLE='Contact LVPL webmaster'>Click to contact</a></EM>");
    document.write("<BR><EM CLASS='command'>----</EM><BR><img name='logo' src='images/PenS_logo.gif' height=15 width=100 border=0>");
    document.write("</CENTER><EM CLASS='command'>----</EM>");
    document.write("<BR><EM CLASS='Special'>&#169; " +cpRight);
    document.write("<BR>La Veta Public Library<BR><SMALL>ALL RIGHTS RESERVED</SMALL>");
  }

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// the following function inserts the copyright year--requires changing yearly
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 function insertCpyRight (){
    document.write("<BR><EM CLASS='Special'>&#169; " +cpRight);
    document.write("<BR>La veta Public Library<BR><SMALL>ALL RIGHTS RESERVED</SMALL>");
  }

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// the following function inserts the month selection list.  It must be modified
// each month by moving the " SELECTED" parameter to the current month.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 function insertOptions (){
    selDte = GetTodayDate();		// get index to month
    document.write("<option value='LvplJan5.htm'" + selMnth[0] + ">January 2009</option>");
    document.write("<option value='LvplFeb4.htm'" + selMnth[1] + ">February 2008</option>");
    document.write("<option value='LvplMar4.htm'" + selMnth[2] + ">March 2008</option>");
    document.write("<option value='LvplApr4.htm'" + selMnth[3] + ">April 2008</option>");
    document.write("<option value='LvplMay4.htm'" + selMnth[4] + ">May 2008</option>");
    document.write("<option value='LvplJun4.htm'" + selMnth[5] + ">June 2008</option>");
    document.write("<option value='LvplJul4.htm'" + selMnth[6] + ">July 2008</option>");
    document.write("<option value='LvplAug4.htm'" + selMnth[7] + ">August 2008</option>");
    document.write("<option value='LvplSep4.htm'" + selMnth[8] + ">September 2008</option>");
    document.write("<option value='LvplOct4.htm'" + selMnth[9] + ">October 2008</option>");
    document.write("<option value='LvplNov4.htm'" + selMnth[10] + ">November 2008</option>");
    document.write("<option value='LvplDec4.htm'" + selMnth[11] + ">December 2008</option>");
  }

// - - - - - - - - - - Function to determine today's  date - - - - - - - - - - - - - - 
function GetTodayDate() {
	toDay = new Date();
	thisHour = toDay.getHours();	// XXX begining of code to cut off resv @ 17:00
	var thisDate = (toDay.getMonth() + 1) + "/" + toDay.getDate() + "/" + toDay.getFullYear(); // mm/dd/yy format
	thisMon = toDay.getMonth();		// establish current month
	thisDay = toDay.getDate() + 7;
	thisYear = toDay.getFullYear();
	initDate = thisMon + "/" + thisDay + "/" + thisYear;
        selMnth[thisMon] = " selected";
	return thisDate;
}

// - - - - - - - C O D E  T O  A C C E S S  S E A R C H   E N G I N E - - - - - - - - - - - - 

var Win1 = 0;

function WinOpen() {
Win1=window.open("SrchEngn.html","wd1","HEIGHT=400,WIDTH=500,scrollbars=yes,toolbar=no,directories=no,menubar=no,location=no");
  }
function ClosWin1() {
  if(Win1){
     Win1.close()
    }
  }
// Friday Movie Night schedule
function WinOpenFM() {
    if (resn <= 1792) {
	Win1=window.open("LvplMovi.html","wd4","left=400,top=280,HEIGHT=300,WIDTH=450,scrollbars=yes,toolbar=no,directories=no,menubar=no,location=no");
    }
    else {
	Win1=window.open("LvplMovi.html","wd2","left=450,top=350,HEIGHT=350,WIDTH=500,scrollbars=yes,toolbar=no,directories=no,menubar=no,location=no");
    }
  }