function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser()
current_div=1

function showhide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	if(obj.display=='block' || obj.display=='block') obj.display='none'
	else obj.display='block'
}

function show(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.display='block'
}

function hide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.display='none'
}

function updateall(div){
	if(div!='new1') hide('new1');
	if(div!='new2') hide('new2');
	if(div!='new3') hide('new3');
	if(div!='new4') hide('new4');
	if(div!='new5') hide('new5');
	if(div!='new6') hide('new6');
	if(div!='new7') hide('new7');
	if(div!='new8') hide('new8');
	if(div!='new9') hide('new9');
	if(div!='new10') hide('new10');
	showhide(div);
}

function nextdiv(){
	current_div++;
	if(current_div>10) current_div=1;
	updateall('new'+current_div);
	setTimeout('nextdiv()',2000);
}

function init(){
	updateall('new1');
	setTimeout('nextdiv()',2000);
}
