 var collection_best_index, collection_best_tid;
 var collection_best_stat;

 collection_best_index = 1;
 collection_best_stat = 0;

 function onmouseover_best() {
    document.getElementById("collection_best_area").style.display = "";
	collection_best_stop();
 }

 function collection_best_rolling() {
    var pre_index, next_index, max_index;

	max_index = CollBestForm.max_index.value;

	pre_index = collection_best_index;
	if(collection_best_index != max_index) {
	   next_index = collection_best_index + 1;
	} else {
	   next_index = 1;
	}    

	document.getElementById("collection_best_"+pre_index).style.display = "none";
	document.getElementById("collection_best_"+next_index).style.display = "";
    collection_best_index = next_index;

	collection_best_tid = setTimeout(collection_best_rolling,5000);
 }

 function collection_best_start() {
	var stat;

    if(collection_best_stat==1) {
	   return;
	}
    
	stat = document.getElementById("collection_best_area").style.display;
	if(stat=="") {
	   return;
	}

	collection_best_stat = 1;
    collection_best_tid = setTimeout(collection_best_rolling,5000);
 }

 function collection_best_stop() {
	clearTimeout(collection_best_tid);
	collection_best_stat = 0;
 }

 collection_best_stat = 1;
 collection_best_tid = setTimeout(collection_best_rolling,5000);
