// JavaScript Banner Rotation
//File name for pics must be of format ban_<number>.jpg where number must be greater than 0.
//Do not use the same number twice!!!

//set number of banners to rotate below
var randnum=Math.round(Math.random()*8) // <-- Always one less than the total number of pics, ie. if you have 3 pics then set to 2.

//set html code to display and show it
var t1="<img src='http://ncdirtracing.com/images/ncdr_1024/banners/ban_"
var t2=".jpg' alt='NC Dirt Racing Pics' />"
document.write(t1 + randnum + t2)
