var houseboat_startDate = new Date(2002, 2, 10);
var houseboat_nowDate = new Date();
var houseboat_imgIndex = Math.floor((houseboat_nowDate-houseboat_startDate)/999); // daily increment of houseboat_imgIndex by 1

var houseboat_imgs = new Array;
var houseboat_urls = new Array;
var houseboat_alts = new Array;
var houseboat_numAds = 0;

function houseboat_addAdvert(img, alt)
{
    houseboat_imgs[houseboat_numAds] = img;
    houseboat_alts[houseboat_numAds++] = alt;
}

function houseboat_addAdvertLink(img, alt, url)
{
    houseboat_imgs[houseboat_numAds] = img;
    houseboat_urls[houseboat_numAds] = url;
    houseboat_alts[houseboat_numAds++] = alt;
}

function houseboat_getImg()
{
    if (houseboat_imgIndex >= houseboat_imgs.length)
    houseboat_imgIndex -= houseboat_imgs.length * Math.floor(houseboat_imgIndex/houseboat_imgs.length);
    document.write('<img src="' + houseboat_imgs[houseboat_imgIndex] + '" alt="' + houseboat_alts[houseboat_imgIndex] +  '" align=right border=0>');
}

function houseboat_getImgNoAlign()
{
    if (houseboat_imgIndex >= houseboat_imgs.length)
        houseboat_imgIndex -= houseboat_imgs.length * Math.floor(houseboat_imgIndex/imgs.length);
    document.write('<img src="' + houseboat_imgs[houseboat_imgIndex] + '" alt="' + houseboat_alts[houseboat_imgIndex] +  '" border=0>');
}

function houseboat_getImgLink()
{
    if (houseboat_imgIndex >= houseboat_imgs.length)
        houseboat_imgIndex -= houseboat_imgs.length * Math.floor(houseboat_imgIndex/houseboat_imgs.length);
    document.write('<a href="' + houseboat_urls[houseboat_imgIndex] + '"><img src="' + houseboat_imgs[houseboat_imgIndex] + '" alt="' + houseboat_alts[houseboat_imgIndex] +  '" border=0></a>');
}

function houseboat_getPropImgLink()
{
    if (houseboat_imgIndex >= houseboat_imgs.length)
        houseboat_imgIndex -= houseboat_imgs.length * Math.floor(houseboat_imgIndex/imgs.length);
    document.write('<a target="_blank" href="' + houseboat_urls[houseboat_imgIndex] + '"><img src="' + houseboat_imgs[houseboat_imgIndex] + '" alt="' + houseboat_alts[houseboat_imgIndex] +  '" border=0></a>');
}

function houseboat_getCaption()
{
    if (houseboat_imgIndex >= houseboat_imgs.length)
        houseboat_imgIndex -= houseboat_imgs.length * Math.floor(houseboat_imgIndex/imgs.length);
    document.write('<font size="+1"><b><i>' + houseboat_alts[houseboat_imgIndex] + '</i></b></font>');
}

function houseboat_getCaptionPlain()
{
    if (houseboat_imgIndex >= houseboat_imgs.length)
        houseboat_imgIndex -= houseboat_imgs.length * Math.floor(houseboat_imgIndex/houseboat_imgs.length);
    document.write(houseboat_alts[houseboat_imgIndex]);
}

function houseboat_globalVars(){
	globComment = houseboat_alts[houseboat_imgIndex];
}

<!-- Sponsors Below -->

houseboat_addAdvertLink("http://www.riverthames.co.uk/properties/newdevelopments.jpg","", 
			"/developments.htm");

<!-- Sponsors Above ->
