var selectedImg = "";
var selectedImg2 = "";
var selectedImg3 = "";

////////////////////////////////////////////////////////

function preLoadImages(ary) {
	var imgAry = new Array();

	for(var i=0; i<ary.length; i++) {
		imgAry[i] = new Image;
		imgAry[i].src = imgPath + ary[i] + "_over.gif";
	}
}

///////////////////////////////////////////////////////
function mover(name) {

	if (document.images) {
		if ( (name != selectedImg) && (name != selectedImg2) && (name != selectedImg3)) {
			document.images[name].src = imgPath + "/" +  name + "_over.gif";
		}
	}
}
///////////////////////////////////////////////////////
function mout(name) {
	if (document.images) {
		if ( (name != selectedImg) && (name != selectedImg2) && (name != selectedImg3)) {
			document.images[name].src = imgPath + "/" + name + ".gif";
		}
	}
}

///////////////////////////////////////////////////////
function moverjpg(name) {

	if (document.images) {
		if ( (name != selectedImg) && (name != selectedImg2) ) {
			document.images[name].src = imgPath + "/" +  name + "_over.jpg";
		}
	}
}

///////////////////////////////////////////////////////
function moutjpg(name) {
	if (document.images) {
		if ( (name != selectedImg) && (name != selectedImg2) ) {
			document.images[name].src = imgPath + "/" + name + ".jpg";
		}
	}
}

///////////////////////////////////////////////////////
function selectDefaultImage(nameAry) {
	if (document.images) {
		for (var i=0; i<nameAry.length; i++) {
			name = nameAry[i];
			document.images[name].src = imgPath + "/" + name + "_over.gif";
		}
	}
}

/////////////////////////////////////////////////////////
function addToFavorites() {
	var url = document.location.href;
	var who = "HarperCollins Careers"
	
	var ver = navigator.appName
	var num = parseInt(navigator.appVersion)
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
	   window.external.AddFavorite(url,who);
	} 
	else {
		alert("Please press Ctrl+D to add to favorites.");
	} 
}

/////////////////////////////////////////////////////////
function NewWin(url,iwidth,iheight,scroll) {
	var myWin = window.open(url, "NewWin", "width="+iwidth+",height="+iheight+",scrollbars=yes,location=yes,toolbar=yes,menubar=yes,resizable=yes");
}

function NewTimeline(url,iwidth,iheight) {
	var myWin = window.open(url, "TimeWin", "width="+iwidth+",height="+iheight+",scrollbars=no,location=no,toolbar=no,menubar=no,resizable=no");
}

function MovWin(url,iwidth,iheight) {
	var myWin = window.open(url, "MovWin", "width="+iwidth+",height="+iheight+",scrollbars=no,location=no,toolbar=no,menubar=no,resizable=no");
}

theAddress="message.html";
function popCEO() {
reWin = window.open(theAddress,'determined','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=790,height=450,top=15,left=100');
}