// JavaScript Document

function tdRollover(tdid, onoff)
{
	if(onoff == 0){
		document.getElementById(tdid).style.backgroundColor='#99FFCC';	
	}else if(onoff == 1){
		document.getElementById(tdid).style.backgroundColor='#EDEDED';	
	}
}


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.visibility = "visible";
      document.getElementById(bpref + i).style.position = "";
      document.getElementById(hpref + i).className = "open";
    } else {
      document.getElementById(bpref + i).style.visibility = "hidden";
      document.getElementById(bpref + i).style.position = "absolute";
      document.getElementById(hpref + i).className = "close";
    }
  }
}

function onoff(dir, id, id_, ext){
	var filename = document.getElementById(id).src;
	var filename_ = document.getElementById(id_).src;
	if(filename.match('_on') == null){ document.getElementById(id).src = dir + id + '_on.' + ext; }else{ document.getElementById(id).src = dir + id + '_off.' + ext; }
	if(filename_.match('_on') == null){ document.getElementById(id_).src = dir + id_ + '_on.' + ext; }else{ document.getElementById(id_).src = dir + id_ + '_off.' + ext; }	
}