var aryAds = new Array();
// each sub-array has the form: (href, filename, alt comment)

var i = 0

aryAds[i] = new Array("http://www.activefirstaid.co.uk", "activeFirstAid.gif", "Active First Aid");
//aryAds[i++] = new Array("http://www.speedingdragon.com", "sdc1.gif", "SpeedingDragon"); 
aryAds[i++] = new Array("http://www.thefreeclimber.com", "freeclimber.gif", "The Free Climber");
aryAds[i++] = new Array("http://www.canadiancanoe.com", "canadacanoe.gif", "The Canadian Canoe Company");
aryAds[i++] = new Array("http://www.adventurearchive.com", "adventurearchive.gif", "Adventure Archive");
aryAds[i++] = new Array("mailto:mark@edgeofadventure.com", "adhere1.gif", "Advertise Here");
aryAds[i++] = new Array("http://www.royclarkphotography.com", "royclarkphoto.jpg", "Roy Clark Photography");
//aryAds[i++] = new Array("http://www.surf-lines.co.uk", "surflines.gif", "Surf Lines, Llanberis");
aryAds[i++] = new Array("http://www.knoydart.co.uk", "knoydart.gif", "Knoydart, Keswick");
aryAds[i++] = new Array("http://www.rockpoolkayaks.com", "rockpool.gif", "Rockpool Kayaks");
aryAds[i++] = new Array("http://www.atlanticseakayakers.org", "atlanticseakayak.gif", "Atlantic Sea Kayakers");
aryAds[i++] = new Array("http://www.sportsresource.org", "sportsresource.gif", "Sports resource");
aryAds[i++] = new Array("http://www.vlmadventureconsultants.co.uk", "vivemontagne.gif", "Vive la Montagne Adventure Consultants");
aryAds[i++] = new Array("http://www.petes-eats.co.uk", "peteseats.gif", "The infamous Pete's Eats, Llanberis");
aryAds[i++] = new Array("mailto:mark@edgeofadventure.com", "adhere2.gif", "Advertise Here");
//aryAds[i++] = new Array("http://www.seakayak.co.uk", "iska.gif", "The International Sea Kayak Association");
aryAds[i++] = new Array("http://www.theadventurefitnesscompany.com/", "adventurefitness.jpg", "The Adventure Fitness Company");
//aryAds[i++] = new Array("http://www.speedingdragon.com", "sdc2.gif", "SpeedingDragon");
//aryAds[i++] = new Array("http://www.cascade-point.com", "cascadepoint.jpg", "Cascade Point");
aryAds[i++] = new Array("http://www.buachaille.com/", "buachaillecom.jpg", "Buachaille.com - find-compare-buy-climb");
//aryAds[i++] = new Array("http://www.royclarkphotography.com", "royclarkphoto.jpg", "Roy Clark Photography");
aryAds[i++] = new Array("http://trolluk.com/", "troll.jpg", "Troll - Equipment Manufacturer");
aryAds[i++] = new Array("http://www.tideraceseakayaks.co.uk", "tiderace.jpg", "TideRace Kayaks");
aryAds[i++] = new Array("http://www.ami.org.uk/", "ami.jpg", "Association of Mountain Instructors");
aryAds[i++] = new Array("http://www.mlte.org/", "mlte.jpg", "Mountain Leader Training England");
aryAds[i++] = new Array("http://www.uimla.org/", "uimla.jpg", "Union of International Mountain Leaders Associations");
aryAds[i++] = new Array("http://www.outdoor-learning.org", "ifol.jpg", "Institute for Outdoor Learning");
aryAds[i++] = new Array("http://surfersagainstsewage.co.uk", "sas.jpg", "Surfers Against Sewage");
aryAds[i++] = new Array("http://www.thebmc.co.uk/", "bmc.jpg", "British Mountaineering Council");
aryAds[i++] = new Array("http://www.bcu.org.uk/", "bcu.jpg", "British Canoe Union");
aryAds[i++] = new Array("http://www.british-caving.org.uk/", "bca.jpg", "British Caving Association");
aryAds[i++] = new Array("http://www.adventureactivityinsurance.co.uk/", "aa_ins_sch.jpg", "Adventure Activity Insurance Scheme");
aryAds[i++] = new Array("http://www.mlta.co.uk", "mlt.jpg", "Mountain Leader Training Association");
aryAds[i++] = new Array("http://www.welsh-canoeing.org.uk", "wco.jpg", "Canoe Wales / Canw Cymru");
aryAds[i++] = new Array("http://www.mltw.org", "mltw.jpg", "Mountain Leader Training Wales / Hyfforddi Arweinwyr Mynydd Cymru");
aryAds[i++] = new Array("http://wlaplay.co.uk/", "wla.jpg", "Technical Outdoor Education Support");
aryAds[i++] = new Array("http://www.pesdapress.com/index.php?ref=11&affiliate_banner_id=3", "pesdapress.jpg", "Pesda Press ltd");
aryAds[i++] = new Array("http://www.ogwen-rescue.org.uk/", "ovmro.jpg", "Ogwen Valley mountain Rescue Organisation");
aryAds[i++] = new Array("http://www.llanberismountainrescue.co.uk/", "lmrt.jpg", "Llanberis Mountain Rescue Team");
aryAds[i++] = new Array("http://trolluk.com/", "troll.jpg", "Troll - Equipment Manufacturer");
//aryAds[i++] = new Array("", "", "");
//aryAds[i++] = new Array("", "", "");


function getAd(intLinkNo,intNoLinks)
{
// 	Add a gif image (160x72) to the images/ads/ folder, 
//  the name must be ad + an integer + .gif, and sequential
//  and the url to the corresponding line below

var intLinkRef = Math.round(Math.random()*(((aryAds.length-1)/intNoLinks))+((intLinkNo-1)*((aryAds.length-1)/intNoLinks))); 
return('<a href="' + aryAds[intLinkRef][0] + '" target="_blank"><img border="0" src="images/ads/' + aryAds[intLinkRef][1] + '" alt="' + aryAds[intLinkRef][2] + '"></a>');
}

