/*lstart=100
loop=true
speed=40
pr_step=1

function makeObj(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'
	this.el= document.getElementById(obj);
	this.css= document.getElementById(obj).style;
	this.scrollHeight = 450;//this.css.height;
	this.newsScroll=newsScroll;
	this.moveIt=b_moveIt; this.x; this.y;
	this.obj = obj + "Object"
	eval(this.obj + "=this")
	return this
}
function b_moveIt(x,y){
	this.x=x;this.y=y
	this.css.left=this.x
	this.css.top=this.y
}
function newsScroll(speed){
	if(this.y>-this.scrollHeight){
		this.moveIt(0,this.y-pr_step)
		setTimeout(this.obj+".newsScroll("+speed+")",speed)
	}else if(loop) {
		this.moveIt(0,lstart)
		eval(this.obj+".newsScroll("+speed+")")
	}
}
function newsScrollInit(){
	oNewsCont=new makeObj('scrolling_container');
	oNewsScroll=new makeObj('scrolling_text','scrolling_container');
	oNewsScroll.moveIt(0,lstart);
	oNewsCont.css.visibility='visible';
	oNewsScroll.newsScroll(speed);
}*/

var scrollDelay=1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var scrool_speed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pause_time=1 //Pause marquee onMousever (0=no. 1=yes)?


var copy_speed=scrool_speed
var pause_speed=(pause_time==0)? copy_speed: 0
var actualheight=''

function scroll_box(){
if (parseInt(cross_box.style.top)>(actualheight*(-1)+8))
cross_box.style.top=parseInt(cross_box.style.top)-copy_speed+"px"
else
cross_box.style.top=parseInt(boxheight)+110+"px"
}

function initialize_box(){
    cross_box=document.getElementById("scrolling_text");
    if (cross_box!=undefined){
    cross_box.style.top=0;
    boxheight=document.getElementById("scrolling_container").offsetHeight
    actualheight=cross_box.offsetHeight
    if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
    cross_box.style.height=boxheight+"px"
    cross_box.style.overflow="scroll"

    return true;
    }
   setTimeout('lefttime=setInterval("scroll_box()",30)', scrollDelay);

  }
  else return false;
}

    if (window.addEventListener)
    window.addEventListener("load", initialize_box, false)
    else if (window.attachEvent)
    window.attachEvent("onload", initialize_box)
    else if (document.getElementById)
    window.onload=initialize_box



