var speed =3
var speed1=3

if (iens6){
  var crossobj =document.getElementById? document.getElementById("content")  : document.all.content
  var crossobj1=document.getElementById? document.getElementById("content1") : document.all.content1
  var contentheight =crossobj.offsetHeight
  var contentheight1=crossobj1.offsetHeight
}
else if (ns4){
  var crossobj =document.nscontainer.document.nscontent
  var crossobj1=document.nscontainer1.document.nscontent1
  var contentheight =crossobj.clip.height  
  var contentheight1=crossobj1.clip.height
}


function movedown(){
  if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+136))
	crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
  else if (ns4&&crossobj.top>=(contentheight*(-1)+176))
	crossobj.top-=speed
  movedownvar=setTimeout("movedown()",20)
}

function movedown1(){
  if (iens6&&parseInt(crossobj1.style.top)>=(contentheight1*(-1)+136))
	crossobj1.style.top=parseInt(crossobj1.style.top)-speed1+"px"
  else if (ns4&&crossobj1.top>=(contentheight1*(-1)+176))
	crossobj1.top-=speed1
  movedownvar=setTimeout("movedown1()",20)
}



function moveup(){
  if (iens6&&parseInt(crossobj.style.top)<=0)
	crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
  else if (ns4&&crossobj.top<=0)
	crossobj.top+=speed
  moveupvar=setTimeout("moveup()",20)
}
				
function moveup1(){
  if (iens6&&parseInt(crossobj1.style.top)<=0)
	crossobj1.style.top=parseInt(crossobj1.style.top)+speed1+"px"
  else if (ns4&&crossobj1.top<=0)
	crossobj1.top+=speed1
  moveupvar=setTimeout("moveup1()",20)
}






function getcontent_height(){
  if (iens6)
	contentheight=crossobj.offsetHeight
  else if (ns4)
	document.nscontainer.document.nscontent.visibility="show"
}

function getcontent_height1(){
  if (iens6)
	contentheight1=crossobj1.offsetHeight
  else if (ns4)
	document.nscontainer1.document.nscontent1.visibility="show"
}

window.onload=getcontent_height
window.onload=getcontent_height1
				

				

			  

