window.thumbnails = {};
															thumbnails[387189] = clik.newPhoto({"id":387189,"src":"BK_Footprints-8_thumb.jpg","galleries_id":31033,"server_id":1,"link":"photo_387189.html","width":130,"caption":"Cloud Forest, Mindo-Nambillo","height":87});
															thumbnails[387257] = clik.newPhoto({"id":387257,"src":"Colonial church Convento de Santa Teresa and indigenous people in Potosi Bolivia_thumb.jpg","galleries_id":31025,"server_id":1,"link":"photo_387257.html","width":130,"caption":"Potosi","height":205});
															thumbnails[387567] = clik.newPhoto({"id":387567,"src":"Atmospheric street with a green window shutter in the Diocletian Palace, Split, Croati_thumb.jpg","galleries_id":31027,"server_id":1,"link":"photo_387567.html","width":130,"caption":"Split","height":195});
															thumbnails[387593] = clik.newPhoto({"id":387593,"src":"BK_Footprints-67_thumb.jpg","galleries_id":31035,"server_id":1,"link":"photo_387593.html","width":130,"caption":"Ormos, Samos","height":86});
															thumbnails[387602] = clik.newPhoto({"id":387602,"src":"Machu_Picchu_23.jpg","galleries_id":30321,"server_id":1,"link":"photo_387602.html","width":130,"caption":"Lamas at Machu Picchu","height":203});
															thumbnails[387632] = clik.newPhoto({"id":387632,"src":"Rosa De Cerrado-1_thumb.jpg","galleries_id":31030,"server_id":1,"link":"photo_387632.html","width":130,"caption":"Rosa de Cerrado","height":91});
															thumbnails[389208] = clik.newPhoto({"id":389208,"src":"BK_Footprints-48_thumb.jpg","galleries_id":31023,"server_id":1,"link":"photo_389208.html","width":130,"caption":"Blackfriars Bridge and Tate Modern","height":87});
															thumbnails[2325941] = clik.newPhoto({"id":2325941,"src":"Stairs-in-the-Medina,-Chefc_thumb.jpg","galleries_id":31022,"server_id":1,"link":"photo_2325941.html","width":130,"caption":"Chefchaouen","height":87});
															thumbnails[2326234] = clik.newPhoto({"id":2326234,"src":"KadicBjanka132-Poland-Warsa_thumb.jpg","galleries_id":31026,"server_id":1,"link":"photo_2326234.html","width":130,"caption":"Warsaw","height":87});
															thumbnails[4351616] = clik.newPhoto({"id":4351616,"src":"Woman-walking-down-stairs-a_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4351616.html","width":130,"caption":"","height":86});
															thumbnails[4370780] = clik.newPhoto({"id":4370780,"src":"Young-woman-talking-on-mobi_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370780.html","width":130,"caption":"","height":86});
															thumbnails[4370951] = clik.newPhoto({"id":4370951,"src":"FootprintsBK2-2_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4370951.html","width":130,"caption":"","height":195});
															thumbnails[4372235] = clik.newPhoto({"id":4372235,"src":"National_Galery_of_Victoria_Visitor_checking_the_title_of_Tom_Robert_painting_Shearing_the_Rams_Melbourne_Victoria_Australia_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372235.html","width":130,"caption":"","height":86});
															thumbnails[4372334] = clik.newPhoto({"id":4372334,"src":"KadicBjanka224_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372334.html","width":130,"caption":"","height":195});
															thumbnails[387142] = clik.newPhoto({"id":387142,"src":"BK_Footprints-90_thumb.jpg","galleries_id":31033,"server_id":1,"link":"photo_387142.html","width":130,"caption":"Sea Lions, Galapagos","height":83});
															thumbnails[387236] = clik.newPhoto({"id":387236,"src":"BK_Footprints-76_thumb.jpg","galleries_id":31035,"server_id":1,"link":"photo_387236.html","width":130,"caption":"Panaghia Spyliani, Samos","height":86});
															thumbnails[387267] = clik.newPhoto({"id":387267,"src":"Ten year old girl who cleans shoes on the streets of La Paz in Bolivia_thumb.jpg","galleries_id":31025,"server_id":1,"link":"photo_387267.html","width":130,"caption":"Girl, La Paz","height":203});
															thumbnails[387562] = clik.newPhoto({"id":387562,"src":"Stone cobbled lane at night, Split, Croatia_thumb.jpg","galleries_id":31027,"server_id":1,"link":"photo_387562.html","width":130,"caption":"Split","height":196});
															thumbnails[387600] = clik.newPhoto({"id":387600,"src":"Colonial house with typical window and yellow taxi on the Plaza de Armas in Trujillo_thumb.jpg","galleries_id":30321,"server_id":1,"link":"photo_387600.html","width":130,"caption":"Trujillo","height":86});
															thumbnails[387603] = clik.newPhoto({"id":387603,"src":"Sunset-over-the-sea-with-si_thumb.jpg","galleries_id":30321,"server_id":1,"link":"photo_387603.html","width":130,"caption":"Lima","height":201});
															thumbnails[387634] = clik.newPhoto({"id":387634,"src":"Brasilia, National Congress 2-1_thumb.jpg","galleries_id":31030,"server_id":1,"link":"photo_387634.html","width":130,"caption":"National Congress, Brasilia","height":188});
															thumbnails[389214] = clik.newPhoto({"id":389214,"src":"BK_Footprints-19_thumb.jpg","galleries_id":31023,"server_id":1,"link":"photo_389214.html","width":130,"caption":"Lloyds and Willis buildings","height":194});
															thumbnails[2325945] = clik.newPhoto({"id":2325945,"src":"BK_Footprints-37_thumb.jpg","galleries_id":31022,"server_id":1,"link":"photo_2325945.html","width":130,"caption":"Girl, Chefchaouen","height":194});
															thumbnails[2326237] = clik.newPhoto({"id":2326237,"src":"KadicBjanka121-Poland-Warsa_thumb.jpg","galleries_id":31026,"server_id":1,"link":"photo_2326237.html","width":130,"caption":"Krakow","height":87});
															thumbnails[4369905] = clik.newPhoto({"id":4369905,"src":"Sydney-Harbour-Bridge-at-du_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4369905.html","width":130,"caption":"","height":86});
															thumbnails[4370786] = clik.newPhoto({"id":4370786,"src":"Parachute-surfing-in-St-Kil_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370786.html","width":130,"caption":"","height":196});
															thumbnails[4370955] = clik.newPhoto({"id":4370955,"src":"FootprintsBK2-5_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4370955.html","width":130,"caption":"","height":86});
															thumbnails[4372238] = clik.newPhoto({"id":4372238,"src":"National-Galery-of-Victoria_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372238.html","width":130,"caption":"","height":86});
															thumbnails[4372336] = clik.newPhoto({"id":4372336,"src":"KadicBjanka223_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372336.html","width":130,"caption":"","height":195});
															thumbnails[387198] = clik.newPhoto({"id":387198,"src":"BK_Footprints-15_thumb.jpg","galleries_id":31033,"server_id":1,"link":"photo_387198.html","width":130,"caption":"Horseriding, Canoa","height":87});
															thumbnails[387233] = clik.newPhoto({"id":387233,"src":"BK_Footprints-60_thumb.jpg","galleries_id":31035,"server_id":1,"link":"photo_387233.html","width":130,"caption":"Pythagorio, Samos","height":85});
															thumbnails[387264] = clik.newPhoto({"id":387264,"src":"Cactus at Fish Island, Isla del Pescado, in Salar de Uyuni, Bolivia, The largest and highest salt lake in the world 17_thumb.jpg","galleries_id":31025,"server_id":1,"link":"photo_387264.html","width":130,"caption":"Isla del Pescado","height":203});
															thumbnails[387569] = clik.newPhoto({"id":387569,"src":"KadicBjanka140 Croatia Hvar night alley street_thumb.jpg","galleries_id":31027,"server_id":1,"link":"photo_387569.html","width":130,"caption":"Hvar","height":195});
															thumbnails[387635] = clik.newPhoto({"id":387635,"src":"Brasilia_33.jpg","galleries_id":31030,"server_id":1,"link":"photo_387635.html","width":130,"caption":"Cathedral, Brasilia","height":203});
															thumbnails[389218] = clik.newPhoto({"id":389218,"src":"BK_Footprints-50_thumb.jpg","galleries_id":31023,"server_id":1,"link":"photo_389218.html","width":130,"caption":"Swiss Re building","height":206});
															thumbnails[2325944] = clik.newPhoto({"id":2325944,"src":"BK_Footprints-42_thumb.jpg","galleries_id":31022,"server_id":1,"link":"photo_2325944.html","width":130,"caption":"Meknes","height":194});
															thumbnails[2326256] = clik.newPhoto({"id":2326256,"src":"KadicBjanka126-Poland-stree_thumb.jpg","galleries_id":31026,"server_id":1,"link":"photo_2326256.html","width":130,"caption":"Warsaw","height":87});
															thumbnails[4369908] = clik.newPhoto({"id":4369908,"src":"Manly-ferry-approaching-Man_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4369908.html","width":130,"caption":"","height":86});
															thumbnails[4370791] = clik.newPhoto({"id":4370791,"src":"Man-Melbourne-Aquarium-Me_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370791.html","width":130,"caption":"","height":86});
															thumbnails[4370959] = clik.newPhoto({"id":4370959,"src":"FootprintsBK2-4_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4370959.html","width":130,"caption":"","height":195});
															thumbnails[4372241] = clik.newPhoto({"id":4372241,"src":"GOMA-Gallery-of-Modern-Art_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372241.html","width":130,"caption":"","height":86});
															thumbnails[4372337] = clik.newPhoto({"id":4372337,"src":"KadicBjanka221_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372337.html","width":130,"caption":"","height":195});
															thumbnails[385617] = clik.newPhoto({"id":385617,"src":"BK_Footprints_thumb.jpg","galleries_id":31023,"server_id":1,"link":"photo_385617.html","width":130,"caption":"St Pauls Cathedral","height":87});
															thumbnails[387181] = clik.newPhoto({"id":387181,"src":"Colonial_architecture_21.jpg","galleries_id":31033,"server_id":1,"link":"photo_387181.html","width":130,"caption":"Colonial architecture, Quito","height":203});
															thumbnails[387263] = clik.newPhoto({"id":387263,"src":"Mountains in Bolivia south of Uyuni 7_thumb.jpg","galleries_id":31025,"server_id":1,"link":"photo_387263.html","width":130,"caption":"Cloud","height":84});
															thumbnails[387572] = clik.newPhoto({"id":387572,"src":"BK_Footprints-3_thumb.jpg","galleries_id":31027,"server_id":1,"link":"photo_387572.html","width":130,"caption":"Vrsar","height":87});
															thumbnails[387617] = clik.newPhoto({"id":387617,"src":"The road going through Nasca Lines and towards the town of Nasca in Peru 1_thumb.jpg","galleries_id":30321,"server_id":1,"link":"photo_387617.html","width":130,"caption":"Nasca Lines","height":82});
															thumbnails[387636] = clik.newPhoto({"id":387636,"src":"Riacho Fundo 1_thumb.jpg","galleries_id":31030,"server_id":1,"link":"photo_387636.html","width":130,"caption":"Riacho Fundo, Goias","height":85});
															thumbnails[423916] = clik.newPhoto({"id":423916,"src":"BK_Footprints-63_thumb.jpg","galleries_id":31035,"server_id":1,"link":"photo_423916.html","width":130,"caption":"Octopus","height":196});
															thumbnails[2325940] = clik.newPhoto({"id":2325940,"src":"BK_Footprints-32_thumb.jpg","galleries_id":31022,"server_id":1,"link":"photo_2325940.html","width":130,"caption":"Weavers, Tangier","height":87});
															thumbnails[2326264] = clik.newPhoto({"id":2326264,"src":"KadicBjanka129-Poland-Warsa_thumb.jpg","galleries_id":31026,"server_id":1,"link":"photo_2326264.html","width":130,"caption":"Warsaw","height":87});
															thumbnails[4369911] = clik.newPhoto({"id":4369911,"src":"Sergeant-Majors-Row-one-of_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4369911.html","width":130,"caption":"","height":86});
															thumbnails[4370794] = clik.newPhoto({"id":4370794,"src":"Two-men-eating-in-a-afe-on-_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370794.html","width":130,"caption":"","height":86});
															thumbnails[4371030] = clik.newPhoto({"id":4371030,"src":"Gum-tree-forest-Coffs-Harb12_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4371030.html","width":130,"caption":"","height":195});
															thumbnails[4372242] = clik.newPhoto({"id":4372242,"src":"Young-woman-standing-next-t_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372242.html","width":130,"caption":"","height":195});
															thumbnails[4372339] = clik.newPhoto({"id":4372339,"src":"Antigone-Poseidon-sculptur_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372339.html","width":130,"caption":"","height":195});
															thumbnails[385607] = clik.newPhoto({"id":385607,"src":"Great Conservatory, Syon Park, Isleworth, Middlesex, Outer London-18_thumb.jpg","galleries_id":31023,"server_id":1,"link":"photo_385607.html","width":130,"caption":"Syon Park","height":86});
															thumbnails[387205] = clik.newPhoto({"id":387205,"src":"KadicBjanka033-Quito-Ecuado_thumb.jpg","galleries_id":31033,"server_id":1,"link":"photo_387205.html","width":130,"caption":"Balcony, Quito","height":84});
															thumbnails[387266] = clik.newPhoto({"id":387266,"src":"Bolivia_61.jpg","galleries_id":31025,"server_id":1,"link":"photo_387266.html","width":130,"caption":"Salar de Uyuni","height":83});
															thumbnails[387585] = clik.newPhoto({"id":387585,"src":"BK_Footprints-16_thumb.jpg","galleries_id":31027,"server_id":1,"link":"photo_387585.html","width":130,"caption":"Hvar","height":85});
															thumbnails[387619] = clik.newPhoto({"id":387619,"src":"Misty sunrise on the mountains around Machu Picchu in Peru_thumb.jpg","galleries_id":30321,"server_id":1,"link":"photo_387619.html","width":130,"caption":"Misty sunrise","height":84});
															thumbnails[387645] = clik.newPhoto({"id":387645,"src":"Brasilia, Palacio Itamarati-1_thumb.jpg","galleries_id":31030,"server_id":1,"link":"photo_387645.html","width":130,"caption":"Palacio Itamarati, Brasilia","height":88});
															thumbnails[423917] = clik.newPhoto({"id":423917,"src":"Mountains and sea in Kefalonia 2_thumb.jpg","galleries_id":31035,"server_id":1,"link":"photo_423917.html","width":130,"caption":"Kefalonia","height":196});
															thumbnails[2325894] = clik.newPhoto({"id":2325894,"src":"BK_Footprints-36_thumb.jpg","galleries_id":31022,"server_id":1,"link":"photo_2325894.html","width":130,"caption":"Mediterranean coast","height":87});
															thumbnails[2326272] = clik.newPhoto({"id":2326272,"src":"KadicBjanka130-Poland-Warsa_thumb.jpg","galleries_id":31026,"server_id":1,"link":"photo_2326272.html","width":130,"caption":"Warsaw","height":87});
															thumbnails[4369915] = clik.newPhoto({"id":4369915,"src":"Harbour-Bridge-and-Sydney-O_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4369915.html","width":130,"caption":"","height":86});
															thumbnails[4370797] = clik.newPhoto({"id":4370797,"src":"Old-and-new-buildings-on-Co_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370797.html","width":130,"caption":"","height":195});
															thumbnails[4370992] = clik.newPhoto({"id":4370992,"src":"Danger-Falls-Bellinger-reg_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4370992.html","width":130,"caption":"","height":196});
															thumbnails[4372243] = clik.newPhoto({"id":4372243,"src":"Statue-of-a-military-man-at_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372243.html","width":130,"caption":"","height":195});
															thumbnails[4372341] = clik.newPhoto({"id":4372341,"src":"Lovely-square-Man-pushing-_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372341.html","width":130,"caption":"","height":86});
															thumbnails[385631] = clik.newPhoto({"id":385631,"src":"Great Court, British Museum, London-17_thumb.jpg","galleries_id":31023,"server_id":1,"link":"photo_385631.html","width":130,"caption":"Great Court, British Museum","height":86});
															thumbnails[387186] = clik.newPhoto({"id":387186,"src":"BK_Footprints-14_thumb.jpg","galleries_id":31033,"server_id":1,"link":"photo_387186.html","width":130,"caption":"Easter Celebration, Quito","height":195});
															thumbnails[387262] = clik.newPhoto({"id":387262,"src":"Flamingoes at Laguna Hedionda, Bolivia_thumb.jpg","galleries_id":31025,"server_id":1,"link":"photo_387262.html","width":130,"caption":"Flamingoes, Laguna Hedionda","height":81});
															thumbnails[387578] = clik.newPhoto({"id":387578,"src":"Split harbour and The bell tower of the St Domnius Cathedral in the Diocletian Palace, Split, Dalmatia, Croatia-4_thumb.jpg","galleries_id":31027,"server_id":1,"link":"photo_387578.html","width":130,"caption":"Split","height":86});
															thumbnails[387618] = clik.newPhoto({"id":387618,"src":"Machu Picchu in Peru 3_thumb.jpg","galleries_id":30321,"server_id":1,"link":"photo_387618.html","width":130,"caption":"Machu Picchu","height":84});
															thumbnails[387638] = clik.newPhoto({"id":387638,"src":"Sao Paulo 2c-1_thumb.jpg","galleries_id":31030,"server_id":1,"link":"photo_387638.html","width":130,"caption":"Sao Paulo Cityscape","height":85});
															thumbnails[423894] = clik.newPhoto({"id":423894,"src":"BK_Footprints-64_thumb.jpg","galleries_id":31035,"server_id":1,"link":"photo_423894.html","width":130,"caption":"Manolates, Samos","height":196});
															thumbnails[2325899] = clik.newPhoto({"id":2325899,"src":"BK_Footprints-35_thumb.jpg","galleries_id":31022,"server_id":1,"link":"photo_2325899.html","width":130,"caption":"Rif Mountains","height":87});
															thumbnails[2326276] = clik.newPhoto({"id":2326276,"src":"KadicBjanka128-Poland-stree_thumb.jpg","galleries_id":31026,"server_id":1,"link":"photo_2326276.html","width":130,"caption":"Warsaw","height":87});
															thumbnails[4369920] = clik.newPhoto({"id":4369920,"src":"Woman-walking-Manley-beach_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4369920.html","width":130,"caption":"","height":86});
															thumbnails[4370800] = clik.newPhoto({"id":4370800,"src":"Two-grungy-characters-in-a-_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370800.html","width":130,"caption":"","height":86});
															thumbnails[4370995] = clik.newPhoto({"id":4370995,"src":"KadicBjanka198_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4370995.html","width":130,"caption":"","height":196});
															thumbnails[4372246] = clik.newPhoto({"id":4372246,"src":"KadicBjanka196-2_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372246.html","width":130,"caption":"","height":195});
															thumbnails[4372344] = clik.newPhoto({"id":4372344,"src":"Roman-arena-at-night-with-t_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372344.html","width":130,"caption":"","height":195});
															thumbnails[4369925] = clik.newPhoto({"id":4369925,"src":"Royal-Botanic-Gardens-with-_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4369925.html","width":130,"caption":"","height":195});
															thumbnails[4370803] = clik.newPhoto({"id":4370803,"src":"Woman-at-a-tram-stop-Bourk_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370803.html","width":130,"caption":"","height":86});
															thumbnails[4370999] = clik.newPhoto({"id":4370999,"src":"Seagull-and-surfer-on-Belon_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4370999.html","width":130,"caption":"","height":86});
															thumbnails[4372248] = clik.newPhoto({"id":4372248,"src":"PD6-5_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372248.html","width":130,"caption":"","height":196});
															thumbnails[4372356] = clik.newPhoto({"id":4372356,"src":"Old-house-in-the-field-of-w_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372356.html","width":130,"caption":"","height":196});
															thumbnails[4369928] = clik.newPhoto({"id":4369928,"src":"White-cockatoo-hanging-upsi_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4369928.html","width":130,"caption":"","height":86});
															thumbnails[4370807] = clik.newPhoto({"id":4370807,"src":"St-Kilda-pier--Melbourne-_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370807.html","width":130,"caption":"","height":86});
															thumbnails[4371000] = clik.newPhoto({"id":4371000,"src":"KadicBjanka199_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4371000.html","width":130,"caption":"","height":86});
															thumbnails[4372250] = clik.newPhoto({"id":4372250,"src":"Modern-statue-and-museum-gu_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372250.html","width":130,"caption":"","height":195});
															thumbnails[4372362] = clik.newPhoto({"id":4372362,"src":"Bridge-over-the-River-Ceze_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372362.html","width":130,"caption":"","height":86});
															thumbnails[4369932] = clik.newPhoto({"id":4369932,"src":"Australian-Pelican-on-lampp_thumb.jpg","galleries_id":255883,"server_id":1,"link":"photo_4369932.html","width":130,"caption":"","height":195});
															thumbnails[4370809] = clik.newPhoto({"id":4370809,"src":"Turkish-woman-talking-on-he_thumb.jpg","galleries_id":256812,"server_id":1,"link":"photo_4370809.html","width":130,"caption":"","height":86});
															thumbnails[4371001] = clik.newPhoto({"id":4371001,"src":"Pastoral-scene-in-the-Inlan_thumb.jpg","galleries_id":256830,"server_id":1,"link":"photo_4371001.html","width":130,"caption":"","height":86});
															thumbnails[4372251] = clik.newPhoto({"id":4372251,"src":"Kings-Domain-park-Statue-_thumb.jpg","galleries_id":256871,"server_id":1,"link":"photo_4372251.html","width":130,"caption":"","height":195});
															thumbnails[4372365] = clik.newPhoto({"id":4372365,"src":"River-Ceze-and-the-beach-L_thumb.jpg","galleries_id":256878,"server_id":1,"link":"photo_4372365.html","width":130,"caption":"","height":196});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[256871] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"AUSTRALIA","link":"gallery_256871.html","maxRecords":0.0,"photoIDs":[4372235.0,4372238.0,4372241.0,4372242.0,4372243.0,4372246.0,4372248.0,4372250.0,4372251.0],"skipIndex":0,"section_code":"gallery","featured_images":"4372251,4372250,4372248,4372246,4372243,4372242,4372241,4372238,4372235","id":256871,"singleSection":false});				  						galleries[256878] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FRANCE","link":"gallery_256878.html","maxRecords":0.0,"photoIDs":[4372334.0,4372336.0,4372337.0,4372339.0,4372341.0,4372344.0,4372356.0,4372362.0,4372365.0],"skipIndex":0,"section_code":"gallery","featured_images":"4372365,4372362,4372356,4372344,4372341,4372339,4372337,4372336,4372334","id":256878,"singleSection":false});				  						galleries[256830] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"AUSTRALIAN LANDSCAPE","link":"gallery_256830.html","maxRecords":0.0,"photoIDs":[4370951.0,4370955.0,4370959.0,4371030.0,4370992.0,4370995.0,4370999.0,4371000.0,4371001.0],"skipIndex":0,"section_code":"gallery","featured_images":"4371030,4371001,4371000,4370999,4370995,4370992,4370959,4370955,4370951","id":256830,"singleSection":false});				  						galleries[255883] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SYDNEY","link":"gallery_255883.html","maxRecords":0.0,"photoIDs":[4351616.0,4369905.0,4369908.0,4369911.0,4369915.0,4369920.0,4369925.0,4369928.0,4369932.0],"skipIndex":0,"section_code":"gallery","featured_images":"4369932,4369928,4369925,4369920,4369915,4369911,4369908,4369905,4351616","id":255883,"singleSection":false});				  						galleries[256812] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MELBOURNE","link":"gallery_256812.html","maxRecords":0.0,"photoIDs":[4370780.0,4370786.0,4370791.0,4370794.0,4370797.0,4370800.0,4370803.0,4370807.0,4370809.0],"skipIndex":0,"section_code":"gallery","featured_images":"4370809,4370807,4370803,4370800,4370797,4370794,4370791,4370786,4370780","id":256812,"singleSection":false});				  						galleries[31022] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MOROCCO","link":"gallery_31022.html","maxRecords":0.0,"photoIDs":[2325941.0,2325945.0,2325944.0,2325940.0,2325894.0,2325899.0],"skipIndex":0,"section_code":"gallery","featured_images":2325941.0,"id":31022,"singleSection":false});				  						galleries[31035] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"GREECE","link":"gallery_31035.html","maxRecords":0.0,"photoIDs":[387593.0,387236.0,387233.0,423916.0,423917.0,423894.0],"skipIndex":0,"section_code":"gallery","featured_images":387236.0,"id":31035,"singleSection":false});				  						galleries[31027] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CROATIA","link":"gallery_31027.html","maxRecords":0.0,"photoIDs":[387567.0,387562.0,387569.0,387572.0,387585.0,387578.0],"skipIndex":0,"section_code":"gallery","featured_images":"387585,387567","id":31027,"singleSection":false});				  						galleries[31026] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"POLAND","link":"gallery_31026.html","maxRecords":0.0,"photoIDs":[2326234.0,2326237.0,2326256.0,2326264.0,2326272.0,2326276.0],"skipIndex":0,"section_code":"gallery","featured_images":2326237.0,"id":31026,"singleSection":false});				  						galleries[31025] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BOLIVIA","link":"gallery_31025.html","maxRecords":0.0,"photoIDs":[387257.0,387267.0,387264.0,387263.0,387266.0,387262.0],"skipIndex":0,"section_code":"gallery","featured_images":387257.0,"id":31025,"singleSection":false});				  						galleries[31033] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ECUADOR","link":"gallery_31033.html","maxRecords":0.0,"photoIDs":[387189.0,387142.0,387198.0,387181.0,387205.0,387186.0],"skipIndex":0,"section_code":"gallery","featured_images":387181.0,"id":31033,"singleSection":false});				  						galleries[30321] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PERU","link":"gallery_30321.html","maxRecords":0.0,"photoIDs":[387602.0,387600.0,387603.0,387617.0,387619.0,387618.0],"skipIndex":0,"section_code":"gallery","featured_images":387602.0,"id":30321,"singleSection":false});				  						galleries[31030] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BRAZIL","link":"gallery_31030.html","maxRecords":0.0,"photoIDs":[387632.0,387634.0,387635.0,387636.0,387645.0,387638.0],"skipIndex":0,"section_code":"gallery","featured_images":387635.0,"id":31030,"singleSection":false});				  						galleries[31023] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LONDON","link":"gallery_31023.html","maxRecords":0.0,"photoIDs":[389208.0,389214.0,389218.0,385617.0,385607.0,385631.0],"skipIndex":0,"section_code":"gallery","featured_images":389214.0,"id":31023,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4372365,4372362,4372356,4372344,4372341,4372339,4372337,4372336,4372334,4372251,4372250,4372248,4372246,4372243,4372242,4372241,4372238,4372235,4371030,4371001,4371000,4370999,4370995,4370992,4370959,4370955,4370951,4370809,4370807,4370803,4370800,4370797,4370794,4370791,4370786,4370780,4369932,4369928,4369925,4369920,4369915,4369911,4369908,4369905,4351616,2326276,2326272,2326264,2326256,2326237';
imageSets[2] = '2325941,387602,387567,387257,2326237,389214,387236,387635,387181,387585';
imageSets[3] = '4372365,4372362,4372356,4372344,4372341,4372339,4372337,4372336,4372334,4372251,4372250,4372248,4372246,4372243,4372242,4372241,4372238,4372235,4371030,4371001,4371000,4370999,4370995,4370992,4370959,4370955,4370951,4370809,4370807,4370803,4370800,4370797,4370794,4370791,4370786,4370780,4369932,4369928,4369925,4369920,4369915,4369911,4369908,4369905,4351616,2326276,2326272,2326264,2326256,2326237';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/kadicbjanka/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/kadicbjanka/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 = 'Bjanka Kadic Photography: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="blueelements58@yahoo.com">';
					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="blueelements58@yahoo.com">';
				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;
	}
}

			

