//--

//###########declaring how many images there are
var totalPictures = 6;

//###########starting img array
photo = new Array(totalPictures)


//###########populating the array
photo[1]="<img src='//images/cards1.jpg' width='285' height='280' border='0' alt='Hockey Cards' class='homeCard'>"
photo[2]="<img src='//images/cards2.jpg' width='285' height='280' border='0' alt='Hockey Cards' class='homeCard'>"
photo[3]="<img src='//images/cards3.jpg' width='285' height='280' border='0' alt='Hockey Cards' class='homeCard'>"
photo[4]="<img src='//images/cards4.jpg' width='285' height='280' border='0' alt='Hockey Cards' class='homeCard'>"
photo[5]="<img src='//images/cards5.jpg' width='285' height='280' border='0' alt='Hockey Cards' class='homeCard'>"
photo[6]="<img src='//images/cards6.jpg' width='285' height='280' border='0' alt='Hockey Cards' class='homeCard'>"

//###########creating the math object for randomizer
rnd.today=new Date();

rnd.seed=rnd.today.getTime();

//###########creates random number based on totalPictures
function rnd() { 
rnd.seed = (rnd.seed*9301+49297) % 233280;
return rnd.seed/(233280.0);

}
function rand(number) { 
return Math.ceil(rnd()*number);
};


// end central randomizer. 



//-->