function tracker_response(json_value){var list;eval("list = "+json_value);var forum=document.getElementById("forumwebmaster");forum.innerHTML="";var lounge=document.getElementById("forumlounge");lounge.innerHTML="";var market=document.getElementById("forummarket");market.innerHTML="";for(var topic in list){if(list[topic].forumtype=="1"){var element=document.createElement("div");element.setAttribute("class","topic");element.setAttribute("name",list[topic].status);if(list[topic].status=="open"){element.innerHTML="<span>"+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="read"){element.innerHTML='<span style="color: gray;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="gesloten"){element.innerHTML='<span style="color: black; text-decoration: line-through;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="readclosed"){element.innerHTML='<span style="color: gray; text-decoration: line-through;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}forum.appendChild(element)}else if(list[topic].forumtype=="3"){var element=document.createElement("div");element.setAttribute("class","topic");element.setAttribute("name",list[topic].status);if(list[topic].status=="open"){element.innerHTML="<span>"+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="read"){element.innerHTML='<span style="color: gray;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="gesloten"){element.innerHTML='<span style="color: black; text-decoration: line-through;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="readclosed"){element.innerHTML='<span style="color: gray; text-decoration: line-through;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}market.appendChild(element)}else if(list[topic].forumtype=="2"){var element=document.createElement("div");element.setAttribute("class","topic");element.setAttribute("name",list[topic].status);if(list[topic].status=="open"){element.innerHTML="<span>"+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="read"){element.innerHTML='<span style="color: gray;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="gesloten"){element.innerHTML='<span style="color: black; text-decoration: line-through;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}else if(list[topic].status=="readclosed"){element.innerHTML='<span style="color: gray; text-decoration: line-through;">'+list[topic].tag+'</span> <a href="forum/topic/'+list[topic].id+"/"+list[topic].url+'">'+list[topic].titel+"</a>"}lounge.appendChild(element)}else if(list[topic].forumtype=="4"){var berichten=document.getElementById("berichten");var berichten_nu=berichten.innerHTML;if(list[topic].count>berichten_nu){berichten.innerHTML=list[topic].count;if(list[topic].alert=="1"){var answer=confirm("U heeft een nieuw bericht ontvangen. Wilt u deze nu lezen?");if(answer){window.location="http://www.criminalspoint.com/pb.html"}}}}}}jQuery(document).ready(function(){function c(){if(++a<10){b=b+5e3;loopsiloop(b)}}var a=0,b=5e3;(function d(a){a=a||5e3;setTimeout(function(){var a="ajax_tracker.php?rand="+Math.random();$.ajax({url:a,success:function(a){if(a==="failure"){c()}else{tracker_response(a)}d()},error:c})},a)})();$("a[name=watchlist]").click(function(){var a=$(":input[name=submit2]").attr("topic_id");var b="ajax_abonneren.php?id="+a+"&rand="+Math.random();$.ajax({url:b,success:function(a){if($("#abo").length){$("#abo").fadeIn(500).fadeOut(200).fadeIn(500).fadeOut(200).fadeIn(500).fadeOut(200).fadeIn(500)}else{$("#noabo").html('<h2 class="forum" id="abo">Abonnement</h2>Vernieuw de pagina om uw abonnementen te zien.<br><br>');$("#noabo").fadeIn(500).fadeOut(200).fadeIn(500).fadeOut(200).fadeIn(500).fadeOut(200).fadeIn(500)}if(a==="failure"){c()}else{$("a[name=watchlist]").html(a)}},error:c});return false})})
