timeID = 10;
stcnt = 16;
msg = " w w w . M r B o g o . i t ";
wmsg = new Array(27);

wmsg[0]=msg;
blnk = "                                                                               ";
for (i=1; i<32; i++) {
   b = blnk.substring(0,i);
   wmsg[i]=""
   for (j=0; j<msg.length; j++)
      wmsg[i]=wmsg[i]+msg.charAt(j)+b;
}
 
function wiper() {
   if (stcnt > -1)
      str = wmsg[stcnt];
   else
      str = wmsg[0];
   if (stcnt-- < -40)
      stcnt=31;
   status = str;
   clearTimeout(timeID);
   timeID = setTimeout("wiper()",100);
}

wiper();



var message="M r B o g o ";
message=message.split(" ");

var step=8;
var stepbasic=8;

var x,y;
var flag=0;
var xpos=new Array()
for (i=0;i<=message.length-1;i++) {
	xpos[i]=-100;
}

var ypos=new Array()
for (i=0;i<=message.length-1;i++) {
	ypos[i]=-100;
}

var spacebetweenwords=new Array()
for (i=0;i<=message.length-1;i++) {
	spacebetweenwords[i]=stepbasic+step*message[i].length-1;
}

function handlerMM(e){
	x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX;
	y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY;
	flag=1;
}

function makesnake() {
	if (flag==1 && document.all) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+spacebetweenwords[i-1];
			ypos[i]=ypos[i-1];
    	}
		xpos[0]=x+stepbasic;
		ypos[0]=y;
	
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("span"+(i)+".style");
    		thisspan.posLeft=xpos[i];
			thisspan.posTop=ypos[i];
    	}
	}
	
	else if (flag==1 && document.layers) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+spacebetweenwords[i-1];
			ypos[i]=ypos[i-1];
    	}
		xpos[0]=x+stepbasic;
		ypos[0]=y;
	
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("document.span"+i)
    		thisspan.left=xpos[i]
			thisspan.top=ypos[i]
    	}
	}
		var timer=setTimeout("makesnake()",30)
}

for (i=0;i<=message.length-1;i++) {
    document.write("<span id='span"+i+"' style=\" FONT-SIZE: 12pt; VISIBILITY: visible; FONT-FAMILY: Garamond; POSITION: absolute; TOP: -50px\"><font color='0000ff'><b>"+message[i]+"</b></font></span>")
}







function MM_swapImgRestore() { 
	var i,
	x,
	a=document.MM_sr;

	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
		x.src=x.oSrc;
}

function MM_preloadImages() { 
	var d=document;
	if(d.images){
		if(!d.MM_p)
			d.MM_p=new Array();

		var i,j=d.MM_p.length,
		a=MM_preloadImages.arguments;
		for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){
			d.MM_p[j]=new Image;
			d.MM_p[j++].src=a[i];
		}
	}
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function pophelp(id) {
    var prop = "dialogWidth: 620px; dialogHeight: 300px; center: 1; scroll: 0; help: 1; status: 0; resizable: 1;";
    window.showModalDialog("popup_help.php?id="+id, null, prop);
}