<!-- cloak


function startup(){
    db = new Array()
db[0] = new link("../customers/valentinosrestaurant-westdale/index.html","/images/paying_logo/valentinosrestaurant-westdale_logo_sm.gif","Westdale and Mountain","Pizza, Pasta, Bakery")
db[1] = new link("../customers/artbar/index.html","/images/paying_logo/artbar_logo_sm.gif","In the Centre in the Square","Creative dining and wines")
db[2] = new link("../customers/blackbadger/index.html","/images/paying_logo/blackbadger_logo_sm.gif","Cambridge","Authentic Tudor style pub")
db[3] = new link("../customers/adventureattic/index.html","/images/paying_logo/adventureattic_logo_sm.gif","Westdale Hamilton","Outdoor Clothing and Equipment")
db[4] = new link("../customers/1010bistro/index.html","/images/paying_logo/1010bistro_logo_sm.gif","Westdale Village","Elegant Dining and Catering")
db[5] = new link("../customers/fergusbrewhouse/index.html","/images/paying_logo/fergusbrewhouse_logo_sm.gif","Fergus","Fergus Brew House")
db[6] = new link("../customers/sherwoodmusic/index.html","/images/paying_logo/sherwoodmusic_logo_sm.gif","Kitchener","We carry it")
db[7] = new link("../customers/greenwaybloom/index.html","/images/paying_logo/greenwaybloom_logo_sm.gif","Breslau","Come visit us for something exotic and different")
db[8] = new link("../customers/worldofhottubs/index.html","/images/paying_logo/worldofhottubs_logo_sm.gif","Guelph","Your Spa and Hot Tub Experts!!!")
db[9] = new link("../customers/oryancatering/index.html","/images/paying_logo/oryancatering_logo_sm.gif","Guelph","Oryan Catering")
db[10] = new link("../customers/landscape-plus/index.html","/images/paying_logo/landscape-plus_logo_sm.gif","Ariss","Landscape Plus Depot and Supplies")
db[11] = new link("../customers/kennedycatering/index.html","/images/paying_logo/kennedycatering_logo_sm.gif","St Agatha","A Gathering place for Friends since 1857")
db[12] = new link("../customers/cafe13/index.html","/images/paying_logo/cafe13_logo_sm.gif","Cambridge","Cafe 13 Main Street Grill")
db[13] = new link("../customers/dipietros/index.html","/images/paying_logo/dipietros_logo_sm.gif","Cambridge","Dipietro Fresh Foods")
db[14] = new link("../customers/kingstreettrio/index.html","/images/paying_logo/kingstreettrio_logo_sm.gif","Waterloo","Live Dinner Entertainment")
db[15] = new link("../customers/kingcraboysterbar/index.html","/images/paying_logo/kingcraboysterbar_logo_sm.gif","Kitchener","King Crab and Oyster Bar")
db[16] = new link("../customers/specsappeal-guelph/index.html","/images/paying_logo/specsappeal-guelph_logo_sm.gif","Guelph","Specs Appeal")
db[17] = new link("../customers/achangeofpace/index.html","/images/paying_logo/achangeofpace_logo_sm.gif","Moriston","A Change of Pace Restaurant")
db[18] = new link("../customers/classicos/index.html","/images/paying_logo/classicos_logo_sm.gif","Kitchener Downtown","Classicos Bar and Café")
db[19] = new link("../customers/cowboysandangelssalon/index.html","/images/paying_logo/cowboysandangelssalon_logo_sm.gif","Uptown Waterloo","Cowboys and Angels")
db[20] = new link("../customers/cafegreekgarden/index.html","/images/paying_logo/cafegreekgarden_logo_sm.gif","Guelph","Café Greek Garden")
db[21] = new link("../customers/sportszonecanada/index.html","/images/paying_logo/sportszonecanada_logo_sm.gif","Waterloo","Sport Zone")
}

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('../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>")}

