//fantastisch-reisen
banner = new Array();

// alleziele
banner[0] = new Array(10,"http://james.adbutler.de/click.php?pid=8127&tid=79813&bid=32015",
"http://james.adbutler.de/view.php?pid=8127&bid=32015&tid=79813&b=468&h=60&inv=img");
// reichersack
banner[1] = new Array(10,"http://james.adbutler.de/click.php?pid=11957&tid=79813&bid=87153",
"http://james.adbutler.de/view.php?pid=11957&tid=79813&bid=87153&b=468&h=60&inv=img");
// sportcheck
banner[2] = new Array(5,"http://partners.webmasterplan.com/click.asp?ref=109856&site=3617&type=b35&bnb=35",
"http://banners.webmasterplan.com/view.asp?site=3617&ref=109856&b=35");
// daydreams
banner[3] = new Array(5,"http://ad.zanox.com/ppc/?2971843C753313398T",
"http://ad.zanox.com/ppv/?2971843C753313398");


popup = new Array();

// jamba
popup[0] = new Array(10,"http://partners.webmasterplan.com/click.asp?ref=109856&site=2703&type=text&tnb=66");
// Mediatransfer
popup[1] = new Array(10,"http://www.sweetnews.de/coloringbook/service/mediatransfer.htm");


// ------------------------------------------------------------------------

function nummer() {
var zufall; var zufall2;
do {
zufall=Math.floor(banner.length*Math.random());
zufall2=Math.floor(10*Math.random());
} while(zufall2>banner[zufall][0]);
return zufall;
}

function nummerpopup() {
var zufall; var zufall2;
do {
zufall=Math.floor(popup.length*Math.random());
zufall2=Math.floor(10*Math.random());
} while(zufall2>popup[zufall][0]);
return zufall;
}

function addbanner() {
var nr=nummer();
document.write('<a href="'+banner[nr][1]+'" target="_blank" rel="nofollow">');
document.write('<img src="'+banner[nr][2]+'"border = "0" width="468" height="60" alt="hier klicken!"></a>' );
}

// if (document.referrer.search(/fantastisch/) == -1) {
// var nr=nummerpopup();
// window.open(popup[nr][1],"_blank","location=no, scrollbars=yes, resizable=yes, status=no, menubar=yes, toolbar=yes");
// window.focus()
// }
