var imgs1 = new Array("images/avanti_banner.jpg", "images/AJC_banner.jpg","images/andover_banner.jpg","images/avanti_banner2.jpg","images/BXX_Banner.jpg", "images/lode_banner.jpg","images/cem_banner.jpg", "images/EGE_banner.jpg", "images/EOX_banner.jpg", "images/GEOVIC_banner.jpg", "images/gold_bullion_banner2.jpg", "images/GV_banner.jpg","images/GLL_banner.jpg", "images/GPXM_banner.jpg", "images/goldgroup_banner.jpg", "images/panther_banner2.jpg", "images/laurion_banner.jpg", "images/lynden_banner.jpg", "images/nemaska_banner.jpg","images/NBS_banner.jpg","images/nortec_banner2.jpg", "images/teryl_banner.jpg", "images/TBD_banner.jpg","images/TRM_banner.jpg","images/URC_banner.jpg","images/victoria_banner.jpg","images/victory_resources_banner.jpg");

var lnks1 = new Array("Advanced_Explorations_inc.html", "american_consolidated.html","andover_ventures.html","Avanti_Mining_Inc.html","Boxxer_Gold.html", "comstock_mining.html","contantine_metals.html","eagle_star.html", "eurOmax_resources.html","Geovic_Mining_Corp.html","Gold_Bullion_Development.html", "Gold_Standard.html", "Golden_Alliance.html", "Golden_Phoenix.html", "Goldgroup_Mining.html", "Great_Panther_Silver_Ltd.html", "Laurion_Mineral_Exploration.html", "Lynden_Energy.html", "nemaska_exploration.html", "neostem.html","nortec_minerals.html", "Teryl_Resources_Corp.html", "Thunderbird_Energy.html","Trueclaim_Exploration.html","Uracan_Resources.html","Victoria_Gold_Corp.html","Victory_Resources.html");

var alt1 = new Array("avanti_banner.jpg", "AJC_banner.jpg","andover_banner.jpg", "avanti_banner2.jpg","BXX_banner.jpg", "lode_banner.jpg","cem_baner.jpg","EGE_banner.jpg", "EOX_banner.jpg","GEOVIC_banner.jpg", "Gold_Bullion_Banner2.jpg", "GV_banner.jpg", "GLL_banner.jpg", "GPXM_banner.jpg", "goldgroup_banner.jpg", "panther_banner2.jpg", "Laurion_banner.jpg", "lynden_banner.jpg", "nemaska_banner.jpg", "NBS_banner.jpg", "nortec_banner2.jpg", "Teryl_banner.jpg", "TBD_banner.jpg","TRM_banner.jpg","URC_banner.jpg","victoria_banner.jpg","victory_resources_banner.jpg");

var currentAd1 = 0;

var imgCt1 = 27;

function cycle1() {

  if (currentAd1 == imgCt1) {

    currentAd1 = 0;

  }

var banner1 = document.getElementById('adBanner1');

var link1 = document.getElementById('adLink1');

  banner1.src=imgs1[currentAd1]

  banner1.alt=alt1[currentAd1]

  document.getElementById('adLink1').href=lnks1[currentAd1]

  currentAd1++;

}

  window.setInterval("cycle1()",5000);
