// JavaScript Document// ==============================================// Copyright 2003 by jsCode.com// Source: jsCode.com// Author: etLux// Free for all; but please leave in the header.// ==============================================// Set up the image files to be used.var theImages = new Array() // do not change this// To add more image files, continue with the// pattern below, adding to the array. Rememeber// to increment the theImages[x] index!   theImages[0] = '../default/images/random/random_01.jpg'   theImages[1] = '../default/images/random/random_02.jpg'   theImages[2] = '../default/images/random/random_03.jpg'   theImages[3] = '../default/images/random/random_04.jpg'   theImages[4] = '../default/images/random/random_05.jpg'   theImages[5] = '../default/images/random/random_06.jpg'   theImages[6] = '../default/images/random/random_07.jpg'   theImages[7] = '../default/images/random/random_08.jpg'   theImages[8] = '../default/images/random/random_09.jpg'   theImages[9] = '../default/images/random/random_10.jpg'   theImages[10] = '../default/images/random/random_11.jpg'   theImages[11] = '../default/images/random/random_12.jpg'   theImages[12] = '../default/images/random/random_13.jpg'   theImages[13] = '../default/images/random/random_14.jpg'   theImages[14] = '../default/images/random/random_15.jpg'   theImages[15] = '../default/images/random/random_16.jpg'   theImages[16] = '../default/images/random/random_17.jpg'   theImages[17] = '../default/images/random/random_18.jpg'   theImages[18] = '../default/images/random/random_19.jpg'   theImages[19] = '../default/images/random/random_20.jpg'   theImages[20] = '../default/images/random/random_21.jpg'   theImages[21] = '../default/images/random/random_22.jpg'   theImages[22] = '../default/images/random/random_23.jpg'   theImages[23] = '../default/images/random/random_24.jpg'   theImages[24] = '../default/images/random/random_25.jpg'   theImages[25] = '../default/images/random/random_26.jpg'   theImages[26] = '../default/images/random/random_27.jpg'   theImages[27] = '../default/images/random/random_28.jpg'   theImages[28] = '../default/images/random/random_29.jpg'   theImages[29] = '../default/images/random/random_30.jpg'   theImages[30] = '../default/images/random/random_31.jpg'         // ======================================   // do not change anything below this line   // ======================================   var j = 0   var p = theImages.length;var preBuffer = new Array()   for (i = 0; i < p; i++){      preBuffer[i] = new Image()         preBuffer[i].src = theImages[i]   }var whichImage = Math.round(Math.random()*(p-1));function initRollovers() {   if (!document.getElementById) return      var aPreLoad = new Array();   var sTempSrc;   var aImages = document.getElementsByTagName('img');   for (var i = 0; i < aImages.length; i++) {      if (aImages[i].className == 'rollover') {         var src = aImages[i].getAttribute('src');         var ftype = src.substring(src.lastIndexOf('.'), src.length);         var hsrc = src.replace(ftype, '_roll'+ftype);         aImages[i].setAttribute('hsrc', hsrc);         aPreLoad[i] = new Image();         aPreLoad[i].src = hsrc;         aImages[i].onmouseover = function() {            sTempSrc = this.getAttribute('src');            this.setAttribute('src', this.getAttribute('hsrc'));         }         aImages[i].onmouseout = function() {            if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_roll'+ftype, ftype);            this.setAttribute('src', sTempSrc);         }      }      if (aImages[i].className.match('random')) {         aImages[i].src=theImages[whichImage];      }   }}window.onload = initRollovers;