if(self.parent.frames.length>0)self.parent.location="https://jimba.pl";function submenu(show){var t=document.getElementById("menu_more");if(show==1){t.style.display="block";} else t.style.display="none";} var cmenu="summary";function servMenuActive(id) {servMenuUnActive(cmenu);cmenu=id;document.getElementById('sm-'+id).className="current";document.getElementById('sc-'+id).style.display="block";} function servMenuUnActive(id) {document.getElementById('sm-'+id).className="normal";document.getElementById('sc-'+id).style.display="none";} function sF() {var t=new Date().getTime();$.ajax({url:'/ajaxdb.php',type:'GET',dataType:'json',timeout:2500,data:'action=gps&time='+t,success:function(json) {$(".servcontent").fadeOut('500',function(){$(".servcontent").html(""+json.server_name+"\"\""+json.server_ip+"
Uptime: "+json.checks_uptime+"%
Port: "+json.server_port+"
Graczy: "+json.server_players_online+" / "+json.server_max_players+"
");$("#launch").html("Launch    using Tibia Loader");$(".servcontent").fadeIn('500');});},error:function() {}});setTimeout('sF()',10000);} setTimeout('sF()',8000); function getStartTime(now,later,ticks,id) { handler = document.getElementById(id); ticks = ticks + 1; diff = (later - now - ticks); days = diff / 60 / 60 / 24; daysRound = Math.floor(days); hours = diff / 60 / 60; hoursRound = Math.floor(hours); hours2 = diff / 60 / 60 - (24 * daysRound); hoursRound2 = Math.floor(hours2); minutes = diff / 60 - (24 * 60 * daysRound) - (60 * hoursRound2); minutesRound = Math.floor(minutes); seconds = diff - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound2) - (60 * minutesRound); secondsRound = Math.round(seconds); if(hoursRound < 0 || minutesRound < 0 || secondsRound < 0) { buffer = "already started!"; } else { buffer = ""; if( days > 0 ) buffer = daysRound +" days "; buffer = buffer + hoursRound2 + " hours " if( minutesRound > 0 || hoursRound > 0 ) buffer = buffer + minutesRound +" minutes "; if ( secondsRound < 10 ) secondsRound = "0"+secondsRound; buffer = buffer + secondsRound +" seconds "; window.setTimeout("getStartTime("+now+","+later+", "+ticks+", '"+id+"');", 1000); } handler.innerHTML = buffer; }