
var Himages = new Array()
var Cimages = new Array()
var Oimages = new Array()

Himages[0]= new Image(71,75)
Himages[0].src="logoH-0.jpg"
Himages[1]= new Image(71,75)
Himages[1].src="logoH-1.jpg"
Himages[2]= new Image(71,75)
Himages[2].src="logoH-2.jpg"
Himages[3]= new Image(71,75)
Himages[3].src="logoH-3.jpg"

Cimages[0]= new Image(75,75)
Cimages[0].src="logoC-0.jpg"
Cimages[1]= new Image(75,75)
Cimages[1].src="logoC-1.jpg"
Cimages[2]= new Image(75,75)
Cimages[2].src="logoC-2.jpg"
Cimages[3]= new Image(75,75)
Cimages[3].src="logoC-3.jpg"

Oimages[0]= new Image(70,75)
Oimages[0].src="logoO-0.jpg"
Oimages[1]= new Image(70,75)
Oimages[1].src="logoO-1.jpg"
Oimages[2]= new Image(70,75)
Oimages[2].src="logoO-2.jpg"
Oimages[3]= new Image(70,75)
Oimages[3].src="logoO-3.jpg"

var Nav = new Array()

Nav[0] = new Image()
Nav[0].src="HCOnavOn_01.gif"
Nav[1] = new Image()
Nav[1].src="HCOnavOff_01.gif"
Nav[2] = new Image()
Nav[2].src="HCOnavOn_02.gif"
Nav[3] = new Image()
Nav[3].src="HCOnavOff_02.gif"
Nav[4] = new Image()
Nav[4].src="HCOnavOn_03.gif"
Nav[5] = new Image()
Nav[5].src="HCOnavOff_03.gif"
Nav[6] = new Image()
Nav[6].src="HCOnavOn_04.gif"
Nav[7] = new Image()
Nav[7].src="HCOnavOff_04.gif"
Nav[8] = new Image()
Nav[8].src="HCOnavOn_05.gif"
Nav[9] = new Image()
Nav[9].src="HCOnavOff_05.gif"
Nav[10] = new Image()
Nav[10].src="HCOnavOn_06.gif"
Nav[11] = new Image()
Nav[11].src="HCOnavOff_06.gif"
Nav[12] = new Image()
Nav[12].src="HCOnavOn_07.gif"
Nav[13] = new Image()
Nav[13].src="HCOnavOff_07.gif"



function rollover(john){

var i=(Math.floor(Math.random()*3))+1;
if (john == 'logoH'){document.images[john].src=Himages[i].src;}
if (john == 'logoC'){document.images[john].src=Cimages[i].src;}
if (john == 'logoO'){document.images[john].src=Oimages[i].src;}

i=0
}

function navrollover(imagename,imagesrc){
document.images[imagename].src=Nav[imagesrc].src;
}


var activeDiv=7;
var maxDiv=8;

function hideall(){

var inc=0
while (document.getElementById("section"+inc)){
	document.getElementById("section"+inc).style.display="none"
	inc++
	}
}

function showone(activeDiv){
var activeDivObj=document.getElementById("section"+activeDiv);
hideall();
activeDivObj.style.display="block";
}


var tickspeed=15000 //speed of testimonial change out (15000=15 seconds)
var fontcolorspeed=3000 //speed of testimonial fade (3000=3 seconds)
var activeTest=0;
var maxTest=3;
var count=0


function hideallTest(){

var inc=0
while (document.getElementById("Test"+inc)){
	document.getElementById("Test"+inc).style.display="none"
	inc++
	}
}

function showoneTest(){
var activeDivObjTest=document.getElementById("Test"+activeTest);
hideallTest();
activeDivObjTest.style.display="block";
if (activeTest == 0){count=count+1;}
activeTest=(activeTest<maxTest-1)? activeTest+1 : 0;
if (count != 4) {setTimeout("showoneTest()",tickspeed);}
}


if (window.addEventListener)
window.addEventListener("load", showoneTest, false)
else if (window.attachEvent)
window.attachEvent("onload", showoneTest)


hex=255 // Initial color value.

function fadetext(joe){
if(hex>0) { //If color is not black yet
hex-=11; // increase color darkness
document.getElementById("textTest"+joe).style.color="rgb("+hex+","+hex+","+hex+")";
setTimeout("fadetext()",20); 
}
else
hex=255 //reset hex value
}

function today(){
var today= new Date();
var localToday = today.toLocaleString();

document.write("<P class='today'>" + localToday + "</p>");
}

