// JavaScript Document
function addBanner(){

var NumberOfAds = 5;
var AdNumber = Math.floor(Math.random()*NumberOfAds);
AdNumber +=1;
if (AdNumber==1)
{
 url="http://www.newyearseve.com.au/";
 Graphic="images/banners/NYE_300x140-copy.gif";
 width = "300"
 height = "140"
 text = "CupDay.com.au - New Years Eve"
 target= "_blank"
}
if (AdNumber==2)
{
 url="http://www.endofyearsales.com.au/";
 Graphic="images/banners/EndofYearSales_300x141.gif";
 width = "300"
 height = "141"
 text = "End of Year Sales"
 target= "_blank"
}
if (AdNumber==3)
{
 url="/prestige-harbour-cruises.php";
 Graphic="images/banners/PHC-BoxDay_300x140.gif";
 width = "300"
 height = "141"
 text = "Prestige Harbour Cruises"
 target= "_blank"
}
if (AdNumber==4)
{
 url="/vicharbour.php";
 Graphic="images/banners/vicharbor-300x141.jpg";
 width = "300"
 height = "141"
 text = "Vic Harbour Docklands"
 target= "_blank"
}
if (AdNumber==5)
{
 url="/society.php";
 Graphic="images/banners/society300x141.gif";
 width = "300"
 height = "141"
 text = "Society"
 target= "_blank"
}


document.write('\r<a href=\"' + url + '\" ');
if (target!="")
{
	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>');

}