<!-- cloak


function startup(){
    db = new Array()
db[0] = new link("../customers/whistlingwalrus/index.html","/images/paying_logo/whistlingwalrus_logo_sm.gif","Hamilton Mountain","The Pub on Upper James")
db[1] = new link("../customers/wildorchidrestaurant/index.html","/images/paying_logo/wildorchidrestaurant_logo_sm.gif","James Street North","Fine Portuguese Cuisine")
db[2] = new link("../customers/pheasantplucker/index.html","/images/paying_logo/pheasantplucker_logo_sm.gif","In the South Side","International Soccer Source")
db[3] = new link("../customers/slainteirishpub/index.html","/images/paying_logo/slainteirishpub_logo_sm.gif","Downtown Hamilton","A little taste of Ireland")
db[4] = new link("../customers/winkingjudge/index.html","/images/paying_logo/winkingjudge_logo_sm.gif","In the South Side","Micro beers Galore")
db[5] = new link("../customers/adventureattic/index.html","/images/paying_logo/adventureattic_logo_sm.gif","Westdale Hamilton","Outdoor Clothing and Equipment")
db[6] = new link("../customers/seventyseven/index.html","/images/paying_logo/seventyseven_logo_sm.gif","Downtown Hamilton","Experience 77")
db[7] = new link("../customers/thirstycactus/index.html","/images/paying_logo/thirstycactus_logo_sm.gif","Downtown Dundas","Expansive Tex Mex Menu")
db[8] = new link("../customers/clubabsinthe/index.html","/images/paying_logo/clubabsinthe_logo_sm.gif","Lower Level - Weekly DJ's","Main Floor - Live Music")
db[9] = new link("../customers/1nonlycleaning/index.html","/images/paying_logo/1nonlycleaning_logo_sm.gif","Hamilton","1 N Only Cleaning")
db[10] = new link("../customers/runnersden-westdale/index.html","/images/paying_logo/runnersden-westdale_logo_sm.gif","Westdale","Together we go the distance")
db[11] = new link("../customers/blueangel/index.html","/images/paying_logo/blueangel_logo_sm.gif","For all your Entertainment Needs","Blue Angel Productions")
db[12] = new link("../customers/thelionshead/index.html","/images/paying_logo/thelionshead_logo_sm.gif","Hamilton","Lionshead Pub")
db[13] = new link("../customers/fairhomeinteriors/index.html","/images/paying_logo/fairhomeinteriors_logo_sm.gif","Burlington Downtown","Fairhome Interiors")
db[14] = new link("../customers/corktownpub/index.html","/images/paying_logo/corktownpub_logo_sm.gif","Hamilton","The Corktown")
db[15] = new link("../customers/raysplacetheboathouse/index.html","/images/paying_logo/raysplacetheboathouse_logo_sm.gif","Hamilton","Ray's Place")
db[16] = new link("../customers/larryssports/index.html","/images/paying_logo/larryssports_logo_sm.gif","Hamilton","Larry's Sports")
db[17] = new link("../customers/itsallgreektome-hamilton/index.html","/images/paying_logo/itsallgreektome_logo_sm.gif","Hamilton","It's All Greek To Me")
db[18] = new link("../customers/factoryshoeoutlet/index.html","/images/paying_logo/factoryshoeoutlet_logo_sm.gif","Burlington","Factory Shoe Outlet")
db[19] = new link("../customers/marcianos/index.html","/images/paying_logo/marcianos_logo_sm.gif","Waterdown","Marcianos Pasta Café")
db[20] = new link("../customers/5star-fitness/index.html","/images/paying_logo/5star-fitness_logo_sm.gif","Hamilton","5 Star Fitness")
}

function link(where,title,address,name) {
    this.where = where;
    this.title = title;
    this.address = address;
    this.name = name;
    return this
}

function RanNum(r) {
    today = new Date();
    startup();
    num = Math.floor(Math.abs(Math.sin(today.getSeconds()) * 1000 % db.length));
    return (num);
}

function getRandomLink1() {

    n= RanNum(0);

    document.write('<a href=' + db[n].where + ' target=new>' + '<img src=' + db[n].title + ' border=0>'  +  '</a><br>' + '<font face=tahoma size=1 color=white>' + db[n].name  + '<br>' + db[n].address)

}

