<!--
// JavaScript Document - Scrolling News Areas

function verifyCompatibleBrowser(){ 
	this.ver=navigator.appVersion 
	this.dom=document.getElementById?1:0 
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
	this.ie4=(document.all && !this.dom)?1:0; 
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0; 
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
	return this 
} 

bw=new verifyCompatibleBrowser() 

var loop, timer, pr_step, events_step, news_step, events_start, news_start, lstart, speed
lstart=160
eventsstart=20
newsstart=0 
loop=true  
speed=60 
pr_step=1 
news_step=1 
events_step=1 

function ConstructObject(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.' 
	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
  	this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
	this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
	this.eventsScroll=eventsScroll; 
	this.newsScroll=newsScroll; 
	this.moveIt=b_moveIt; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
 this.up=MoveAreaUp;this.down=MoveAreaDown; 
 this.MoveArea=MoveArea; this.x; this.y; 

} 
function b_moveIt(x,y){ 
	this.x=x;this.y=y 
	this.css.left=this.x 
	this.css.top=this.y 
} 

//Makes the Events object scroll up 
function eventsScroll(speed){ 
	if(this.y>-this.scrollHeight){ 
		this.moveIt(0,this.y-events_step) 
		setTimeout(this.obj+".eventsScroll("+speed+")",speed) 
	}else if(loop) { 
		this.moveIt(0,lstart) 
		eval(this.obj+".eventsScroll("+speed+")") 
	  } 
} 

//Makes the News object scroll up 
function newsScroll(speed){ 
	if(this.y>-this.scrollHeight){ 
		this.moveIt(0,this.y-news_step) 
		setTimeout(this.obj+".newsScroll("+speed+")",speed) 
	}else if(loop) { 
		this.moveIt(0,lstart) 
		eval(this.obj+".newsScroll("+speed+")") 
	  } 
} 

//Makes the object 
var initialized; 

function InitEventsScrollArea(){ 
	objContainer=new ConstructObject('EventsContainer') 
	objContent=new ConstructObject('EventsScroller','EventsContainer') 
	objContent.moveIt(0,eventsstart) 
	objContainer.css.visibility='visible' 
	objContent.eventsScroll(speed) 
} 

function InitNewsScrollArea(){ 
	objContainer=new ConstructObject('NewsContainer') 
	objContent=new ConstructObject('NewsScroller','NewsContainer') 
	objContent.moveIt(0,lstart) 
	objContainer.css.visibility='visible' 
	objContent.newsScroll(speed) 
} 

function MoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y 
} 
 
function MoveAreaDown(move){ 
	if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".down("+move+")",speed) 
	} 
} 

function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".up("+move+")",speed) 
	} 
} 
 
function PerformScroll(speed){ 
	if(initialized){ 
		loop=true; 
		if(speed>0) objScroller.down(speed) 
		else objScroller.up(speed) 
	} 
} 

function CeaseEventsScroll(){ 
    events_step=0 
    if(timer) clearTimeout(timer) 
} 

function EventsScrollDown(){ 
    events_step=-15 
    if(timer) clearTimeout(timer) 
}

function EventsScrollUp(){ 
    events_step=15 
    if(timer) clearTimeout(timer) 
}

function ResumeEventsScroll(){ 
    events_step=1 
    if(timer) clearTimeout(timer) 
} 

function CeaseNewsScroll(){ 
    news_step=0 
    if(timer) clearTimeout(timer) 
} 

function NewsScrollDown(){ 
    news_step=-15 
    if(timer) clearTimeout(timer) 
} 

function NewsScrollUp(){ 
    news_step=15 
    if(timer) clearTimeout(timer) 
}

function ResumeNewsScroll(){ 
    news_step=1 
    if(timer) clearTimeout(timer) 
} 

function RestartEventsScroll(){ 
    objContent.moveIt(0,lstart) 
    if(timer) clearTimeout(timer) 
}

function RestartNewsScroll(){ 
    objContent.moveIt(0,lstart) 
    if(timer) clearTimeout(timer) 
}

// end absolutely positioned scrollable area object scripts
-->