a = 45 // a=antal olika bilder
var slump = Math.random();
var talet = Math.round(slump * (a-1))+1;
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.alt = ''

}
b = new Array()
for(var i=1; i<=a; i++) { b[i] = new create() }

b[1].src    = "media/homerndm/arch_auction_house.jpg"
b[1].href   = "gallery/architectural/auction_house_72_400.html"
b[1].width  = "160"
b[1].height = "160"
b[1].border = "0"
b[1].alt = "Click_Here"

b[2].src    = "media/homerndm/arch_coast_blvd.jpg"
b[2].href   = "gallery/architectural/coast_blvd_72_400.html"
b[2].width  = "160"
b[2].height = "160"
b[2].border = "0"
b[2].alt = "Click_Here"

b[3].src    = "media/homerndm/arch_debbies_overlook.jpg"
b[3].href   = "gallery/architectural/debbies_overlook_72_400.html"
b[3].width  = "160"
b[3].height = "160"
b[3].border = "0"
b[3].alt = "Click_Here"

b[4].src    = "media/homerndm/arch_empty_arch.jpg"
b[4].href   = "gallery/architectural/empty_arch_72_400.html"
b[4].width  = "160"
b[4].height = "160"
b[4].border = "0"
b[4].alt = "Click_Here"

b[5].src    = "media/homerndm/arch_gretas_place.jpg"
b[5].href   = "gallery/architectural/gretas_place_72_400.html"
b[5].width  = "160"
b[5].height = "160"
b[5].border = "0"
b[5].alt = "Click_Here"

b[6].src    = "media/homerndm/arch_in_house.jpg"
b[6].href   = "gallery/architectural/in_house_72_400.html"
b[6].width  = "160"
b[6].height = "160"
b[6].border = "0"
b[6].alt = "Click_Here"

b[7].src    = "media/homerndm/arch_kitchen_w_chairs.jpg"
b[7].href   = "gallery/architectural/kitchen_w_chairs_72_400.html"
b[7].width  = "160"
b[7].height = "160"
b[7].border = "0"
b[7].alt = "Click_Here"

b[8].src    = "media/homerndm/arch_living_room.jpg"
b[8].href   = "gallery/architectural/living_room_72_400.html"
b[8].width  = "160"
b[8].height = "160"
b[8].border = "0"
b[8].alt = "Click_Here"

b[9].src    = "media/homerndm/arch_livingroom_ocean.jpg"
b[9].href   = "gallery/architectural/livingroom_ocean_72_400.html"
b[9].width  = "160"
b[9].height = "160"
b[9].border = "0"
b[9].alt = "Click_Here"

b[10].src    = "media/homerndm/arch_neg_test_6.jpg"
b[10].href   = "gallery/architectural/neg_test_6_72_400.html"
b[10].width  = "160"
b[10].height = "160"
b[10].border = "0"
b[10].alt = "Click_Here"

b[11].src    = "media/homerndm/arch_neg_test-kitchen.jpg"
b[11].href   = "gallery/architectural/neg_test-kitchen_72_400.html"
b[11].width  = "160"
b[11].height = "160"
b[11].border = "0"
b[11].alt = "Click_Here"

b[12].src    = "media/homerndm/arch_ocean_bedroom.jpg"
b[12].href   = "gallery/architectural/ocean_bedroom_72_400.html"
b[12].width  = "160"
b[12].height = "160"
b[12].border = "0"
b[12].alt = "Click_Here"

b[13].src    = "media/homerndm/arch_restaurant.jpg"
b[13].href   = "gallery/architectural/restaurant_72_400.html"
b[13].width  = "160"
b[13].height = "160"
b[13].border = "0"
b[13].alt = "Click_Here"

b[14].src    = "media/homerndm/arch_spyglass.jpg"
b[14].href   = "gallery/architectural/spyglass_72_400.html"
b[14].width  = "160"
b[14].height = "160"
b[14].border = "0"
b[14].alt = "Click_Here"

b[15].src    = "media/homerndm/arch_wine_cellar.jpg"
b[15].href   = "gallery/architectural/wine_cellar_72_400.html"
b[15].width  = "160"
b[15].height = "160"
b[15].border = "0"
b[15].alt = "Click_Here"

