var mqAry1=['images/headers/photo4sm.jpg', 'images/headers/perris2sm.jpg', 'images/headers/perris3sm.jpg', 'images/headers/photo1sm.jpg'];
 
function start() {
var i2 = new randImg('randimg2',980,248,20,mqAry1);
setTimeout(function() {replaceImg(i2)},i2.t);
}
window.onload = start;// Random Image Script
// copyright 9th September 2008 by Stephen Chapman
// http://javascript.about.com
// permission to use this Javascript on your web page is granted
// provided that all of the code below in this script (including these
// comments) is used without any alteration
function randImg(im,w,h,t,ary) {this.t = t*1000; this.m1 = []; this.m2 = []; for (var i=ary.length-1; i>=0; i--) {this.m1[i] = document.createElement('img');this.m1.src = ary[i]; this.m2[i] = ary[i];} this.d = document.getElementById(im); this.m = document.createElement('img'); this.m.width=w; this.m.height=h; this.m.alt = 'random image'; this.m.src = ary[Math.floor(Math.random()*ary.length)]; this.d.appendChild(this.m);} function replaceImg(self) {self.m.src = self.m2[Math.floor(Math.random()*self.m2.length)]; self.d.appendChild(self.m); setTimeout(function() {replaceImg(self)},self.t);}
