function adArray() {
 for (i=0; i*2<adArray.arguments.length; i++) {
  this[i] = new Object();
  this[i].src = adArray.arguments[i*2];
  this[i].href = adArray.arguments[i*2+1];
 }
 this.length = i;
}
function getAdNum() {
 dat = new Date();
 dat = (dat.getTime()+"").charAt(8);
 if (dat.length == 1)
  ad_num = dat%ads.length;
 else
  ad_num = 0;
 return ad_num;
}

/*ide a kép URL-címe,és a link....*/

var ads = new adArray(
"http://www.erotikmarket.hu/Banners/erotikmarket_allo.gif",
"http://www.erotikmarket.hu",
"http://users.atw.hu/stuxy13/images/ind_01/sexbanner_02.gif",
"http://www.stuxy13.atw.hu",
"http://diamondsexshop.hu/banners/dvd1.gif",
"http://diamondsexshop.hu/index.php?p_id=179",
"http://diamondsexshop.hu/banners/pot3.gif",
"http://diamondsexshop.hu/index.php?p_id=179",
"http://diamondsexshop.hu/banners/animal120x240.gif",
"http://diamondsexshop.hu/index.php?p_id=179",
"http://diamondsexshop.hu/banners/diamondsexs.gif",
"http://diamondsexshop.hu/index.php?p_id=179",
"http://szex.pixelnet.hu/banners/banner.jpg",
"http://szex.pixelnet.hu/shop.php?puid=1110",
"http://diamondsexshop.hu/banners/diamondsexs_orig.gif",
"http://diamondsexshop.hu/index.php?p_id=179",
"http://diamondsexshop.hu/banners/diamondsexs_orig2.gif",
"http://diamondsexshop.hu/index.php?p_id=179",
"http://diamondsexshop.hu/banners/mell2.gif",
"http://diamondsexshop.hu/index.php?p_id=179",
"http://diamondsexshop.hu/banners/libex120x240.gif",
"http://diamondsexshop.hu/index.php?p_id=179",
"http://www.csajozasitanacsok.hu/banner_kirako.php?pid=69894&banner=4",
"http://www.csajozasitanacsok.hu/?pid=69894&banner=4");



var ad_num = getAdNum(); // don't change this line

document.write('<center><table cellpadding=0 cellspacing=1 border=0><tr><td '
+'align="center">'
+'</td></tr><tr><td>'
+'<A href="'+ads[ad_num].href+'"target=_blank><IMG SRC="'+ads[ad_num].src+'" '
+'height="240" width="120" border="0" name="js_ad"></a></td></tr></table></center>');

// ****** 8000---8 másodpercenkénti váltás ****

link_num = document.links.length-1;

function rotate() {
 if (document.images) {
  ad_num = (ad_num+1)%ads.length;
  document.js_ad.src = ads[ad_num].src;
  document.links[link_num].href = ads[ad_num].href;
  setTimeout("rotate()",8000);
 }
}
setTimeout("rotate()",10000);

