window.thumbnails = {};
															thumbnails[3221240] = clik.newPhoto({"id":3221240,"src":"Italiandrawings1 (5)_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Afternoon at Villa Pia","height":181});
															thumbnails[3221242] = clik.newPhoto({"id":3221242,"src":"Italiandrawings1 (6)_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Zoe at Villa Pia","height":184});
															thumbnails[3221243] = clik.newPhoto({"id":3221243,"src":"Italiandrawings1 (9)_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Vicolo dei Cacciatori","height":98});
															thumbnails[3221244] = clik.newPhoto({"id":3221244,"src":"Italiandrawings1 (15)_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Ape","height":184});
															thumbnails[3221246] = clik.newPhoto({"id":3221246,"src":"new_wok_-_dartmouth_108_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dog 5","height":195});
															thumbnails[3221247] = clik.newPhoto({"id":3221247,"src":"new_wok_-_dartmouth_113_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Englishman SOLD","height":195});
															thumbnails[3221248] = clik.newPhoto({"id":3221248,"src":"Italiandrawings1 (14)_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Vespa","height":184});
															thumbnails[3504234] = clik.newPhoto({"id":3504234,"src":"Italiandrawings1 (11)_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ponte Vecchio","height":92});
															thumbnails[3504237] = clik.newPhoto({"id":3504237,"src":"Italiandrawings1 (16)_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Rooftops","height":92});
															thumbnails[3504243] = clik.newPhoto({"id":3504243,"src":"Italiandrawings1_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Market Day Vercelli","height":184});
															thumbnails[3504250] = clik.newPhoto({"id":3504250,"src":"sally drawings 044_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"At the Window (detail)","height":87});
															thumbnails[3504253] = clik.newPhoto({"id":3504253,"src":"sally drawings 046_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"St Ives (detail) SOLD","height":87});
															thumbnails[3504255] = clik.newPhoto({"id":3504255,"src":"sally drawings 048_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Tea at the Tate","height":87});
															thumbnails[3504256] = clik.newPhoto({"id":3504256,"src":"sally drawings 050_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Tea at the Tate","height":196});
															thumbnails[3504264] = clik.newPhoto({"id":3504264,"src":"sally drawings 058_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3504266] = clik.newPhoto({"id":3504266,"src":"sally drawings 056_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ferry Me Home","height":126});
															thumbnails[3504274] = clik.newPhoto({"id":3504274,"src":"sallydrawings2 065_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Piazza del Campo","height":91});
															thumbnails[3504278] = clik.newPhoto({"id":3504278,"src":"sally drawings 062_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Arches","height":130});
															thumbnails[3504286] = clik.newPhoto({"id":3504286,"src":"sally drawings 070_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Killer Plants","height":130});
															thumbnails[3504294] = clik.newPhoto({"id":3504294,"src":"sally drawings 071orange_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Orange Fish","height":130});
															thumbnails[3504296] = clik.newPhoto({"id":3504296,"src":"sally drawings 084_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Man and Dog","height":130});
															thumbnails[3572181] = clik.newPhoto({"id":3572181,"src":"4_Etching__50_edition_95_unframed_150_framed_-_Framed_30x30_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Cinquecento","height":153});
															thumbnails[3572212] = clik.newPhoto({"id":3572212,"src":"new_wok_-_dartmouth_002_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Standing Tall","height":195});
															thumbnails[3572224] = clik.newPhoto({"id":3572224,"src":"new_wok_-_dartmouth_004_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Follow Me - SOLD ","height":183});
															thumbnails[3572227] = clik.newPhoto({"id":3572227,"src":"new_wok_-_dartmouth_070_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Family Dog","height":195});
															thumbnails[3572236] = clik.newPhoto({"id":3572236,"src":"1_26_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3572241] = clik.newPhoto({"id":3572241,"src":"1_17_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3572242] = clik.newPhoto({"id":3572242,"src":"1_18_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3572260] = clik.newPhoto({"id":3572260,"src":"1_19_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":128});
															thumbnails[3572262] = clik.newPhoto({"id":3572262,"src":"1_20_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3572264] = clik.newPhoto({"id":3572264,"src":"1_21_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":128});
															thumbnails[3572265] = clik.newPhoto({"id":3572265,"src":"1_22_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3572267] = clik.newPhoto({"id":3572267,"src":"1_27_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3572270] = clik.newPhoto({"id":3572270,"src":"1_28_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":112});
															thumbnails[3572276] = clik.newPhoto({"id":3572276,"src":"1_29_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":184});
															thumbnails[3572284] = clik.newPhoto({"id":3572284,"src":"1_30_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":92});
															thumbnails[3572287] = clik.newPhoto({"id":3572287,"src":"1_35_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":184});
															thumbnails[3572289] = clik.newPhoto({"id":3572289,"src":"1_34_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Town Path","height":184});
															thumbnails[3572294] = clik.newPhoto({"id":3572294,"src":"1_37_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Boats","height":184});
															thumbnails[3572295] = clik.newPhoto({"id":3572295,"src":"2Vespa_Latino_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Vespa Latino - SOLD","height":164});
															thumbnails[3605448] = clik.newPhoto({"id":3605448,"src":"thank_you_book_club_pink_radio_red_lips_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Thank you Book Club","height":203});
															thumbnails[3620593] = clik.newPhoto({"id":3620593,"src":"screen_prints_09_001_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3620600] = clik.newPhoto({"id":3620600,"src":"catalogue_of_work_061_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3620621] = clik.newPhoto({"id":3620621,"src":"catalogue_of_work_069_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Lemon Tree","height":130});
															thumbnails[3620627] = clik.newPhoto({"id":3620627,"src":"catalogue_of_work_073_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Arywn Jones","height":130});
															thumbnails[3620633] = clik.newPhoto({"id":3620633,"src":"catalogue_of_work_074_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Brunch at Alf Rescos","height":130});
															thumbnails[3620637] = clik.newPhoto({"id":3620637,"src":"catalogue_of_work_075_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ferry me to Dartmouth - SOLD","height":130});
															thumbnails[3620641] = clik.newPhoto({"id":3620641,"src":"catalogue_of_work_076_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3620646] = clik.newPhoto({"id":3620646,"src":"catalogue_of_work_077_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Out for a sail","height":130});
															thumbnails[3620653] = clik.newPhoto({"id":3620653,"src":"catalogue_of_work_078_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Across to Kingswear","height":130});
															thumbnails[3620656] = clik.newPhoto({"id":3620656,"src":"catalogue_of_work_079_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Windsurfer - SOLD","height":130});
															thumbnails[3620661] = clik.newPhoto({"id":3620661,"src":"catalogue_of_work_080_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mothercombe","height":130});
															thumbnails[3620663] = clik.newPhoto({"id":3620663,"src":"catalogue_of_work_081_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mothercombe II","height":130});
															thumbnails[3620665] = clik.newPhoto({"id":3620665,"src":"catalogue_of_work_082_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Estuary","height":130});
															thumbnails[3620666] = clik.newPhoto({"id":3620666,"src":"catalogue_of_work_083_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Kingsbridge Estuary","height":130});
															thumbnails[3620700] = clik.newPhoto({"id":3620700,"src":"catalogue_of_work_084_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Cat on the Roof","height":130});
															thumbnails[3620704] = clik.newPhoto({"id":3620704,"src":"catalogue_of_work_085_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Birthday Present","height":130});
															thumbnails[3620711] = clik.newPhoto({"id":3620711,"src":"catalogue_of_work_086_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"SOLD","height":130});
															thumbnails[3620717] = clik.newPhoto({"id":3620717,"src":"catalogue_of_work_087_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Fishing Boats -Padstow Harbour","height":130});
															thumbnails[3620720] = clik.newPhoto({"id":3620720,"src":"catalogue_of_work_088_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Padstow Slow","height":130});
															thumbnails[3620723] = clik.newPhoto({"id":3620723,"src":"catalogue_of_work_089_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfer I","height":130});
															thumbnails[3620725] = clik.newPhoto({"id":3620725,"src":"catalogue_of_work_090_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Fistral Surf Hire","height":130});
															thumbnails[3620730] = clik.newPhoto({"id":3620730,"src":"catalogue_of_work_091_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfer II","height":130});
															thumbnails[3620732] = clik.newPhoto({"id":3620732,"src":"catalogue_of_work_092_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfers","height":130});
															thumbnails[3620735] = clik.newPhoto({"id":3620735,"src":"catalogue_of_work_093_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"A Dog walk - SOLD","height":130});
															thumbnails[3620737] = clik.newPhoto({"id":3620737,"src":"catalogue_of_work_095_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfer III","height":130});
															thumbnails[3620741] = clik.newPhoto({"id":3620741,"src":"catalogue_of_work_096_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfers II","height":130});
															thumbnails[3620744] = clik.newPhoto({"id":3620744,"src":"catalogue_of_work_098_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfing Couple Fistral","height":130});
															thumbnails[3620745] = clik.newPhoto({"id":3620745,"src":"catalogue_of_work_099_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfers","height":130});
															thumbnails[3620748] = clik.newPhoto({"id":3620748,"src":"catalogue_of_work_100_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Running Home","height":130});
															thumbnails[3620750] = clik.newPhoto({"id":3620750,"src":"catalogue_of_work_101_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Battersea Walk","height":130});
															thumbnails[3620754] = clik.newPhoto({"id":3620754,"src":"new_wok_-_dartmouth_067_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dog, Dartmouth","height":202});
															thumbnails[3620756] = clik.newPhoto({"id":3620756,"src":"3_Caffe_Vero_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Caffe Vero","height":163});
															thumbnails[3620759] = clik.newPhoto({"id":3620759,"src":"new_roberts_015_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":184});
															thumbnails[3620761] = clik.newPhoto({"id":3620761,"src":"new_wok_-_dartmouth_066_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dog 2","height":195});
															thumbnails[3620767] = clik.newPhoto({"id":3620767,"src":"new_wok_-_dartmouth_112_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dog 3","height":87});
															thumbnails[3620769] = clik.newPhoto({"id":3620769,"src":"catalogue_of_work_110_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3620771] = clik.newPhoto({"id":3620771,"src":"vespa_uno_008_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":153});
															thumbnails[3620773] = clik.newPhoto({"id":3620773,"src":"new_wok_-_dartmouth_078_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dartmouth","height":180});
															thumbnails[3620774] = clik.newPhoto({"id":3620774,"src":"5_Mantova_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mantova","height":202});
															thumbnails[3620776] = clik.newPhoto({"id":3620776,"src":"catalogue_of_work_114_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"SOLD","height":184});
															thumbnails[3620778] = clik.newPhoto({"id":3620778,"src":"4Vespa_Verona_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Vespa Verona","height":193});
															thumbnails[3620784] = clik.newPhoto({"id":3620784,"src":"catalogue_of_work_117_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Waiting Game","height":92});
															thumbnails[3620785] = clik.newPhoto({"id":3620785,"src":"catalogue_of_work_122_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The pier","height":93});
															thumbnails[3620789] = clik.newPhoto({"id":3620789,"src":"catalogue_of_work_130_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dartmouth Castle","height":89});
															thumbnails[3620794] = clik.newPhoto({"id":3620794,"src":"catalogue_of_work_131_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Kingsbridge Estuary","height":173});
															thumbnails[3620796] = clik.newPhoto({"id":3620796,"src":"catalogue_of_work_132_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Burgh Island","height":86});
															thumbnails[3620798] = clik.newPhoto({"id":3620798,"src":"catalogue_of_work_135_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Forest","height":93});
															thumbnails[3620800] = clik.newPhoto({"id":3620800,"src":"catalogue_of_work_136_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Little Nest","height":176});
															thumbnails[3620806] = clik.newPhoto({"id":3620806,"src":"catalogue_of_work_148_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"In the Square (detail )","height":87});
															thumbnails[3620809] = clik.newPhoto({"id":3620809,"src":"catalogue_of_work_149_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Detail","height":130});
															thumbnails[3620811] = clik.newPhoto({"id":3620811,"src":"catalogue_of_work_161_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Bath Buskers","height":92});
															thumbnails[3620813] = clik.newPhoto({"id":3620813,"src":"catalogue_of_work_162_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"detail","height":130});
															thumbnails[3620815] = clik.newPhoto({"id":3620815,"src":"catalogue_of_work_163_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"detail","height":130});
															thumbnails[3620817] = clik.newPhoto({"id":3620817,"src":"catalogue_of_work_156_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Roberts and Bamboo","height":184});
															thumbnails[3620819] = clik.newPhoto({"id":3620819,"src":"catalogue_of_work_157_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":184});
															thumbnails[3898452] = clik.newPhoto({"id":3898452,"src":"new_wok_-_dartmouth_003_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"As One","height":184});
															thumbnails[3898525] = clik.newPhoto({"id":3898525,"src":"new_wok_-_dartmouth_005_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Calm after the Storm - SOLD","height":99});
															thumbnails[3898528] = clik.newPhoto({"id":3898528,"src":"01042009402_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Rosa - SOLD","height":142});
															thumbnails[4327418] = clik.newPhoto({"id":4327418,"src":"1_13_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"La Strada - SOLD","height":155});
															thumbnails[4327435] = clik.newPhoto({"id":4327435,"src":"1_141_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Al Castello - SOLD","height":167});
															thumbnails[4327466] = clik.newPhoto({"id":4327466,"src":"1_65_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Highland I - SOLD","height":130});
															thumbnails[4327469] = clik.newPhoto({"id":4327469,"src":"BrownstonA5Firino1-2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":74});
															thumbnails[4327475] = clik.newPhoto({"id":4327475,"src":"1_53_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"View from the Tate","height":196});
															thumbnails[4327477] = clik.newPhoto({"id":4327477,"src":"1_54_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Above the Town","height":210});
															thumbnails[4327480] = clik.newPhoto({"id":4327480,"src":"dog1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dog Etching edition of 50","height":135});
															thumbnails[4327511] = clik.newPhoto({"id":4327511,"src":"1_10_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ape Due Etching","height":130});
															thumbnails[4327515] = clik.newPhoto({"id":4327515,"src":"curious_roberts_etching_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Curious Roberts Etching","height":162});
															thumbnails[4327517] = clik.newPhoto({"id":4327517,"src":"vespa_caffe_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Vespa Caffe","height":173});
															thumbnails[4327520] = clik.newPhoto({"id":4327520,"src":"1_64_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Standing Tall","height":223});
															thumbnails[4327522] = clik.newPhoto({"id":4327522,"src":"new_roberts_010_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Roberts and Lillies","height":190});
															thumbnails[4327528] = clik.newPhoto({"id":4327528,"src":"new_roberts_013_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Outside Roberts","height":184});
															thumbnails[4327532] = clik.newPhoto({"id":4327532,"src":"new_wok_-_dartmouth_073_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4327536] = clik.newPhoto({"id":4327536,"src":"new_wok_-_dartmouth_052_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Lydia","height":197});
															thumbnails[4327537] = clik.newPhoto({"id":4327537,"src":"new_wok_-_dartmouth_059_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Friends","height":195});
															thumbnails[4459529] = clik.newPhoto({"id":4459529,"src":"The_Pier_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Pier","height":92});
															thumbnails[4459533] = clik.newPhoto({"id":4459533,"src":"bench_hastings_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Bench, Hastings","height":118});
															thumbnails[4459534] = clik.newPhoto({"id":4459534,"src":"arches_brighton_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Arches, Brighton","height":123});
															thumbnails[4459537] = clik.newPhoto({"id":4459537,"src":"December_Sunshine__thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"December Sunshine","height":188});
															thumbnails[4459540] = clik.newPhoto({"id":4459540,"src":"Fed_at_the_White_Rock_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"At the White Rock","height":167});
															thumbnails[4459542] = clik.newPhoto({"id":4459542,"src":"gull_hastings_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Gull, Hastings","height":136});
															thumbnails[4459547] = clik.newPhoto({"id":4459547,"src":"New_Bar_white_Rock_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"New Bar, White Rock","height":91});
															thumbnails[4459550] = clik.newPhoto({"id":4459550,"src":"The_Promenade_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Promenade","height":90});
															thumbnails[4459551] = clik.newPhoto({"id":4459551,"src":"The_Terrace_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Terrace","height":179});
															thumbnails[4459553] = clik.newPhoto({"id":4459553,"src":"The_White_Rock_Hotel_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The White Rock Hotel","height":93});
															thumbnails[4459556] = clik.newPhoto({"id":4459556,"src":"View_from_The_White_Rock_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"View from the White Rock","height":92});
															thumbnails[4910175] = clik.newPhoto({"id":4910175,"src":"castle_Street_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Castle Street","height":128});
															thumbnails[4910178] = clik.newPhoto({"id":4910178,"src":"Castle_Street_with_Gold_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Castle Street with Gold","height":122});
															thumbnails[4910182] = clik.newPhoto({"id":4910182,"src":"One_Black_Sheep_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"One Black Sheep","height":121});
															thumbnails[4910184] = clik.newPhoto({"id":4910184,"src":"Rooftops_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Rooftops - SOLD","height":129});
															thumbnails[4910227] = clik.newPhoto({"id":4910227,"src":"Into_Town_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Into Town","height":122});
															thumbnails[4910231] = clik.newPhoto({"id":4910231,"src":"market_square_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Market Square - SOLD","height":130});
															thumbnails[4910234] = clik.newPhoto({"id":4910234,"src":"salisbury_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Salisbury","height":121});
															thumbnails[4910235] = clik.newPhoto({"id":4910235,"src":"salisbury_drawings_024_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Walking Madonna","height":130});
															thumbnails[4910237] = clik.newPhoto({"id":4910237,"src":"salisbury_rooftops_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Salisbury Rooftops","height":121});
															thumbnails[4910270] = clik.newPhoto({"id":4910270,"src":"camper_original_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Camper Etching","height":87});
															thumbnails[4910287] = clik.newPhoto({"id":4910287,"src":"katy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Katy","height":113});
															thumbnails[4910288] = clik.newPhoto({"id":4910288,"src":"LAperitivo-_Diptych__Sally_Firino_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"L'aperitivo","height":56});
															thumbnails[4910292] = clik.newPhoto({"id":4910292,"src":"House_on_the_Hill_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"House on the Hill","height":129});
															thumbnails[4910293] = clik.newPhoto({"id":4910293,"src":"st_ives_long_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"St Ives (long)","height":207});
															thumbnails[5118579] = clik.newPhoto({"id":5118579,"src":"La_Strada_-_Sally_Firino_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"La Strada - SOLD","height":139});
															thumbnails[5331917] = clik.newPhoto({"id":5331917,"src":"Georgy_Greenwhite_-_Copy_-_Copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Georgy Commission","height":85});
															thumbnails[5331938] = clik.newPhoto({"id":5331938,"src":"drawings_new_005_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Highland Etching","height":147});
															thumbnails[5332005] = clik.newPhoto({"id":5332005,"src":"drawings_new_007_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Vespa Cinque","height":126});
															thumbnails[5332014] = clik.newPhoto({"id":5332014,"src":"drawings_new_008_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Little Ape","height":125});
															thumbnails[5332023] = clik.newPhoto({"id":5332023,"src":"drawings_new_014_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Under the Table","height":128});
															thumbnails[5332030] = clik.newPhoto({"id":5332030,"src":"drawings_new_015_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Garibaldi","height":121});
															thumbnails[5332034] = clik.newPhoto({"id":5332034,"src":"drawings_new_017_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ape 50","height":118});
															thumbnails[5332037] = clik.newPhoto({"id":5332037,"src":"drawings_new_018_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ape 52","height":190});
															thumbnails[5332047] = clik.newPhoto({"id":5332047,"src":"drawings_new_020_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Serge","height":107});
															thumbnails[5332052] = clik.newPhoto({"id":5332052,"src":"drawings_new_021_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Dog","height":110});
															thumbnails[5332056] = clik.newPhoto({"id":5332056,"src":"drawings_new_022_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Dog 2","height":195});
															thumbnails[5332061] = clik.newPhoto({"id":5332061,"src":"drawings_new_023_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Riley","height":123});
															thumbnails[5332072] = clik.newPhoto({"id":5332072,"src":"drawings_new_025_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Proud Bird","height":144});
															thumbnails[5332076] = clik.newPhoto({"id":5332076,"src":"drawings_new_027_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Bench","height":87});
															thumbnails[5332085] = clik.newPhoto({"id":5332085,"src":"drawings_new_031_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The walk to Anghiari","height":91});
															thumbnails[5332090] = clik.newPhoto({"id":5332090,"src":"drawings_new_033_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Road to Sansepolcro","height":89});
															thumbnails[5332099] = clik.newPhoto({"id":5332099,"src":"drawings_new_035_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Corso Matteotti due","height":164});
															thumbnails[5332104] = clik.newPhoto({"id":5332104,"src":"drawings_new_036_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ho Sognato una strada 2","height":182});
															thumbnails[5332116] = clik.newPhoto({"id":5332116,"src":"drawings_new_037_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Anghiari","height":91});
															thumbnails[5332130] = clik.newPhoto({"id":5332130,"src":"drawings_new_038_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Tuscan Ape","height":190});
															thumbnails[5332140] = clik.newPhoto({"id":5332140,"src":"drawings_new_039_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Tuscan Ape (Detail)","height":87});
															thumbnails[5332150] = clik.newPhoto({"id":5332150,"src":"drawings_new_042_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The New Laptop","height":195});
															thumbnails[5332169] = clik.newPhoto({"id":5332169,"src":"drawings_new_043_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The New Laptop ","height":190});
															thumbnails[5332174] = clik.newPhoto({"id":5332174,"src":"drawings_new_044_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Deux Chevaux Vapeur","height":87});
															thumbnails[5332471] = clik.newPhoto({"id":5332471,"src":"blue_camper_-_Copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Blue Camper","height":87});
															thumbnails[5332475] = clik.newPhoto({"id":5332475,"src":"green_camper_-_Copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Green Camper","height":87});
															thumbnails[5332479] = clik.newPhoto({"id":5332479,"src":"pink_camper_-_Copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Pink Camper","height":87});
															thumbnails[5332481] = clik.newPhoto({"id":5332481,"src":"surfer_blue_-_Copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfer blue","height":130});
															thumbnails[5332485] = clik.newPhoto({"id":5332485,"src":"surfer_pink_n_blue_-_Copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Surfers pink and blue","height":130});
															thumbnails[5332489] = clik.newPhoto({"id":5332489,"src":"yellow_camper_-_Copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"yellow camper","height":87});
															thumbnails[5833024] = clik.newPhoto({"id":5833024,"src":"april_10_108_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dog in Bag Italia","height":130});
															thumbnails[5833057] = clik.newPhoto({"id":5833057,"src":"april_10_110_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Italia","height":130});
															thumbnails[5833061] = clik.newPhoto({"id":5833061,"src":"april_10_111_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Cane 1","height":130});
															thumbnails[5833068] = clik.newPhoto({"id":5833068,"src":"april_10_112_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Fruit Vespa","height":131});
															thumbnails[5833070] = clik.newPhoto({"id":5833070,"src":"april_10_113_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"2 Birds","height":139});
															thumbnails[5833072] = clik.newPhoto({"id":5833072,"src":"april_10_114_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Il Girasole","height":133});
															thumbnails[5833106] = clik.newPhoto({"id":5833106,"src":"april_10_115_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Waiting","height":127});
															thumbnails[5833107] = clik.newPhoto({"id":5833107,"src":"april_10_116_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":500.0,"height":120});
															thumbnails[5833110] = clik.newPhoto({"id":5833110,"src":"april_10_117_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"La Grand Terche","height":133});
															thumbnails[5833114] = clik.newPhoto({"id":5833114,"src":"april_10_118_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Old Vespa","height":133});
															thumbnails[5833117] = clik.newPhoto({"id":5833117,"src":"april_10_119_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Maurice, The Pipe Smoker","height":141});
															thumbnails[5833121] = clik.newPhoto({"id":5833121,"src":"april_10_120_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Clemence","height":144});
															thumbnails[5833123] = clik.newPhoto({"id":5833123,"src":"april_10_121_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Cafe","height":132});
															thumbnails[5833126] = clik.newPhoto({"id":5833126,"src":"april_10_122_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Chocolat Chaud","height":127});
															thumbnails[5833129] = clik.newPhoto({"id":5833129,"src":"april_10_123_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"La Rue","height":142});
															thumbnails[5833134] = clik.newPhoto({"id":5833134,"src":"april_10_124_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Bar Martini","height":131});
															thumbnails[5833138] = clik.newPhoto({"id":5833138,"src":"april_10_125_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"No 5","height":132});
															thumbnails[5833141] = clik.newPhoto({"id":5833141,"src":"april_10_126_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mini Sketchbook","height":87});
															thumbnails[5833147] = clik.newPhoto({"id":5833147,"src":"april_10_127_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mini Sketchbook","height":87});
															thumbnails[5833149] = clik.newPhoto({"id":5833149,"src":"april_10_128_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mini Sketchbook","height":87});
															thumbnails[5833154] = clik.newPhoto({"id":5833154,"src":"april_10_130_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mini Sketchbook","height":87});
															thumbnails[5833162] = clik.newPhoto({"id":5833162,"src":"april_10_131_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mini Sketchbook","height":87});
															thumbnails[5833166] = clik.newPhoto({"id":5833166,"src":"april_10_132_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mini Sketchbook","height":87});
															thumbnails[5833171] = clik.newPhoto({"id":5833171,"src":"april_10_133_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mini Sketchbook","height":87});
															thumbnails[5928900] = clik.newPhoto({"id":5928900,"src":"may_10_001_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"BUgs","height":148});
															thumbnails[5928905] = clik.newPhoto({"id":5928905,"src":"may_10_005_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"MOr","height":130});
															thumbnails[5928912] = clik.newPhoto({"id":5928912,"src":"may_10_009_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Dub Days","height":136});
															thumbnails[5928918] = clik.newPhoto({"id":5928918,"src":"may_10_018_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Bling","height":82});
															thumbnails[5928920] = clik.newPhoto({"id":5928920,"src":"may_10_019_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Primrose","height":98});
															thumbnails[5965588] = clik.newPhoto({"id":5965588,"src":"etchings3_012_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Hand Coloured Etching - Luigi","height":134});
															thumbnails[6143392] = clik.newPhoto({"id":6143392,"src":"cafe_latino_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Cafe Latino","height":131});
															thumbnails[6143394] = clik.newPhoto({"id":6143394,"src":"ciao_bella_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ciao Bella","height":131});
															thumbnails[6143396] = clik.newPhoto({"id":6143396,"src":"mon_ami_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mon ami","height":129});
															thumbnails[6143398] = clik.newPhoto({"id":6143398,"src":"The_Love_Affair_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Love Affair","height":132});
															thumbnails[7338723] = clik.newPhoto({"id":7338723,"src":"Alight_Lunch_Etching_33x29cm_White_Frame_130_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Alight Lunch","height":155});
															thumbnails[7338726] = clik.newPhoto({"id":7338726,"src":"Etching-_Sweet_Dreams_White_Frame_33x_29cm_130_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Sweet Dreams","height":156});
															thumbnails[7338728] = clik.newPhoto({"id":7338728,"src":"The_Look_Out_-Etching_33x29cm_130_white_frame_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"The Look Out","height":157});
															thumbnails[7338729] = clik.newPhoto({"id":7338729,"src":"Time_for_Me_-_Etching_White_frame_33x29cm_130_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Time for Me","height":158});
															thumbnails[7338732] = clik.newPhoto({"id":7338732,"src":"On_Guard_Etching_white_Frame_33x29cm_130_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"On Guard","height":163});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7338723,6143398,6143396,6143394,6143392,5965588,5833106,5332034,5332023,5332005,5331938,5331917,4910292,4910175,4327480,3620776,3620771,3620756,3620754,3620741,3620735,3620653,3572295,3572294,3572181,3504296,3504294,3504256,3504253,3504250,3221247';
imageSets[2] = '5965588,5332485,4910270,4910175,4327517,4327480,3898528,3620785,3620784,3620771,3620756,3620741,3620593,3572295,3572181,3504234';
imageSets[3] = '5332174,5332169,5332150,5332140,5332130,5332072,5332061,5332037,5332023,5332005,4910287,4910270,4459540';
imageSets[238928] = '7338732,7338729,7338728,7338726,7338723,6143398,6143396,6143394,6143392,5833106,5833057,5833024,5332076,5332056,5332052,5332047,5332034,5332014,5331917,4910184,4459529,4327466,4327418,3898525,3620800,3620735,3620711,3620656,3620637,3605448,3572224,3504294,3504256,3504253';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sallyfirino/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sallyfirino/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 && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += '.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 && '' != '') {
					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 = 'Sally Firino    : ' + 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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		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="sallyfirino@hotmail.co.uk">';
					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="sallyfirino@hotmail.co.uk">';
				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;
	}
}

			

