var dwidth=550;
var dheight=15; 
var dspeed=100; 
var expclass='class=leftaln';
mesaj='';


//Algorithm:
var jj=0;
var start=0;
function iens6exp(){
	jj++;
	if(jj<=mesaj.length){
		if (mesaj.substring(jj,jj+1)=="|") {
			start=jj+1;
			setTimeout("iens6exp()",dspeed*30);
		} else {
			iens6div.innerHTML=mesaj.substring(start,jj)+"_";
			setTimeout("iens6exp()",dspeed);
		}
	} else {
		jj=0;
		start=0;
		setTimeout("iens6exp()",dspeed*30);
	}

}
function ns4exp(){
	jj++;
	if(jj<=mesaj.length){
		if (mesaj.substring(jj,jj+1)=="|") {
			start=jj+1;
			setTimeout("iens6exp()",dspeed*30);
		} else {
			ns4div.document.write('<div'+expclass+'>'+mesaj.substring(start,jj)+"_"+'</div>');
			ns4div.document.close();
			setTimeout("ns4exp()",dspeed);
		}
	} else {
		jj=0;
		start=0;
		setTimeout("iens6exp()",dspeed*30);
	}
}
function startexp(){
	if(document.getElementById){
		iens6div=document.getElementById('expdiv');
		iens6div.innerHTML='';
		iens6exp();
	} else {
		if(document.all) {
			iens6div=expdiv;
			iens6div.innerHTML='';
			iens6exp();
		} else {	
			if(document.layers){
				ns4div=document.ns4expb0.document.ns4expb1;
				ns4div.document.write('');
				ns4div.document.close();
				ns4exp();
			}
		}
	}
}

function display_info(dbcolor, msg) {
	mesaj = msg;
	document.write('<table border=0 CELLSPACING="0" align="center" CELLPADDING="0"><tr><td width='+dwidth+'>');
	if(document.all||document.getElementById){
		document.write('<div '+expclass+' style="position:relative;width:'+dwidth+';height:'+dheight+';background-color:'+dbcolor+';"><span id="expdiv"></span></div>');
	}
	document.write('<ilayer id="ns4expb0" width=550 height=15>');
	document.write('<layer id="ns4expb1" width=550 height=15></layer>');
	document.write('</ilayer>');
	document.write('</td></tr></table>');
}
