// Javascript to display the site sponsors logos with links to their web // sites in a rotating display var seconds = 5.0; // Number of seconds to display each one // To update the sponsors, simply add or delete the image for the sponsor // and the url to their web site from these two arrays var images = [ "bwg_crw.jpg","cycleloft.gif","ERT.jpg","GraceBicycles.jpg","harris-b.gif","landrys-logo-rev.jpg","Wheelworks.jpg","SportsMemorabilia.jpg","PPTS_jaf_green.GIF","dedhambikelogo.gif" ]; var urls = [ "www.bwglaw.com","www.cycleloft.com/","www.easyridertours.com","www.gracebicycles.com","www.sheldonbrown.com/harris/index.html","www.landrys.com","www.Wheelworks.com","www.sportsmemorabilia.com","www.pedalpowercoaching.com","dedhambike.com" ]; // Sanity check if (urls.length != images.length) alert("Mismatch of url array with images array!"); var nSponsors = urls.length; // random starting point in array var nSponsor=Math.floor(Math.random()*nSponsors) function showSponsor() { var img = document.getElementById("sponsor"); var href = document.getElementById("sponsorlink"); nSponsor++; nSponsor = nSponsor % nSponsors; img.src = "images/Sponsors/" + images[nSponsor]; href.href = "http://" + urls[nSponsor]; setTimeout("showSponsor()",1000*seconds); }