//FOR NEW ADS: Add image link code to the first section. Be sure to escape single quotes with backslash (\') in alt text.
//If any of the first 5 sponsors below are dropped, replace <noscript> link in table code with current sponsor.

//HTML code for ads
var ad1 = '<a href="http://nevadaweb.com/cgi-bin/travel/ax.pl?http://www.peppermillwendover.com/" target="_blank"><IMG width="120" height="60" border="0" src="http://www.nevadatravel.net/sponsors/wendpepbillbrd2-120x60.jpg" alt="Wendover Peppermill" border="0" WIDTH="120" HEIGHT="60"></a>';

var ad2 = '<a href="http://nevadaweb.com/cgi-bin/travel/ax.pl?http://www.winnemucca.nv.us" target="_blank"><IMG width="120" height="60" border="0" src="http://www.nevadatravel.net/sponsors/winnemucca120x60.jpg" align="center" alt=""></a>';

var ad3 = '<a href="http://nevadaweb.com/cgi-bin/travel/ax.pl?http://www.peppermillreno.com" target="blank"><IMG width="120" height="60" border="0" src="http://www.nevadatravel.net/sponsors/pep1.jpg" alt="Reno\'s Premier Casino Hotel" align="center"></a>';

var ad4 = '<a href="http://nevadaweb.com/cgi-bin/travel/ax.pl?http://www.modelt.com/" target="blank"><IMG width="120" height="60" border="0" src="http://www.nevadatravel.net/sponsors/modt120x60.gif" alt="Model T Casino, Winnemucca" align="center"></a>';

var ad5 = '<a href="http://nevadaweb.com/cgi-bin/travel/ax.pl?http://www.hotelnevada.com" target="blank"><IMG width="120" height="60" border="0" src="http://www.nevadatravel.net/sponsors/hotelnev.jpg" align="center" alt="Hotel Nevada & Gamling Hall"></a>';

var ad6 = '<a href="http://nevadaweb.com/cgi-bin/travel/ax.pl?http://www.eurekaowlclub.com" target="_blank"><IMG width="120" height="60" border="0" src="http://www.nevadatravel.net/sponsors/owl120x60.jpg" alt="Eureka Owl Club Steak House & Saloon"></a>';

var ad7 = '<a href="http://nevadaweb.com/cgi-bin/travel/ax.pl?http://www.cvinn.com/main_index-2.htm" target="_blank"><IMG width="120" height="60" border="0" src="http://www.nevadatravel.net/sponsors/cvi120x60.jpg" alt="Carson Valley Inn, Minden"></a>';

var ad8 = '<a href="http://nevadaweb.com/cgi-bin/travel/ax.pl?http://www.fallontourism.com" target="_blank"><IMG SRC="http://www.nevadatravel.net/sponsors/falloncta120x60.jpg" alt="You\'ll love Fallon" border="0" width="120" height="60"></a>';


//NEW ADS: Math.round(Math.random() * n), where n = the number of ads - 1
//Get random numbers
var rand1 = Math.round(Math.random() * 7) + 1;
var rand2 = Math.round(Math.random() * 7) + 1;
while (rand2 == rand1)  {
	rand2 = Math.round(Math.random() * 7) + 1;
}
var rand3 = Math.round(Math.random() * 7) + 1;
while (rand3 == rand2 || rand3 == rand1)  {
	rand3 = Math.round(Math.random() * 7) + 1;
}
var rand4 = Math.round(Math.random() * 7) + 1;
while (rand4 == rand3 || rand4 == rand2 || rand4 == rand1)  {
	rand4 = Math.round(Math.random() * 7) + 1;
}
var rand5 = Math.round(Math.random() * 7) + 1;
while (rand5 == rand4 || rand5 == rand3 || rand5 == rand2 || rand5 == rand1)  {
	rand5 = Math.round(Math.random() * 7) + 1;
}

//NO NEED TO EDIT CODE BELOW THIS LINE
//Variables for document display - see table code
var img1 = "ad" + rand1;
var img2 = "ad" + rand2;
var img3 = "ad" + rand3;
var img4 = "ad" + rand4;
var img5 = "ad" + rand5;

//END

