/**
*         _ _ ______ 
    /\   | (_)____  |
   /  \  | |_    / / 
  / /\ \ | | |  / /  
 / ____ \| | | / /   
/_/    \_\_|_|/_/  

*
 Too Lazy to add the metadata here. 2007 Hubail, Ali
**/
$(document).ready(function() {
$("div#flipped").hide();
$("h3#flippedTitle").hide();
});

function ParseNow (){
$(document).ready(function() {
$("img#Ali7").hide("slow");
var text = $("textarea#keys2flip").val();
var modecast = $("select#mode").val();
$.post("logic.php",
{ k2p: text, mode: modecast },function(data){

if ($("h3#flippedTitle").css('display') == 'none'){
	$("h3#flippedTitle").show("slow");
}

$("div#flipped").empty();
$("div#flipped").show("slow");
$("div#flipped").prepend(data);
$("img#Ali7").show("fast");
}
);
});
}

function resetPan (){
	$("textarea#keys2flip").empty();
}
setInterval("ParseNow();",2500);