<!--
var ncookie="advad";
var visit;
var maxvisit=3;

function getCookieVal (offset) 
   {
   var endstr = document.cookie.indexOf (";", offset);
   if (endstr == -1)
      endstr = document.cookie.length;
   return unescape(document.cookie.substring(offset, endstr));
   }

function GetCookie (name) 
   {
   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;
   while (i < clen) 
      {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg)
         return getCookieVal (j);
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0) 
         break; 
      }
   return null;
   }


function SetCookie (name, value) 
   {
   var argv = SetCookie.arguments;
   var argc = SetCookie.arguments.length;
   var expires = (2 < argc) ? argv[2] : null;
   var path = (3 < argc) ? argv[3] : null;
   var domain = (4 < argc) ? argv[4] : null;
   var secure = (5 < argc) ? argv[5] : false;
   document.cookie = name + "=" + escape (value) +
     ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
     ((path == null) ? "" : ("; path=" + path)) +
     ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");
   }
var expdate = new Date();
expdate.setTime(expdate.getTime() + 10000000); 

visit = GetCookie(ncookie);
visit++;
if(visit > maxvisit) visit=1;
SetCookie(ncookie, visit, expdate, "/", null, false);

document.write('<div onMouseover="window.status=\'Clicca!\'; return true" onMouseout="window.status=\'\'; return true">');

if(visit == 1)
{
document.write('<script language="JavaScript" src="http://impit.tradedoubler.com/imp/pool/js/149807/1224685" charset="ISO-8859-1"></script>');
}

if(visit == 3) 
{
document.write('<a href="http://www.publiweb.com/meetic/" target="_blank">');
document.write('<img src="http://adv.publiweb.com/ban/728x90_M.gif" width=728 height=90 border=0></a>');
}

// max 3
if(visit == 5)
{
document.write('<iframe src="http://www.comprabanner.it/engine/impr.en?gid=677&t=_blank&type=iframe&" height=90 width=728 border="0" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" style="overflow:-moz-scrollbars-none; overflow-x: hidden;">');
document.write('<a href="http://www.comprabanner.it/cgibin/adcycleb/adclick.cgi?gid=677">');
document.write('<img src="http://www.comprabanner.it/engine/impr.en?gid=677" border="0"></a></iframe>');
}

if(visit == 2) 
{
document.write('<iframe src="http://adv.publiweb.com/adv/adpepper728x90.html" height=90 width=728 border="0" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" style="overflow:-moz-scrollbars-none; overflow-x: hidden;">');
document.write('</iframe>');
}

document.write('</div>');

// ---

