var textnumber = 7 ; 
var randomnumber = Math.random() ; 
var rand1 = Math.round( (textnumber-1) * randomnumber) + 1 ; 
text = new Array 
text[1] = "<img src=/images/marginphotos/b-morningmist.jpg width=230 height=90 border=0 alt=This is Kamloops/>"
text[2] = "<img src=/images/marginphotos/b-gallery.jpg width=230 height=90 border=0 alt=This is Kamloops/>"
text[3] = "<img src=/images/marginphotos/b-morningbridge.jpg width=230 height=90 border=0 alt=This is Kamloops/>"
text[4] = "<img src=/images/marginphotos/b-construction.jpg width=230 height=90 border=0 alt=This is Kamloops/>"
text[5] = "<img src=/images/marginphotos/b-sagebrush.jpg width=230 height=90 border=0 alt=This is Kamloops/>"
text[6] = "<img src=/images/marginphotos/b-treatmentplant.jpg width=230 height=90 border=0 alt=This is Kamloops/>"
text[7] = "<img src=/images/marginphotos/r-home01.jpg width=230 height=90 border=0 alt=This is Kamloops/>"
var mymarginimages = text[rand1]

