var pos=0;

var speed=20;            //Teletype speed: Lower = Faster

var scrSpeed=40;         //Scroll Speed

var arrowSpeed=40;	

var rollArray = new Array(60);

var tArray = new Array(60);

var temp = "";

var ttCurrRoll=1;

var currPix=0;

var dontReType=0;

var linkHeight=22;

var frozen=0;

var frozenTyp=0;

var frozenPix=0;

var arrowOverride=0; //If going back via arrow, scroll upwards

var arrowTarget=9999;

var penult=0; //Is is penultimate, and recently unfrozen? 

var cease=0;



isW3C = (document.getElementById) ? true :false;

isIE4 = (document.all) ? true :false;

showing = false;



function menui(id) {

	showing = true;

	return;

	if 	(isW3C) {

		document.getElementById(id).style.backgroundColor="#ffffff";

	}

	if (id.charAt(0)=="a") {convCode=1;}

	if (id.charAt(0)=="b") {convCode=2;}

	if (id.charAt(0)=="c") {convCode=3;}

	if (id.charAt(0)=="d") {convCode=4;}

	if (id.charAt(0)=="e") {convCode=5;}

	if (id.charAt(0)=="f") {convCode=6;}

	//if (document.all) {temporal.innerHTML=tArray[(convCode+id.charAt(1))]}

	ttCurrRoll = convCode+id.charAt(1);

	frozenTyp = ttCurrRoll;

	pos=0;

	//Typ();

}



function menuo(id) {

	showing = false;

	startTimer();

	return;

	if (isW3C) {

		document.getElementById(id).style.backgroundColor="#F0FFFF";

	}

}



function show(id) {

	if (isW3C) {

		document.getElementById("menu_a").style.visibility="hidden";

		document.getElementById("menu_b").style.visibility="hidden";

		document.getElementById("menu_c").style.visibility="hidden";

		document.getElementById("menu_d").style.visibility="hidden";

		document.getElementById("menu_e").style.visibility="hidden";

		document.getElementById("menu_f").style.visibility="hidden";

		if (id!='menu_no'){

			document.getElementById(id).style.display="block"; //for NN6

			document.getElementById(id).style.visibility="visible";

			showing = true;

			

		}

		if (id=='menu_no'){

			showing = false;

		}

			

		if (id.charAt(5)=="a") {convCode=1;}

		if (id.charAt(5)=="b") {convCode=2;}

		if (id.charAt(5)=="c") {convCode=3;}

		if (id.charAt(5)=="d") {convCode=4;}

		if (id.charAt(5)=="e") {convCode=5;}

		if (id.charAt(5)=="f") {convCode=6;}

		if (document.all) {temporal.innerHTML=tArray[(convCode+"0")]}

		ttCurrRoll = convCode+"0";

		frozenTyp = ttCurrRoll;

		pos=0;

		Typ();

	}

}



function startTimer(){

showing = false;

setTimeout("continueTimer()",1000);

}



function continueTimer(){

if (showing==false)

	{

	setTimeout("unshow()",500);

	}

}





function unshow(id) {

	if ((isW3C) && (showing==false)) {

		document.getElementById("menu_a").style.visibility="hidden";

		document.getElementById("menu_b").style.visibility="hidden";

		document.getElementById("menu_c").style.visibility="hidden";

		document.getElementById("menu_d").style.visibility="hidden";

		document.getElementById("menu_e").style.visibility="hidden";

		document.getElementById("menu_f").style.visibility="hidden";

		}

	}



//------------------------



function Typ(){

whichTyp=ttCurrRoll;

if (frozenTyp!=0){

whichTyp=frozenTyp;

}

pos++;pos++;pos++;pos++;



text=rollArray[whichTyp].substring(0,pos);

 if (document.layers)

 {



 }

else if (document.all)

document.all.rolloverTextArea.innerHTML=text;

 if (pos < rollArray[whichTyp].length)

 {

  tmer=setTimeout('Typ();',speed);

 }

}





var opera = (navigator.userAgent.indexOf('Opera 7')!=-1);

var msie  =  (navigator.userAgent.indexOf('MSIE')!=-1);

if (msie && !opera){msie=1;}

if (msie && opera){msie=-1;}

if (msie == 1){

delay=0.25;

effect=1;



}

function doovernav(what){

if (msie == 1){

what.filters.revealTrans.apply(); 

what.filters.revealTrans.play(); 

}

else{return false;}

}

function dooutnav(what){

if (msie == 1){

what.filters.revealTrans.apply(); 

what.filters.revealTrans.play(); 

}

else{return false;}

}



function footer() {

self.location = "http://www.npwireless.com";

}



function reLoad() {

self.location = "http://www.npwireless.com";

}

////////////////////////////////////////





nereidFadeObjects = new Object();

nereidFadeTimers = new Object();



function nereidFade(object, destOp, rate, delta){

if (!document.all || (navigator.appVersion.indexOf('Mac') != -1))

return

    if (object != "[object]"){  //do this so I can take a string too

        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);

        return;

    }

        

    clearTimeout(nereidFadeTimers[object.sourceIndex]);

    

    diff = destOp-object.filters.alpha.opacity;

    direction = 1;

    if (object.filters.alpha.opacity > destOp){

        direction = -1;

    }

    delta=Math.min(direction*diff,delta);

    object.filters.alpha.opacity+=direction*delta;



    if (object.filters.alpha.opacity != destOp){

        nereidFadeObjects[object.sourceIndex]=object;

        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);

    }

}



//--></script>