
var loc = 5;  // this should be equal to the number of banners in the rotation
var trx = Math.floor(Math.random() *loc+1);
// notice that this first listing in the paPow function contains no window.open command - this is the bannerlink that will NOT
// pop open a new window
function paPow() {
if (trx==1) {
window.open ("http://www.eroticaindex.com/popup.html", "remote",
"menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,dependent,width=253,height=250")
}
else if (trx==2) {
top.location = "http://www.eroticaindex.com/personals/"
}
else if (trx==3) {
top.location = "http://www.eroticaindex.com/info/erotica_search/"
}
else if (trx==4) {
top.location = "http://www.eroticaindex.com/gallery/" 
}
if (trx==5) {
top.location = "http://www.eroticaindex.com/just_added/"
}

}


if(trx ==1) {
document.write ("<A HREF=\"javascript: paPow()\" target=\"_top\"><IMG SRC=\"http://www.eroticaindex.com/images/newsgraph.gif\" BORDER=0></A>");
}
else if (trx ==2) {
document.write ("<A HREF=\"javascript: paPow()\" target=\"_top\"><IMG SRC=\"http://www.eroticaindex.com/images/personals.gif\" BORDER=0></A>");
}
else if (trx ==3) {
document.write ("<A HREF=\"javascript: paPow()\" target=\"_top\"><IMG SRC=\"http://www.eroticaindex.com/images/search.gif\" BORDER=0></A>");
}
else if (trx ==4) {
document.write ("<A HREF=\"javascript: paPow()\" target=\"_top\"><IMG SRC=\"http://www.eroticaindex.com/images/gallery_promo.gif\" BORDER=0></A>");
}
else if (trx ==5) {
document.write ("<A HREF=\"javascript: paPow()\" target=\"_top\"><IMG SRC=\"http://www.eroticaindex.com/images/newsite_promo.gif\" BORDER=0></A>");
}

