
var n=0;
var showNum = document.getElementById("num");
function killErrors() {
return true;
}
window.onerror = killErrors;

function Mea(value){
	n=value;
	setBg(value);
	plays(value);
	}
function setBg(value){
	for(var i=0;i<10;i++){
	   if(value==i){
	     document.getElementById("a"+value).className='li1';      
			}	else{	
			 document.getElementById("a"+i).className='li0';
			}  
	} 
}
function plays(value){ 
		 for(i=0;i<10;i++){
			  if(i==value){			  
			  	document.getElementById("pc_"+value).style.display="block";
			  	//alert(document.getElementById("pc_"+value).style.display)
			  }else{
			    document.getElementById("pc_"+i).style.display="none";			    
			  }			
		}	
}


function clearAuto(){clearInterval(autoStart)}
function auto(){
	n++;
	if(n>10)n=0;
	Mea(n);
} 
function sub(){
	n--;
	if(n<0)n=10;
	Mea(n);
} 
function setAuto(){}