window.thumbnails = {};
															thumbnails[7126670] = clik.newPhoto({"id":7126670,"src":"AG_avatar_cropped_small_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[2669401] = clik.newPhoto({"id":2669401,"src":"beauty-parlour-small_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2669401.html","width":130,"caption":"Dreams come true at the beauty parlour","height":128});
															thumbnails[2669482] = clik.newPhoto({"id":2669482,"src":"blonde_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2669482.html","width":130,"caption":"Miss Diamonte","height":112});
															thumbnails[2669560] = clik.newPhoto({"id":2669560,"src":"rockin-couple-2_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2669560.html","width":130,"caption":"A passion for fashion 2","height":98});
															thumbnails[2669580] = clik.newPhoto({"id":2669580,"src":"dancing-couple-2_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2669580.html","width":130,"caption":"Swing Patrol Dancers","height":100});
															thumbnails[2677998] = clik.newPhoto({"id":2677998,"src":"the-crowd-3_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2677998.html","width":130,"caption":"Fifties Fair 2008 crowd","height":98});
															thumbnails[2677999] = clik.newPhoto({"id":2677999,"src":"dj-swingin-kitten_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2677999.html","width":130,"caption":"DJ Swingin' Kitten","height":98});
															thumbnails[2678002] = clik.newPhoto({"id":2678002,"src":"double-bass-groove_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2678002.html","width":130,"caption":"Double Bass Groove","height":173});
															thumbnails[2678006] = clik.newPhoto({"id":2678006,"src":"the-crowd-2_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2678006.html","width":130,"caption":"Candid 2","height":99});
															thumbnails[2678008] = clik.newPhoto({"id":2678008,"src":"the-photographer_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2678008.html","width":130,"caption":"The Photographer","height":173});
															thumbnails[2678016] = clik.newPhoto({"id":2678016,"src":"glamous-puss_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2678016.html","width":130,"caption":"All glamour","height":164});
															thumbnails[2678018] = clik.newPhoto({"id":2678018,"src":"lucky-thirteen_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2678018.html","width":130,"caption":"Lucky Thirteen","height":173});
															thumbnails[2678042] = clik.newPhoto({"id":2678042,"src":"idaho-strikes_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2678042.html","width":130,"caption":"The Idaho Strikes","height":173});
															thumbnails[2678045] = clik.newPhoto({"id":2678045,"src":"june-daly-watkins_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2678045.html","width":130,"caption":"Judging the Fashion","height":98});
															thumbnails[2683359] = clik.newPhoto({"id":2683359,"src":"miss-50s_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2683359.html","width":130,"caption":"The winning couple","height":173});
															thumbnails[2683735] = clik.newPhoto({"id":2683735,"src":"sailor-girl_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2683735.html","width":130,"caption":"Candid 3","height":173});
															thumbnails[2683755] = clik.newPhoto({"id":2683755,"src":"red-haired-male_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2683755.html","width":130,"caption":"Candid 4","height":173});
															thumbnails[2683760] = clik.newPhoto({"id":2683760,"src":"mother-&-child_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2683760.html","width":130,"caption":"'50s Mother & Child","height":100});
															thumbnails[2683795] = clik.newPhoto({"id":2683795,"src":"lady-with-fan_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2683795.html","width":130,"caption":"'50s Lady with Fan","height":173});
															thumbnails[2683811] = clik.newPhoto({"id":2683811,"src":"man-&-mobile_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2683811.html","width":130,"caption":"Candid 5","height":173});
															thumbnails[2683826] = clik.newPhoto({"id":2683826,"src":"caravan-kitchenette_thumb.jpg","galleries_id":168898,"server_id":5,"link":"photo_2683826.html","width":130,"caption":"Caravanning a la '50s way","height":173});
															thumbnails[2119517] = clik.newPhoto({"id":2119517,"src":"september-rain_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_2119517.html","width":130,"caption":"september rain","height":109});
															thumbnails[2278295] = clik.newPhoto({"id":2278295,"src":"all-grown-up_thumb.jpg","galleries_id":149744,"server_id":5,"link":"photo_2278295.html","width":130,"caption":"all grown up","height":94});
															thumbnails[2279169] = clik.newPhoto({"id":2279169,"src":"aftermath_thumb.jpg","galleries_id":140998,"server_id":5,"link":"photo_2279169.html","width":130,"caption":"aftermath","height":104});
															thumbnails[2543490] = clik.newPhoto({"id":2543490,"src":"love's-tears_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_2543490.html","width":130,"caption":"tears of love","height":131});
															thumbnails[3406645] = clik.newPhoto({"id":3406645,"src":"beuaty comes within small_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_3406645.html","width":130,"caption":"beauty comes from within","height":194});
															thumbnails[3406651] = clik.newPhoto({"id":3406651,"src":"promise of tomorrow small_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_3406651.html","width":130,"caption":"the promise of tomorrow","height":134});
															thumbnails[3529347] = clik.newPhoto({"id":3529347,"src":"satin-ribbon_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_3529347.html","width":130,"caption":"~ satin ribbon ~","height":91});
															thumbnails[3529349] = clik.newPhoto({"id":3529349,"src":"every-breath-you-take_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_3529349.html","width":130,"caption":"~ every breath you take ~","height":172});
															thumbnails[3529350] = clik.newPhoto({"id":3529350,"src":"i'll-be-watching-you_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_3529350.html","width":130,"caption":"~ I'll be watching you ~","height":170});
															thumbnails[4044926] = clik.newPhoto({"id":4044926,"src":"dance-lessons_thumb.jpg","galleries_id":149744,"server_id":5,"link":"photo_4044926.html","width":130,"caption":"~ dance lessons with Miss Veronique ~","height":131});
															thumbnails[4122275] = clik.newPhoto({"id":4122275,"src":"impressionism-1_thumb.jpg","galleries_id":140998,"server_id":5,"link":"photo_4122275.html","width":130,"caption":"Impressionism 1","height":155});
															thumbnails[4128947] = clik.newPhoto({"id":4128947,"src":"rainbow-into-valley-ws_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_4128947.html","width":130,"caption":"rainbow into the valley","height":87});
															thumbnails[4128953] = clik.newPhoto({"id":4128953,"src":"valley-of-the-waters-BW-ws_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_4128953.html","width":130,"caption":"Valley of the Waters - Black & White","height":87});
															thumbnails[4128962] = clik.newPhoto({"id":4128962,"src":"valley-of-the-waters-ws_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_4128962.html","width":130,"caption":"Valley of the Waters - Colour","height":165});
															thumbnails[4158094] = clik.newPhoto({"id":4158094,"src":"cucmber-sandwiches-in-the-m_thumb.jpg","galleries_id":149744,"server_id":5,"link":"photo_4158094.html","width":130,"caption":"~ cucumber sandwiches in the afternoon ~","height":173});
															thumbnails[4158229] = clik.newPhoto({"id":4158229,"src":"teacakes-in-the-afternoon_thumb.jpg","galleries_id":149744,"server_id":5,"link":"photo_4158229.html","width":130,"caption":"~ teacakes in the afternoon ~","height":173});
															thumbnails[4256484] = clik.newPhoto({"id":4256484,"src":"double_delight_rose_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_4256484.html","width":130,"caption":"Double Delight Rose","height":173});
															thumbnails[6314647] = clik.newPhoto({"id":6314647,"src":"3_sisters_BW_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314647.html","width":130,"caption":"The Three Sisters, Katoomba Black & White","height":87});
															thumbnails[6314654] = clik.newPhoto({"id":6314654,"src":"3_sisters_colour_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314654.html","width":130,"caption":"The Three Sisters, Katoomba in colour","height":84});
															thumbnails[6314668] = clik.newPhoto({"id":6314668,"src":"Day_14_of_365_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314668.html","width":130,"caption":"Day 14 of 365 - Weeping Rock, Wentworth Falls","height":193});
															thumbnails[6314726] = clik.newPhoto({"id":6314726,"src":"Day_62_of_365_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314726.html","width":130,"caption":"Day 62 of 365 - Three Sisters - Early Dawn","height":87});
															thumbnails[6314732] = clik.newPhoto({"id":6314732,"src":"Day_167_of_365_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314732.html","width":130,"caption":"Day 167 of 365 - View from Dark's Common","height":85});
															thumbnails[6314772] = clik.newPhoto({"id":6314772,"src":"Day_178_of_365_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314772.html","width":130,"caption":"Day 178 of 365 - Nepean District, NSW","height":97});
															thumbnails[6314792] = clik.newPhoto({"id":6314792,"src":"Day_185_of_365_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314792.html","width":130,"caption":"Day 185 of 365 - Wiseman's Ferry","height":87});
															thumbnails[6314825] = clik.newPhoto({"id":6314825,"src":"Day_187_of_365_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314825.html","width":130,"caption":"Day 187 of 365 - Morning Mist","height":188});
															thumbnails[6314833] = clik.newPhoto({"id":6314833,"src":"green_pastures_I_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314833.html","width":130,"caption":"Green Pastures I","height":87});
															thumbnails[6314837] = clik.newPhoto({"id":6314837,"src":"indian_summer_in_the_mtns_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314837.html","width":130,"caption":"Indian Summer in the Mountains","height":195});
															thumbnails[6314842] = clik.newPhoto({"id":6314842,"src":"katoomba_falls_BW_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314842.html","width":130,"caption":"Katoomba Falls in Black & White","height":87});
															thumbnails[6314847] = clik.newPhoto({"id":6314847,"src":"mist_at_centennial_glen_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314847.html","width":130,"caption":"Mist at Centennial Glen","height":190});
															thumbnails[6314849] = clik.newPhoto({"id":6314849,"src":"rolling_hills_of_bellingen_small_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_6314849.html","width":130,"caption":"Rolling Hills of Bellingen","height":87});
															thumbnails[6314892] = clik.newPhoto({"id":6314892,"src":"aussie_bush_sunset_thumb.jpg","galleries_id":350206,"server_id":5,"link":"photo_6314892.html","width":130,"caption":"Aussie Bush Sunset","height":192});
															thumbnails[6314897] = clik.newPhoto({"id":6314897,"src":"Day_43_of_365_small_thumb.jpg","galleries_id":350206,"server_id":5,"link":"photo_6314897.html","width":130,"caption":"Day 43 of 365 - Sydney Harbour Bridge","height":87});
															thumbnails[6314902] = clik.newPhoto({"id":6314902,"src":"i_heart_daisies_small_thumb.jpg","galleries_id":350206,"server_id":5,"link":"photo_6314902.html","width":130,"caption":"i heart daisies","height":195});
															thumbnails[6314930] = clik.newPhoto({"id":6314930,"src":"Day_176_of_365_thumb.jpg","galleries_id":350206,"server_id":5,"link":"photo_6314930.html","width":130,"caption":"Day 176 of 365 - in the city","height":186});
															thumbnails[6314933] = clik.newPhoto({"id":6314933,"src":"il_caffe_thumb.jpg","galleries_id":350206,"server_id":5,"link":"photo_6314933.html","width":130,"caption":"il caffe","height":86});
															thumbnails[6314950] = clik.newPhoto({"id":6314950,"src":"in_the_garden_thumb.jpg","galleries_id":350206,"server_id":5,"link":"photo_6314950.html","width":130,"caption":"in the garden","height":87});
															thumbnails[6314953] = clik.newPhoto({"id":6314953,"src":"raindrops_from_heaven_II_thumb.jpg","galleries_id":350206,"server_id":5,"link":"photo_6314953.html","width":130,"caption":"raindrops from heaven II","height":87});
															thumbnails[6314958] = clik.newPhoto({"id":6314958,"src":"single_seagull_thumb.jpg","galleries_id":350206,"server_id":5,"link":"photo_6314958.html","width":130,"caption":"single seagull","height":87});
															thumbnails[6314995] = clik.newPhoto({"id":6314995,"src":"sunrise_at_the_gap_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_6314995.html","width":130,"caption":"Sunrise at The Gap","height":87});
															thumbnails[6314996] = clik.newPhoto({"id":6314996,"src":"Turimetta_beach_sunrise_II_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_6314996.html","width":130,"caption":"Turimetta Beach Sunrise II","height":87});
															thumbnails[7126051] = clik.newPhoto({"id":7126051,"src":"sunflowers_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_7126051.html","width":87,"caption":"Sunflowers","height":130});
															thumbnails[7126136] = clik.newPhoto({"id":7126136,"src":"orchids_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_7126136.html","width":87,"caption":"Orchids","height":130});
															thumbnails[7126191] = clik.newPhoto({"id":7126191,"src":"Day_300a_of_365_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_7126191.html","width":130,"caption":"Waratah","height":87});
															thumbnails[7126193] = clik.newPhoto({"id":7126193,"src":"endless_tomorrows_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_7126193.html","width":130,"caption":"She dreams of endless tomorrows","height":87});
															thumbnails[7126219] = clik.newPhoto({"id":7126219,"src":"field_of_flowers_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_7126219.html","width":87,"caption":"Field of Flowers","height":130});
															thumbnails[7126220] = clik.newPhoto({"id":7126220,"src":"frangipani_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_7126220.html","width":87,"caption":"Frangipani","height":130});
															thumbnails[7126257] = clik.newPhoto({"id":7126257,"src":"pink_gerbera_thumb.jpg","galleries_id":140969,"server_id":5,"link":"photo_7126257.html","width":87,"caption":"Pink Gerbera","height":130});
															thumbnails[7126296] = clik.newPhoto({"id":7126296,"src":"Connors_Beach_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_7126296.html","width":130,"caption":"Connors Beach","height":87});
															thumbnails[7126302] = clik.newPhoto({"id":7126302,"src":"Day_21_of_365_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_7126302.html","width":130,"caption":"Turrimetta Sunrise","height":87});
															thumbnails[7126306] = clik.newPhoto({"id":7126306,"src":"Day_74_of_365_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_7126306.html","width":130,"caption":"Curl Curl","height":55});
															thumbnails[7126309] = clik.newPhoto({"id":7126309,"src":"Day_91_of_365_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_7126309.html","width":130,"caption":"Hat Head Beach","height":87});
															thumbnails[7126313] = clik.newPhoto({"id":7126313,"src":"Day_121_of_365_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_7126313.html","width":130,"caption":"Narrabeen Surfer","height":91});
															thumbnails[7126316] = clik.newPhoto({"id":7126316,"src":"Day_196a_of_365_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_7126316.html","width":130,"caption":"Bondi Beach","height":87});
															thumbnails[7126320] = clik.newPhoto({"id":7126320,"src":"Narrabeen_Pool_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_7126320.html","width":130,"caption":"Narrabeen Pool","height":87});
															thumbnails[7126326] = clik.newPhoto({"id":7126326,"src":"The_Gap_moody_thumb.jpg","galleries_id":350207,"server_id":5,"link":"photo_7126326.html","width":130,"caption":"The Gap","height":87});
															thumbnails[7126368] = clik.newPhoto({"id":7126368,"src":"beauty_is_a_fragile_gift_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_7126368.html","width":130,"caption":"beauty is a fragile gift","height":87});
															thumbnails[7126373] = clik.newPhoto({"id":7126373,"src":"Day_65_of_365_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_7126373.html","width":130,"caption":"dewdrops are delicious","height":87});
															thumbnails[7126383] = clik.newPhoto({"id":7126383,"src":"Day_88_of_365_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_7126383.html","width":130,"caption":"dewdrops on dandelion","height":87});
															thumbnails[7126386] = clik.newPhoto({"id":7126386,"src":"Day_109_of_365_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_7126386.html","width":87,"caption":"the glass pearl","height":130});
															thumbnails[7126389] = clik.newPhoto({"id":7126389,"src":"Day_151_of_365_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_7126389.html","width":130,"caption":"punctuation point","height":87});
															thumbnails[7126408] = clik.newPhoto({"id":7126408,"src":"Day_298_of_365_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_7126408.html","width":87,"caption":"one single drop","height":130});
															thumbnails[7126417] = clik.newPhoto({"id":7126417,"src":"Day_322_of_365_thumb.jpg","galleries_id":140978,"server_id":5,"link":"photo_7126417.html","width":130,"caption":"rainbowdrops","height":87});
															thumbnails[7127250] = clik.newPhoto({"id":7127250,"src":"Day_174_of_365_thumb.jpg","galleries_id":140998,"server_id":5,"link":"photo_7127250.html","width":130,"caption":"autumn blur","height":87});
															thumbnails[7127251] = clik.newPhoto({"id":7127251,"src":"Day_216_of_365_thumb.jpg","galleries_id":140998,"server_id":5,"link":"photo_7127251.html","width":130,"caption":"Day 216 of 365","height":87});
															thumbnails[7127252] = clik.newPhoto({"id":7127252,"src":"bride_and_bouquet_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127252.html","width":130,"caption":"the bride and her bouquet","height":97});
															thumbnails[7127253] = clik.newPhoto({"id":7127253,"src":"candid_moment_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127253.html","width":87,"caption":"candid moment","height":130});
															thumbnails[7127254] = clik.newPhoto({"id":7127254,"src":"Day_38_of_365_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127254.html","width":130,"caption":"the girls","height":89});
															thumbnails[7127255] = clik.newPhoto({"id":7127255,"src":"Day_228_of_365_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127255.html","width":130,"caption":"the tram ride home","height":87});
															thumbnails[7127259] = clik.newPhoto({"id":7127259,"src":"Day_170_of_365_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127259.html","width":130,"caption":"Day 170 of 365","height":75});
															thumbnails[7127263] = clik.newPhoto({"id":7127263,"src":"Day_49_of_365_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127263.html","width":121,"caption":"grape expectations","height":130});
															thumbnails[7127264] = clik.newPhoto({"id":7127264,"src":"Day_150_of_365_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127264.html","width":130,"caption":"the hands","height":87});
															thumbnails[7127266] = clik.newPhoto({"id":7127266,"src":"Day_302or297_of_365_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127266.html","width":87,"caption":"the bow","height":130});
															thumbnails[7127268] = clik.newPhoto({"id":7127268,"src":"Day_316_of_365_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127268.html","width":72,"caption":"falling","height":130});
															thumbnails[7127271] = clik.newPhoto({"id":7127271,"src":"Day_330_of_365_thumb.jpg","galleries_id":140981,"server_id":5,"link":"photo_7127271.html","width":130,"caption":"the boy and his music","height":87});
															thumbnails[7137559] = clik.newPhoto({"id":7137559,"src":"Day_293_of_365_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_7137559.html","width":130,"caption":"Sepulchre of the Monks","height":87});
															thumbnails[7137568] = clik.newPhoto({"id":7137568,"src":"Day_309_of_365_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_7137568.html","width":87,"caption":"approaching storm","height":130});
															thumbnails[7137578] = clik.newPhoto({"id":7137578,"src":"Day_309_of_3651_thumb.jpg","galleries_id":140979,"server_id":5,"link":"photo_7137578.html","width":87,"caption":"the approaching storm","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[140969] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"flowers","link":"gallery_140969.html","maxRecords":0.0,"photoIDs":[3406645.0,3406651.0,4256484.0,7126051.0,7126136.0,7126191.0,7126193.0,7126219.0,7126220.0,7126257.0],"skipIndex":0,"section_code":"gallery","featured_images":"7126257,7126220,7126219,7126193,7126191,7126136,7126051,4256484,3406651,3406645","id":140969,"singleSection":false});				  						galleries[140978] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"water drops","link":"gallery_140978.html","maxRecords":0.0,"photoIDs":[2119517.0,2543490.0,7126368.0,7126373.0,7126383.0,7126386.0,7126389.0,7126408.0,7126417.0],"skipIndex":0,"section_code":"gallery","featured_images":"7126417,7126408,7126389,7126386,7126383,7126373,7126368","id":140978,"singleSection":false});				  						galleries[140979] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"landscapes","link":"gallery_140979.html","maxRecords":0.0,"photoIDs":[4128947.0,4128953.0,4128962.0,6314647.0,6314654.0,6314668.0,6314726.0,6314732.0,6314772.0,6314792.0,6314825.0,6314833.0,6314837.0,6314842.0,6314847.0,6314849.0,7137559.0,7137568.0,7137578.0],"skipIndex":0,"section_code":"gallery","featured_images":"7137559,6314849","id":140979,"singleSection":false});				  						galleries[350206] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"lensbaby","link":"gallery_350206.html","maxRecords":0.0,"photoIDs":[6314892.0,6314897.0,6314902.0,6314930.0,6314933.0,6314950.0,6314953.0,6314958.0],"skipIndex":0,"section_code":"gallery","featured_images":"6314958,6314953,6314950,6314933,6314930,6314902,6314897,6314892","id":350206,"singleSection":false});				  						galleries[140981] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"people","link":"gallery_140981.html","maxRecords":0.0,"photoIDs":[3529347.0,3529349.0,3529350.0,7127252.0,7127253.0,7127254.0,7127255.0,7127259.0,7127263.0,7127264.0,7127266.0,7127268.0,7127271.0],"skipIndex":0,"section_code":"gallery","featured_images":"7127271,7127268,7127266,7127264,7127263,7127259,7127255,7127254,7127253,7127252","id":140981,"singleSection":false});				  						galleries[350207] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"seascapes","link":"gallery_350207.html","maxRecords":0.0,"photoIDs":[6314995.0,6314996.0,7126296.0,7126302.0,7126306.0,7126309.0,7126313.0,7126316.0,7126320.0,7126326.0],"skipIndex":0,"section_code":"gallery","featured_images":"7126326,7126320,7126316,7126313,7126309,7126306,7126302,7126296","id":350207,"singleSection":false});				  						galleries[140998] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"abstract","link":"gallery_140998.html","maxRecords":0.0,"photoIDs":[2279169.0,4122275.0,7127250.0,7127251.0],"skipIndex":0,"section_code":"gallery","featured_images":"7127251,7127250","id":140998,"singleSection":false});				  						galleries[149744] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"vintage and textured","link":"gallery_149744.html","maxRecords":0.0,"photoIDs":[2278295.0,4044926.0,4158094.0,4158229.0],"skipIndex":0,"section_code":"gallery","featured_images":"4158229,4158094,4044926,2278295","id":149744,"singleSection":false});				  						galleries[168898] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fifties Fair 2008","link":"gallery_168898.html","maxRecords":0.0,"photoIDs":[2669401.0,2669482.0,2669560.0,2669580.0,2677998.0,2677999.0,2678002.0,2678006.0,2678008.0,2678016.0,2678018.0,2678042.0,2678045.0,2683359.0,2683735.0,2683755.0,2683760.0,2683795.0,2683811.0,2683826.0],"skipIndex":0,"section_code":"gallery","featured_images":"2683826,2683811,2683795,2683760,2683755,2683735,2683359,2678045,2678042,2678018","id":168898,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7137559,7127271,7127268,7127266,7127264,7127263,7127259,7127255,7127254,7127253,7127252,7127251,7127250,7126417,7126408,7126389,7126386,7126383,7126373,7126368,7126326,7126320,7126316,7126313,7126309,7126306,7126302,7126296,7126257,7126220,7126219,7126193,7126191,7126136,7126051,6314996,6314995,6314958,6314953,6314950,6314933,6314930,6314902,6314897,6314892,6314849,6314847,6314842,6314837,6314833,6314825,6314792,6314772,6314732,6314726,6314668,6314654,6314647,4256484,4128962,4128953,4128947,3406651,3406645,2119517';
imageSets[2] = '7137559,7127271,7127268,7127266,7127264,7127263,7127259,7127255,7127254,7127253,7127252,7127251,7127250,7126417,7126408,7126389,7126386,7126383,7126373,7126368,7126326,7126320,7126316,7126313,7126309,7126306,7126302,7126296,7126257,7126220,7126219,7126193,7126191,7126136,7126051,6314849,4256484,3406651,3406645';
imageSets[3] = '4256484,4128953,3406645';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/dabble/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/dabble/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/dabble/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/dabble/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/dabble/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/dabble/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/dabble/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 += '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 = 'Adriana Glackin - Photographic Art: ' + 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.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 += '<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;
	}
}

			

