function NextRandomNumber()  {
  var hi   = this.seed / this.Q;
  var lo   = this.seed % this.Q;
  var test = this.A * lo - this.R * hi;
  if (test > 0)
    this.seed = test;
  else
    this.seed = test + this.M;
  return (this.seed * this.oneOverM);
}
function RandomNumberGenerator() {
  var d = new Date();
  this.seed = 2345678901 +
    (d.getSeconds() * 0xFFFFFF) +
    (d.getMinutes() * 0xFFFF);
  this.A = 48271;
  this.M = 2147483647;
  this.Q = this.M / this.A;
  this.R = this.M % this.A;
  this.oneOverM = 1.0 / this.M;
  this.next = NextRandomNumber;
  return this;
}

function TextFramework()
{
this.story='[title]<BR></FONT></B><FONT COLOR="#999999" SIZE="-1" FACE="Arial">'+'[p1]'

//doing this, ORI is able to do that for such.
this.p1="3:"+
	"[^moving] to [dothat], Operation Re-Information [isableto] prevent you from living a normal life.;"+
	"Operation Re-Information [isableto] [dothat] while [moving] for [such].;"+
	"[^moving], Operation Re-Information [isableto] [dothat] for [ctrlof] [such]."

//measurmts of this have shown that that is really this
this.p2="1:"+
	"[^measurements] of [item] [haveshown] that [item2] [isthis]."

///////////TITLE/////////////////
this.title='2:Operation Re-Information [^does] [title_act];Reinformation and the [title_love] of [title_it]'
this.title_act='8:the Coupled-Mode Formulation;[^being] Networks;the World;Systems;Superconductors;[^being]-[^made] [^being]s;Math;the Future'
this.title_love='8:Burning Sensation;Re-Organization;Control;Fear;Kiss;Technique;Uprising;Success'
this.title_it='7:the Simulator;the Computer;the [^being] Brain;[^being] Sacrifice;Science;Evil;Influence'

///////////BODY//////////////////
this.measurements="6:"+
	"[quality] measurement;"+
	"macroscopically detected perturbation;"+
	"[controlling] the work flow;"+
	"disentangling [such];"+
	"witnessing the fastest evolutionary growth;"+
	"unleashing the power"
this.quality="5:highly detailed;erroneous;questionable;speculative;undeniable"
this.item="7:"+
	"pseudo-tape;"+
	"a universal machine;"+
	"m-RNA;"+
	"reversible computing;"+
	"the sampling theorem;"+
	"the ultimate computers of the far future;"+
	"hamming codes"
this.haveshown="6:"+
	"has shown;"+
	"is so simple;"+
	"reflects the fact;"+
	"furthers our understanding;"+
	"creates an electric field;"+
	"is proof"
this.item2="6:"+
	"[quality] measurement;"+
	"macroscopically detected perturbation;"+
	"[controlling] the work flow;"+
	"disentangling [such];"+
	"witnessing the fastest evolutionary growth;"+
	"unleashing the power"
this.isthis="5:"+
	"simplifies things;"+
	"illustrates the general principal of [such];"+
	"arrises from multiplying [plex] [corporate] [systems];"+
	"results in [plex] [corporate] [systems];"+
	"enables us to [dothat];"


this.moving="10:"+
	"moving beyond limited [being] approximation;"+
	"[trotting] over the boundless fields of [tomorrow];"+
	"[trotting] over the bleeding edge of [tomorrow];"+
	"pushing the envelope of [tomorrow];"+
	"working towards [tomorrow];"+
	"driving the big rig of [tomorrow];"+
	"reconditioning the [being] variable;"+
	"transmitting coherence;"+
	"conceptualizing [tomorrow];"+
	"[controlling] the interaction of particles;"
this.isableto="6:"+
	"is able to;"+
	"continues to;"+
	"is determined to;"+
	"is strenuously working to;"+
	"is working on a plan to;"+
	"is opening up new ways of thinking about control to"
this.dothat="6:"+
	"undermine technological, corporate, educational, and consumer solutions;"+
	"ride into the frontier of tomorrow;"+
	"tap into heretofore unparalleled wells of advanced control;"+
	"respond appropriately to hazardous conditions;"+
	"move rigidly in time;"+
	"find the sum of all probabilities"
this.such="7:"+
	"a complete set of fixed possibilities;"+
	"unimagined informational complexity;"+
	"the advent of [corporate] cell growth;"+
	"the mindless masses;"+
	"multiple interpenetrating realities;"+
	"our current information base;"+
	"brand-name recognition"
this.ctrlof="4: ;total control of;complete destruction of;subtle manipulation of"

this.systems="5:systems;networks;computers;circuits;polysilicon mass gates"
this.controlling="4:controlling;losing control of;regulating;dominating"
this.stupidity="3:stupidity;intelligence;absurdity;insanity"
this.does='7:understands;embraces;utilizes;investigates;considers;controls;obliterates'
this.being='4:human;microbial;horse;computer;'
this.made='3:controlled;designed;assisted'
this.trotting="6:trotting;galloping;riding;flying;skiing;driving"
this.tomorrow="7:tomorrow;progress;success;the future;quality;[plex] [systems];certainty"
this.plex="4:simplex;complex;multiplex;polyplex"
this.corporate="3:corporate;eucaryotic;mechanized"
}    
//////////////////////////STRINGS///////////////////////////////////
function Cap(string)
{
	//prompt("a=",string);
	if(string.substring(0,1)=='[')
	its = '[^' + string.substring(1);
	else
	its = string.substring(0,1).toUpperCase() + string.substring(1);
	return its;
}

var rand = new RandomNumberGenerator()

function ExtractNthSubstring(string, n, delimiter)
{
var a=0, i, j, b=string.length;
	if (n<0) return '##'
  	for (i = 0; i < n; i++) {
  		j = string.indexOf(delimiter, a);
  		if (j==-1)  {return '#' + n} else a=j+1
	}
  	if ((j=string.indexOf(delimiter, a+1))!=-1) b=j
  	return string.substring(a, b)
}

function ExtractRandomSubstring(s)
{
  	return ExtractNthSubstring(s.substring(s.indexOf(':')+1), Math.floor(rand.next()*parseInt(s)),';')
}

function ProcessString(s)
{
var a,b
	for (;;) {
		//prompt("a=",s);
		if ((a = s.indexOf('[', 0)) >= 0)
		{
    		if ((b=s.indexOf(']', ++a)) >= 0)
			{
				if(s.substring(a, b).substring(0,1)=="^")//marked for Cap
					s=s.substring(0,a-1)+ProcessString(Cap(ExtractRandomSubstring(framework[s.substring(a+1, b)])))+s.substring(b+1);
				else s=s.substring(0,a-1)+ProcessString(ExtractRandomSubstring(framework[s.substring(a, b)]))+s.substring(b+1);
			} 
			else a=0;
		}
		if (a<=0) break;
	}
	return s;
}