function preloadImages() { //v3.0
  var d=document; 
  if(d.images){ 
	  if(!d.MM_p)
		  d.MM_p=new Array();
	  var i, j=d.MM_p.length, a= MM_preloadImages.arguments; 
	  for(i=0; i<a.length; i++)
		  if (a[i].indexOf("#")!=0){ 
			  d.MM_p[j]=new Image; 
			  d.MM_p[j++].src=a[i];
		  }
	  }
}

function showhide(id){
	  if(document.getElementById){
	    if(document.getElementById(id).style.display == "none")
	      document.getElementById(id).style.display = "block";
	    else
	      document.getElementById(id).style.display = "none";
	  }
	}

function bgColorChanger(id, sid, hex){
		document.getElementById(id).style.backgroundColor = hex;
		document.getElementById(sid).style.backgroundColor = hex;
	}
	function bgColorChanger_s(o,clr){
		o.style.backgroundColor = clr;
	}

	function seltab(bpref, hpref, id_max, selected) {
	  if (! document.getElementById) return;
	  for (i = 0; i <= id_max; i++) {
	    if (! document.getElementById(bpref + i)) continue;
	    if (i == selected) {
	      document.getElementById(bpref + i).style.display = "block";
	      document.getElementById(bpref + i).style.position = "";
	      document.getElementById(hpref + i).className = "open";
	    } else {
	      document.getElementById(bpref + i).style.display = "none";
	      document.getElementById(bpref + i).style.position = "absolute";
	      document.getElementById(hpref + i).className = "close";
	    }
	  }
	}
	function layer_open(id) {
		var target1;
		target1 = document.getElementById('layer_v' + id);
		target1.style.visibility='visible';
		target1.style.display='block';
		target1.style.zIndex=3;
	}

	function layer_clause(id) {
		var target1;
		target1 = document.getElementById('layer_v' + id);
		target1.style.visibility='hidden';
		target1.style.zIndex=1;
	}
