<!-- Generates the FIRST pull-down, clickable NAVIGATION MENU
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.")
     }
 }
//-->


<!-- Generates the SECOND pull-down, clickable NAVIGATION MENU
function gotoSITE2() {
     var Current = document.sitenav2.siteName2.selectedIndex;
     if (document.sitenav2.siteName2.options[Current].value > " ") {
     location.href = document.sitenav2.siteName2.options[Current].value;
     }
     else {
     alert("You must make a selection.  Please try again.")
     }
 }
//-->


<!-- GOOGLE INTERNAL SITE SEARCH SCRIPT
var domainroot="www.trinityvero.org"
function Gsitesearch(curobj){curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
// End -->


<!-- Generates random images in testimonies -----
<!-- Begin
var interval = 10; // delay between rotating images (in seconds)
var random_display = 0; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
image_list = new Array();
image_list[image_index++] = new imageItem("images/Trinity_testimonial_4.jpg");
image_list[image_index++] = new imageItem("images/Trinity_testimonial_1.jpg");
image_list[image_index++] = new imageItem("images/Trinity_testimonial_2.jpg");
image_list[image_index++] = new imageItem("images/Trinity_testimonial_3.jpg");
var number_of_image = image_list.length;
function imageItem(image_location) {
this.image_item = new Image();
this.image_item.src = image_location;
}
function get_ImageItemLocation(imageObj) {
return(imageObj.image_item.src)
}
function generate(x, y) {
var range = y - x + 1;
return Math.floor(Math.random() * range) + x;
}
function getNextImage() {
if (random_display) {
image_index = generate(0, number_of_image-1);
}
else {
image_index = (image_index+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list[image_index]);
return(new_image);
}
function rotateImage(place) {
var new_image = getNextImage();
document[place].src = new_image;
var recur_call = "rotateImage('"+place+"')";
setTimeout(recur_call, interval);
}
//  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 promopopup()
{
        oneNewWindow=window.open("http://trinityvero.org/popups/angel_tree.html","Menu1",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=250');
}
// -->

<!--
function bcp()
{
        twooNewWindow=window.open("http://www.gnpcb.org/esv/devotions/bcp","Menu14",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=720,height=550');
}
// -->

<!--
function news1()
{
        twoNewWindow=window.open("http://trinityvero.org/popups/news1.html","Menu2",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=405,height=200');
}
// -->

<!--
function anglican_id()
{
        threeNewWindow=window.open("http://trinityvero.org/popups/anglican_id.html","Menu3",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function trinity_id()
{
        fourNewWindow=window.open("http://trinityvero.org/popups/trinity_id.html","Menu4",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function testimony1()
{
        fiveNewWindow=window.open("http://trinityvero.org/popups/testimony1.html","Menu5",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function testimony2()
{
        sixNewWindow=window.open("http://trinityvero.org/popups/testimony2.html","Menu6",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function testimony3()
{
        sevenNewWindow=window.open("http://trinityvero.org/popups/testimony3.html","Menu7",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function testimony4()
{
        eightNewWindow=window.open("http://trinityvero.org/popups/testimony4.html","Menu8",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function testimony5()
{
        nineNewWindow=window.open("http://trinityvero.org/popups/testimony5.html","Menu9",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->

<!--
function testimony6()
{
        tenNewWindow=window.open("http://trinityvero.org/popups/testimony6.html","Menu10",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=460');
}
// -->



<!--
function showyear(){
	var now = new Date(); // Retrieve date
	tmp = now.getFullYear(); // Retrieve the year
	return tmp;
	}
// -->


