<!--

// begin absolutely positioned scrollable area object scripts
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 speed=60;

var textloop, dataloop, timer;

function ConstructTextObject(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=document.getElementById(obj).style;

    this.css.top = "0px";

    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
    this.up=MoveTextAreaUp;this.down=MoveTextAreaDown;
    this.MoveTextArea=MoveTextArea; this.x; this.y;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}

function ConstructDataObject(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.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
    this.up=MoveDataAreaUp;this.down=MoveDataAreaDown;
    this.MoveDataArea=MoveDataArea; this.x; this.y;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}

function MoveTextArea(x,y){
    this.x=x;this.y=y
    this.css.left=this.x
 this.css.top=this.y+'px'
}

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

function MoveTextAreaDown(move){
    if(this.y>-this.scrollHeight+objTextContainer.clipHeight){
    this.MoveTextArea(0,(this.y)-move)
    if(textloop) setTimeout(this.obj+".down("+move+")",speed)

 }
}
function MoveTextAreaUp(move){
 if(this.y<0){
    this.MoveTextArea(0,(this.y)-move)
    if(textloop) setTimeout(this.obj+".up("+move+")",speed)
 }
}

function MoveDataAreaDown(move){
 if(this.y>-this.scrollHeight+objDataContainer.clipHeight){
    this.MoveDataArea(0,this.y-move)
    if(dataloop) setTimeout(this.obj+".down("+move+")",speed)
 }
}
function MoveDataAreaUp(move){
 if(this.y<0){
    this.MoveDataArea(0,this.y-move)
    if(dataloop) setTimeout(this.obj+".up("+move+")",speed)
 }
}

function PerformTextScroll(speed){
 if(text_initialised){
  textloop=true;
  if(speed>0) objTextScroller.down(speed)
  else objTextScroller.up(speed)
 }
}
function PerformDataScroll(speed){
 if(data_initialised){
  dataloop=true;
  if(speed>0) objDataScroller.down(speed)
  else objDataScroller.up(speed)
 }
}

function CeaseScroll(){
    textloop=false;
    dataloop=false;
    if(timer) clearTimeout(timer)
}
var text_initialised; var data_initialised;

function InitialiseScrollableTextArea(){
    objTextContainer=new ConstructTextObject('text_content')
    objTextScroller=new ConstructTextObject('text_inner','text_content')
    objTextScroller.MoveTextArea(0,0)
    objTextContainer.css.visibility='visible'
    text_initialised=true;
}

function InitialiseScrollableDataArea(){
    objDataContainer=new ConstructDataObject('textContainer')
    objDataScroller=new ConstructDataObject('textContent','textContainer')
    objDataScroller.MoveDataArea(0,0)
    objDataContainer.css.visibility='visible'
    data_initialised=true;
}
// end absolutely positioned scrollable area object scripts

function displayStatusMsg(msgStr) {
  status=msgStr;
  document.returnValue = true;
}

function toggle_arrow(which, status) {
  if (status=='_act')
 document.getElementById(which).src = document.getElementById(which).src.substring(0,document.getElementById(which).src.indexOf('arrow')) + which + "_act.gif";
  else
 document.getElementById(which).src = document.getElementById(which).src.substring(0,document.getElementById(which).src.indexOf('arrow')) + which + ".gif";
}


  -->
