
var imgPath = "../images";
var selectedImg = "";
var selectedImg2 = "";

////////////////////////////////////////////////////////

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";
		//window.status = "loading: " + imgPath + ary[i] + "_over.gif";
	}
}

///////////////////////////////////////////////////////
function mover(name) {

	if (document.images) {
		if ( (name != selectedImg) && (name != selectedImg2) ) {
			document.images[name].src = imgPath + "/" +  name + "_over.gif";
		}
	}
}

///////////////////////////////////////////////////////
function mout(name) {
	if (document.images) {
		if ( (name != selectedImg) && (name != selectedImg2) ) {
			document.images[name].src = imgPath + "/" + name + ".gif";
		}
	}
}

///////////////////////////////////////////////////////
function mover2(name) {

	if (document.images) {
			document.images[name].src = "images/" +  name + "_over.gif";
	}
}

///////////////////////////////////////////////////////
function mout2(name) {
	if (document.images) {
			document.images[name].src = "images/" + name + ".gif";
	}
}

///////////////////////////////////////////////////////
function selectDefaultImage(imgName) {
	if (document.images) {
			document.images[imgName].src = imgPath + "/" + imgName + "_over.gif";
	}

}

////////////////////////////////////////////////////////
function  newWin(theURL, winName, iwidth, iheight) {
	var myWin = window.open(theURL, winName, "width="+iwidth+",height="+iheight+",scrollbars=no,status=no,menu=no");

}

////////////////////////////////////////////////////////
function  newWin(theURL, winName, iwidth, iheight, features) {
	var myWin = window.open(theURL, winName, "width="+iwidth+",height="+iheight+","+features);

}

