// JavaScript Document

var nbimage= 130;
var width;
var height;
var url;

function spotriders()

{
numimage= Math.round(Math.random()*(nbimage-1)+1);
if (numimage <= 10)
{
gotosite = "team-kayley-ashworth.html";
url = "spot-riders/spotR1.jpg";
}
if (numimage > 10 && numimage <= 20)
{
gotosite = "team-mat-dubourgnon.html";
url = "spot-riders/spotR2.jpg";
}
if (numimage > 20 && numimage <= 30)
{
gotosite = "team-clement-baes.html";
url = "spot-riders/spotR3.jpg";
}
if (numimage > 30 && numimage <= 40)
{
gotosite = "team-timur-karadschajew.html";
url = "spot-riders/spotR4.jpg";
}
if (numimage > 40 && numimage <= 50)
{
gotosite = "team-michal-horowic.html";
url = "spot-riders/spotR5.jpg";
}
if (numimage > 50 && numimage <= 60)
{
gotosite = "team-tim-watson.html";
url = "spot-riders/spotR6.jpg";
}
if (numimage > 60 && numimage <= 70)
{
gotosite = "team-valera-talalaev.html";
url = "spot-riders/spotR7.jpg";
}
if (numimage > 70 && numimage <= 80)
{
gotosite = "team-jared-chilko.html";
url = "spot-riders/spotR8.jpg";
}
if (numimage > 80 && numimage <= 90)
{
gotosite = "team-akin-walker.html";
url = "spot-riders/spotR9.jpg";
}
if (numimage > 90 && numimage <= 100)
{
gotosite = "team-ruslan-kurilin.html";
url = "spot-riders/spotR10.jpg";
}
if (numimage > 100 && numimage <= 110)
{
gotosite = "team-will-gunn.html";
url = "spot-riders/spotR11.jpg";
}
if (numimage > 110 && numimage <= 120)
{
gotosite = "team-michele-virdis.html";
url = "spot-riders/spotR12.jpg";
}
if (numimage > 120)
{
gotosite = "team-kevin-nemeth.html";
url = "spot-riders/spotR13.jpg";
}

if(gotosite != "")
	{
	document.write ('<A HREF="' + gotosite + '">');
	}
document.write('<IMG SRC="' + url + '" border="0">')
if(gotosite != "")
	{
	document.write('</A>')
	}
}
