var stringa="Call trans opt: received. 2-19-98 13:24:18 REC:Log>"

var s=""

var hellotext=""
var thetext=""
var x=2
var started=false
var step=-1
var times=1

var telefono="(302)5550690"

Antilamer()

function GoZ(URL)
{

}

function separatore()
{
	document.write ("<br>");
}
function Rientro(n)
{
	for (i=1;i<=n;i++) {
		document.write("<IMG SRC=\"/mindstorm/img/vuoto.jpg\">");
	}
}

function intestapagina(titolo)
{
	document.write("<center>");
	document.write("<br>");
	document.write("<table width=200 border=0 cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr>");
	document.write("<td width=10 height=10 background=\"/mindstorm/img/ang_as.jpg\"></td>");
	document.write("<td width=180 height=10 background=\"/mindstorm/img/ang_alto.jpg\"></td>");
	document.write("<td width=10 height=10 background=\"/mindstorm/img/ang_ad.jpg\"></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td width=10 height=10 background=\"/mindstorm/img/ang_s.jpg\"></td>");
	document.write("<td width=180 height=10 align=center><font size=2 color=\"#FFFF00\"><b>" + titolo + "</b></font></td>");
	document.write("<td width=10 height=10 background=\"/mindstorm/img/ang_d.jpg\"></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</center>");
}

function workinprogress()
{
	document.write("<center>");
	document.write("<table width=100% height=80% border=0 cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr>");
	document.write("<td width=100% height=100% align=center valign=center>");
	document.write("<IMG SRC=\"/mindstorm/img/schiva_questa.jpg\" WIDTH=\"325\" HEIGHT=\"200\" BORDER=0 ALT=\"Dodge this !!!\"><br><br>");
	document.write("<b>Coming soon</b>");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</center>");
}

function counter()
{
	//window.open("fspn.htm","hdn");
}

function stile()
{
	document.write("<style type=\"text/css\">");
	document.write("BODY {");
	document.write("SCROLLBAR-FACE-COLOR: #555555; SCROLLBAR-HIGHLIGHT-COLOR: #333333; SCROLLBAR-SHADOW-COLOR: #222222; SCROLLBAR-3DLIGHT-COLOR: #888888; SCROLLBAR-ARROW-COLOR: #00ff00; SCROLLBAR-TRACK-COLOR: #222222; SCROLLBAR-DARKSHADOW-COLOR: #111111 }");
	document.write("a:link       { text-decoration: none }");
	document.write("a:visited    { text-decoration: none }");
	document.write("a:hover      { color: #00FF00; text-decoration: none }");
	document.write("</style>");
}

function PopUP(URL,Larghezza,Altezza)
{
	window.open(URL, target="_blank","backcolor=black,scrollbars=no,height=" + Altezza +",width=" + Larghezza + ",left=" + ((screen.width  - Larghezza) / 2) + ",top=" + ((screen.height - Altezza) / 2));
}

//Anti lamer
function Antilamer() {
	if (parent.frames.length <= 1) parent.location='http://www.zolnetwork.com/mindstorm';
}

//Animazione
function startanim() {
	  times--
      if (times==0)
      { 
        if (started==false)
        {
          started = true;
          window.status = hellotext;
		  step=0;
          setTimeout("anim_logcall()",1); 
        }
        thetext = hellotext;
      }
}

function casuale()
{
	return (Math.round(Math.random()*9));
}

//1
function anim_logcall()
{
	step++;
	window.status=stringa.substr(0,step);

	if (step<stringa.length) {
		setTimeout ("anim_logcall()", 30);
	} else {
		step=0;
		setTimeout("anim_trace()",4000);
	}
}

//2
function anim_trace()
{
	thetext="(";
    step++

	//**********************
    if (step < 10*x) {
		s=casuale();
	} else {
		s="3";
	}
	thetext=thetext + s;

	//**********************
	if (step < 50*x) {
		s=casuale();
	} else {
		s="0";
	}
	thetext=thetext + s;

	//**********************
	if (step < 30*x) {
		s=casuale();
	} else {
		s="2";
	}
	thetext=thetext + s + ")";

	//**********************
	if (step < 40*x) {
		s=casuale();
	} else {
		s="5";
	}
	thetext=thetext + s;

	//**********************
	if (step < 60*x) {
		s=casuale();
	} else {
		s="5";
	}
	thetext=thetext + s;

	//**********************
	if (step < 20*x) {
		s=casuale();
	} else {
		s="5";
	}
	thetext=thetext + s;

	//**********************
	if (step < 100*x) {
		s=casuale();
	} else {
		s="0";
	}
	thetext=thetext + s;

	//**********************
	if (step < 70*x) {
		s=casuale();
	} else {
		s="6";
	}
	thetext=thetext + s;

	//**********************
	if (step < 90*x) {
		s=casuale();
	} else {
		s="9";
	}
	thetext=thetext + s;

	//**********************
	if (step < 80*x) {
		s=casuale();
	} else {
		s="0";
	}
	thetext=thetext + s;

	window.status=thetext;
    
	if (step==100*x+10) {
		step=1
		setTimeout("anim_traced()",10);
	} else {
		setTimeout("anim_trace()",200/x);
	}
}

//3
function anim_traced()
{
	step++;

	gap="";
	for (i=0;i<step;i++) {
		gap=gap+" ";
	} 

	s="";
	for (i=0;i<telefono.length;i++) {
		s=s+telefono.substr(i,1)+gap;
	}
	
	if (step == 30) {
		window.status="";
		step=-1;
		setTimeout("anim_logcall()",3000);
	} else {
		window.status=s;
		setTimeout("anim_traced()",100);
	}
}