var step=1

if (iens6){
	document.write('</div></div>')
	var contentobj=document.getElementById? document.getElementById("contentme") : document.all.content
	var contentheight=contentobj.offsetHeight;
	var containerobj=document.getElementById? document.getElementById("container") : document.all.container
	if (document.getElementById&&!document.all){
   		step=1
	}
}
else if(ns4){
	var contentobj=document.nscontainer.document.nscontent
	var containerobj=document.nscontainer
	var contentheight=contentobj.clip.height 
}

var scrolltimer;

function fward() {
	//if(window.scrolltimerup){
//		clearTimeout(scrolltimerup)
	clearTimeout(scrolltimer)
	//}
	if(iens6&&parseInt(contentobj.style.top)>=(contentheight*(-1)+parseInt(containerobj.style.height))){
		contentobj.style.top=parseInt(contentobj.style.top)-step
	}else if(ns4&&contentobj.top>=(contentheight*(-1)+containerobj.height)){
		contentobj.top-=step
	}
	scrolltimer = setTimeout("fward()",scspeed)
}


function getcontent_height(){
	contentheight=contentobj.offsetHeight
	//alert (contentheight);
	fward();
}

