function writeText(wText){
	wText = eval (wText);
		
	var outText = '<table width="330" border="0" cellspacing="0" cellpadding="0">\n';
	outText += '<tr>\n';
	outText += '<td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">' + wText +'<\/font><\/td><\/tr>\n';
	outText += '<\/table>\n';

	if (document.all){
		divContent.innerHTML  = outText;
	}else{
		document.layers['divOuter'].document.layers['divContent'].document.open();
		document.layers['divOuter'].document.layers['divContent'].document.write(outText);
		document.layers['divOuter'].document.layers['divContent'].document.close();	
	}
}



var amount = 3;		// more pix = faster scrolling
var speed = 35;

var timerID;
var wLayer = "divContent";


function getBrowser(){ 
    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 
} 
var bw=new getBrowser(); 
 
 
function createObject(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.y = this.css.top;
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 

function doLoad(){
    done=false;
    objOuter=new createObject('divOuter') 
    objContent=new createObject('divContent','divOuter') 
    if(document.getElementById) { // NN6 & IE 5.x
        	content = document.getElementById(wLayer).style;
         }

	else if(document.all) { // IE 4.x
        	content = document.all[wLayer].style;
         }

	else if(document.layers){ // NN 4.x
    		content = document.layers['divOuter'].document.layers[wLayer];
    	}
    done=true;
}


function scrollUp(){
	timerID=setTimeout("actualScrollUp()",speed);		
}

function actualScrollUp(){
	if (done){
		if (parseInt(content.top )>- objContent.scrollHeight + objOuter.clipHeight) {
			content.top  = parseInt(content.top) - amount;
			scrollUp();
		}else{
			stopTimer();
		}
	}
}

function scrollDown(){
	timerID=setTimeout("actualScrollDown()",speed);
}

function actualScrollDown(){
	if (done){

		if (parseInt(content.top) != 0){
			content.top  = parseInt(content.top) + amount;
			scrollDown();
		}else{
			stopTimer();
		}
	}
}

function stopTimer() {
	clearTimeout(timerID);
}