// JavaScript Document


<!-- BEGIN RANDOM IMAGE GENERATOR
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->


	// Set up the image files to be used.
	var theImages = new Array() // do not change this
	// To add more image files, continue with the
	// pattern below, adding to the array.
	
	theImages[0] = '/images/random1.jpg'
	theImages[1] = '/images/random2.jpg'
	theImages[2] = '/images/random3.jpg'
	theImages[3] = '/images/random4.jpg'
	theImages[4] = '/images/random5.jpg'
	theImages[5] = '/images/random6.jpg'
	theImages[6] = '/images/random7.jpg'
	theImages[7] = '/images/random8.jpg'
	
	// do not edit anything below this line
	
	var j = 0
	var p = theImages.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++){
	   preBuffer[i] = new Image()
	   preBuffer[i].src = theImages[i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	
	function showImage(){
	document.write('<img src="'+theImages[whichImage]+'">');
	}
	
//  END RANDOM IMAGE GENERATOR -->

//  BEGIN NAVBAR HILITE DETECTION

function homesection(){
	if (section=="ho") document.write('<a href="index.php" class="mainnavselected">');
	else document.write('<a href="index.php" class="mainnav">');
}

function aboutsection(){
	if (section=="ab") document.write('<a href="ab_index.php" class="mainnavselected">');
	else document.write('<a href="ab_index.php" class="mainnav">');
}

function churchsection(){
	if (section=="ch") document.write('<a href="ch_index.php" class="mainnavselected">');
	else document.write('<a href="ch_index.php" class="mainnav">');
}

function projectsection(){
	if (section=="pr") document.write('<a href="pr_index.php" class="mainnavselected">');
	else document.write('<a href="pr_index.php" class="mainnav">');
}

function cubasection(){
	if (section=="cu") document.write('<a href="cu_index.php" class="mainnavselected">');
	else document.write('<a href="cu_index.php" class="mainnav">');
}

function supportsection(){
	if (section=="su") document.write('<a href="su_index.php" class="mainnavselected">');
	else document.write('<a href="su_index.php" class="mainnav">');
}

function contactsection(){
	if (section=="co") document.write('<a href="co_index.php" class="mainnavselected">');
	else document.write('<a href="co_index.php" class="mainnav">');
}
