// JavaScript Document

if (iens6){
var crossobj2=document.getElementById? document.getElementById("content2") : document.all.content2
var content2height=crossobj2.offsetHeight
}
else if (ns4){
var crossobj2=document.nscontainer.document.nscontent2
var content2height=crossobj2.clip.height
}
var mh2 = 250;
function movedown2(){
if (iens6&&parseInt(crossobj2.style.top)>=(content2height*(-1)+mh2))
crossobj2.style.top=parseInt(crossobj2.style.top)-speed+"px"
else if (ns4&&crossobj2.top>=(content2height*(-1)+mh2))
crossobj2.top-=speed
movedownvar2=setTimeout("movedown2()",55)
}

function moveup2(){
if (iens6&&parseInt(crossobj2.style.top)<= -speed)
crossobj2.style.top=parseInt(crossobj2.style.top)+speed+"px"
else if (ns4&&crossobj2.top<= -speed)
crossobj2.top+=speed
moveupvar2=setTimeout("moveup2()",55)

}

function getcontent2_height(){
	if (iens6){
		content2height=crossobj2.offsetHeight;
		//alert(content2height);
		// hide the scroll buttons if the content does not need scroll
		if (content2height < 260){
			document.getElementById("bsc1").style.visibility = "hidden";
			document.getElementById("bsc2").style.visibility = "hidden";
		}
	} else if (ns4) {
		document.nscontainer.document.nscontent2.visibility="show"
	}
}
window.onload = function()
{
	getcontent2_height();
	getcontent_height();
}
//window.onload=getcontent2_height
