function verifyCompatibleBrowser(){ 
    this.a_ver=navigator.appVersion 
    this.a_dom=document.getElementById?1:0 
    this.a_ie5=(this.a_ver.indexOf("MSIE 5")>-1 && this.a_dom)?1:0; 
    this.a_ie4=(document.all && !this.a_dom)?1:0; 
    this.a_ns5=(this.a_dom && parseInt(this.a_ver) >= 5) ?1:0; 
 
    this.a_ns4=(document.layers && !this.a_dom)?1:0; 
    this.a_bw=(this.a_ie5 || this.a_ie4 || this.a_ns4 || this.a_ns5) 
    return this 
} 
var a_bw=new verifyCompatibleBrowser() 
 
 
var speed=50 
 
var loop, timer
 
function ConstructObject(a_obj,a_nest){ 
    a_nest=(!a_nest) ? '':'document.'+a_nest+'.' 
    this.el=a_bw.a_dom?document.getElementById(a_obj):a_bw.a_ie4?document.all[a_obj]:a_bw.a_ns4?eval(a_nest+'document.'+a_obj):0; 
    this.css=a_bw.a_dom?document.getElementById(a_obj).style:a_bw.a_ie4?document.all[a_obj].style:a_bw.a_ns4?eval(a_nest+'document.'+a_obj):0; 
    this.scrollWidth=a_bw.a_ns4?this.css.document.width:this.el.offsetWidth  
    this.clipWidth=a_bw.a_ns4?this.css.clip.width:this.el.offsetWidth 
    this.left=MoveAreaUp;this.right=MoveAreaDown; 
    this.MoveArea=MoveArea; this.a_x; this.a_y; 
    this.obj = a_obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(a_x,a_y){ 
    this.a_x=a_x;this.a_y=a_y 
    this.css.left=this.a_x 
    this.css.top=this.a_y
} 
 
function MoveAreaDown(move){ 
	if(this.a_x>-this.scrollWidth+objContainer.clipWidth){ 
    this.MoveArea(this.a_x-move,0) 
    if(loop) setTimeout(this.obj+".right("+move+")",speed) 
	} 
} 
function MoveAreaUp(move){ 
	if(this.a_x<0){ 
    this.MoveArea(this.a_x-move,0) 
    if(loop) setTimeout(this.obj+".left("+move+")",speed) 
	} 
} 
 
function PerformScroll(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller.right(speed) 
		else objScroller.left(speed) 
	} 
} 
 
function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 
var initialised; 
function InitialiseScrollableArea(id){ 
    objContainer=new ConstructObject('divContainer' + id) 
    objScroller=new ConstructObject('divContent' + id,'divContainer' + id) 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 
