dayArray = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monthArray = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
today = new Date;


function imageMouseOver(imagePath,imageFile,imageName) {
	document[imageName].src = imagePath + imageFile; }

function imageMouseOut(imagePath,imageFile,imageName) {
	document[imageName].src = imagePath + imageFile; }

function imageRollover(imagePath,imageFile,imageName) {
	document[imageName].src = imagePath + imageFile; }

function displayImage(imagePath,imageFile,imageName) {
	document[imageName].src = imagePath + imageFile; }
	
function menuMouseOver(object, styleClass) {
	object.className = styleClass; }

function menuMouseOut(object, styleClass) {
	object.className = styleClass; }

function menuRollover(object, styleClass) {
	object.className = styleClass; }

function menuOnClick(href) {
	document.location.href = href; }

var currentDivArray = new Array(3);
currentDivArray[0] = "";
currentDivArray['management'] = "Chamberlain";
currentDivArray['board'] = "Baratz";
	
function toggleDiv(newDiv,currentDivIndex) {
	var currentDiv = currentDivArray[currentDivIndex];
	if (currentDiv != "") {
		document.getElementById(currentDiv).style.display = "none";
	}
	if (newDiv != currentDiv) {
		currentDivArray[currentDivIndex] = newDiv;
		document.getElementById(newDiv).style.display = "";
	}
	else currentDivArray[currentDivIndex] = "";
}

function tabFeatures(imagePath, tabName) {
	if (tabName == "Business") {
		document["tabImageBusiness"].src = imagePath + "feature_tab_businessS.gif";
		document["tabImageTechnology"].src = imagePath + "feature_tab_technology.gif";
		document["featureImageHighlights"].src = imagePath + "feature_left_business.gif";
	}
	else {
		document["tabImageBusiness"].src = imagePath + "feature_tab_business.gif";
		document["tabImageTechnology"].src = imagePath + "feature_tab_technologyS.gif";
		document["featureImageHighlights"].src = imagePath + "feature_left_technology.gif";
	}
}	

var screenshot_window;

function openScreenshot(screenshot, w, h) {
if (screenshot_window == null || screenshot_window.closed) {
	params="location=no,directories=no,status=no,scrollbars=yes,resizable=yes" +
			",copyhistory=no,width=1024,height=768"; 
	screenshot_window=window.open("show_screenshot.htm",'screenshot_window',params);
	setTimeout("loadScreenshot('" + screenshot + "')", 100); } 
else {
	showScreenshot(screenshot);
	screenshot_window.focus();  }
}

function loadScreenshot(screenshot) {
	if (!screenshot_window.document.screenshot || screenshot_window.document.screenshot == null) {
		setTimeout("loadScreenshot('" + screenshot + "')", 100); }
	else {
		screenshot_window.document.screenshot.src = "images/" + screenshot; }
}
	
function showScreenshot(screenshot) {
	screenshot_window.document.screenshot.src = "images/" + screenshot; }
