<!--
//Banner Script

function initArray() {
this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
  }
}

var text  = new initArray(
"Welcome to Community Engagement Center!");

var speed = 100;
var speed2 = 2000;
var whereat = 0;
var whichone = 0;

function waveb() {
 var befor = text[whichone].substring(0,whereat);
 var wave = text[whichone].substring(whereat,whereat+1).toUpperCase();

 window.status = befor + wave;

 if (whereat == text[whichone].length) {
  whereat = 0;
  ++whichone;
  if (whichone == text.length) whichone = 0;
  setTimeout("waveb()",speed2);
 }

 else {
  whereat++;
  setTimeout("waveb()",speed);
 }
}

waveb();

//timer
var _countDowncontainer=0;
var _currentSeconds=0;

function ActivateCountDown(strContainerID, initialValue) 
{    
	_countDowncontainer = document.getElementById(strContainerID);        
	if (!_countDowncontainer) 
	{        
		//alert("count down error: container does not exist: "+strContainerID+            "\nmake sure html element with this ID exists");        
		return;    
	}        
	SetCountdownText(initialValue);    
	window.setTimeout("CountDownTick()", 1000);
}


function CountDownTick() 
{    
	if (_currentSeconds <= 0) 
	{        
		//alert("your time has expired!");        
		return;    
	}        
	SetCountdownText(_currentSeconds-1);    
	window.setTimeout("CountDownTick()", 1000);
}

function SetCountdownText(seconds) 
{    
	//store:    
	_currentSeconds = seconds;        
	
	//get minutes:    
	var minutes=parseInt(seconds/60);        
	
	//shrink:    
	seconds = (seconds%60);        
	
	//get hours:    
	var hours=parseInt(minutes/60);        
	
	//shrink:    
	minutes = (minutes%60);        
	
	//build text:    
	var strText = AddZero(hours) + ":" + AddZero(minutes) + ":" + AddZero(seconds);        
	//apply:    
	_countDowncontainer.innerHTML = strText;
}

function AddZero(num) 
{    
	return ((num >= 0)&&(num < 10))?"0"+num:num+"";
} 


function WindowLoad(event) {
	ActivateCountDown("CountDownPanel", 3600);
}


//-->