var pause = false;
var startId = 1;
 
function set_tab(id){
	for( i=0;i<=4;i++ ){
		if( id == i){
			$("#con_tophome_"+i).css("display","block");
			$("#tab_tophome_"+i).attr("class","a2");
		} else {
			$("#con_tophome_"+i).css("display","none");
			$("#tab_tophome_"+i).attr("class","a1");
		}
	}
}
function switch_tab(){
	if(pause){
		return;
	}
	if( startId > 4 ){
		startId = 0;
	}
	set_tab(startId);
	startId++;
}
setInterval('switch_tab()', 5000);
