window.thumbnails = {};
															thumbnails[6731283] = clik.newPhoto({"id":6731283,"src":"Stuka_2010_10E224B9-24E8-5EC4-4FD43C5AD98107DE_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"WW2 German Stuka ","height":98});
															thumbnails[9081554] = clik.newPhoto({"id":9081554,"src":"Foal_4_-_Jan_2012_thumb.jpg","galleries_id":477492,"server_id":32,"link":"photo_9081554.html","width":130,"caption":"Prehistoric Series - New Forest Foals - 2012","height":105});
															thumbnails[9081564] = clik.newPhoto({"id":9081564,"src":"Foal_6_-_Jan_2012_thumb.jpg","galleries_id":477492,"server_id":32,"link":"photo_9081564.html","width":130,"caption":"Prehistoric Series - New Forest Foals - 2012\t","height":85});
															thumbnails[6948897] = clik.newPhoto({"id":6948897,"src":"rsz_jigsaw_series_-_new_forest_ponies_2010_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_6948897.html","width":130,"caption":"Jigsaw series - New Forest ponies 2010","height":111});
															thumbnails[6725150] = clik.newPhoto({"id":6725150,"src":"IMG_3601_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_6725150.html","width":130,"caption":"Cow parsley - 2010","height":97});
															thumbnails[6725229] = clik.newPhoto({"id":6725229,"src":"Moment_in_time_-_shopping_is_good_thumb.JPG","galleries_id":366687,"server_id":32,"link":"photo_6725229.html","width":130,"caption":"'..Shopping is good...","height":106});
															thumbnails[6725697] = clik.newPhoto({"id":6725697,"src":"The_bench_people_-_pamper_me_thumb.JPG","galleries_id":366712,"server_id":32,"link":"photo_6725697.html","width":130,"caption":"...Pamper me...!","height":114});
															thumbnails[6726964] = clik.newPhoto({"id":6726964,"src":"Jigsaw_-_transcipt_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_6726964.html","width":130,"caption":"transcript of trees","height":88});
															thumbnails[6730530] = clik.newPhoto({"id":6730530,"src":"Moment_in_time_series_-_Phew_-_2010_thumb.JPG","galleries_id":366687,"server_id":32,"link":"photo_6730530.html","width":130,"caption":"...Phew...!","height":106});
															thumbnails[6731037] = clik.newPhoto({"id":6731037,"src":"Jigsaw_series_-_Dogrose_2010_2_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_6731037.html","width":130,"caption":"Dog Rose","height":98});
															thumbnails[6904073] = clik.newPhoto({"id":6904073,"src":"Jigsaw_series_-_A_pear_2010_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_6904073.html","width":121,"caption":"Pear 2010","height":130});
															thumbnails[6904112] = clik.newPhoto({"id":6904112,"src":"Jigsaw_series_-_Woodland_view_2010_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_6904112.html","width":130,"caption":"Woodland view 2010","height":98});
															thumbnails[7257752] = clik.newPhoto({"id":7257752,"src":"Jigsaw_series_-__St_Ives_-_Habour_1_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7257752.html","width":130,"caption":"Jigsaw series - St Ives Harbour","height":104});
															thumbnails[7257775] = clik.newPhoto({"id":7257775,"src":"Jigsaw_series_-__St_Ives_-_Habour_2_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7257775.html","width":130,"caption":"Jigsaw series - St Ives harbour 2","height":99});
															thumbnails[7257790] = clik.newPhoto({"id":7257790,"src":"Jigsaw_series_-_Hog_weed_2010_564B9718-1EC9-D45B-1C377C9E9EB68733_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_7257790.html","width":130,"caption":"Jigsaw series - Hog-weed  2010","height":98});
															thumbnails[7257804] = clik.newPhoto({"id":7257804,"src":"Jigsaw_series_-_Life_class_2010_2_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_7257804.html","width":109,"caption":"Jigsaw series - Nude","height":130});
															thumbnails[7366120] = clik.newPhoto({"id":7366120,"src":"Jigsaw_series_-_T_birthday_card_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_7366120.html","width":98,"caption":"Jigsaw series - Blue-tit","height":130});
															thumbnails[8144938] = clik.newPhoto({"id":8144938,"src":"Jigsaw_series_-_Picnic_on_Hatchet_Green__2011140_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8144938.html","width":130,"caption":"Jigsaw series - Picnic on the green 2011","height":85});
															thumbnails[8401910] = clik.newPhoto({"id":8401910,"src":"IMG_6053_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_8401910.html","width":83,"caption":"Jigsaw Design - Sarah and Dave get married...2011","height":130});
															thumbnails[8769594] = clik.newPhoto({"id":8769594,"src":"Jigsaw_Design_-_Xmas_2_-_2011188_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8769594.html","width":78,"caption":"Jigsaw Design Christmas Edition 2011","height":130});
															thumbnails[8769598] = clik.newPhoto({"id":8769598,"src":"Jigsaw_Design_-_xmas_edition_3_2011_-_2011195_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8769598.html","width":123,"caption":"Jigsaw Design - Christmas Edition 2 - 2011","height":130});
															thumbnails[8769599] = clik.newPhoto({"id":8769599,"src":"Jigsaw_Design_-_Xmas_series_2011_-_2011191_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8769599.html","width":129,"caption":"Jigsaw Design - Christmas Edition 3 - 2011","height":130});
															thumbnails[7100893] = clik.newPhoto({"id":7100893,"src":"rsz_jigsaw_series_-christmas_card_thin_ice_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7100893.html","width":130,"caption":"'Thin ice'","height":91});
															thumbnails[8327888] = clik.newPhoto({"id":8327888,"src":"Jigsaw_series_-_Dog_walking_1__March__2011_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8327888.html","width":130,"caption":"Jigsaw series - 'walking the Dog' 2011","height":121});
															thumbnails[8653566] = clik.newPhoto({"id":8653566,"src":"Jigsaw_Design_-_Autumn_Leaves_-_2011_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8653566.html","width":130,"caption":"Jigsaw Design - Autumn Leaves 2011","height":110});
															thumbnails[7257761] = clik.newPhoto({"id":7257761,"src":"Jigsaw_series_-_T_Christmas_card_2010066_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7257761.html","width":130,"caption":"Jigsaw series - Boys cycling...","height":91});
															thumbnails[8769600] = clik.newPhoto({"id":8769600,"src":"Jigsaw_Design_-_xmas_edition_4_2011_-_2011196_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8769600.html","width":130,"caption":"Jigsaw Design - Christmas Edition 4 - 2011","height":104});
															thumbnails[7257823] = clik.newPhoto({"id":7257823,"src":"rsz_jigsaw_series_-_salisbury_cathederal_2010_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7257823.html","width":130,"caption":"Jigsaw series - Salisbury Cathederal","height":98});
															thumbnails[8769601] = clik.newPhoto({"id":8769601,"src":"Jigsaw_Design_-_Xmas_1_-_2011187_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8769601.html","width":106,"caption":"Jigsaw Design - Christmas Edition 5 - 2011","height":130});
															thumbnails[7128072] = clik.newPhoto({"id":7128072,"src":"Jigsaw_series_-A_Winters_Tale_-A047_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7128072.html","width":130,"caption":"'After-lunch walk in the park'","height":87});
															thumbnails[7149725] = clik.newPhoto({"id":7149725,"src":"Jigsaw_series_Christmas_robin_2_2010_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_7149725.html","width":130,"caption":"Robin red breast","height":98});
															thumbnails[7257798] = clik.newPhoto({"id":7257798,"src":"Jigsaw_series_-_foxglove035_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7257798.html","width":60,"caption":"Jigsaw series - Foxglove","height":130});
															thumbnails[7758550] = clik.newPhoto({"id":7758550,"src":"Jigsaw_series_-__JQB_Fowey_River_2011124_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7758550.html","width":130,"caption":"Jigsaw series - Fowey River 2011","height":91});
															thumbnails[8551628] = clik.newPhoto({"id":8551628,"src":"Jigsaw_Design_-_New_Forest_pony_-_2011180_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8551628.html","width":130,"caption":"Jigsaw Design - New Forest Pony 2011","height":90});
															thumbnails[7128107] = clik.newPhoto({"id":7128107,"src":"The_bench_people_...do_you_remember_thumb.jpg","galleries_id":366712,"server_id":32,"link":"photo_7128107.html","width":130,"caption":"...do you remember!!","height":103});
															thumbnails[7257768] = clik.newPhoto({"id":7257768,"src":"Jigsaw_series_-__Pollyanna_and_Mattos_5643ED3E-1EC9-D45B-1CF7EA17755C57EF_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7257768.html","width":91,"caption":"Jigsaw series - Young Love...","height":130});
															thumbnails[7128128] = clik.newPhoto({"id":7128128,"src":"Jigsaw_series_-_Cockerel_on_the_farm_2010_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_7128128.html","width":130,"caption":"Cockerel on the farm","height":105});
															thumbnails[8551626] = clik.newPhoto({"id":8551626,"src":"Jigsaw_Design_-_New_Forest_Deer_-_2011181_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8551626.html","width":130,"caption":"Jigsaw Design - New Forest Deer","height":96});
															thumbnails[7257802] = clik.newPhoto({"id":7257802,"src":"Jigsaw_series_-_Jan_1st__2011_-_a_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7257802.html","width":114,"caption":"Jigsaw series - Hockey boys...","height":130});
															thumbnails[7257826] = clik.newPhoto({"id":7257826,"src":"Jigsaw_series_-_Sheep_in_a_field123.._thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_7257826.html","width":98,"caption":"","height":130});
															thumbnails[7257806] = clik.newPhoto({"id":7257806,"src":"Jigsaw_series_-_Salisbury_Downs_2010_thumb.JPG","galleries_id":366686,"server_id":32,"link":"photo_7257806.html","width":130,"caption":"Jigsaw series - Salisbury Downs","height":98});
															thumbnails[7482117] = clik.newPhoto({"id":7482117,"src":"Jigsaw_series_-_Dog_Keira_2011095_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7482117.html","width":92,"caption":"Jigsaw series - Keira the Dog 2011","height":130});
															thumbnails[7482120] = clik.newPhoto({"id":7482120,"src":"Jigsaw_series_-_Dog_Tikka_2011096_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7482120.html","width":98,"caption":"Jigsaw series - tikka the Dog 2011","height":130});
															thumbnails[7482125] = clik.newPhoto({"id":7482125,"src":"Jigsaw_series_-_Horse_Bertie_2011097_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7482125.html","width":87,"caption":"Jigsaw series - Bertie the horse 2011","height":130});
															thumbnails[8411666] = clik.newPhoto({"id":8411666,"src":"rsz_1jigsaw_design_-_a_walk_in_the_new_forest_artist_trail_even_smaller_2011_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8411666.html","width":130,"caption":"Jigsaw Design - 'A Walk in the New Forest' 2011","height":120});
															thumbnails[7548925] = clik.newPhoto({"id":7548925,"src":"Jigsaw_series_-_Interpritation__2011113_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_7548925.html","width":130,"caption":"Jigsaw series - 'Interpritation'  2011","height":93});
															thumbnails[8490779] = clik.newPhoto({"id":8490779,"src":"Jigsaw_Design_-_Salisbury_Cathederal_3_-_2011162_thumb.jpg","galleries_id":366686,"server_id":32,"link":"photo_8490779.html","width":89,"caption":"Jigsaw Design - Salisbury Cathederal 2 - 2011","height":130});
															thumbnails[7149536] = clik.newPhoto({"id":7149536,"src":"rsz_moments_in_time_series_-_sisters_thumb.jpg","galleries_id":366687,"server_id":32,"link":"photo_7149536.html","width":130,"caption":"'Sisters...'","height":95});
															thumbnails[5515311] = clik.newPhoto({"id":5515311,"src":"Christmas_Dove_-_09_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5515311.html","width":98,"caption":"Christmas Dove","height":130});
															thumbnails[5515324] = clik.newPhoto({"id":5515324,"src":"Discussion_1_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5515324.html","width":130,"caption":"Discussion 1","height":98});
															thumbnails[5515326] = clik.newPhoto({"id":5515326,"src":"Anne_of_Green_Gables_091_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5515326.html","width":130,"caption":"Anne of Green Gables","height":98});
															thumbnails[5515328] = clik.newPhoto({"id":5515328,"src":"Exhibition_-_08_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5515328.html","width":130,"caption":"Exhibition","height":98});
															thumbnails[5515332] = clik.newPhoto({"id":5515332,"src":"pastel_-_new_forest_09_thumb.jpg","galleries_id":312315,"server_id":32,"link":"photo_5515332.html","width":130,"caption":"New Forest","height":98});
															thumbnails[5517698] = clik.newPhoto({"id":5517698,"src":"final_piece_-_1_thumb.jpg","galleries_id":312315,"server_id":32,"link":"photo_5517698.html","width":130,"caption":"Final Piece","height":98});
															thumbnails[5517704] = clik.newPhoto({"id":5517704,"src":"Pastel_peaches_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5517704.html","width":130,"caption":"Peaches","height":98});
															thumbnails[5517705] = clik.newPhoto({"id":5517705,"src":"Jugs_-_05_thumb.jpg","galleries_id":312315,"server_id":32,"link":"photo_5517705.html","width":130,"caption":"Jugs 1","height":126});
															thumbnails[5517784] = clik.newPhoto({"id":5517784,"src":"Stonehenge_-_071_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5517784.html","width":130,"caption":"Stonehenge","height":95});
															thumbnails[5517785] = clik.newPhoto({"id":5517785,"src":"sunflower004_thumb.jpg","galleries_id":312316,"server_id":32,"link":"photo_5517785.html","width":93,"caption":"Sunflower","height":130});
															thumbnails[5523445] = clik.newPhoto({"id":5523445,"src":"IMG_2433_thumb.JPG","galleries_id":312316,"server_id":32,"link":"photo_5523445.html","width":130,"caption":"Stonehenge","height":73});
															thumbnails[5523467] = clik.newPhoto({"id":5523467,"src":"IMG_2442_thumb.JPG","galleries_id":312316,"server_id":32,"link":"photo_5523467.html","width":130,"caption":"Jersey Blue","height":98});
															thumbnails[5523588] = clik.newPhoto({"id":5523588,"src":"belongs_to_Valerie_09_thumb.JPG","galleries_id":312819,"server_id":32,"link":"photo_5523588.html","width":98,"caption":"charcoal man","height":130});
															thumbnails[5527488] = clik.newPhoto({"id":5527488,"src":"Lady_Nude_-_Sold_thumb.JPG","galleries_id":312819,"server_id":32,"link":"photo_5527488.html","width":79,"caption":"Lady figure","height":130});
															thumbnails[5527496] = clik.newPhoto({"id":5527496,"src":"Me_-_2010_thumb.JPG","galleries_id":312819,"server_id":32,"link":"photo_5527496.html","width":98,"caption":"Me - 2010","height":130});
															thumbnails[5527498] = clik.newPhoto({"id":5527498,"src":"Lady_washing_-10_thumb.JPG","galleries_id":312819,"server_id":32,"link":"photo_5527498.html","width":97,"caption":"Lady washing","height":130});
															thumbnails[5527499] = clik.newPhoto({"id":5527499,"src":"belongs_to_the_Baileys_-_08_NFS_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5527499.html","width":95,"caption":"Degas's lady at the window - NFS","height":130});
															thumbnails[5527501] = clik.newPhoto({"id":5527501,"src":"Jugs_2_-_05_thumb.jpg","galleries_id":312315,"server_id":32,"link":"photo_5527501.html","width":130,"caption":"Jugs 2 ","height":99});
															thumbnails[5527505] = clik.newPhoto({"id":5527505,"src":"Market_Trader_07_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5527505.html","width":99,"caption":"Market trader","height":130});
															thumbnails[5527515] = clik.newPhoto({"id":5527515,"src":"Dartmoor_-_09_thumb.JPG","galleries_id":312316,"server_id":32,"link":"photo_5527515.html","width":130,"caption":"Dartmoor ","height":98});
															thumbnails[5532963] = clik.newPhoto({"id":5532963,"src":"Langford_Lakes_abstract_-_09_thumb.jpg","galleries_id":312315,"server_id":32,"link":"photo_5532963.html","width":130,"caption":"Langford Lakes - Abtract","height":95});
															thumbnails[5532978] = clik.newPhoto({"id":5532978,"src":"Leaves_-_08_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5532978.html","width":130,"caption":"Leaves","height":97});
															thumbnails[5533005] = clik.newPhoto({"id":5533005,"src":"Pollyanna_Orchard_1_-_06_NFS_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5533005.html","width":99,"caption":"My Girlie...","height":130});
															thumbnails[5587620] = clik.newPhoto({"id":5587620,"src":"My_hockey_boys_-_Fragile_-_08_NFS_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5587620.html","width":130,"caption":"My boys","height":97});
															thumbnails[5634375] = clik.newPhoto({"id":5634375,"src":"Deer_in_the_mist_-_201012_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_5634375.html","width":95,"caption":"'Deer in the Mist' ","height":130});
															thumbnails[5802675] = clik.newPhoto({"id":5802675,"src":"Transcript_-_Modigliani_2010_thumb.JPG","galleries_id":312316,"server_id":32,"link":"photo_5802675.html","width":98,"caption":"Transcript - Modigliani","height":130});
															thumbnails[5932862] = clik.newPhoto({"id":5932862,"src":"transcript_of_Sallys_thumb.JPG","galleries_id":312316,"server_id":32,"link":"photo_5932862.html","width":130,"caption":"Transcript of Sally's - 2010","height":91});
															thumbnails[6109537] = clik.newPhoto({"id":6109537,"src":"Mother_and_foal_in_the_mist_-_10_thumb.JPG","galleries_id":312315,"server_id":32,"link":"photo_6109537.html","width":98,"caption":"Mother and foal in the mist ","height":130});
															thumbnails[7149425] = clik.newPhoto({"id":7149425,"src":"rsz_in_the_green_shade_-_06_thumb.jpg","galleries_id":312315,"server_id":32,"link":"photo_7149425.html","width":98,"caption":"In the Green Shade","height":130});
															thumbnails[7149733] = clik.newPhoto({"id":7149733,"src":"rsz_aukland_-_08_baileys_nfs_thumb.jpg","galleries_id":312315,"server_id":32,"link":"photo_7149733.html","width":130,"caption":"Auckland at Night...","height":98});
															thumbnails[7149739] = clik.newPhoto({"id":7149739,"src":"rsz_megan_bond_-_07_nfs_thumb.jpg","galleries_id":312315,"server_id":32,"link":"photo_7149739.html","width":98,"caption":"Megan Bond ","height":130});
															thumbnails[7321587] = clik.newPhoto({"id":7321587,"src":"resized_thumb.jpg","galleries_id":312316,"server_id":32,"link":"photo_7321587.html","width":130,"caption":"'Girlie in the Forest'","height":95});
															thumbnails[7758566] = clik.newPhoto({"id":7758566,"src":"Commission_Benji_2011_thumb.JPG","galleries_id":312819,"server_id":32,"link":"photo_7758566.html","width":98,"caption":"Commission - Benji 2011","height":130});
															thumbnails[8941928] = clik.newPhoto({"id":8941928,"src":"Stag_-_A_Flawed_Pearl_2011_thumb.JPG","galleries_id":470685,"server_id":32,"link":"photo_8941928.html","width":130,"caption":"'The stag's flawed imperial majesty'","height":103});
															thumbnails[9057408] = clik.newPhoto({"id":9057408,"src":"14.365_thumb.jpg","galleries_id":312819,"server_id":32,"link":"photo_9057408.html","width":94,"caption":14.365,"height":130});
															thumbnails[7858142] = clik.newPhoto({"id":7858142,"src":"Jigsaw_series_-_Dog_Keira_2011095_BCBD1B5F-1EC9-DFB6-093F1E9199F6D622_thumb.jpg","galleries_id":424151,"server_id":32,"link":"photo_7858142.html","width":92,"caption":"Commission - Keira","height":130});
															thumbnails[7858145] = clik.newPhoto({"id":7858145,"src":"Jigsaw_series_-_Dog_Tikka_2011096_BCCAD5AB-1EC9-DFB6-09C85F29311F17F8_thumb.jpg","galleries_id":424151,"server_id":32,"link":"photo_7858145.html","width":98,"caption":"Commission - 'Tikka'","height":130});
															thumbnails[7858162] = clik.newPhoto({"id":7858162,"src":"Jigsaw_series_-_Horse_Bertie_2011097_BCD68FEA-1EC9-DFB6-09791F365CA3DC49_thumb.jpg","galleries_id":424151,"server_id":32,"link":"photo_7858162.html","width":87,"caption":"Commission - 'Berti' 2011","height":130});
															thumbnails[8945430] = clik.newPhoto({"id":8945430,"src":"Bubba_-_2011_thumb.JPG","galleries_id":424151,"server_id":32,"link":"photo_8945430.html","width":130,"caption":"Commission - Bubba","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[424151] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Commissions ","link":"section508867.html","maxRecords":0.0,"photoIDs":[7858142.0,7858145.0,7858162.0,8945430.0],"skipIndex":0,"section_code":"section508867","featured_images":"7858162,7858145,7858142","id":424151,"singleSection":true});				  						galleries[312315] = clik.newGallery({"parentGallery":"","usePopups":true,"title":" Pastel ","link":"gallery_312315.html","maxRecords":0.0,"photoIDs":[5515311.0,5515324.0,5515326.0,5515328.0,5515332.0,5517698.0,5517704.0,5517705.0,5517784.0,5527499.0,5527501.0,5527505.0,5532963.0,5532978.0,5533005.0,5587620.0,5634375.0,6109537.0,7149425.0,7149733.0,7149739.0],"skipIndex":0,"section_code":"gallery","featured_images":"7149739,7149733,7149425,6109537,5634375,5587620,5533005,5532978,5532963,5527505,5527501,5527499,5517784,5517705,5517704,5517698,5515332,5515328,5515326,5515324,5515311","id":312315,"singleSection":false});				  						galleries[312316] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Watercolour ","link":"gallery_312316.html","maxRecords":0.0,"photoIDs":[5517785.0,5523445.0,5523467.0,5527515.0,5802675.0,5932862.0,7321587.0],"skipIndex":0,"section_code":"gallery","featured_images":"7321587,5932862,5802675,5527515,5523467,5523445,5517785","id":312316,"singleSection":false});				  						galleries[477492] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Art Blog","link":"section581411.html","maxRecords":0.0,"photoIDs":[9081554.0,9081564.0],"skipIndex":0,"section_code":"section581411","featured_images":"9081564,9081554","id":477492,"singleSection":true});				  						galleries[312819] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Pencil - Charcoal ","link":"gallery_312819.html","maxRecords":0.0,"photoIDs":[5523588.0,5527488.0,5527496.0,5527498.0,7758566.0,9057408.0],"skipIndex":0,"section_code":"gallery","featured_images":"5527498,5527496,5527488,5523588","id":312819,"singleSection":false});				  						galleries[366686] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"'Jigsaw' series ","link":"section436791_366686.html","maxRecords":0.0,"photoIDs":[6948897.0,6725150.0,6726964.0,6731037.0,6904073.0,6904112.0,7257752.0,7257775.0,7257790.0,7257804.0,7366120.0,8144938.0,8401910.0,8769594.0,8769598.0,8769599.0,7100893.0,8327888.0,8653566.0,7257761.0,8769600.0,7257823.0,8769601.0,7128072.0,7149725.0,7257798.0,7758550.0,8551628.0,7257768.0,7128128.0,8551626.0,7257802.0,7257826.0,7257806.0,7482117.0,7482120.0,7482125.0,8411666.0,7548925.0,8490779.0],"skipIndex":0,"section_code":"section436791","featured_images":"8327888,8144938,7758550,7548925,7482125,7482120,7482117,7366120,7257826,7257823,7257806,7257804,7257802,7257798,7257790,7257775,7257768,7257761,7257752,7149725,7128128,7128072,7100893,6948897,6904112,6904073,6731037,6726964,6725150","id":366686,"singleSection":false});				  						galleries[366687] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"'Moments in Time'","link":"section436791_366687.html","maxRecords":0.0,"photoIDs":[6725229.0,6730530.0,7149536.0],"skipIndex":0,"section_code":"section436791","featured_images":"7149536,6730530,6725229","id":366687,"singleSection":false});				  						galleries[470685] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Acrylics","link":"gallery_470685.html","maxRecords":0.0,"photoIDs":[8941928.0],"skipIndex":0,"section_code":"gallery","featured_images":8941928.0,"id":470685,"singleSection":false});				  						galleries[366712] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"'The Bench People'","link":"section436791_366712.html","maxRecords":0.0,"photoIDs":[6725697.0,7128107.0],"skipIndex":0,"section_code":"section436791","featured_images":"7128107,6725697","id":366712,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[237475] = '8401910,8144938,7366120,7257804,7257790,7257775,5802675,8653566,7257761';
