window.thumbnails = {};
															thumbnails[7372828] = clik.newPhoto({"id":7372828,"src":"Talking_.1500_Ciment_Fondu_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":184});
															thumbnails[8425491] = clik.newPhoto({"id":8425491,"src":"Helen_commission_2011_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_8425491.html","width":160,"caption":"Hamble to Cowes -Sold","height":78});
															thumbnails[8099775] = clik.newPhoto({"id":8099775,"src":"photo_7_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_8099775.html","width":160,"caption":"Sailing into the distance £695","height":141});
															thumbnails[8099726] = clik.newPhoto({"id":8099726,"src":"photo_21_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_8099726.html","width":160,"caption":"Blue waters £695","height":154});
															thumbnails[8099157] = clik.newPhoto({"id":8099157,"src":"photo_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_8099157.html","width":160,"caption":"Pink Sky £695 Sold","height":158});
															thumbnails[7591905] = clik.newPhoto({"id":7591905,"src":"1381-357-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591905.html","width":160,"caption":"Green boat leading £695","height":159});
															thumbnails[7591908] = clik.newPhoto({"id":7591908,"src":"1381-359-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591908.html","width":160,"caption":"Green £695","height":159});
															thumbnails[7591910] = clik.newPhoto({"id":7591910,"src":"1381-363-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591910.html","width":160,"caption":"Pink waters £695","height":159});
															thumbnails[7591917] = clik.newPhoto({"id":7591917,"src":"1381-365-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591917.html","width":160,"caption":"Race to the finish £695","height":160});
															thumbnails[7591929] = clik.newPhoto({"id":7591929,"src":"1381-366-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591929.html","width":160,"caption":"Red and Green £695","height":160});
															thumbnails[7591940] = clik.newPhoto({"id":7591940,"src":"1381-370-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591940.html","width":160,"caption":"Winning £495","height":228});
															thumbnails[7591943] = clik.newPhoto({"id":7591943,"src":"1381-376-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591943.html","width":160,"caption":"Foxers £295","height":161});
															thumbnails[7591945] = clik.newPhoto({"id":7591945,"src":"1381-378-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591945.html","width":160,"caption":"Leading £295","height":161});
															thumbnails[7591897] = clik.newPhoto({"id":7591897,"src":"1381-354-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7591897.html","width":160,"caption":"Colourful waters £695","height":157});
															thumbnails[3591734] = clik.newPhoto({"id":3591734,"src":"sculpture_013_thumb.JPG","galleries_id":218456,"server_id":15,"link":"photo_3591734.html","width":130,"caption":"Chatting-SOLD","height":98});
															thumbnails[3591738] = clik.newPhoto({"id":3591738,"src":"KRD3_thumb.jpg","galleries_id":218357,"server_id":15,"link":"photo_3591738.html","width":130,"caption":"LIFE DRAWING STUDY","height":173});
															thumbnails[3592028] = clik.newPhoto({"id":3592028,"src":"132_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3592028.html","width":130,"caption":"Looking out to sea","height":173});
															thumbnails[3592033] = clik.newPhoto({"id":3592033,"src":"135_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3592033.html","width":130,"caption":"Moving forward","height":173});
															thumbnails[3592039] = clik.newPhoto({"id":3592039,"src":"1341_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3592039.html","width":130,"caption":"Standing lady £800","height":173});
															thumbnails[3592501] = clik.newPhoto({"id":3592501,"src":"1381_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3592501.html","width":130,"caption":"Portrait","height":173});
															thumbnails[3592504] = clik.newPhoto({"id":3592504,"src":"136_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3592504.html","width":130,"caption":"Plaster Figure","height":173});
															thumbnails[3592527] = clik.newPhoto({"id":3592527,"src":"IMG_0025_thumb.jpg","galleries_id":218357,"server_id":15,"link":"photo_3592527.html","width":130,"caption":"Seated man-SOLD","height":188});
															thumbnails[3592537] = clik.newPhoto({"id":3592537,"src":"0952_thumb.jpg","galleries_id":218357,"server_id":15,"link":"photo_3592537.html","width":130,"caption":"Line drawing-SOLD","height":173});
															thumbnails[3592711] = clik.newPhoto({"id":3592711,"src":"120_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592711.html","width":130,"caption":"Life drawing-SOLD","height":98});
															thumbnails[3592731] = clik.newPhoto({"id":3592731,"src":"122_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592731.html","width":130,"caption":"Life drawing-SOLD","height":98});
															thumbnails[3592736] = clik.newPhoto({"id":3592736,"src":"KRSculpture_work_in_process_thumb.jpg","galleries_id":219580,"server_id":15,"link":"photo_3592736.html","width":130,"caption":"","height":98});
															thumbnails[3592742] = clik.newPhoto({"id":3592742,"src":"123_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3592742.html","width":130,"caption":"Four people.","height":99});
															thumbnails[3592822] = clik.newPhoto({"id":3592822,"src":"109_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592822.html","width":130,"caption":"SAIL AWAY WITH ME HONEY","height":121});
															thumbnails[3592823] = clik.newPhoto({"id":3592823,"src":"110_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592823.html","width":130,"caption":"Sailing along in harmony","height":131});
															thumbnails[3592886] = clik.newPhoto({"id":3592886,"src":"1184_thumb.JPG","galleries_id":219580,"server_id":15,"link":"photo_3592886.html","width":130,"caption":"Studio","height":98});
															thumbnails[3593342] = clik.newPhoto({"id":3593342,"src":"KR__Clay_Maquettes12_thumb.jpg","galleries_id":219580,"server_id":15,"link":"photo_3593342.html","width":130,"caption":"","height":155});
															thumbnails[3601110] = clik.newPhoto({"id":3601110,"src":"1372_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3601110.html","width":130,"caption":"Torso","height":173});
															thumbnails[3601115] = clik.newPhoto({"id":3601115,"src":"0942_thumb.jpg","galleries_id":218357,"server_id":15,"link":"photo_3601115.html","width":130,"caption":"Life drawing-SOLD","height":173});
															thumbnails[3601128] = clik.newPhoto({"id":3601128,"src":"1032_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3601128.html","width":130,"caption":"Cocktail party-SOLD","height":97});
															thumbnails[3601142] = clik.newPhoto({"id":3601142,"src":"092_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3601142.html","width":130,"caption":"Life drawing","height":54});
															thumbnails[3601147] = clik.newPhoto({"id":3601147,"src":"1051_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3601147.html","width":130,"caption":"'Lightning'","height":129});
															thumbnails[3601172] = clik.newPhoto({"id":3601172,"src":"129_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3601172.html","width":130,"caption":"Life drawing-SOLD","height":51});
															thumbnails[3601193] = clik.newPhoto({"id":3601193,"src":"1301_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3601193.html","width":130,"caption":"3 Figures","height":98});
															thumbnails[3601217] = clik.newPhoto({"id":3601217,"src":"1041_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3601217.html","width":130,"caption":"Life drawing","height":173});
															thumbnails[3601266] = clik.newPhoto({"id":3601266,"src":"1001_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3601266.html","width":130,"caption":"By the sea","height":173});
															thumbnails[3601299] = clik.newPhoto({"id":3601299,"src":"1071_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3601299.html","width":130,"caption":"Thinking","height":173});
															thumbnails[3601314] = clik.newPhoto({"id":3601314,"src":"1375-023_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_3601314.html","width":160,"caption":"Rounding the mark £450","height":40});
															thumbnails[3601459] = clik.newPhoto({"id":3601459,"src":"kate_richardson_003_thumb.JPG","galleries_id":219580,"server_id":15,"link":"photo_3601459.html","width":130,"caption":"Working in my studio","height":173});
															thumbnails[3601464] = clik.newPhoto({"id":3601464,"src":"1312_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3601464.html","width":130,"caption":"Reaching out £800","height":173});
															thumbnails[3601718] = clik.newPhoto({"id":3601718,"src":"1171_thumb.jpg","galleries_id":218357,"server_id":15,"link":"photo_3601718.html","width":130,"caption":"Sleeping £395","height":98});
															thumbnails[3602114] = clik.newPhoto({"id":3602114,"src":"2986_thumb.JPG","galleries_id":219580,"server_id":15,"link":"photo_3602114.html","width":130,"caption":"Kate Richardson","height":173});
															thumbnails[3603526] = clik.newPhoto({"id":3603526,"src":"KRS_1_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3603526.html","width":130,"caption":"Watching the racing","height":98});
															thumbnails[3603530] = clik.newPhoto({"id":3603530,"src":"KRS_4_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3603530.html","width":130,"caption":"Watching the Racing-SOLD","height":98});
															thumbnails[3603533] = clik.newPhoto({"id":3603533,"src":"KRS_31_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3603533.html","width":130,"caption":"Watching the racing","height":98});
															thumbnails[3636599] = clik.newPhoto({"id":3636599,"src":"IMG_0003_NEW_thumb.jpg","galleries_id":219580,"server_id":15,"link":"photo_3636599.html","width":130,"caption":"Lady ","height":188});
															thumbnails[3636647] = clik.newPhoto({"id":3636647,"src":"IMG_NEW_NEW_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3636647.html","width":130,"caption":"The inspiration of Rome","height":357});
															thumbnails[3636895] = clik.newPhoto({"id":3636895,"src":"IMG_0001_NEW1_thumb.jpg","galleries_id":218357,"server_id":15,"link":"photo_3636895.html","width":130,"caption":"Lying figure-SOLD","height":83});
															thumbnails[3636902] = clik.newPhoto({"id":3636902,"src":"IMG_0002_NEW_thumb.jpg","galleries_id":218357,"server_id":15,"link":"photo_3636902.html","width":130,"caption":"Sleeping","height":98});
															thumbnails[3636941] = clik.newPhoto({"id":3636941,"src":"IMG_0001_thumb.jpg","galleries_id":218357,"server_id":15,"link":"photo_3636941.html","width":130,"caption":"Working drawing","height":85});
															thumbnails[3636977] = clik.newPhoto({"id":3636977,"src":"IMG_0019_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3636977.html","width":130,"caption":"Portrait 2 ","height":165});
															thumbnails[3637162] = clik.newPhoto({"id":3637162,"src":"IMG_0029_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3637162.html","width":130,"caption":"Portrait 3","height":201});
															thumbnails[3637720] = clik.newPhoto({"id":3637720,"src":"2922_thumb.JPG","galleries_id":218456,"server_id":15,"link":"photo_3637720.html","width":130,"caption":"Seated lady","height":98});
															thumbnails[3640454] = clik.newPhoto({"id":3640454,"src":"2921_thumb.JPG","galleries_id":218456,"server_id":15,"link":"photo_3640454.html","width":130,"caption":"Seated lady","height":173});
															thumbnails[5071759] = clik.newPhoto({"id":5071759,"src":"drawings_002_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_5071759.html","width":130,"caption":"Drawing study for Sculpure","height":98});
															thumbnails[5071764] = clik.newPhoto({"id":5071764,"src":"drawings_003_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_5071764.html","width":130,"caption":"Drawing study for Sculpture","height":98});
															thumbnails[5071766] = clik.newPhoto({"id":5071766,"src":"drawings_004_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_5071766.html","width":130,"caption":"Sketch for Sculpture","height":99});
															thumbnails[5071772] = clik.newPhoto({"id":5071772,"src":"drawings_005_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_5071772.html","width":130,"caption":"Sketch for Sculpure","height":173});
															thumbnails[5071776] = clik.newPhoto({"id":5071776,"src":"drawings_006_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_5071776.html","width":130,"caption":"Sketch","height":113});
															thumbnails[5071781] = clik.newPhoto({"id":5071781,"src":"drawings_007_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_5071781.html","width":130,"caption":"Sketch","height":186});
															thumbnails[5681928] = clik.newPhoto({"id":5681928,"src":"name_001_thumb.JPG","galleries_id":219580,"server_id":15,"link":"photo_5681928.html","width":130,"caption":"","height":43});
															thumbnails[6368918] = clik.newPhoto({"id":6368918,"src":"040_E7631D83-1D09-001F-99C262639DB4F316_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_6368918.html","width":130,"caption":"Thinking A3","height":95});
															thumbnails[6369401] = clik.newPhoto({"id":6369401,"src":"Beating_neck_and_neck_101_x_101cm1_thumb.JPG","galleries_id":321785,"server_id":15,"link":"photo_6369401.html","width":130,"caption":"Beating neck and neck.","height":132});
															thumbnails[6377358] = clik.newPhoto({"id":6377358,"src":"P1010439_thumb.JPG","galleries_id":219580,"server_id":15,"link":"photo_6377358.html","width":130,"caption":"","height":98});
															thumbnails[7348099] = clik.newPhoto({"id":7348099,"src":"Racing_6_thumb._52x42_cm_glass_frame.JPG","galleries_id":218357,"server_id":37,"link":"photo_7348099.html","width":130,"caption":"Racing 6 52 x 42 cm","height":94});
															thumbnails[7353656] = clik.newPhoto({"id":7353656,"src":"photo_4_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7353656.html","width":160,"caption":"Beach Cottages SOLD","height":159});
															thumbnails[7353872] = clik.newPhoto({"id":7353872,"src":"Racing_612._52x42_cm_glass_frame_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7353872.html","width":160,"caption":"Racing 6 -SOLD","height":116});
															thumbnails[7353895] = clik.newPhoto({"id":7353895,"src":"1375-024_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7353895.html","width":160,"caption":"Close racing £495","height":112});
															thumbnails[7358256] = clik.newPhoto({"id":7358256,"src":"1375-016_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7358256.html","width":160,"caption":"Quietly £695","height":160});
															thumbnails[7358300] = clik.newPhoto({"id":7358300,"src":"1375-017_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7358300.html","width":160,"caption":"To the Finish line SOLD","height":161});
															thumbnails[7358302] = clik.newPhoto({"id":7358302,"src":"1375-018_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7358302.html","width":160,"caption":"Crossing ! £695","height":161});
															thumbnails[7358305] = clik.newPhoto({"id":7358305,"src":"1375-019_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7358305.html","width":160,"caption":"PINK - SOLD","height":159});
															thumbnails[7358311] = clik.newPhoto({"id":7358311,"src":"1375-013_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7358311.html","width":160,"caption":"To the mark £495","height":228});
															thumbnails[7358314] = clik.newPhoto({"id":7358314,"src":"1375-022_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7358314.html","width":160,"caption":"Four yachts £495","height":122});
															thumbnails[7358316] = clik.newPhoto({"id":7358316,"src":"1375-012_thumb.jpg","galleries_id":219580,"server_id":15,"link":"photo_7358316.html","width":160,"caption":"Studio","height":107});
															thumbnails[7359560] = clik.newPhoto({"id":7359560,"src":"Studio_thumb.jpg","galleries_id":219580,"server_id":15,"link":"photo_7359560.html","width":160,"caption":"My new studio","height":107});
															thumbnails[7359561] = clik.newPhoto({"id":7359561,"src":"1375-0031_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7359561.html","width":160,"caption":"My new studio","height":107});
															thumbnails[7362487] = clik.newPhoto({"id":7362487,"src":"Studio_pictures_2.2.11_015_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7362487.html","width":160,"caption":"In Front £50","height":158});
															thumbnails[7362607] = clik.newPhoto({"id":7362607,"src":"web7_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7362607.html","width":160,"caption":"Sailing into the sparkle £350 Sold","height":121});
															thumbnails[7362611] = clik.newPhoto({"id":7362611,"src":"web6_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7362611.html","width":160,"caption":"Racing- Tryptich Sold","height":156});
															thumbnails[7362626] = clik.newPhoto({"id":7362626,"src":"web5_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7362626.html","width":160,"caption":"Still waters £350","height":113});
															thumbnails[7362632] = clik.newPhoto({"id":7362632,"src":"web4_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7362632.html","width":160,"caption":"Through the waves £55","height":161});
															thumbnails[7362919] = clik.newPhoto({"id":7362919,"src":"summer_2010_038_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7362919.html","width":160,"caption":"Leading the fleet -SOLD","height":120});
															thumbnails[7421823] = clik.newPhoto({"id":7421823,"src":"064_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7421823.html","width":160,"caption":"Fast Racing SOLD","height":146});
															thumbnails[7421848] = clik.newPhoto({"id":7421848,"src":"Studio_pictures_2.2.11_016_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7421848.html","width":160,"caption":"Sailing into the distance £695","height":312});
															thumbnails[7422087] = clik.newPhoto({"id":7422087,"src":"024_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7422087.html","width":160,"caption":"Stormy pink £295","height":155});
															thumbnails[7422094] = clik.newPhoto({"id":7422094,"src":"1381-374-em_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7422094.html","width":160,"caption":"Inches in it £295","height":158});
															thumbnails[7422103] = clik.newPhoto({"id":7422103,"src":"028_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7422103.html","width":160,"caption":"A big fleet £295","height":158});
															thumbnails[7422111] = clik.newPhoto({"id":7422111,"src":"029_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7422111.html","width":160,"caption":"Two yachts in a storm £295","height":158});
															thumbnails[7422145] = clik.newPhoto({"id":7422145,"src":"026_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7422145.html","width":160,"caption":"Racing up the solent. Sold","height":160});
															thumbnails[8099431] = clik.newPhoto({"id":8099431,"src":"photo_2_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_8099431.html","width":160,"caption":"Blue waters £695","height":154});
															thumbnails[8099759] = clik.newPhoto({"id":8099759,"src":"photo_5_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_8099759.html","width":160,"caption":"Red White and Blue","height":115});
															thumbnails[9055474] = clik.newPhoto({"id":9055474,"src":"1422-006a-sm_thumb.JPG","galleries_id":218456,"server_id":15,"link":"photo_9055474.html","width":160,"caption":"The strength of love £1500","height":240});
															thumbnails[9055500] = clik.newPhoto({"id":9055500,"src":"1422-018a-sm_1_thumb.JPG","galleries_id":218456,"server_id":15,"link":"photo_9055500.html","width":160,"caption":"The strength of love ..Detail ","height":240});
															thumbnails[3592480] = clik.newPhoto({"id":3592480,"src":"1332_thumb.jpg","galleries_id":218456,"server_id":15,"link":"photo_3592480.html","width":130,"caption":"Soaking up the Atmosphere £1500","height":98});
															thumbnails[3592574] = clik.newPhoto({"id":3592574,"src":"1251_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592574.html","width":130,"caption":"Contemplate","height":337});
															thumbnails[7353886] = clik.newPhoto({"id":7353886,"src":"1375-020_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7353886.html","width":160,"caption":"Rounding the buoy .Sold","height":227});
															thumbnails[7358237] = clik.newPhoto({"id":7358237,"src":"1375-015_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7358237.html","width":160,"caption":"Faster £695","height":161});
															thumbnails[3592583] = clik.newPhoto({"id":3592583,"src":"128_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592583.html","width":130,"caption":"Let it out","height":340});
															thumbnails[5680959] = clik.newPhoto({"id":5680959,"src":"084_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_5680959.html","width":130,"caption":"Sculpture study.SOLD","height":170});
															thumbnails[7348897] = clik.newPhoto({"id":7348897,"src":"Racing_home_100_x_70_cm_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7348897.html","width":130,"caption":"Racing home","height":90});
															thumbnails[3592559] = clik.newPhoto({"id":3592559,"src":"098_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592559.html","width":130,"caption":"Life drawing","height":336});
															thumbnails[3601221] = clik.newPhoto({"id":3601221,"src":"113_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_3601221.html","width":130,"caption":"Racing 1-SOLD","height":98});
															thumbnails[5681760] = clik.newPhoto({"id":5681760,"src":"083_thumb.JPG","galleries_id":218357,"server_id":15,"link":"photo_5681760.html","width":130,"caption":"","height":168});
															thumbnails[6369396] = clik.newPhoto({"id":6369396,"src":"Beating_neck_and_neck_101_x_101cm_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_6369396.html","width":130,"caption":"Beating neck and neck-SOLD","height":132});
															thumbnails[7348832] = clik.newPhoto({"id":7348832,"src":"50_x_102_cm______Relaxing_495_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7348832.html","width":130,"caption":"Relaxing. SOLD","height":63});
															thumbnails[7353875] = clik.newPhoto({"id":7353875,"src":"The_chase_is_on_100_x_70_cm_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7353875.html","width":160,"caption":"The chase is on. Sold","height":221});
															thumbnails[3601234] = clik.newPhoto({"id":3601234,"src":"114_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_3601234.html","width":130,"caption":"Racing 2-SOLD","height":98});
															thumbnails[5680949] = clik.newPhoto({"id":5680949,"src":"040_thumb.JPG","galleries_id":321785,"server_id":15,"link":"photo_5680949.html","width":130,"caption":"Thinking","height":95});
															thumbnails[6369388] = clik.newPhoto({"id":6369388,"src":"Beating_to_the_mark_85x85_cm_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_6369388.html","width":130,"caption":"Beating to the mark-SOLD","height":127});
															thumbnails[7349294] = clik.newPhoto({"id":7349294,"src":"015_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7349294.html","width":130,"caption":"Newtown £695","height":120});
															thumbnails[7349304] = clik.newPhoto({"id":7349304,"src":"1375-021_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7349304.html","width":160,"caption":"Sailing with friends £495","height":228});
															thumbnails[3601242] = clik.newPhoto({"id":3601242,"src":"115_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_3601242.html","width":130,"caption":"Racing 3-SOLD","height":98});
															thumbnails[5681043] = clik.newPhoto({"id":5681043,"src":"075_thumb.JPG","galleries_id":218456,"server_id":15,"link":"photo_5681043.html","width":130,"caption":"Talking £1500","height":98});
															thumbnails[6369099] = clik.newPhoto({"id":6369099,"src":"Waiting_52x_42_cm_glass_frame_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_6369099.html","width":130,"caption":"Waiting-SOLD","height":96});
															thumbnails[6369398] = clik.newPhoto({"id":6369398,"src":"1375-014_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_6369398.html","width":160,"caption":"Racing under a grey sky SOLD","height":159});
															thumbnails[7348135] = clik.newPhoto({"id":7348135,"src":"40_x_30_cm______Winners______________220_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7348135.html","width":130,"caption":"Winners. Sold","height":95});
															thumbnails[3592724] = clik.newPhoto({"id":3592724,"src":"112_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_3592724.html","width":130,"caption":"Racing 4-SOLD","height":98});
															thumbnails[6368739] = clik.newPhoto({"id":6368739,"src":"Three_moored_boats_slack_tide_30x120_each_90x120_cm_together_2_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_6368739.html","width":130,"caption":"Three moored boats , slack tide. Tryptich-SOLD","height":170});
															thumbnails[6369399] = clik.newPhoto({"id":6369399,"src":"Squeezing_up_to_the_mark_101x_101cm_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_6369399.html","width":130,"caption":"Squeezing up to the mark-SOLD","height":127});
															thumbnails[6391664] = clik.newPhoto({"id":6391664,"src":"Racing_under_a_grey_sky_101x101_cm_F68B6EF6-1D09-001F-9956ABE8CB9BC749_thumb.JPG","galleries_id":321785,"server_id":15,"link":"photo_6391664.html","width":130,"caption":"Racing under a grey sky","height":133});
															thumbnails[3592613] = clik.newPhoto({"id":3592613,"src":"photo_3_thumb.JPG","galleries_id":218356,"server_id":15,"link":"photo_3592613.html","width":160,"caption":"Life drawing £130","height":209});
															thumbnails[3601207] = clik.newPhoto({"id":3601207,"src":"124_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_3601207.html","width":130,"caption":"Racing to the mark-SOLD","height":98});
															thumbnails[3592640] = clik.newPhoto({"id":3592640,"src":"102_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592640.html","width":130,"caption":"Taking time out","height":98});
															thumbnails[3628180] = clik.newPhoto({"id":3628180,"src":"KRP_34_80x30_cm_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_3628180.html","width":130,"caption":"HELMING-SOLD","height":359});
															thumbnails[6369390] = clik.newPhoto({"id":6369390,"src":"Beating_to_the_mark_85x85_cm1_thumb.JPG","galleries_id":321785,"server_id":15,"link":"photo_6369390.html","width":130,"caption":"Beating to the mark","height":127});
															thumbnails[3592594] = clik.newPhoto({"id":3592594,"src":"101_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592594.html","width":130,"caption":"Life drawing-SOLD","height":173});
															thumbnails[3628166] = clik.newPhoto({"id":3628166,"src":"KRP_33_80x30_cm_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_3628166.html","width":130,"caption":"Up the mast-SOLD","height":341});
															thumbnails[3592627] = clik.newPhoto({"id":3592627,"src":"126_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592627.html","width":130,"caption":"life drawing-SOLD","height":339});
															thumbnails[7348156] = clik.newPhoto({"id":7348156,"src":"40_x_30_cm______Sailing_into_broken_waters_220_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7348156.html","width":130,"caption":"Sailing into broken waters Sold","height":97});
															thumbnails[3573281] = clik.newPhoto({"id":3573281,"src":"099_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3573281.html","width":130,"caption":"Life drawing-SOLD","height":173});
															thumbnails[7362601] = clik.newPhoto({"id":7362601,"src":"web_thumb.jpg","galleries_id":397691,"server_id":15,"link":"photo_7362601.html","width":160,"caption":"Hanging off the Buoy £295 sold","height":486});
															thumbnails[3592644] = clik.newPhoto({"id":3592644,"src":"116_thumb.jpg","galleries_id":218356,"server_id":15,"link":"photo_3592644.html","width":130,"caption":"Life drawing","height":114});
															thumbnails[7349391] = clik.newPhoto({"id":7349391,"src":"001_thumb.JPG","galleries_id":397691,"server_id":15,"link":"photo_7349391.html","width":160,"caption":"Groups of sailing pictures £30 each","height":774});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[397691] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Marine Paintings ","link":"gallery_397691.html","maxRecords":0.0,"photoIDs":[8425491.0,8099775.0,8099726.0,8099157.0,7591905.0,7591908.0,7591910.0,7591917.0,7591929.0,7591940.0,7591943.0,7591945.0,7591897.0,3601314.0,7353656.0,7353872.0,7353895.0,7358256.0,7358300.0,7358302.0,7358305.0,7358311.0,7358314.0,7359561.0,7362487.0,7362607.0,7362611.0,7362626.0,7362632.0,7362919.0,7421823.0,7421848.0,7422087.0,7422094.0,7422103.0,7422111.0,7422145.0,8099431.0,8099759.0,7353886.0,7358237.0,7348897.0,3601221.0,6369396.0,7348832.0,7353875.0,3601234.0,6369388.0,7349294.0,7349304.0,3601242.0,6369099.0,6369398.0,7348135.0,3592724.0,6368739.0,6369399.0,3601207.0,3628180.0,3628166.0,7348156.0,7362601.0,7349391.0],"skipIndex":0,"section_code":"gallery","featured_images":7421823.0,"id":397691,"singleSection":false});				  						galleries[219580] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Studio","link":"gallery_219580.html","maxRecords":0.0,"photoIDs":[3592736.0,3592886.0,3593342.0,3601459.0,3602114.0,3636599.0,5681928.0,6377358.0,7358316.0,7359560.0],"skipIndex":0,"section_code":"gallery","featured_images":"6377358,3601459","id":219580,"singleSection":false});				  						galleries[218456] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sculpture","link":"gallery_218456.html","maxRecords":0.0,"photoIDs":[3591734.0,3592028.0,3592033.0,3592039.0,3592501.0,3592504.0,3592742.0,3601110.0,3601464.0,3603526.0,3603530.0,3603533.0,3636647.0,3636977.0,3637162.0,3637720.0,3640454.0,9055474.0,9055500.0,3592480.0,5681043.0],"skipIndex":0,"section_code":"gallery","featured_images":"9055500,9055474,5681043,3592480","id":218456,"singleSection":false});				  						galleries[321785] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Prints","link":"gallery_321785.html","maxRecords":0.0,"photoIDs":[6369401.0,5680949.0,6391664.0,6369390.0],"skipIndex":0,"section_code":"gallery","featured_images":"6391664,6369401,5680949","id":321785,"singleSection":false});				  						galleries[218356] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Life Drawings","link":"gallery_218356.html","maxRecords":0.0,"photoIDs":[3592711.0,3592731.0,3592822.0,3592823.0,3601128.0,3601142.0,3601147.0,3601172.0,3601193.0,3601217.0,3601266.0,3601299.0,3592574.0,3592583.0,3592559.0,3592613.0,3592640.0,3592594.0,3592627.0,3573281.0,3592644.0],"skipIndex":0,"section_code":"gallery","featured_images":3592594.0,"id":218356,"singleSection":false});				  						galleries[218357] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Drawings","link":"gallery_218357.html","maxRecords":0.0,"photoIDs":[3591738.0,3592527.0,3592537.0,3601115.0,3601718.0,3636895.0,3636902.0,3636941.0,5071759.0,5071764.0,5071766.0,5071772.0,5071776.0,5071781.0,6368918.0,7348099.0,5680959.0,5681760.0],"skipIndex":0,"section_code":"gallery","featured_images":3592537.0,"id":218357,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9055500,9055474,8099775,8099431,8099157,7591945,7591943,7591940,7591929,7591917,7591910,7591908,7591905,7591897,7422145,7422111,7422103,7422094,7422087,7421848,7421823,7362919,7362632,7362626,7362611,7362607,7362487,7359561,7358314,7358311,7358305,7358302,7358300,7358256,7353895,7353872,7353656,7358237,7353886,7348897,7353875,7348832,6369396,3601221,7349304,7349294,6369388,3601234,7348135,6369398,6369099,3601242,6369399,6368739,3592724,3601207,6369390,7348156,7362601,7349391';
imageSets[2] = '9055500,9055474,7421823,6377358,6369401,3601459,3592537,3592480,5680949,5681043,6391664,3592594';
imageSets[3] = '6369401';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/kateart/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/kateart/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/kateart/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/kateart/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/kateart/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/kateart/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/kateart/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/kateart/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'KATE RICHARDSON - ARTIST: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="craigandkate@onwight.net">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="craigandkate@onwight.net">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

