<!--//hidden

////////////////////////////////////////////////////////
// Coded by Jesse Knowles | http://www.jesseknowles.com
// description: Common functions used in most websites
// Author: jesse@jesseknowles.com
// Last Modified: 07-09-03
////////////////////////////////////////////////////////

//////////////////////
// Status Bar Message
//////////////////////

window.defaultStatus="COMPASS KNOWLEDGE : Bringing Distance Learning Closer";

////////////////////////////////////
// Popup window in center of screen
////////////////////////////////////

var popupDir = null; // this is to tell the popup that we are in the root dir

function popupWin(thisLink,popWidth,popHeight){
	if(thisDir == "sub"){ theURL = "../" + thisLink; }
	else{ theURL = thisLink; }
	var winleft = (screen.width - popWidth) / 2;
	var winUp = (screen.height - popHeight) / 2;
	window.open(theURL, 'popup','toolbar=no, scrollbars=no,width='+popWidth+',height='+popHeight+',left='+winleft+',top='+winUp);
}


////////////////////////////////////
// Image Rollover
////////////////////////////////////

var thisDir = "sub"; // default dir
var imageDir = "images/";

function imageOver(option, image){
	if(thisDir == "sub"){ theURL = "../" + imageDir; }
	else{ theURL = imageDir; }
	thisOption = eval("document." + option);
	document.outImage = thisOption.src;
	document.thisOption = thisOption;
	thisOption.src = theURL + image;
}

function imageOut(){
	document.thisOption.src = document.outImage;
}


//////////////////
// show or hide id
//////////////////

function showHide(ctrl){
	if(document.getElementById(ctrl).style.display == "none"){ document.getElementById(ctrl).style.display = ""; }
	else{ document.getElementById(ctrl).style.display = "none"; }
}

// -->