var bw;
function getBrowserType() { 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6) 
    this.name=this.ns4?'ns4':this.ns6?'ns6':this.ie4?'ie4':this.ie5?'ie5':this.ie6?'ie6':'x';
    return this 
} 
bw=new getBrowserType();
var pnlSpeed=30 
var pnlLoop, pnlTimer
var pnlDistance = 2;
var pnlDirection = 'D';
function ConstructPnlObject(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.scrollWidth=bw.ns4?this.css.document.width:this.el.offsetWidth 
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
    this.clipWidth=bw.ns4?this.css.clip.width:this.el.offsetWidth 
    this.up=pnlMoveAreaUp;this.down=pnlMoveAreaDown; 
    this.MoveArea=pnlMoveArea; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function pnlMoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y 
} 
function pnlMoveAreaDown(){ 
	//alert('trying to move down');
	if(this.x>-this.scrollWidth+objPnlContainer.clipWidth){ 
    this.MoveArea(this.x-pnlDistance,0) 
    if(pnlLoop) setTimeout(this.obj+".down()",pnlSpeed) 
	} 
//	if(this.y>-this.scrollHeight+objPnlContainer.clipHeight){ 
//    this.MoveArea(0,this.y-pnlDistance) 
//    if(pnlLoop) setTimeout(this.obj+".down()",pnlSpeed) 
//	} 
} 
function pnlMoveAreaUp(){ 
	//alert('trying to move up');
	if(this.x<0){ 
    this.MoveArea(this.x+pnlDistance, 0) 
    if(pnlLoop) setTimeout(this.obj+".up()",pnlSpeed) 
	} 
//	if(this.y<0){ 
//    this.MoveArea(0,this.y+pnlDistance) 
//    if(pnlLoop) setTimeout(this.obj+".up()",pnlSpeed) 
//	} 
} 
function pnlPerformScroll(n){ 
	if(pnlInitialised){ 
		pnlLoop=true; 
		if (n>0) {
			objPnlScroller.down();
		} else {
			objPnlScroller.up();
		}
	} 
} 
function pnlCeaseScroll(){ 
    pnlLoop=false 
    if(pnlTimer) clearTimeout(pnlTimer) 
}
var pnlInitialised; 
//var objPnlScroller = new Array(2);
function pnlInitialiseScrollableArea(){ 
	
    objPnlContainer=new ConstructPnlObject('Panel');
		objPnlScroller=new ConstructPnlObject('PanelText','Panel');
		objPnlScroller.MoveArea(0,0);
		objPnlContainer.css.visibility='visible';
    pnlInitialised=true; 
		//pnlLoop=true; 
    //window.setTimeout('pnlPerformScroll()',pnlSpeed);
    //alert('Initialised: '+objPnlContainer.clipWidth+':'+objPnlScroller.scrollWidth);
} 
