// By James Ott, Thursday, June 6, 2002
// adArray	An array of images and links
// adCount	Point to an entry in the array
// adCurrent	Point to an entry in the ad array

var adArray = new Array();
var adCount;

adCount = new Number(0);
adArray[adCount] = new Array();
adArray[adCount].Image = "http://www.qksrv.net/image-1199738-9785799";
adArray[adCount].CounterImage = "/space.gif";
adArray[adCount].Url = "http://www.qksrv.net/click-1199738-9785799";

adCount++;
adArray[adCount] = new Array();
adArray[adCount].Image = "/home-banner-468x60.gif";
adArray[adCount].CounterImage = "/space.gif";
adArray[adCount].Url = "http://www.amazon.com/exec/obidos/redirect-home/maismouscom";

adCount++;
adArray[adCount] = new Array();
adArray[adCount].Image = "http://www.qksrv.net/image-1199738-9944963";
adArray[adCount].CounterImage = "/space.gif";
adArray[adCount].Url = "http://www.qksrv.net/click-1199738-9944963";




// adCount++;
// adArray[adCount] = new Array();
// adArray[adCount].Image = "";
// adArray[adCount].CounterImage = "/space.gif";
// adArray[adCount].Url = "";


function GetCookie(CookieName) {
    var Start = document.cookie.indexOf (CookieName + "=");
    if (Start == -1)
        return "";
    Start += CookieName.length + 1;
    var End = document.cookie.indexOf (";", Start);
    var Name = document.cookie.slice (Start, End);
    if (End == -1)
        var Name = document.cookie.slice (Start);
    return Name;
}

function AddCookie(CookieName, CookieValue) {
    var ExpireDate = new Date();
    var NowPlus = ExpireDate.getTime() + (31 * 24 * 60 * 60 * 1000);
    ExpireDate.setTime (NowPlus);
    document.cookie = CookieName + "=" + CookieValue + "; expires=" + ExpireDate.toGMTString();
}

var adCurrent = new Number(GetCookie("ad"))
adCurrent++
if (adCurrent > adCount) {
    adCurrent = 0
}
AddCookie("ad", adCurrent)
document.write('<A TARGET="_blank" HREF="' + adArray[adCurrent].Url + '"><IMG BORDER="0" SRC="' + adArray[adCurrent].Image + '"></A>');
document.write('<IMG HEIGHT="1" WIDTH="1" NOSAVE BORDER="0" SRC="' + adArray[adCurrent].CounterImage + '">');
//-->
