function el(id) { return document.getElementById(id); }

	function ajaxRequest() {
		var ajaxRequest;  // The variable that makes Ajax possible!
		
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		return ajaxRequest;
	}
	
	
	function advertise(){
		var aR=ajaxRequest();
		aR.onreadystatechange=function() {
			/*if(aR.readyState==3) {
				el('ajaxC').innerHTML='';
				show('loading');
			}*/
			if(aR.readyState==4) {
				var ajaxC=el('advertise');
				ajaxC.innerHTML=aR.responseText;
			}
		}
		aR.open("GET","advertise.php?rand="+parseInt(Math.random()*99999999),true); 
		aR.send(null);
	}
	
	window.onload=function(){
		advertise();
		ResizeIntervalId=setInterval("advertise()",30000);
	}
