<!-- Generates the pull-down, clickable menu on old index.html

function gotoSITE() {
     var Current = document.sitenav.siteName.selectedIndex;
     if (document.sitenav.siteName.options[Current].value > " ") {
     location.href = document.sitenav.siteName.options[Current].value;
     }
     else {
     alert("You must make a selection.  Please try again.")
     }
 }
//-->

<!-- GOOGLE INTERNAL SITE SEARCH SCRIPT
var domainroot="www.theemersoncenter.org"
function Gsitesearch(curobj){curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
// End -->


<!-- Generates rollover menus on old web site
<!-- HIDE SCRIPT FROM OLD BROWSERS
if (document.images) {
	ticketsPage = new Image
	ticketsPageOver = new Image
	calendarPage = new Image
	calendarPageOver = new Image
	aboutusPage = new Image
	aboutusPageOver = new Image
	rentPage = new Image
	rentPageOver = new Image
	joinusPage = new Image
	joinusPageOver = new Image
	contactusPage = new Image
	contactusPageOver = new Image
	
	ticketsPage.src = 'images/nav_button_tickets.jpg'
	ticketsPageOver.src = 'images/nav_button_tickets_over.jpg'
	calendarPage.src = 'images/nav_button_calendar.jpg'
	calendarPageOver.src = 'images/nav_button_calendar_over.jpg'
	aboutusPage.src = 'images/nav_button_aboutus.jpg'
	aboutusPageOver.src = 'images/nav_button_aboutus_over.jpg'
	rentPage.src = 'images/nav_button_rent.jpg'
	rentPageOver.src = 'images/nav_button_rent_over.jpg'
	joinusPage.src = 'images/nav_button_joinus.jpg'
	joinusPageOver.src = 'images/nav_button_joinus_over.jpg'
	contactusPage.src = 'images/nav_button_contactus.jpg'
	contactusPageOver.src = 'images/nav_button_contactus_over.jpg'

}
else {
	ticketsPage = ""
	ticketsPageOver = ""
	calendarPage = ""
	calendarPageOver = ""
	aboutusPage = ""
	aboutusPageOver = ""
	rentPage = ""
	rentPageOver = ""
	joinusPage = ""
	joinusPageOver = ""
	contactusPage = ""
	contactusPageOver = ""
}
// -->

<!-- Re-generates the CAPTCHA code on our formmail forms
// <![CDATA[
var nReload = 5;

function NewVerifyImage()
{
    if (nReload <= 2)
        if (nReload <= 0)
        {
            alert("Sorry, too many reloads.");
            return;
        }
        else
            alert("Only " + nReload + " more reloads are allowed");
    nReload--;

        //
        // This code now works in both IE and FireFox
        //
    var         e_img;

    e_img = document.getElementById("vimg");
    if (e_img)
                //
                // FireFox attempts to "optimize" by not reloading
                // the image if the URL value doesn't actually change.
                // So, we make it change by adding a different
                // count parameter for each reload.
                //
        e_img.setAttribute("src",e_img.src+'?count='+nReload);
}
// ]]>



<!-- Delivers the time-of-day-sensitive greetings in sub-masthead of updates.asp
function greet() {
  var todaydate = new Date();
  var timeis = todaydate.getTime();
  todaydate.setTime(timeis);
  var houris = todaydate.getHours();
  if (houris > 17) display = "evening";
  else if (houris >12) display = "afternoon";
  else display = "morning";
  var title = document.title;
  var welcome = ("Good " + display + ".");
  document.write(welcome);
}
//  End -->


<!-- TEXTAREA LIMITER FUNCTION used in vetregis.asp
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}
//  End -->


<!-- COPYIT FUNCTION used in webfriends.asp
function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}


// Script controls the Page Loading feature
if(document.getElementById) { // IE 5 and up, NS 6 and up
	var upLevel = true;
	}
else if(document.layers) { // Netscape 4
	var ns4 = true;
	}
else if(document.all) { // IE 4
	var ie4 = true;
	}

function showObject(obj) {
	if (ns4) {
		obj.visibility = "show";
		}
	else if (ie4 || upLevel) {
		obj.style.visibility = "visible";
		}
	}
function hideObject(obj) {
	if (ns4) {
		obj.visibility = "hide";
		}
	if (ie4 || upLevel) {
		obj.style.visibility = "hidden";
		}
	}
// End -->



