var theImages = new Array()
 
//Random-loading images
theImages[0] = 'images/subpage_image1.gif' // replace with names of images
theImages[1] = 'images/subpage_image2.gif' // replace with names of images
theImages[2] = 'images/subpage_image3.gif' // replace with names of images
theImages[3] = 'images/subpage_image4.gif' // replace with names of images
theImages[4] = 'images/subpage_image5.gif' // replace with names of images
theImages[5] = 'images/subpage_image6.gif' // replace with names of images
theImages[6] = 'images/subpage_image7.gif' // replace with names of images
theImages[7] = 'images/subpage_image8.gif' // replace with names of images
theImages[8] = 'images/subpage_image9.gif' // replace with names of images
 
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 showImage(){
    if(whichImage==0){
    document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }
    
    else if(whichImage==1){
 	document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }
    else if(whichImage==2){
     document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }
    else if(whichImage==3){
     document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }
    else if(whichImage==4){
    document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }
    else if(whichImage==5){
    document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }
    else if(whichImage==6){
    document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }
    else if(whichImage==7){
    document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }
    else if(whichImage==8){
     document.write('<img id="subpageImage" src="'+theImages[whichImage]+'">');
    }

 
}
var theAds = new Array()
theAds[0] = '/flash/av_district.swf';
theAds[1] = '/flash/av_district.swf';
theAds[2] = '/flash/ulhwebbanner.swf';

rnd.today=new Date();
rnd.seed=rnd.today.getTime();

theAds[0] =
function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};



function adRotation(){
	var theAds2 = new Array()
theAds2[0] = '<a href="http://www.clevelandnights.com"><img src="/images/CN_ad.jpg"></a>';
theAds2[1] = '<a href="http://www.deniseeloans.com"><img src="/images/ncb120x240nchamp[1].gif"></a>';
theAds2[2] = '<a href="http://www.deniseeloans.com"><img src="/images/ncb120x240renters[1].gif"></a>';

	var temp = Math.round(Math.random()*2);
	document.write(theAds2[temp]);
}