// JavaScript Document
function addBanner(){

var NumberOfAds = 14;
var AdNumber = Math.floor(Math.random()*NumberOfAds);
AdNumber +=1;
if (AdNumber==1)
{
 url="./functioncentre.html";
 Graphic="assets/images/functions.jpg";
 width = "124";
 height = "124";
 text = "Functions";
 target= "";
}
if (AdNumber==2)
{
 url="./race-day-packages.html";
 Graphic="assets/images/race-day.jpg";
 width = "124";
 height = "124";
 text = "Race Day Packages";
 target= "";
}
if (AdNumber==3)
{
 url="./membership.html";
 Graphic="assets/images/membership.jpg";
 width = "124";
 height = "124";
 text = "Membership";
 target= "";
}
if (AdNumber==4)
{
 url="./conferencecentre.html";
 Graphic="assets/images/conferences.jpg";
 width = "124";
 height = "124";
 text = "Conference Centre";
 target= "";
}
if (AdNumber==5)
{
 url="./events.html";
 Graphic="assets/images/pubs-clubs.jpg";
 width = "124";
 height = "124";
 text = "Events";
 target= "";
}
if (AdNumber==6)
{
 url="./membership.html";
 Graphic="assets/images/panels/membership_2.jpg";
 width = "124";
 height = "124";
 text = "Membership";
 target= "";
}
if (AdNumber==7)
{
 url="./seymourhistory.html";
 Graphic="assets/images/panels/history.jpg";
 width = "124";
 height = "124";
 text = "Seymour Racing Club History";
 target= "";
}
if (AdNumber==8)
{
 url="./racedays.html";
 Graphic="assets/images/panels/race-days.jpg";
 width = "124";
 height = "124";
 text = "Race Days";
 target= "";
}
if (AdNumber==9)
{
 url="./seymourracecourse.html";
 Graphic="assets/images/panels/racecourse.jpg";
 width = "124";
 height = "124";
 text = "Seymour Race Course";
 target= "";
}
if (AdNumber==10)
{
 url="./seymour1300m.html";
 Graphic="assets/images/panels/track-video.jpg";
 width = "124";
 height = "124";
 text = "Track Video";
 target= "";
}

if (AdNumber==15)
{
 url="./festival/";
 Graphic="assets/images/panels/festival_btn.jpg";
 width = "124"
 height = "124"
 text = "Victorian Country Thoroughbred Festival"
 target= "_blank"
}

if (AdNumber==11)
{
 url="http://www.tastesofthegoulburn.org.au";
 Graphic="assets/images/panels/goulburn.gif";
 width = "124";
 height = "124";
 text = "Tastes of the Goulburn";
 target= "_blank";
}

if (AdNumber==12)
{
 url="http://www.tastesofthegoulburn.org.au";
 Graphic="assets/images/panels/goulburn.gif";
 width = "124";
 height = "124";
 text = "Tastes of the Goulburn";
 target= "_blank";
}
if (AdNumber==13)
{
 url="http://www.tastesofthegoulburn.org.au";
 Graphic="assets/images/panels/goulburn.gif";
 width = "124";
 height = "124";
 text = "Tastes of the Goulburn";
 target= "_blank";
}
if (AdNumber==14)
{
 url="http://www.tastesofthegoulburn.org.au";
 Graphic="assets/images/panels/goulburn.gif";
 width = "124";
 height = "124";
 text = "Tastes of the Goulburn";
 target= "_blank";
}

document.write('\r<a href=\"' + url + '\" ');
document.write('target=\"' + target +'\" >');
document.write('<img src=\"' + Graphic + '\" class=\"image\" width=\"');
document.write(width + '\" height=\"' + height + '\" ');
document.write('alt=\"' + text + '\" title=\"' + text + '\" ');
document.write('border=\"0\">');
document.write('</a>');
}