//Basic Initialization Function which is called first to initialize the BBS structure
function initialize(){

	BROW();		//Draw dynamic DIV/Layer for Content scrolling
	sctype = scrolldirection;	//scroll direction Vertical/Horizontal
	if(document.getElementById("datamain"))
		marqueeheight=document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
	dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
	if(sctype=="horizontal"){					//Call Horizontal Script
		dataobj.style.left=50
		thelength=dataobj.offsetWidth
		scrolltestH()
	}else{										//Call Vertical Script
		dataobj.style.top=50
		thelength=dataobj.offsetHeight
		scrolltestV()
	}
}

//------------------------------------Vertical Scroller function which scrolls the content
function scrolltestV(){
	dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
	if (parseInt(dataobj.style.top)<dataobj.offsetHeight*(-1))
		dataobj.style.top=document.getElementById("datamain").style.height
	setTimeout("scrolltestV()",50)
}

//------------------------------------Horizontal Scroller function which scrolls the content
function scrolltestH(){
	dataobj.style.left=parseInt(dataobj.style.left)-scrollspeed
	if (parseInt(dataobj.style.left)<thelength*(-1))
		dataobj.style.left=50
	setTimeout("scrolltestH()",50)
}


