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

function scrolldown()
{
	if(window.scrolltimerup)
		clearTimeout(scrolltimerup)
	if(iens6&&parseInt(contentobj.style.top)>=(contentheight*(-1)+100))
		contentobj.style.top=parseInt(contentobj.style.top)-step
	else if(iens6&&contentheight==0)
		contentobj.style.top=parseInt(contentobj.style.top)-step
	else if(ns4&&contentobj.top>=(contentheight*(-1)+100))
		contentobj.top-=step
	scrolltimerdown = setTimeout("scrolldown()",scrollspeed)
}
function scrollup()
{
	if(window.scrolltimerdown)
		clearTimeout(scrolltimerdown)
	if(iens6&&parseInt(contentobj.style.top)<=0)
		contentobj.style.top=parseInt(contentobj.style.top)+step
	else if(ns4&&contentobj.top<=0)
	{ 
		contentobj.top-=step
		contentobj.top+=step
	}
	scrolltimerup = setTimeout("scrollup()",scrollspeed)	
}
function stopall()
{
	if(window.scrolltimerup)
		clearTimeout(scrolltimerup)
	if(window.scrolltimerdown)
		clearTimeout(scrolltimerdown)
}
