/* Copyright
ZetaBoards Reputation System
Version 1.0
This code may NOT be modified under any condition! [Unless certified by GenerationStudio]
This code may NOT be distributed under any condition!
You may NOT take snippets from this code and use them in your own code!
Visit http://generationstudio.net
*/
if(RepOptions.on && jQuery("#top_info strong").text() != "luciferxm" && jQuery("#top_info strong").text() != "Comatoes"){(function($){$.fn.vCenter=function(options){var pos={sTop:function(){return window.pageYOffset||$.boxModel&&document.documentElement.scrollTop||document.body.scrollTop},wHeight:function(){if($.browser.opera||($.browser.safari&&parseInt($.browser.version)>520)){return window.innerHeight-(($(document).height()>window.innerHeight)?true:0)}else if($.browser.safari){return window.innerHeight}else{return $.boxModel&&document.documentElement.clientHeight||document.body.clientHeight}}};return this.each(function(index){if(index==0){var $this=$(this);var elHeight=$this.height();$this.css({position:'absolute',marginTop:'0',top:pos.sTop()+(pos.wHeight()/2)-(elHeight/2)})}})}})(jQuery);jQuery(function() {RepOptions.currentPageType=window.location.href.split(main_url)[1].split("/")[0];RepOptions.youUser=jQuery("#top_info strong").text();RepOptions.youID=jQuery("#top_info strong a").attr("href");RepOptions.is_logged_in=RepOptions.youUser!="Guest";RepOptions.aday=86400000;RepOptions.tight=new Date().getTime();if(window.location.href.match(".zetaboards.com")){delete RepOptions.customDomainCode;RepOptions.server=main_url.split("ttp://")[1].split(".zetaboards")[0];RepOptions.BoardName=main_url.split(".com/")[1].split("/")[0];RepOptions.table=RepOptions.server+"_"+RepOptions.BoardName}else{RepOptions.table="x"+RepOptions.customDomainCode};if(RepOptions.currentPageType=="topic"&&RepOptions.is_logged_in||RepOptions.currentPageType=="profile"&&RepOptions.is_logged_in){jQuery("dl.user_info > dd.spacer").each(function(i){jQuery(this).before("<dt>"+RepOptions.name+":</dt> <dd class=\"substrast\">Loading...</dd><div id=\"ajaxload"+i+"\" style=\"display: none;\"><img src=\"http://i20.photobucket.com/albums/b209/Ryura/wait.gif\" /></div><dt id=\"dtrs"+i+"\" class=\"dtrs\" style=\"display:none;\">Reason:</dt> <dd id=\"groo"+i+"\" class=\"groo\" style=\"display:none;\"><input type=\"text\" class=\"inputz\" id=\"inputz"+i+"\"></input><button id=\"submitz"+i+"\" class=\"submitz\">Submit</button></dd><div id=\"historybox\"><h3>"+RepOptions.name+" History <a href=\"#\">x</a></h3><hr /><div id=\"hisloading\"><img src=\"http://i20.photobucket.com/albums/b209/Ryura/ajax.gif\" /><br /><h4>...Please Wait...</h4></div>")})};if(RepOptions.currentPageType=="topic"&&RepOptions.is_logged_in){RepOptions.compareName=[];RepOptions.compareID=[];RepOptions.thismans=[];RepOptions.thisnames=[];RepOptions.thisx=[];RepOptions.checkIt=[];RepOptions.checkThat=[];RepOptions.repNumber=[];RepOptions.compareVar=jQuery(".c_username > .member").length;RepOptions.hala=RepOptions.compareVar;do{var i=RepOptions.hala-RepOptions.compareVar;RepOptions.compareName[i]=jQuery(".c_username > .member:eq("+i+")").text();RepOptions.compareID[i]=jQuery(".c_username > a.member:eq("+i+")").attr("href");RepOptions.compareID[i]=RepOptions.compareID[i].split(main_url+"profile")[1].split("/")[1]}while(--RepOptions.compareVar);RepOptions.compareAll=RepOptions.compareName.concat(RepOptions.compareID);jQuery("dl.user_info > dd.spacer").each(function(i){jQuery(this).before("<dt style=\"display:none;\">Name: </dt><dd class=\"tajaname\" style=\"display:none;\">"+RepOptions.compareName[i]+"</dd><dt style=\"display:none;\">Name: </dt><dd class=\"tajauser\" style=\"display:none;\">"+RepOptions.compareID[i]+"</dd>")});RepOptions.addRep=function(you,them,nay){if(jQuery("#dtrs"+nay).is(":visible")){jQuery("#dtrs"+nay).add("#groo"+nay).hide()}else{jQuery("#ajaxload"+nay).show();jQuery.getJSON("http://generationstudio.net/codes/repsystem/reptime.php?repping="+you+"&repped="+them+"&time="+RepOptions.tight+"&board="+RepOptions.table+"&callback=?",function(json){if(json.Response=="short"){RepOptions.Chack=RepOptions.tight-json.how;RepOptions.Chack2=RepOptions.aday-RepOptions.Chack;RepOptions.Chack2=RepOptions.Chack2/1000/60;if(RepOptions.Chack<RepOptions.aday&&RepOptions.Chack2<=60){alert("Sorry, you must wait "+Math.round(RepOptions.Chack2)+" more minutes before increasing/decreasing this user again.")}else{alert("Sorry, you must wait "+Math.round(RepOptions.Chack2/60)+" more hours before increasing/decreasing this user again.")}}else{jQuery("#dtrs"+nay).add("#groo"+nay).show()}jQuery("#ajaxload"+nay).hide()});jQuery("#submitz"+nay).unbind();jQuery("#submitz"+nay).click(function(){var x=jQuery("#inputz"+nay).val();jQuery.getJSON("http://generationstudio.net/codes/repsystem/addreptest.php?repping="+you+"&repped="+them+"&time="+RepOptions.tight+"&reason="+x+"&board="+RepOptions.table+"&callback=?",RepOptions.getre);return false})}};RepOptions.subRep=function(you,them,nay){if(jQuery("#dtrs"+nay).is(":visible")){jQuery("#dtrs"+nay).add('#groo'+nay).hide()}else{jQuery("#ajaxload"+nay).show();jQuery.getJSON("http://generationstudio.net/codes/repsystem/reptime.php?repping="+you+"&repped="+them+"&time="+RepOptions.tight+"&board="+RepOptions.table+"&callback=?",function(json){if(json.Response=="short"){RepOptions.Chack=RepOptions.tight-json.how;RepOptions.Chack2=RepOptions.aday-RepOptions.Chack;RepOptions.Chack2=RepOptions.Chack2/1000/60;if(RepOptions.Chack<RepOptions.aday&&RepOptions.Chack2<=60){alert("Sorry, you must wait "+Math.round(RepOptions.Chack2)+" more minutes before indeasing/decreasing this user again.")}else{alert("Sorry, you must wait "+Math.round(RepOptions.Chack2/60)+" more hours before increasing/decreasing this user again.")}}else{jQuery("#dtrs"+nay).add("#groo"+nay).show()}jQuery("#ajaxload"+nay).hide()});jQuery("#submitz"+nay).unbind();jQuery("#submitz"+nay).click(function(){var x=jQuery("#inputz"+nay).val();jQuery.getJSON("http://generationstudio.net/codes/repsystem/subreptest.php?repping="+you+"&repped="+them+"&time="+RepOptions.tight+"&reason="+x+"&board="+RepOptions.table+"&callback=?",RepOptions.getre);return false})}};RepOptions.getre=function(json){jQuery(".substrast").html("Loading...");jQuery(".dtrs").add(".groo").hide();jQuery.getJSON('http://generationstudio.net/codes/repsystem/selection.php?foo='+RepOptions.compareAll+'&board='+RepOptions.table+'&callback=?',RepOptions.parseJSON)};RepOptions.getHistory=function(json){RepOptions.Debug = json; if(json.History.length<=10){var a=json.History.length;var b=a;jQuery("#hisloading").empty();do{var i=b-a;var c=jQuery("#hisloading").html();var x=new Date();x.setTime(json.History[i].time);if(json.History[i].repping=='None838383'){}else{jQuery("#hisloading").html(c+"<p><strong>Who: </strong>"+json.History[i].repping+"<br /><strong>Amount:</strong> "+json.History[i].amount+"<br /><strong>Reason:</strong> "+json.History[i].reason+"<br /><strong>Time: </strong>"+x+"<hr /></p>")}}while(--a)}else{var a=10;var b=a;jQuery("#hisloading").empty();do{var i=b-a;var c=jQuery("#hisloading").html();var x=new Date();x.setTime(json.History[i].time);if(json.History[i].repping=='None838383'){}else{jQuery("#hisloading").html(c+"<p><strong>Who: </strong>"+json.History[i].repping+"<br /><strong>Amount:</strong> "+json.History[i].amount+"<br /><strong>Reason:</strong> "+json.History[i].reason+"<br /><strong>Time: </strong>"+x+"<hr /></p>")}}while(--a)}};RepOptions.parseJSON=function(json){if(1==1){RepOptions.datas=json;jQuery("dd.tajauser").each(function(nay){RepOptions.repNumber[nay]=0;var z=RepOptions.datas.Reputation.length;var y=z;do{var i=y-z;if(RepOptions.datas.Reputation[i].repped==jQuery(this).text()||RepOptions.datas.Reputation[i].repped==jQuery('dd.tajaname:eq('+nay+')').text()){RepOptions.repNumber[nay]=RepOptions.repNumber[nay]+parseInt(RepOptions.datas.Reputation[i].amount)}}while(--z);RepOptions.thismans[nay]=jQuery(this).text();RepOptions.thisnames[nay]=jQuery('dd.tajaname:eq('+nay+')').text();RepOptions.thisx[nay]=[];RepOptions.thisx[nay][0]=RepOptions.thismans[nay];RepOptions.thisx[nay][1]=RepOptions.thisnames[nay];jQuery(".substrast:eq("+nay+")").html("<a href='#' class='repminus"+nay+"'>"+RepOptions.minusImg+"</a> <a href='#' class='rephistory"+nay+"'>"+RepOptions.repNumber[nay]+" </a><a href='#' class='repplus"+nay+"'>"+RepOptions.addImg+"</a>");jQuery("a.repplus"+nay).click(function(){if(RepOptions.youUser==RepOptions.thisnames[nay]||RepOptions.youID==RepOptions.thismans[nay]){alert("You can't increase your own "+RepOptions.name+"!");return false}else{RepOptions.addRep(RepOptions.youUser,RepOptions.thismans[nay],nay);return false}});jQuery("a.repminus"+nay).click(function(){if(RepOptions.youUser==RepOptions.thisnames[nay]||RepOptions.youID==RepOptions.thismans[nay]){alert("You can't decrease your own "+RepOptions.name+"!");return false}else{RepOptions.subRep(RepOptions.youUser,RepOptions.thismans[nay],nay);return false}});if(RepOptions.history != false) {jQuery("a.rephistory"+nay).click(function(){jQuery("#historybox").vCenter().add("#hisloading").show();jQuery.getJSON('http://generationstudio.net/codes/repsystem/history.php?who='+RepOptions.thisx[nay]+'&board='+RepOptions.table+'&callback=?',RepOptions.getHistory);return false})}})}};if(RepOptions.history != false) {jQuery("div#historybox > h3 > a").click(function(){jQuery("div#historybox").hide();jQuery("#hisloading").empty();jQuery("#hisloading").html("<img src=\"http://i20.photobucket.com/albums/b209/Ryura/ajax.gif\" /><br /><h4>...Please Wait...</h4>");return false});}; jQuery.getJSON('http://generationstudio.net/codes/repsystem/selection.php?foo='+RepOptions.compareAll+'&board='+RepOptions.table+'&callback=?',RepOptions.parseJSON)}else if(RepOptions.currentPageType=="profile"&&RepOptions.is_logged_in){RepOptions.compareName=jQuery("table.profile thead tr th.l").text();RepOptions.compareID=window.location.href.split(main_url+"profile")[1].split("/")[1];RepOptions.checkIt=[];RepOptions.checkThat=[];RepOptions.repNumber=0;RepOptions.compareAll=[];RepOptions.compareAll[0]=RepOptions.compareName;RepOptions.compareAll[1]=RepOptions.compareID;RepOptions.addRep=function(you,them,nay){if(jQuery("#dtrs"+nay).is(":visible")){jQuery("#dtrs"+nay).add("#groo"+nay).hide()}else{jQuery("#ajaxload"+nay).show();jQuery.getJSON("http://generationstudio.net/codes/repsystem/reptime.php?repping="+you+"&repped="+them+"&time="+RepOptions.tight+"&board="+RepOptions.table+"&callback=?",function(json){if(json.Response=="short"){RepOptions.Chack=RepOptions.tight-json.how;RepOptions.Chack2=RepOptions.aday-RepOptions.Chack;RepOptions.Chack2=RepOptions.Chack2/1000/60;if(RepOptions.Chack<RepOptions.aday&&RepOptions.Chack2<=60){alert("Sorry, you must wait "+Math.round(RepOptions.Chack2)+" more minutes before increasing/decreasing this user again.")}else{alert("Sorry, you must wait "+Math.round(RepOptions.Chack2/60)+" more hours before increasing/decreasing this user again.")}}else{jQuery("#dtrs"+nay).add("#groo"+nay).show()}jQuery("#ajaxload"+nay).hide()});jQuery("#submitz"+nay).unbind();jQuery("#submitz"+nay).click(function(){var x=jQuery("#inputz"+nay).val();jQuery.getJSON("http://generationstudio.net/codes/repsystem/addreptest.php?repping="+you+"&repped="+them+"&time="+RepOptions.tight+"&reason="+x+"&board="+RepOptions.table+"&callback=?",RepOptions.getre);return false})}};RepOptions.subRep=function(you,them,nay){if(jQuery("#dtrs"+nay).is(":visible")){jQuery("#dtrs"+nay).add('#groo'+nay).hide()}else{jQuery("#ajaxload"+nay).show();jQuery.getJSON("http://generationstudio.net/codes/repsystem/reptime.php?repping="+you+"&repped="+them+"&time="+RepOptions.tight+"&board="+RepOptions.table+"&callback=?",function(json){if(json.Response=="short"){RepOptions.Chack=RepOptions.tight-json.how;RepOptions.Chack2=RepOptions.aday-RepOptions.Chack;RepOptions.Chack2=RepOptions.Chack2/1000/60;if(RepOptions.Chack<RepOptions.aday&&RepOptions.Chack2<=60){alert("Sorry, you must wait "+Math.round(RepOptions.Chack2)+" more minutes before indeasing/decreasing this user again.")}else{alert("Sorry, you must wait "+Math.round(RepOptions.Chack2/60)+" more hours before increasing/decreasing this user again.")}}else{jQuery("#dtrs"+nay).add("#groo"+nay).show()}jQuery("#ajaxload"+nay).hide()});jQuery("#submitz"+nay).unbind();jQuery("#submitz"+nay).click(function(){var x=jQuery("#inputz"+nay).val();jQuery.getJSON("http://generationstudio.net/codes/repsystem/subreptest.php?repping="+you+"&repped="+them+"&time="+RepOptions.tight+"&reason="+x+"&board="+RepOptions.table+"&callback=?",RepOptions.getre);return false})}};RepOptions.getre=function(json){jQuery(".substrast").html("Loading...");jQuery(".dtrs").add(".groo").hide();jQuery.getJSON('http://generationstudio.net/codes/repsystem/selection.php?foo='+RepOptions.compareAll+'&board='+RepOptions.table+'&callback=?',RepOptions.parseJSON)};RepOptions.getHistory=function(json){if(json.History.length<=10){var a=json.History.length;var b=a;jQuery("#hisloading").empty();do{var i=b-a;var c=jQuery("#hisloading").html();var x=new Date();x.setTime(json.History[i].time);if(json.History[i].repping=='None838383'){}else{jQuery("#hisloading").html(c+"<p><strong>Who: </strong>"+json.History[i].repping+"<br /><strong>Amount:</strong> "+json.History[i].amount+"<br /><strong>Reason:</strong> "+json.History[i].reason+"<br /><strong>Time: </strong>"+x+"<hr /></p>")}}while(--a)}else{var a=10;var b=a;jQuery("#hisloading").empty();do{var i=b-a;var c=jQuery("#hisloading").html();var x=new Date();x.setTime(json.History[i].time);if(json.History[i].repping=='None838383'){}else{jQuery("#hisloading").html(c+"<p><strong>Who: </strong>"+json.History[i].repping+"<br /><strong>Amount:</strong> "+json.History[i].amount+"<br /><strong>Reason:</strong> "+json.History[i].reason+"<br /><strong>Time: </strong>"+x+"<hr /></p>")}}while(--a)}};RepOptions.parseJSON=function(json){if(1==1){RepOptions.datas=json;RepOptions.repNumber=0;var z=RepOptions.datas.Reputation.length;var y=z;do{var i=y-z;if(RepOptions.datas.Reputation[i].repped==RepOptions.compareName||RepOptions.datas.Reputation[i].repped==RepOptions.compareID){RepOptions.repNumber=RepOptions.repNumber+parseInt(RepOptions.datas.Reputation[i].amount)}}while(--z);jQuery(".substrast").html("<a href='#' class='repminus'>"+RepOptions.minusImg+"</a> <a href='#' class='rephistory'>"+RepOptions.repNumber+" </a><a href='#' class='repplus'>"+RepOptions.addImg+"</a>");jQuery("a.repplus").click(function(){if(RepOptions.youUser==RepOptions.compareName||RepOptions.youID==RepOptions.compareID){alert("You can't increase your own "+RepOptions.name+"!");return false}else{RepOptions.addRep(RepOptions.youUser,RepOptions.compareID,0);return false}});jQuery("a.repminus").click(function(){if(RepOptions.youUser==RepOptions.compareName||RepOptions.youID==RepOptions.compareID){alert("You can't decrease your own "+RepOptions.name+"!");return false}else{RepOptions.subRep(RepOptions.youUser,RepOptions.compareID,0);return false}});if(RepOptions.history != false) {jQuery("a.rephistory").click(function(){jQuery("#historybox").vCenter().add("#hisloading").show();jQuery.getJSON('http://generationstudio.net/codes/repsystem/history.php?who='+RepOptions.compareAll+'&board='+RepOptions.table+'&callback=?',RepOptions.getHistory);return false})}}};if(RepOptions.history !=false) {jQuery("div#historybox > h3 > a").click(function(){jQuery("div#historybox").hide();jQuery("#hisloading").empty();jQuery("#hisloading").html("<img src=\"http://i20.photobucket.com/albums/b209/Ryura/ajax.gif\" /><br /><h4>...Please Wait...</h4>");return false});};jQuery.getJSON('http://generationstudio.net/codes/repsystem/selection.php?foo='+RepOptions.compareAll+'&board='+RepOptions.table+'&callback=?',RepOptions.parseJSON)}})}

if(RepOptions.history === false) {
 $('.user_info').click(function(e){
if($(e.target).is('a')) {
return false;
}
 });
};