imageSets[1] = '8941928,8327888,7100893,9081554,8653566,8769600,7257761,8769601,7257823,7128072,7149725,7257798,7758550,8551628,7128107,7257768,7128128,8551626,7257802,7257826,7257806,6731283,7482117,7482120,7482125,8411666,7548925,8490779,7149536';
imageSets[2] = '8144938,7858162,7858145,7858142,7366120,7321587,7257804,7257790,7257775,7257752,7149739,7149733,7149425,6948897,6904112,6904073,6731037,6730530,6726964,6725697,6725229,6725150,6109537,5932862,5802675,5634375,5587620,5533005,5532978,5532963,5527515,5527505,5527501,5527499,5527498,5527496,5527488,5523588,5523467,5523445,5517785,5517784,5517705,5517704,5517698,5515332,5515328,5515326,5515324,5515311,8327888,7100893,7257761,7257823,7128072,7149725,7257798,7758550,7128107,7257768,7128128,7257802,7257826,7257806,6731283,7482117,7482120,7482125,7548925,7149536';
imageSets[3] = '6725229,6725150';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sarahorchard/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sarahorchard/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 += 'section581411.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 && 'section581411' != '') {
					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 = 'Sarah Orchard Fine Arts: ' + 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> ' + (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 += '<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;
	}
}

		

