var page_timer;
function set_opacity(name,alphaopa) {
  clearTimeout(page_timer);
  if(alphaopa > 100) alphaopa = 100;
  var obj = document.getElementById(name).style;
  if(obj.opacity) obj.opacity = (alphaopa / 100); 
  if(obj.filter) obj.filter = "alpha(opacity=" + alphaopa + ")";
  if(alphaopa < 100) {
    page_timer = setTimeout("set_opacity('"+name+"','"+(alphaopa+5)+"')",100);
  }
}
function clear_class() {
  var obj = document.getElementById("tablist");
  for(i=0;obj.childNodes.length>i;i++) {
    if(obj.childNodes[i].className == "highlight") obj.childNodes[i].className = "";
  }
}
function set_active(name) {
  var obj = document.getElementById("productcontent");
  for(i=0;obj.childNodes.length>i;i++) {
    if(obj.childNodes[i].style) {
      if(obj.childNodes[i].style.display == "block") {
        obj.childNodes[i].style.display = "none";
      }
    }
  }
  set_opacity("productcontent",0);
  document.getElementById(name).style.display = "block"
}
