	var selected_icon = null;
	var picture = null;

	function rollover(number, onoff, picture){
		if(selected_icon != number){ 
			if(picture==null){
				document.images[number].src="images/home/" + number +"_"+ onoff +".jpg";
				
			}
			else{
				document.images[number].src=picture +"_"+ onoff +".jpg";
			}
		}
	}

	function openWindow(location,width,height) {
		  newWin=window.open(location,'picture',"width=" + width + ",height=" + height + ",resizable=0,scrollbars=0,top=0,left=0");
		  newWin.focus();		
	}
		
		var last_layer = null;
		var curr_layer = null;
		var comply, fail;

		function checkBrowser(){
			comply = (navigator.userAgent.indexOf("Gecko")    > 0) ? 1 : 0;
			if (!comply){
				comply = (navigator.userAgent.indexOf("MSIE")    > 0) ? 1 : 0;
			} 
		}
		
		function getLayer(name) {
		  if (!comply){
		    return eval('document.layers[\'' + name + '\']');
				}
		  else {
				if(document.all){
		      return eval('document.all.' + name);
					}
				else if(document.getElementById)
					return eval(document.getElementById(name))
				}	
		  return null;
		}
		function selected(layer){
			checkBrowser();
			curr_layer = getLayer(layer);
			if (layer != 'blank') {
					if(last_layer == null){
							if (!comply){
									curr_layer.visibility = "show";
									}
							else {
									curr_layer.style.visibility = "visible";
									}
							last_layer = curr_layer;
							}
					else if (curr_layer != last_layer){
							if (!comply){
									last_layer.visibility = "hide";
									curr_layer.visibility = "show";
									}
							else {
									last_layer.style.visibility = "hidden";
									curr_layer.style.visibility = "visible";
									}
							last_layer = curr_layer;
							}
					}
			else {
					if (last_layer != null){
							if (!comply){
									last_layer.visibility = "hide";
									}
							else {
									last_layer.style.visibility = "hidden";
									}
							}
					}
			}