b[16].src    = "media/homerndm/land_anza_storm.jpg"
b[16].href   = "gallery/landscapes/anza_storm_72_400.html"
b[16].width  = "160"
b[16].height = "160"
b[16].border = "0"
b[16].alt = "Click_Here"

b[17].src    = "media/homerndm/land_canyondechelly.jpg"
b[17].href   = "gallery/landscapes/canyondechelly_72_400.html"
b[17].width  = "160"
b[17].height = "160"
b[17].border = "0"
b[17].alt = "Click_Here"

b[18].src    = "media/homerndm/land_homesteader.jpg"
b[18].href   = "gallery/landscapes/homesteader _72_400.html"
b[18].width  = "160"
b[18].height = "160"
b[18].border = "0"
b[18].alt = "Click_Here"

b[19].src    = "media/homerndm/land_la_jolla_beach.jpg"
b[19].href   = "gallery/landscapes/la_jolla_beach_72_400.html"
b[19].width  = "160"
b[19].height = "160"
b[19].border = "0"
b[19].alt = "Click_Here"

b[20].src    = "media/homerndm/land_lightning_4x5.jpg"
b[20].href   = "gallery/landscapes/lightning_4x5_72_400.html"
b[20].width  = "160"
b[20].height = "160"
b[20].border = "0"
b[20].alt = "Click_Here"

b[21].src    = "media/homerndm/land_nirvana_portal.jpg"
b[21].href   = "gallery/landscapes/nirvana_portal_72_400.html"
b[21].width  = "160"
b[21].height = "160"
b[21].border = "0"
b[21].alt = "Click_Here"

b[22].src    = "media/homerndm/land_red_tree.jpg"
b[22].href   = "gallery/landscapes/red_tree_72_400.html"
b[22].width  = "160"
b[22].height = "160"
b[22].border = "0"
b[22].alt = "Click_Here"

b[23].src    = "media/homerndm/land_san_juan_mts_4x5.jpg"
b[23].href   = "gallery/landscapes/san_juan_mts_4x5_72_400.html"
b[23].width  = "160"
b[23].height = "160"
b[23].border = "0"
b[23].alt = "Click_Here"

b[24].src    = "media/homerndm/land_slot_canyon.jpg"
b[24].href   = "gallery/landscapes/slot_canyon_72_400.html"
b[24].width  = "160"
b[24].height = "160"
b[24].border = "0"
b[24].alt = "Click_Here"

b[25].src    = "media/homerndm/land_sundance_valley.jpg"
b[25].href   = "gallery/landscapes/sundance_valley_72_400.html"
b[25].width  = "160"
b[25].height = "160"
b[25].border = "0"
b[25].alt = "Click_Here"

b[26].src    = "media/homerndm/land_thors_hammer.jpg"
b[26].href   = "gallery/landscapes/thors_hammer_72_400.html"
b[26].width  = "160"
b[26].height = "160"
b[26].border = "0"
b[26].alt = "Click_Here"

b[27].src    = "media/homerndm/land_valley_of_the_moon.jpg"
b[27].href   = "gallery/landscapes/valley_of_the_moon_72_400.html"
b[27].width  = "160"
b[27].height = "160"
b[27].border = "0"
b[27].alt = "Click_Here"

b[28].src    = "media/homerndm/port_blond.jpg"
b[28].href   = "gallery/portraits/blond_72_400.html"
b[28].width  = "160"
b[28].height = "160"
b[28].border = "0"
b[28].alt = "Click_Here"

b[29].src    = "media/homerndm/port_Woman_scan_1_72_160.jpg"
b[29].href   = "gallery/portraits/Woman_scan_1_72_400.html"
b[29].width  = "160"
b[29].height = "160"
b[29].border = "0"
b[29].alt = "Click_Here"

b[30].src    = "media/homerndm/port_Woman_scan_2_72_160.jpg"
b[30].href   = "gallery/portraits/Woman_scan_2_72_400.html"
b[30].width  = "160"
b[30].height = "160"
b[30].border = "0"
b[30].alt = "Click_Here"

b[31].src    = "media/homerndm/port_Woman_scan_3_72_160.jpg"
b[31].href   = "gallery/portraits/Woman_scan_3_72_400.html"
b[31].width  = "160"
b[31].height = "160"
b[31].border = "0"
b[31].alt = "Click_Here"

