function showsub_a(id,a,b){
for (i = a;i<b;i++){
	document.getElementById("tab_a"+i).className = "";
	document.getElementById("sub_a"+i).style.display = "none";
}
	document.getElementById("tab_a"+id).className = "selected";
	document.getElementById("sub_a"+id).style.display = "";
}

function setTab(m,n){ 
var tli=document.getElementById("menu"+m).getElementsByTagName("li"); 
var mli=document.getElementById("main"+m).getElementsByTagName("ul"); 
for(i=0;i<tli.length;i++){ 
tli[i].className=i==n?"b-hover":"b-out"; 
mli[i].style.display=i==n?"block":"none"; 
} 
} 

window.onload=function()
{
 var o=document.getElementById('infozone');
 window.setInterval(function(){scrollup(o,20,0);},2000);
}

function scrollup(o,d,c)
{
 if(d==c){
  var t=o.firstChild.cloneNode(true);
  o.removeChild(o.firstChild);
  o.appendChild(t);
  t.style.marginTop=o.firstChild.style.marginTop='0px';
 }
 else{
  var s=3,c=c+s,l=(c>=d?c-d:0);
  o.firstChild.style.marginTop=-c+l+'px';
  window.setTimeout(function(){scrollup(o,d,c-l)},100);
 }
}
