// JavaScript Document
var numImgs = 14;
theNum = randNum(numImgs);
var imgNamePrefix = "http://www.adventuresportsonline.com/images/piece1header";
var imgNamePrefix2 = "http://www.adventuresportsonline.com/images/piece2header";
var imgNamePrefix3 = "http://www.adventuresportsonline.com/images/piece3header";
var imgNameSuffix = ".jpg";
var headerimg = imgNamePrefix + theNum + imgNameSuffix;
var headerimg2 = imgNamePrefix2 + theNum + imgNameSuffix;
var headerimg3 = imgNamePrefix3 + theNum + imgNameSuffix;

function randNum (num) {
	var now = new Date();
	var rand = Math.round(num * Math.cos(now.getTime()));
	if (rand < 0) rand = - rand; if (rand == 0) rand++;
	return rand;
}

