


function imageOver(imgName, path){

	if (document.images) {
		document[imgName].src= path;
	}
}

function imageOut(imgName, path){

	if (document.images) {
		document[imgName].src = path;
	}
}

function popup(url, width, height){

	newWin = window.open(url, "" ,"width=" + width + ", height=" + height + ",toolbar=0,location=0,directories=no,status=0,menubar=0");

}

function showLayer(id){
	document.getElementById(id).style.visibility = "visible";
}

function hideLayer(id){
	document.getElementById(id).style.visibility = "hidden";
}

//------------------------------------------------------------------------------

var currentSetImage;

function setFocusImage(name, number, newImage, oldImage){
	if(document[name + "_" + number] != currentSetImage && currentSetImage){
		currentSetImage.src = oldImage;
	}
	else{
		// if current set image is not set we assume it's the first
		if(document[name + "_" + 1]){
			document[name + "_" + 1].src = oldImage;
		}
	}

	document[name + "_" + number].src = newImage;

	currentSetImage = document[name + "_" + number];
}



//------------------------------------------------------------------------------

function go(form){
	
	for(i = 0; i < form.length; i++){
		if(form[i].selected){ 		
			document.location = form[i].value;
		}
	}
	
}


//------------------------------------------------------------------------------



/*function test(top, sub, url){
	form = document.forms["go"];
	a = form["toplevel"];
	alert(a);

	document.forms["go"][toplevel].value = top;
	document.forms["go"][sublevel].value = sub;
	document.forms["go"].submit();


}*/


