var db = function(msg){
	if( typeof( console ) === "object" && typeof( console.log ) === "function" ){
		con = console;
	} else if( typeof( window.console ) === "object" && typeof( window.console.log ) === "function"  ){
		con = window.console;
	}
	if( con ){
		con.log( msg );
	}
}

var eightball = ["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."
];


$(function(){

	$("#eightball span").click( function(){
		var fortune = eightball[ Math.floor( Math.random() * (eightball.length + 1) ) ];
	//	db( "fortune: " + fortune );
		$("#fortune").text( fortune);
	});
	
});