/*
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match(/gecko/)) {navigator.family = "gecko"}
if (window.navigator.userAgent.toLowerCase().indexOf('opera') != -1) {navigator.family = 'opera';}
toplevel="4";
*/
var ibox = 0;

function DoChanges(num)
{
if (num > 0)
{
	for (i=1; i<10; i++)
	{
//		if (i != num)
		{
			showSelect("box" + i,false);
		        classSelect("tab"+i,"tab");
		}
	}

 classSelect("tab"+num,"thistab");
//showSelect("box"+num,true);
}
//alert("change "+ibox+"->"+num);
if (ibox > 0) copySelect("box0","box"+ibox);
if (num > 0) {copySelect("box"+num,"box0");ibox = num;}

//toplevel++;
//		document.all[box].style.zIndex = toplevel;
//		document.getElementById(box).style.zIndex = toplevel;
}

function DoOver(the,iso)
{
	if (the.className != "thistab")
	{
		the.className= (iso ? "overtab" : "tab") ;
	}
}
function showSelect(divName,isOn) {
   var theSelect = null;
   if(document.getElementById) {
      theSelect=document.getElementById(divName);
      if(theSelect) theSelect.style.visibility = isOn ? "visible" : "hidden";
   } else if (document.all) {
      theSelect=document.all(divName);
      if(theSelect) theSelect.style.visibility = isOn ? "visible" : "hidden";
   } else if (document.layers) {
      theSelect=document[divName];
      if(theSelect) theSelect.visibility = isOn ? "show" : "hide";
   }
}
function classSelect(divName,isOn) {
   var theSelect = null;
   if(document.getElementById) {
      theSelect=document.getElementById(divName);
   } else if (document.all) {
      theSelect=document.all(divName);
   } 
   if(theSelect) theSelect.className = isOn;
}
function copySelect(divName,toName) {
   var theSelect = null;
   var toSelect = null;
   if(document.getElementById) {
      theSelect=document.getElementById(divName);
      toSelect=document.getElementById(toName);
   } else if (document.all) {
      theSelect=document.all(divName);
      toSelect=document.all(toName);
   } 
   if(theSelect && toSelect) toSelect.innerHTML = theSelect.innerHTML ;
//   alert (theSelect.innerHTML);
}

