function legion_jib_generator_jrand(n) {
  return (Math.round(Math.random()*(n-1)));
}

function legion_jib_generator_jshuffle(TheArray)
{
  var Times = TheArray.length * 2;
  var One, Two, Count, Temp;

  for(Count=1;Count<=Times;Count++)
  {  One=legion_jib_generator_jrand(TheArray.length);
     Two=legion_jib_generator_jrand(TheArray.length);
     Temp=TheArray[One];
     TheArray[One]=TheArray[Two];
     TheArray[Two]=Temp;
  }
}

function legion_jib_generator_NewJib()
{ 
  //loop through the randomized array
  legion_jib_generator_iJib++;
  if (legion_jib_generator_iJib>=legion_jib_generator_Jib.length)
    legion_jib_generator_iJib=0;
  document.forms.legion_jib_generator_JibForm.DisplayJib.value = legion_jib_generator_Jib [ legion_jib_generator_iJib ]
}

function legion_jib_generator_NewAntiJib()
{ 
  //loop through the randomized array
  legion_jib_generator_iAntiJib++;
  if (legion_jib_generator_iAntiJib>=legion_jib_generator_AntiJib.length)
    legion_jib_generator_iAntiJib=0;
  document.forms.legion_jib_generator_AntiJibForm.DisplayAntiJib.value = legion_jib_generator_AntiJib [ legion_jib_generator_iAntiJib ]
}


var legion_jib_generator_Jib = new Array (
"I heartily approve of this man's jib.",
"Would ya look at the jib on that one.",
"I also admire the well-trimmed nature of his jib.",
"I haven't seen jib like yours in ages.",
"Your jib is indeed finer than all the tea in China.",
"Tales will be told on the nature of your jib.",
"Jib like yours appears but once in a man's life.  It is a privilege to know you.",
"May my jib one day be as well cut as yours.",
"A jib like yours could not be fashioned with mere hand tools.  Truthfully!  What electric tools have you used to create such a jib?",
"Truly, you have the finest jib a man like me could ever hope to encounter.",
"Can I touch it?  Just for a second?  It's just... I've never seen such well cut jib.",
"The facets of your jib are extremely well cut and shall be held up as proof of your wonderful personality, parentage and position within the community.",
"I intensely admire your jib and will still be thinking of it well into the night.",
"Now this... This is a jib above all others.",
"Now there's the type of jib that must have been made by craftsmen.",
"No, really, how do you get your jib like that?  Is there a product I should be using?",
"Oh my God, now there is a man who's jib I can respect honor and obey.",
"Don't take this the wrong way, but honestly, I've got a bit of Jib-inferiority going on here.",
"Everyone! Gather around this man and let us worship his Jib as a crude idol.",
"If only we could frame you jib and hang it on a wall so people from near and far could marvel at it.",
"Your jib is a shining star, guiding the way for others who hope to one day achieve what you have done, here and now.",
"Were your jib ever to be entered in a contest, it would have to be with a handicap lest you shame the other participants.",
"Be careful! A jib that well cut could draw blood!",
"Your jib is the new scale against which I shall measure all future jibs.",
"Now that is a jib I can salute.  Just give your orders and I will follow them without question.");


var legion_jib_generator_AntiJib = new Array (
"I find your lack of jib... disturbing.",
"Your jib is mis-cut and swollen.",
"My jib is twice as good as his.",
"My donkey has better kept jib than you.",
"Well... if it isn't the jib-less wonder.",
"I mean, seriously, was there an accident when they were cutting your jib?",
"Oh my, is your jib supposed to look like that?",
"Your jib is cracked, my friend.  And it will never be repaired.",
"What have you done?  A man's jib must be looked after - and your jib is obviously in need of a specialist.",
"No, seriously, where's your real jib?",
"Here's a pamphlet: 'You and your jib.  Proper cutting and chiseling methods.'  Maybe you should read it.",
"A fool and his jib are easily parted.  And you sir... you are very foolish.",
"Whoa!  Was your jib cut with a hacksaw?!",
"Your jib has apparently been cut by lepers in Malaysia and I will have no part of it.",
"In all matters jib-related, without question, you are at the bottom.",
"This goes beyond a mere badly cut jib.  Yours has apparently been deliberately shattered and re-assembled with krazy glue.",
"If there were a Jib-scale ranging from zero to ten, you... you, my friend, you would not be at the high end.",
"Perhaps you could do shows.  Because really, a jib as pathetic as yours needs to be shown!",
"Maybe you should not venture out in public until you have changed the nature of your jib.",
"Trust me when I say this is not masked hostility.  I'm just trying to tell you, man-to-man, that your jib is a laughable state of affairs.",
"I would rather have no jib whatsoever than be saddled with what you call 'your jib.'",
"That's not jib.  That's something to be taken aside and beaten with a rock.",
"Your jib is confused and apparently believes itself to be something much grander than the reality of the situation.",
"The only reason I do not scream in fright at your jib is the presence of ladies whom I do not wish to offend.  Heaven forbid they learn of your true jibbly nature.",
"I'm afraid I must lie down now, the cut of your jib has made me quite nauseous.",
"Your jib is as well cut as a six year old's paper dolls.  Now leave my office immediately.");

var legion_jib_generator_iJib = -1;
var legion_jib_generator_iAntiJib = -1;

//shuffle so it's a different jib sequence every time

legion_jib_generator_jshuffle(legion_jib_generator_Jib);
legion_jib_generator_jshuffle(legion_jib_generator_AntiJib);