b[32].src    = "media/homerndm/port_Woman_scan_4_72_160.jpg"
b[32].href   = "gallery/portraits/Woman_scan_4_72_400.html"
b[32].width  = "160"
b[32].height = "160"
b[32].border = "0"
b[32].alt = "Click_Here"

b[33].src    = "media/homerndm/port_Woman_scan_5_72_160.jpg"
b[33].href   = "gallery/portraits/Woman_scan_5_72_400.html"
b[33].width  = "160"
b[33].height = "160"
b[33].border = "0"
b[33].alt = "Click_Here"

b[34].src    = "media/homerndm/port_Woman_scan_6_72_160.jpg"
b[34].href   = "gallery/portraits/Woman_scan_6_72_400.html"
b[34].width  = "160"
b[34].height = "160"
b[34].border = "0"
b[34].alt = "Click_Here"

b[35].src    = "media/homerndm/port_Woman_scan_7_72_160.jpg"
b[35].href   = "gallery/portraits/Woman_scan_7_72_400.html"
b[35].width  = "160"
b[35].height = "160"
b[35].border = "0"
b[35].alt = "Click_Here"

b[36].src    = "media/homerndm/port_Man_scan_1_72_160.jpg"
b[36].href   = "gallery/portraits/Man_scan_1_72_400.html"
b[36].width  = "160"
b[36].height = "160"
b[36].border = "0"
b[36].alt = "Click_Here"

b[37].src    = "media/homerndm/port_Man_scan_2_72_160.jpg"
b[37].href   = "gallery/portraits/Man_scan_2_72_400.html"
b[37].width  = "160"
b[37].height = "160"
b[37].border = "0"
b[37].alt = "Click_Here"

b[38].src    = "media/homerndm/port_Man_scan_3_72_160.jpg"
b[38].href   = "gallery/portraits/Man_scan_3_72_400.html"
b[38].width  = "160"
b[38].height = "160"
b[38].border = "0"
b[38].alt = "Click_Here"

b[39].src    = "media/homerndm/port_Man_scan_4_72_160.jpg"
b[39].href   = "gallery/portraits/Man_scan_4_72_400.html"
b[39].width  = "160"
b[39].height = "160"
b[39].border = "0"
b[39].alt = "Click_Here"

b[40].src    = "media/homerndm/prod_dj_black_gold.jpg"
b[40].href   = "gallery/products/dj_black_gold_72_400.html"
b[40].width  = "160"
b[40].height = "160"
b[40].border = "0"
b[40].alt = "Click_Here"

b[41].src    = "media/homerndm/prod_donjoy_brace.jpg"
b[41].href   = "gallery/products/donjoy_brace_72_400.html"
b[41].width  = "160"
b[41].height = "160"
b[41].border = "0"
b[41].alt = "Click_Here"

b[42].src    = "media/homerndm/prod_fridge_freeze_fog.jpg"
b[42].href   = "gallery/products/fridge_freeze_fog_72_400.html"
b[42].width  = "160"
b[42].height = "160"
b[42].border = "0"
b[42].alt = "Click_Here"

b[43].src    = "media/homerndm/prod_jars.jpg"
b[43].href   = "gallery/products/jars_72_400.html"
b[43].width  = "160"
b[43].height = "160"
b[43].border = "0"
b[43].alt = "Click_Here"

b[44].src    = "media/homerndm/prod_lennyclements3.jpg"
b[44].href   = "gallery/products/lennyclements3_72_400.html"
b[44].width  = "160"
b[44].height = "160"
b[44].border = "0"
b[44].alt = "Click_Here"

b[45].src    = "media/homerndm/prod_typewriter.jpg"
b[45].href   = "gallery/products/typewriter_72_400.html"
b[45].width  = "160"
b[45].height = "160"
b[45].border = "0"
b[45].alt = "Click_Here"

var visa = "";
visa += '<a href="'+b[talet].href+'">'
visa += '<img src="'+b[talet].src+'" height='+b[talet].height
visa += ' width='+b[talet].width+' border='+b[talet].border+' alt='+b[talet].alt+'>';
visa += '</a>'