//This script controls the banners at the top of the Primitive Archer forum pages.
//To add banners to the rotation, first change the how_many_ads variable to the number of total banners
//Next, copy the contents of the first "if" statment below and paste it right before the first "document.write" statement
//Now change the ad== variable to the next incremental number.
//Continue you on down the variables and change the URL, alt and other tags to point to your new banner
//The second document.write statement contains the URL and source info for the home page link, change this as needed, if needed.
//Save and Upload the file
//Contact kirk@tools-plus.com with any problems.

var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;

if (ad==1) {
txt="";
url="http://www.primitivearcher.com/pages/aboutemag.html";
alt="Primitive Archer Emag";
banner="http://www.primitivearcher.com/bannerads/emag.jpg";
width="468";
height="60";
}

if (ad==2) {
txt="";
url="http://www.horsefeathersranch.com/cgi-bin/shopper?key=archbookBIBLE4&preadd=action";
alt="Traditional Boyer's Bible vol. 4";
banner="http://www.primitivearcher.com/bannerads/tbb4.jpg";
width="468";
height="60";
}


if (ad==3) {
txt="";
url="http://www.horsefeathersranch.com/cgi-bin/shopper?key=CALENDAR09&preadd=action";
alt="Flintknapping calendar 09";
banner="http://www.primitivearcher.com/bannerads/flintknapping09.jpg";
width="468";
height="60";
}

//Paste new banner code here
document.write('<center>');
document.write('<a href=\"http://www.primitivearcher.com\"><IMG SRC=\"http://www.primitivearcher.com/PAlogo_forum.jpg\" alt=\"Primitive Archer Home Page\"></a>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0>');
//document.write('<small>' + txt + '</small></a>');
document.write('</center>');
