/*-------------------------------------------
  Magic Infinity Ball
  C0D3D by Gunnar Leffler
  http://www.leftech.com
  Version 1.0
  You are looking at my code. Shame on you! :)
  --------------------------------------------*/



function getRND ()
{

 var max1 = arguments[0];
 var retval = Math.floor (Math.random() * max1);
 return retval;
}



function getAnswer ()
{

responseArray = new Array(
"Signs point to yes.",
"Yes.",
"Reply hazy, try again.",
"Without a doubt.",
"My sources say no.",
"As I see it, yes.",
"You may rely on it.",
"Concentrate and ask again.",
"Outlook not so good.",
"It is decidedly so.",
"Better not tell you now.",
"Very doubtful.",
"Yes - definitely.",
"It is certain.",
"Cannot predict now.",
"Most likely.",
"Ask again later.",
"My reply is no.",
"Outlook good.",
"Don't count on it. "

);

var indexer = getRND(responseArray.length);
return responseArray[indexer];
}

function getAnswer2 ()
{

responseArray = new Array(
"Who cares?!",
"Yes.",
"Could you repeat that? I wasn't listening.",
"Without a doubt.",
"a snowball's chance in hell.",
"As I see it, yes.",
"Probably. Maybe. I don't know!",
"Concentrate and ask again.",
"Outlook not so good.",
"Does the pope shit in the woods?",
"Trust me, you don't want to know.",
"Very doubtful.",
"Yes - definitely.",
"DUH!",
"How should I know?!",
"Most likely.",
"I'm busy, ask again later.",
"My reply is: Not no, but HELL NO!",
"Outlook good.",
"Don't quit your day job. ",
"You'll regret it if you do.",
"Give up, it won't work.",
"It will seem to work at first.",
"Take the proper precautions.",
"Why would you even ask that?",
"Oh, you pig!",
"Isn't that Illegal?",
"It wouldn't be worth it.",
"Don't even go there.",
"Depends who you ask.",
"There's no easy answer for that.",
"You already know the answer to this.",
"Calm down and you'l figure it out.",
"Knowing the answer would only cause you pain.",
"There's no substitute for a direct question."
);

var indexer = getRND(responseArray.length);
return responseArray[indexer];
}

function shakeitup ()
{
 var answer;
 answer = getAnswer2();
 document.getElementById ("message").innerHTML  = answer; 

}  

