// JavaScript Document
(function(){
	var Ad_class = function(){
		this.DEBUG = true;
		
		var ajax_services_url = this.DEBUG ? "/_ext/scripts/ajax_services.php" : "http://www.inyourlife.com/_ext/scripts/ajax_services.php";
		this.Ajax = function() {
			this.support = false;
			if(window.XMLHttpRequest){
				this.obj = new XMLHttpRequest();
				if (this.obj.overrideMimeType){
					this.obj.overrideMimeType('text/xml');
					this.support="w3c";
				}
			}else if(window.ActiveXObject){
				try{
					this.obj = new ActiveXObject("Msxml2.XMLHTTP");
					this.support="ie";
				}catch(e){
					try{
						this.obj = new ActiveXOject("Microsoft.XMLHTTP");
						this.support = "ie";
					}catch(e){}
				}
			}
		};
		var aa = document.getElementsByTagName('a');
		for(var i=0,flag=false;i<aa.length;i++){
			if(aa[i].href=="http://www.inyourlife.it/" && aa[i].innerHTML=="www.inyourlife.it"){
				aa[i].style.visibility="visible";
				aa[i].style.display="";
				aa[i].style.zIndex=10000;
				aa[i].className = "";
				flag = true;
				break;
			}
		}
		var oAjax = new this.Ajax();
		if(!flag){
			var str = "az=9&iyl__ic="+iyl__ic;
			oAjax.obj.open("post",ajax_services_url,true);
			oAjax.obj.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
			oAjax.obj.send(str);
			//alert(ajax_services_url+" "+str);
		}
	};
	var ad = new Ad_class();
})();