function getRandomLink2() {

      r=1;

    n= RanNum(r);
    n = n + r;

    if (n >= db.length){
        n = n - db.length;
    }


if (db.length==1 || db.length==0)
{
    n=0;
}
    document.write('<a href=' + db[n].where + ' target=new>' + '<img src=' + db[n].title + ' border=0>'  +  '</a><br>' + '<font face=tahoma size=1 color=white>' + db[n].name  + '<br>' + db[n].address)
}


function getRandomLink3() {

      r=2;

    n= RanNum(r);
    n = n + r;

    if (n >= db.length){
        n = n - db.length;
    }


if (db.length==1 || db.length==0)
{
    n=0;
}
    document.write('<a href=' + db[n].where + ' target=new>' + '<img src=' + db[n].title + ' border=0>'  +  '</a><br>' + '<font face=tahoma size=1 color=white>' + db[n].name  + '<br>' + db[n].address)
}


function getRandomLink4() {

      r=3;

    n= RanNum(r);
    n = n + r;

    if (n >= db.length){
        n = n - db.length;
    }


if (db.length==1 || db.length==0)
{
    n=0;
}
    document.write('<a href=' + db[n].where + ' target=new>' + '<img src=' + db[n].title + ' border=0>'  +  '</a><br>' + '<font face=tahoma size=1 color=white>' + db[n].name  + '<br>' + db[n].address)
}


function getRandomLink5() {

      r=4;

    n= RanNum(r);
    n = n + r;

    if (n >= db.length){
        n = n - db.length;
    }


if (db.length==1 || db.length==0)
{
    n=0;
}
    document.write('<a href=' + db[n].where + ' target=new>' + '<img src=' + db[n].title + ' border=0>'  +  '</a><br>' + '<font face=tahoma size=1 color=white>' + db[n].name  + '<br>' + db[n].address)
}


function getRandomLink6() {

      r=5;

    n= RanNum(r);
    n = n + r;

    if (n >= db.length){
        n = n - db.length;
    }


if (db.length==1 || db.length==0)
{
    n=0;
}
    document.write('<a href=' + db[n].where + ' target=new>' + '<img src=' + db[n].title + ' border=0>'  +  '</a><br>' + '<font face=tahoma size=1 color=white>' + db[n].name  + '<br>' + db[n].address)
}


function getRandomLink7() {

      r=6;

    n= RanNum(r);
    n = n + r;

    if (n >= db.length){
        n = n - db.length;
    }


if (db.length==1 || db.length==0)
{
    n=0;
}
    document.write('<a href=' + db[n].where + ' target=new>' + '<img src=' + db[n].title + ' border=0>'  +  '</a><br>' + '<font face=tahoma size=1 color=white>' + db[n].name  + '<br>' + db[n].address)
}


            function RanNumBanner(r) {
                today = new Date();
                startupbanner();
                num = Math.floor(Math.abs(Math.sin(today.getSeconds()) * 1000 % dbb.length));
                return (num);
            }
            
            function bannerLink(url,image) {
                this.url = url;
                this.image = image;
                return this
            }
            
            function startupbanner(){
                dbb = new Array()
                    dbb[0] = new bannerLink('../customers/whatsupcash','/images/banners/restaurant_banner.gif')
                    dbb[1] = new bannerLink('../sales/add_listing.htm','/images/banners/build_banner.gif')
                    dbb[2] = new bannerLink('../sales/add_listing1.htm','/images/banners/fwo_banner.gif')
            }
            
            
             function getBannerAd1(){
                
                n=RanNumBanner(0);
                
                document.write('<center><HR width=100% size=1 align=center><a href=' + dbb[n].url  +  ' target=new><img src=' + dbb[n].image + ' border=0></a></center>')
            }
            
             function getBannerAd2(){
                
                n=RanNumBanner(0);
                
                n = n + 1;
            
                    if (n >= dbb.length){
                    n = n - dbb.length;
                 }
                document.write('<center><HR width=100% size=1 align=center><a href=' + dbb[n].url  +  ' target=new><img src=' + dbb[n].image + ' border=0></a></center>')
            }


function rightsidebar1() {
    document.write("<center><font color=red face=tahoma size=2><b>LOCAL BIA's</b></font><BR><BR>")}
