window.thumbnails = {};
															thumbnails[1544615] = clik.newPhoto({"id":1544615,"src":"stormy sky over the white house 400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Stormy sky over the white house","height":130});
															thumbnails[2229839] = clik.newPhoto({"id":2229839,"src":"Arctic Landscape in R_thumb.K  digital print 1.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Arctic Landscape in RK","height":131});
															thumbnails[2230025] = clik.newPhoto({"id":2230025,"src":"In the Studio clkpc_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"In the studio","height":86});
															thumbnails[3535938] = clik.newPhoto({"id":3535938,"src":"Allotments_second_400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Allotments","height":124});
															thumbnails[3535985] = clik.newPhoto({"id":3535985,"src":"Beach_second400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Beach","height":134});
															thumbnails[3535990] = clik.newPhoto({"id":3535990,"src":"Blue_orchard_second_400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Blue Orchard","height":127});
															thumbnails[3535999] = clik.newPhoto({"id":3535999,"src":"Bright_Day_with_blue_trees_400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Bright day with blue trees","height":98});
															thumbnails[3536013] = clik.newPhoto({"id":3536013,"src":"Harvest_400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Harvest","height":132});
															thumbnails[3536020] = clik.newPhoto({"id":3536020,"src":"Layered_Land_400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Layered Land","height":129});
															thumbnails[3536108] = clik.newPhoto({"id":3536108,"src":"Warm_evening_light_400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Warm Evening Light","height":128});
															thumbnails[3536128] = clik.newPhoto({"id":3536128,"src":"Wintery_landscape_400_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":" Icy Landscape","height":130});
															thumbnails[4018214] = clik.newPhoto({"id":4018214,"src":"Pink_Shoreline__oil_on_panel_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Pink Shoreline","height":133});
															thumbnails[4018221] = clik.newPhoto({"id":4018221,"src":"Red___oil_on_panel_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Red","height":109});
															thumbnails[4018223] = clik.newPhoto({"id":4018223,"src":"White_Sky___oil_on_panel_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"White Sky","height":127});
															thumbnails[4646650] = clik.newPhoto({"id":4646650,"src":"Blue_Dawn_resized_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Blue Dawn","height":78});
															thumbnails[4646660] = clik.newPhoto({"id":4646660,"src":"Grasses_with_Dark_Sea_resized_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Grasses with Dark Sea","height":86});
															thumbnails[6165845] = clik.newPhoto({"id":6165845,"src":"autumn_leaves_with_pale_ground1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Autumn Leaves with Pale Ground","height":109});
															thumbnails[6165858] = clik.newPhoto({"id":6165858,"src":"inky_sky_3_4001_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Inky Sky","height":130});
															thumbnails[6165862] = clik.newPhoto({"id":6165862,"src":"sky_2_4001_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Sky","height":103});
															thumbnails[7472800] = clik.newPhoto({"id":7472800,"src":"Cottage_with_Hot_Trees__Chrissie_Havers_oil_on_panel1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":92});
															thumbnails[5837052] = clik.newPhoto({"id":5837052,"src":"lemons_400dpi_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Lemons","height":131});
															thumbnails[5837063] = clik.newPhoto({"id":5837063,"src":"quiet_daffodils_400dpi_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Quiet Daffodils","height":92});
															thumbnails[5837110] = clik.newPhoto({"id":5837110,"src":"tulips_with_pink_400dpi_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Tulips with Pink","height":132});
															thumbnails[5837107] = clik.newPhoto({"id":5837107,"src":"tulips_with_landscape__400dpi_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Tulips with Landscape","height":130});
															thumbnails[6165859] = clik.newPhoto({"id":6165859,"src":"path_3_4001_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_6165859.html","width":130,"caption":"Path","height":115});
															thumbnails[2815766] = clik.newPhoto({"id":2815766,"src":"Green Fields 14x14cm low 400_thumb.jpg","galleries_id":246245,"server_id":18,"link":"photo_2815766.html","width":130,"caption":"                  Green Fields <br>\r\n<br>\r\nCLICK on thumbnail for larger image.","height":128});
															thumbnails[5495428] = clik.newPhoto({"id":5495428,"src":"hillside-evening_snow_version_400_dpi_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_5495428.html","width":130,"caption":"Hillside - Snowy Evening","height":121});
															thumbnails[5649699] = clik.newPhoto({"id":5649699,"src":"Hazy_Day-_Botanic_Garden_400dpi_thumb.jpg","galleries_id":76492,"server_id":18,"link":"photo_5649699.html","width":130,"caption":"Hazy Afternoon  [Botanic Garden Cambridge]","height":94});
															thumbnails[5837105] = clik.newPhoto({"id":5837105,"src":"tulips_with_armadillo__400dpi_thumb.jpg","galleries_id":369622,"server_id":18,"link":"photo_5837105.html","width":130,"caption":"Armadillo - Strolling on the Table<br>\r\n[Armadillo Adventures 1]","height":125});
															thumbnails[7455052] = clik.newPhoto({"id":7455052,"src":"Three_Trees_with_Path__Chrissie_Havers__oil_on_panel_thumb.jpg","galleries_id":19018,"server_id":18,"link":"photo_7455052.html","width":130,"caption":"Three Trees with Path","height":118});
															thumbnails[7733128] = clik.newPhoto({"id":7733128,"src":"Canal_with_Tables__oil_on_canvas_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7733128.html","width":130,"caption":"''Canal with Tables''","height":115});
															thumbnails[8921005] = clik.newPhoto({"id":8921005,"src":"still_life_CYCLAMEN_2011_027_CARD_1_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8921005.html","width":130,"caption":"Card 1","height":128});
															thumbnails[4106293] = clik.newPhoto({"id":4106293,"src":"Arctic_Landscape_in_RK_50x50cm_oil_on_canvas_thumb.jpg","galleries_id":246245,"server_id":18,"link":"photo_4106293.html","width":130,"caption":"Arctic Landscape in RK.<br>\r\nCLICK on thumbnail for larger image.","height":131});
															thumbnails[5649729] = clik.newPhoto({"id":5649729,"src":"Path_in_the_Botanic_Garden_400dpi_thumb.jpg","galleries_id":76492,"server_id":18,"link":"photo_5649729.html","width":130,"caption":"Path in the Botanic Garden","height":75});
															thumbnails[5910964] = clik.newPhoto({"id":5910964,"src":"Landscape_with_Pale_Colours__400dpi_thumb.jpg","galleries_id":19018,"server_id":18,"link":"photo_5910964.html","width":130,"caption":"Landscape with Pale Colours","height":114});
															thumbnails[6797571] = clik.newPhoto({"id":6797571,"src":"ARMADILLO_-_NOT_KEEN_ON_THE_BREAKFAST_oil_on_panel_13x12inches_approx_Chrissie_Havers_thumb.jpg","galleries_id":369622,"server_id":18,"link":"photo_6797571.html","width":130,"caption":"Armadillo - Not Keen on the Breakfast<br>\r\n[Armadillo Adventures 2]","height":123});
															thumbnails[7733142] = clik.newPhoto({"id":7733142,"src":"Gondola__oil_on_canvas_panel_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7733142.html","width":130,"caption":"''Gondola''","height":109});
															thumbnails[8646490] = clik.newPhoto({"id":8646490,"src":"Tapestry_Umbria_resized_400_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_8646490.html","width":130,"caption":"Tapestry Umbria","height":139});
															thumbnails[8921014] = clik.newPhoto({"id":8921014,"src":"still_life_CYCLAMEN_2011_028_CARD_2_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8921014.html","width":130,"caption":"card 2","height":91});
															thumbnails[1023616] = clik.newPhoto({"id":1023616,"src":"The Cam at Audley End House_thumb.jpg","galleries_id":76492,"server_id":18,"link":"photo_1023616.html","width":130,"caption":"The Cam at Audley End House","height":87});
															thumbnails[4018096] = clik.newPhoto({"id":4018096,"src":"Autumn_Trees__oil_on_panel_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_4018096.html","width":130,"caption":"Autumn Trees","height":95});
															thumbnails[4106303] = clik.newPhoto({"id":4106303,"src":"Harvest__50x50cm_400dpi_thumb.jpg","galleries_id":246245,"server_id":18,"link":"photo_4106303.html","width":130,"caption":"Harvest<br>\r\n<br>\r\nCLICK on thumbnail for larger image","height":132});
															thumbnails[5910948] = clik.newPhoto({"id":5910948,"src":"Blue_Trees_Pink_Land____400dpi1_thumb.jpg","galleries_id":19018,"server_id":18,"link":"photo_5910948.html","width":130,"caption":"Pink Trees Blue Land","height":98});
															thumbnails[6797569] = clik.newPhoto({"id":6797569,"src":"ARMADILLO_-_INVESTIGATING_THE_RUBBER_BANDS_oil_on_canvas_panel_12x11inches_approx_Chrissie_Havers_thumb.jpg","galleries_id":369622,"server_id":18,"link":"photo_6797569.html","width":130,"caption":"Armadillo - Investigating the Rubber Bands<br>\r\n[Armadillo Adventures 3]","height":121});
															thumbnails[7733150] = clik.newPhoto({"id":7733150,"src":"Villa_with_Yellow_Tree__oil_on_canvas_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7733150.html","width":130,"caption":"''Villa with Yellow Tree''","height":129});
															thumbnails[8921020] = clik.newPhoto({"id":8921020,"src":"still_life_CYCLAMEN_2011_030_CARD_2_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8921020.html","width":130,"caption":"Card 3","height":130});
															thumbnails[1023619] = clik.newPhoto({"id":1023619,"src":"The Urn in the Parterre Garden, Audley End House_thumb.jpg","galleries_id":76492,"server_id":18,"link":"photo_1023619.html","width":130,"caption":"The Urn in the Parterre Garden - Audley End House","height":87});
															thumbnails[5910952] = clik.newPhoto({"id":5910952,"src":"Distant_Fields_with_Blue___400dpi_thumb.jpg","galleries_id":19018,"server_id":18,"link":"photo_5910952.html","width":130,"caption":"Distant Fields with Blue","height":134});
															thumbnails[7455117] = clik.newPhoto({"id":7455117,"src":"View_from_the_Rialto_Bridge__Chrissie_Havers_oil_panel_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7455117.html","width":130,"caption":"View from the Rialto Bridge","height":125});
															thumbnails[8921022] = clik.newPhoto({"id":8921022,"src":"still_life_CYCLAMEN_2011_031_CARD_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8921022.html","width":130,"caption":"Card 4","height":130});
															thumbnails[8921121] = clik.newPhoto({"id":8921121,"src":"still_life_CYCLAMEN_2011_021_NINETEEN_A_400dpi_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_8921121.html","width":130,"caption":"Misty Day Scotland","height":128});
															thumbnails[1023636] = clik.newPhoto({"id":1023636,"src":"View of the Parterre Garden_thumb.jpg","galleries_id":76492,"server_id":18,"link":"photo_1023636.html","width":130,"caption":"View of the Parterre Garden -  Audley End House","height":96});
															thumbnails[4106305] = clik.newPhoto({"id":4106305,"src":"Stormy_sky_over_the_white_house70x70cm_oil_on_canvas_thumb.jpg","galleries_id":246245,"server_id":18,"link":"photo_4106305.html","width":130,"caption":"Stormy Sky over the White House<br>\r\n<br>\r\n<br>\r\nCLICK on thumbnail for larger image.<br>\r\n","height":130});
															thumbnails[6165850] = clik.newPhoto({"id":6165850,"src":"blue_wood_3__4001_thumb.jpg","galleries_id":19018,"server_id":18,"link":"photo_6165850.html","width":130,"caption":"Blue Wood","height":109});
															thumbnails[7455080] = clik.newPhoto({"id":7455080,"src":"Doorway_with_Canal_Chrissie_Havers_oil_on_panel_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7455080.html","width":130,"caption":"Doorway with Canal","height":99});
															thumbnails[8376154] = clik.newPhoto({"id":8376154,"src":"Hilltop_Town_Umbria_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_8376154.html","width":130,"caption":"Hilltop Town Umbria","height":130});
															thumbnails[8921025] = clik.newPhoto({"id":8921025,"src":"still_life_CYCLAMEN_2011_032_CARD_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8921025.html","width":130,"caption":"Card 5","height":130});
															thumbnails[4105776] = clik.newPhoto({"id":4105776,"src":"card_red_ochre_field_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_4105776.html","width":130,"caption":"Card : Red Earth","height":93});
															thumbnails[4646671] = clik.newPhoto({"id":4646671,"src":"Landscape_-_Yellow_Stripe_3_resized_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_4646671.html","width":130,"caption":"Landscape - Yellow Stripe","height":76});
															thumbnails[7358701] = clik.newPhoto({"id":7358701,"src":"Quiet_Place____Chrissie_Havers__oil_on_canvas_panel__65_x_55_centimetres__approx_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7358701.html","width":130,"caption":"   Quiet Place","height":119});
															thumbnails[7455043] = clik.newPhoto({"id":7455043,"src":"Cottage_with_Hot_Trees__Chrissie_Havers_oil_on_panel_thumb.jpg","galleries_id":19018,"server_id":18,"link":"photo_7455043.html","width":130,"caption":"Cottage with Hot Trees","height":92});
															thumbnails[8921028] = clik.newPhoto({"id":8921028,"src":"still_life_CYCLAMEN_2011_034_CARD_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8921028.html","width":130,"caption":"Card 6","height":129});
															thumbnails[725188] = clik.newPhoto({"id":725188,"src":"the pink trees 2 best_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_725188.html","width":130,"caption":" Pink Trees","height":130});
															thumbnails[4105784] = clik.newPhoto({"id":4105784,"src":"card_sunset_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_4105784.html","width":130,"caption":"Card : The Evening Sun","height":88});
															thumbnails[4106316] = clik.newPhoto({"id":4106316,"src":"Warm_evening_light_40x40cm_thumb.jpg","galleries_id":246245,"server_id":18,"link":"photo_4106316.html","width":130,"caption":"Warm Evening Light<br>\r\nCLICK on thumbnail for larger image","height":128});
															thumbnails[6165854] = clik.newPhoto({"id":6165854,"src":"cool_garden_3_4001_thumb.jpg","galleries_id":76492,"server_id":18,"link":"photo_6165854.html","width":130,"caption":"Cool Garden","height":113});
															thumbnails[7733134] = clik.newPhoto({"id":7733134,"src":"Early_Morning__oil_on_canvas_panel_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7733134.html","width":130,"caption":"''Early Morning''","height":148});
															thumbnails[8921027] = clik.newPhoto({"id":8921027,"src":"still_life_CYCLAMEN_2011_033_CARD_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8921027.html","width":130,"caption":"Card 7","height":129});
															thumbnails[4018203] = clik.newPhoto({"id":4018203,"src":"Misty_Orchard__oil_on_canvas_50x50cm_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_4018203.html","width":130,"caption":"Misty Orchard","height":131});
															thumbnails[4018216] = clik.newPhoto({"id":4018216,"src":"Quiet_Cottage__oil_on_panel_thumb.jpg","galleries_id":19018,"server_id":18,"link":"photo_4018216.html","width":130,"caption":"Quiet Cottage","height":129});
															thumbnails[4105789] = clik.newPhoto({"id":4105789,"src":"card_wall_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_4105789.html","width":130,"caption":"Card : White Wall","height":94});
															thumbnails[6165863] = clik.newPhoto({"id":6165863,"src":"the_rioting_garden_2_4001_thumb.jpg","galleries_id":76492,"server_id":18,"link":"photo_6165863.html","width":130,"caption":"The Rioting Garden","height":114});
															thumbnails[7358689] = clik.newPhoto({"id":7358689,"src":"Deliveries_____Chrissie_Havers__oil_on_canvas__85_x_70_centimetres_approx_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7358689.html","width":130,"caption":"''Deliveries - Grand Canal Venice''","height":94});
															thumbnails[8646618] = clik.newPhoto({"id":8646618,"src":"Mum_Portrait_Photos_2011_012_resized_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8646618.html","width":130,"caption":"In the Studio 1","height":98});
															thumbnails[6165857] = clik.newPhoto({"id":6165857,"src":"hoppers_field_3_4001_thumb.jpg","galleries_id":19018,"server_id":18,"link":"photo_6165857.html","width":130,"caption":"Hopper's Field","height":116});
															thumbnails[7358699] = clik.newPhoto({"id":7358699,"src":"Narrow_Canal__Chrissie_Havers__oil_on_canvas_panel__45_x_30_centimetres_approx_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7358699.html","width":130,"caption":"Narrow Canal       LIMITED EDITION PRINT AVAILABLE","height":158});
															thumbnails[8646610] = clik.newPhoto({"id":8646610,"src":"Mum_Portrait_Photos_2011_009_resized_400_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8646610.html","width":130,"caption":"In the Studio 2","height":98});
															thumbnails[4018207] = clik.newPhoto({"id":4018207,"src":"Moonlight_Allotments__oil_on_canvas_thumb.jpg","galleries_id":18973,"server_id":18,"link":"photo_4018207.html","width":130,"caption":"Moonlight Allotments","height":91});
															thumbnails[7358698] = clik.newPhoto({"id":7358698,"src":"Gondolas_with_Palace_Windows__Chrissie_Havers___oil_on_canvas__50_x_50_centimetres_approx_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7358698.html","width":130,"caption":"Gondolas with Palace Windows         LIMITED EDITION PRINT AVAILABLE","height":130});
															thumbnails[8646623] = clik.newPhoto({"id":8646623,"src":"Mum_Portrait_Photos_2011_024_resized_good_thumb.jpg","galleries_id":185019,"server_id":18,"link":"photo_8646623.html","width":130,"caption":"In the Studio 3","height":173});
															thumbnails[7733111] = clik.newPhoto({"id":7733111,"src":"Building_with_Large_Beams__oil_on_canvas_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7733111.html","width":130,"caption":"Building with Large Beams        LIMITED EDITION PRINT AVAILABLE","height":116});
															thumbnails[7358695] = clik.newPhoto({"id":7358695,"src":"Drizzle__Chrissie_Havers_____oil_on_canvas___50x50_centimetres_approx_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7358695.html","width":130,"caption":"Drizzle        LIMITED EDITION PRINT AVAILABLE","height":130});
															thumbnails[7390787] = clik.newPhoto({"id":7390787,"src":"Palaces_Grand_Canal_Venice_1_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7390787.html","width":130,"caption":" Two Palaces- Grand Canal Venice","height":115});
															thumbnails[7455103] = clik.newPhoto({"id":7455103,"src":"Flat_Light_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7455103.html","width":130,"caption":"Flat Light","height":132});
															thumbnails[7746167] = clik.newPhoto({"id":7746167,"src":"Wild_Garden__oil_on_canvas_panel_thumb.jpg","galleries_id":76492,"server_id":18,"link":"photo_7746167.html","width":130,"caption":"''Wild Garden''","height":72});
															thumbnails[7358702] = clik.newPhoto({"id":7358702,"src":"Small_Bridge___Chrissie_Havers___oil_on_canvas_panel___45_x_30_centimetres_thumb.jpg","galleries_id":398205,"server_id":18,"link":"photo_7358702.html","width":130,"caption":"Small Bridge","height":139});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[19018] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"  SMALL LANDSCAPES ","link":"gallery_19018.html","maxRecords":0.0,"photoIDs":[7455052.0,5910964.0,5910948.0,5910952.0,6165850.0,7455043.0,4018216.0,6165857.0],"skipIndex":0,"section_code":"gallery","featured_images":5910964.0,"id":19018,"singleSection":false});				  						galleries[18973] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" LARGE LANDSCAPES ","link":"gallery_18973.html","maxRecords":0.0,"photoIDs":[6165859.0,5495428.0,8646490.0,4018096.0,8921121.0,8376154.0,4646671.0,725188.0,4018203.0,4018207.0],"skipIndex":0,"section_code":"gallery","featured_images":5495428.0,"id":18973,"singleSection":false});				  						galleries[76492] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"THE GARDEN series","link":"gallery_76492.html","maxRecords":0.0,"photoIDs":[5649699.0,5649729.0,1023616.0,1023619.0,1023636.0,6165854.0,6165863.0,7746167.0],"skipIndex":0,"section_code":"gallery","featured_images":5649729.0,"id":76492,"singleSection":false});				  						galleries[398205] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Project : VENICE - A Colourist View","link":"gallery_398205.html","maxRecords":0.0,"photoIDs":[7733128.0,7733142.0,7733150.0,7455117.0,7455080.0,7358701.0,7733134.0,7358689.0,7358699.0,7358698.0,7733111.0,7358695.0,7390787.0,7455103.0,7358702.0],"skipIndex":0,"section_code":"gallery","featured_images":7733128.0,"id":398205,"singleSection":false});				  						galleries[369622] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARMADILLO ADVENTURES Series","link":"gallery_369622.html","maxRecords":0.0,"photoIDs":[5837105.0,6797571.0,6797569.0],"skipIndex":0,"section_code":"gallery","featured_images":6797571.0,"id":369622,"singleSection":false});				  						galleries[185019] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"  TINY ART - HANDPAINTED CARDS ","link":"gallery_185019.html","maxRecords":0.0,"photoIDs":[8921005.0,8921014.0,8921020.0,8921022.0,8921025.0,4105776.0,8921028.0,4105784.0,8921027.0,4105789.0,8646618.0,8646610.0,8646623.0],"skipIndex":0,"section_code":"gallery","featured_images":8921020.0,"id":185019,"singleSection":false});				  						galleries[246245] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" PRINTS OF ORIGINAL PAINTINGS","link":"gallery_246245.html","maxRecords":0.0,"photoIDs":[2815766.0,4106293.0,4106303.0,4106305.0,4106316.0],"skipIndex":0,"section_code":"gallery","featured_images":4106293.0,"id":246245,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7746167';
imageSets[2] = '4018223,7733128,5495428,6797571,5910964,5837052,5649729,4106293,8921020';
imageSets[3] = '8921121,8921028,8921027,8921025,8921022,8921020,8921014,8921005,8646623,8646618,8646610,8646490,8376154,7746167,7733150,7733142,7733134,7733128,7733111,7472800,7455117,7455103,7455080,7455052,7455043,7390787,7358702,7358701,7358699,7358698,7358695,7358689,6797571,6797569,6165863,6165862,6165859,6165858,6165857,6165854,6165850,6165845,5910964,5910952,5910948,5837110,5837107,5837105,5837063,5837052';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chrissiehavers/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chrissiehavers/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'chrissiehavers.com: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					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="">';
				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;
	}
}

			

