function display(zoneid)
{
	setTimeout("display1("+zoneid+")",12000);
}

function display1(zoneid)
{
//alert("zoneid=="+zoneid);
var xmlHttp;
//document.getElementById('load').style.display="block";
try
  {  // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
  }catch (e)  {
  // Internet Explorer
  try    {    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    }
  catch (e)    {    try      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      }
    catch (e)      {
      alert("Your browser does not support AJAX!");      return false;
      }    }  }
	  
  xmlHttp.onreadystatechange=function()
  {
    if(xmlHttp.readyState==4)
    {
	  var text=xmlHttp.responseText.split(',');
	  
	  var pathopenx=document.getElementById('pathopenx_'+zoneid).value;
	  
	  //alert(pathopenx);
	  var banurl;
	  var banid;
	  
	  
	  banurl = 'http://www.olisticmap.net/openx/www/images/'+text[0];
	  banid = text[1];
	  document.getElementById('topbanimg_'+zoneid).src = banurl; //this will display bannner
	  document.getElementById('topbanlog_'+zoneid).src = 'http://www.olisticmap.net/openx/www/delivery/lg.php'+'?bannerid='+banid+'&zoneid='+zoneid; //this will log bannner impression
	  document.getElementById('topbanclk_'+zoneid).href = 'http://www.olisticmap.net/openx/www/delivery/ck.php'+'?oaparams=2__bannerid='+banid+'__zoneid='+zoneid; //this will log click and redirect to adv destination.
	  setTimeout("display1("+zoneid+")",10000);
      }
    }
	
	var pathopenx1=document.getElementById('pathopenx_'+zoneid).value;
	
   xmlHttp.open("GET","http://www.olisticmap.it/curl.asp?zoneid="+zoneid,true);
  xmlHttp.send(null);
  
  }