var timeout;
function buildDungeon(){
sendRequest("craftmine.php", "op=buildDungeon", function(ret) {
displayDungeon(0,1,true);//mob 0 in the floor 1 and I access the dungeon for the first dungeon
debitAccount(ret.cost);
showInfo("You can acces the dungeon now. Good Luck.");
});
}
function displayDungeon(nb,f,firstTime){
var tmphtml = " ";
tmphtml += "";
document.getElementById("tab4").innerHTML = tmphtml;
}
function launchDungeon(nb,f,firstTime){
sendRequest("craftmine.php", "op=launchDungeon&floor="+f, function(ret) {
if(nb==0 && firstTime){
document.getElementById("launch").style.display = "none";
}
displayBattle(ret,nb,f);
});
}
function displayBattle(ret,nb,f){
var tmphtml = "