// Script - banner.js
// usage: <script language="JavaScript1.1" src="banner.js"></script>

// Banner Up! - Copyright 1999-2000 By Heidi Allen
// Knowledge Hound: The How-To Hunter - Learn how to do almost anything...for free!
// Please visit us at http://www.knowledgehound.com
// License for use of this script is granted if and only if
// this entire copyright notice is included with it. We do not provide
// support for this script. It is provided solely as a friendly gesture.
// Use at your own risk. Thanks! */
// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)

var image="";
var banners=1;
function cycle() {
  if (++banners > 4) banners=1;
    loadbanners();
    document.sponsorbanner.src = image;
    window.setTimeout('cycle();',2000);
  }

function loadbanners() {
   if (banners==1) {image="image/banner_toonysports.jpg";}
   if (banners==2) {image="image/banner_bungaree.gif";}
   if (banners==3) {image="image/banner_snap.jpg";}
   if (banners==4) {image="image/banner_laingsimmons.jpg";}
// if (banners==5) {image="image/banner_tsbc.gif";}
}

var link = "sponsors.html"
function urlswitch() {
if (banners==1) {link = "http://www.toongabbiesportsclub.com.au/";}
if (banners==2) {link = "sponsors.html";}
if (banners==3) {link = "http://www.snapprinting.com/tools/locator/setFranchise.asp?prefix=F&number=121&source=";}
if (banners==4) {link = "http://www.laingsimmons.com.au/wentworthville/";}
return link;
}

//<body onLoad="window.setTimeout('cycle();',1000);(loadbanners());(urlswitch());">

//<a href="sponsors.html" onclick="this.href=urlswitch()">
//<img border="0" src="banner_sportingclub.gif" name="sponsorbanner"></a>


