function autoChange(){
var count = 0;
var delay = 2000;
var tab = document.getElementById("tab").getElementsByTagName("li");	
var con = document.getElementById("ban").getElementsByTagName("li");
function setMenu(no){
	for(var i = 0; i < tab.length; i++){
		tab[i].className = '';
	}
	tab[no].className = 'cur';
}
function setTab(no){
	for(var i = 0; i < con.length; i++){
		con[i].style.display = 'none';
	}
	con[no].style.display = '';
	setMenu(no);
	count = no;
}
function runTab(){
	if(count < tab.length - 1){
		count++;
	}else{
		count = 0;
	}
	setTab(count);
}
var interval = window.setInterval(runTab, delay);
  for(var i = 0; i < tab.length; i++){
	con[i].onmouseover = tab[i].onmouseover = function(){
		window.clearInterval(interval);	
	}
	con[i].onmouseout = tab[i].onmouseout = function(){
		interval = window.setInterval(runTab, delay);
	}
  }	
}