<!---- SCRIPT USED BY FORMMAIL TO GET TO REFERRER PAGES
// <![CDATA[
/*
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function printit(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}
// ]]>


<!-- COLLAPSING CONTENT DIVISIONS
function showHide(shID) {
   if (document.getElementById(shID)) {
      if (document.getElementById(shID+'-show').style.display != 'none') {
         document.getElementById(shID+'-show').style.display = 'none';
         document.getElementById(shID).style.display = 'block';
      }
      else {
         document.getElementById(shID+'-show').style.display = 'inline';
         document.getElementById(shID).style.display = 'none';
      }
   }
}
// End -->



<!-- Delivers the time-of-day-sensitive greetings in sub-masthead of updates.asp
function greet() {
  var todaydate = new Date();
  var timeis = todaydate.getTime();
  todaydate.setTime(timeis);
  var houris = todaydate.getHours();
  if (houris > 17) display = "evening";
  else if (houris >12) display = "afternoon";
  else display = "morning";
  var title = document.title;
  var welcome = ("Good " + display + ".");
  document.write(welcome);
}
//  End -->


<!-- TEXTAREA LIMITER FUNCTION used in vetregis.asp
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}
//  End -->


<!-- COPYIT FUNCTION used in webfriends.asp
function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}


// Script controls the Page Loading feature
if(document.getElementById) { // IE 5 and up, NS 6 and up
	var upLevel = true;
	}
else if(document.layers) { // Netscape 4
	var ns4 = true;
	}
else if(document.all) { // IE 4
	var ie4 = true;
	}

function showObject(obj) {
	if (ns4) {
		obj.visibility = "show";
		}
	else if (ie4 || upLevel) {
		obj.style.visibility = "visible";
		}
	}
function hideObject(obj) {
	if (ns4) {
		obj.visibility = "hide";
		}
	if (ie4 || upLevel) {
		obj.style.visibility = "hidden";
		}
	}
// End -->



<!---- SCRIPT USED BY FORMMAIL TO GET TO REFERRER PAGES
// <![CDATA[
/*
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function printit(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}
// ]]>



<!-- BEGINNING MANY POPUP WINDOWS SCRIPTS
function boxoffice()
{
        oneNewWindow=window.open("http://theemersoncenter.org/popups/boxoffice.asp","Menu1",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=405,height=200');
}
// -->

<!--
function uufvb()
{
        twoNewWindow=window.open("http://theemersoncenter.org/popups/uufvb.asp","Menu2",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=405,height=200');
}
// -->

<!--
function drbybeepopup()
{
        twooNewWindow=window.open("http://hsvb.org/staff/beth_bybee.asp","Menu14",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function ilkapopup()
{
        threeNewWindow=window.open("http://hsvb.org/staff/ilka_daniel.asp","Menu3",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function jenniferpopup()
{
        fourNewWindow=window.open("http://hsvb.org/staff/jennifer_dixon.asp","Menu4",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function conniepopup()
{
        fiveNewWindow=window.open("http://hsvb.org/staff/connie_ellis.asp","Menu5",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function keithpopup()
{
        sixNewWindow=window.open("http://hsvb.org/staff/keith_hinton.asp","Menu6",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function kevinpopup()
{
        sevenNewWindow=window.open("http://hsvb.org/staff/kevin_humphrey.asp","Menu7",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function phaedrapopup()
{
        eightNewWindow=window.open("http://hsvb.org/staff/phaedra_kohler.asp","Menu8",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function mariapopup()
{
        nineNewWindow=window.open("http://hsvb.org/staff/maria_ramirez.asp","Menu9",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function dotpopup()
{
        tenNewWindow=window.open("http://hsvb.org/staff/dot_ritchey.asp","Menu10",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function janetpopup()
{
        elevenNewWindow=window.open("http://hsvb.org/staff/janet_winikoff.asp","Menu11",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function privacy()
{
        LegalNewWindow=window.open("http://hsvb.org/5.html","Menu12",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=425,height=500');
}
// -->

<!--
function donatephone()
{
        DonatePhoneNewWindow=window.open("http://hsvb.org/popups/donatephone.asp","Menu15",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=425,height=350');
}
// -->

<!-- THIS POPUP USED FOR PET ADOPTION DISCLAIMERS ---:
<!--
function petsearch()
{
        PetSearchNewWindow=window.open("http://hsvb.org/petsearchalert.asp","Menu14",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=460');
}
// -->

<!--
function adoptadog()
{
        DogSearchNewWindow=window.open("http://www.hsvb.org/frame_adoptDOG.asp","Menu16",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=960,height=460');
}
// -->

<!--
function adoptacat()
{
        CatSearchNewWindow=window.open("http://www.hsvb.org/frame_adoptCAT.asp","Menu17",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=960,height=460');
}
// -->

<!--
function adoptother()
{
        OtherSearchNewWindow=window.open("http://www.hsvb.org/frame_adoptOTHER.asp","Menu18",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=960,height=460');
}
// -->

<!--
function adoptsearch()
{
        GeneralSearchNewWindow=window.open("http://www.hsvb.org/frame_adoptSEARCH.asp","Menu19",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=960,height=460');
}
// -->

<!--
function adoptID()
{
        IDSearchNewWindow=window.open("http://www.hsvb.org/frame_adoptID.asp","Menu20",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=960,height=460');
}
// -->

<!-- NEXT 2 POPUPS ARE SAMPLES FOR POPOVER DOWNLOADS - WEBFRIENDS.ASP ---:
<!--
function popover_vert()
{
        PopVertNewWindow=window.open("http://www.hsvb.org/popoversample_vert.asp","Menu21",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=350,height=470');
}
// -->

<!--
function popover_horz()
{
        PopHorzNewWindow=window.open("http://www.hsvb.org/popoversample_horz.asp","Menu22",'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=450,height=400');
}
// -->


<!--
function slideshow()
{
        slideshowNewWindow=window.open("http://hsvb.org/slideshow.asp","Menu23",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=370,height=335');
}
// -->


<!--
function fiveways()
{
        fivewaysNewWindow=window.open("http://hsvb.org/fiveways.asp","Menu24",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=650,height=162');
}
// -->



<!--
function vet_register_example()
{
        vetregNewWindow=window.open("http://hsvb.org/vetregexample.asp","Menu25",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=200,height=300');
}
// -->


<!--
function showyear(){
	var now = new Date(); // Retrieve date
	tmp = now.getFullYear(); // Retrieve the year
	return tmp;
	}
// -->

