var rotatorCounter = 0;
var seconds = 7;

//DROP DOWN MENUS

function rollOver(theImage,rollOverImg){
	if (!theImage.originalSrc){
		theImage.originalSrc = theImage.src;}
	theImage.src=rollOverImg;
}

function rollOut(theImage){
	theImage.src=theImage.originalSrc;
}

function showMenu(menuID){
	var subMenu, subMenuContainer;
	subMenuContainer = document.getElementById("menuSub");
	subMenu = document.getElementById(menuID);
	subMenuContainer.style.visibility = "visible";
	subMenu.style.visibility = "visible";
}

function hideMenu(menuID){
	var subMenu, subMenuContainer;
	subMenuContainer = document.getElementById("menuSub");
	subMenu = document.getElementById(menuID);
	subMenuContainer.style.visibility = "hidden";
	subMenu.style.visibility = "hidden";
}

function highlightCell(theCell){
	theCell.style.backgroundColor='#FCFC9A';
}

function restoreCell(theCell){
	theCell.style.backgroundColor='#F7F710';
}

//IMAGE ROTATION

function rotateImage(){
	
	document["headerPhoto"].src = photos[rotatorCounter];
	document["headerTagline"].src = taglines[rotatorCounter];
	
	rotatorCounter++;
	
	if (rotatorCounter == photos.length) {
		rotatorCounter = 0;
	}
	
	var rotator=setTimeout("rotateImage()",(seconds * 1000));
	
}

function popWindow(winlink, width, height){
	portWindow = window.open(winlink, "popWin", "scrollbars=yes width=" + width + ",height=" + height)
	portWindow.focus()
}

function closeWindow(){
self.close()
}

// Script ends

