window.thumbnails = {};
															thumbnails[773020] = clik.newPhoto({"id":773020,"src":"Boats_Morocco1_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_773020.html","width":130,"caption":"Boats in Morocco #1","height":85});
															thumbnails[773093] = clik.newPhoto({"id":773093,"src":"Tea_Plantation_Munnar_India1_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_773093.html","width":130,"caption":"Tea plantation, Munna, Kerala, India","height":85});
															thumbnails[773096] = clik.newPhoto({"id":773096,"src":"Tea_Plantation_Munnar_India2_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_773096.html","width":130,"caption":"Tea plantation, Munnar, Kerala, India #2","height":83});
															thumbnails[773063] = clik.newPhoto({"id":773063,"src":"Fish_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_773063.html","width":130,"caption":"Fish, Tamil Nadu, India","height":85});
															thumbnails[773053] = clik.newPhoto({"id":773053,"src":"Coconut_Husks_India_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_773053.html","width":130,"caption":"Coconut husks in Kerala, India","height":86});
															thumbnails[773103] = clik.newPhoto({"id":773103,"src":"Tenement_Havana_Cuba_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_773103.html","width":130,"caption":"Tenemant block in Havana, Cuba","height":88});
															thumbnails[4517816] = clik.newPhoto({"id":4517816,"src":"_DSC2863_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517816.html","width":130,"caption":"Ventimiglia old town, Italy","height":87});
															thumbnails[4517817] = clik.newPhoto({"id":4517817,"src":"_DSC2864_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517817.html","width":130,"caption":"Ventimiglia old town, Italy","height":87});
															thumbnails[4517820] = clik.newPhoto({"id":4517820,"src":"_DSC2881_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517820.html","width":130,"caption":"Shop front, Italy","height":87});
															thumbnails[4517843] = clik.newPhoto({"id":4517843,"src":"_DSC2969_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517843.html","width":130,"caption":"Monte Carlo","height":87});
															thumbnails[779837] = clik.newPhoto({"id":779837,"src":"Meander_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_779837.html","width":130,"caption":"Cuckmere Haven meander, South Downs, England","height":82});
															thumbnails[4517920] = clik.newPhoto({"id":4517920,"src":"Picture-184_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517920.html","width":130,"caption":"Fannad Head switchback","height":87});
															thumbnails[779832] = clik.newPhoto({"id":779832,"src":"Beach Donegal_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_779832.html","width":130,"caption":"Estuary, County Donegal, Eire","height":86});
															thumbnails[4517861] = clik.newPhoto({"id":4517861,"src":"Picture-193_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517861.html","width":130,"caption":"Lough Reelan, Eire","height":87});
															thumbnails[4517815] = clik.newPhoto({"id":4517815,"src":"_DSC2826_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517815.html","width":130,"caption":"Sand dune","height":87});
															thumbnails[774249] = clik.newPhoto({"id":774249,"src":"Southbank_Skateboard_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_774249.html","width":130,"caption":"Skate Board, South Bank, London","height":87});
															thumbnails[4517932] = clik.newPhoto({"id":4517932,"src":"Picture-034_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517932.html","width":130,"caption":"Organ Pipes, County Antrim","height":87});
															thumbnails[4517944] = clik.newPhoto({"id":4517944,"src":"Picture-216_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517944.html","width":130,"caption":"Castle","height":87});
															thumbnails[4517957] = clik.newPhoto({"id":4517957,"src":"Picture-016_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517957.html","width":130,"caption":"Waiting for the bus","height":87});
															thumbnails[4517898] = clik.newPhoto({"id":4517898,"src":"Picture-025_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517898.html","width":130,"caption":"Giants Causeway, County Antrim","height":87});
															thumbnails[773120] = clik.newPhoto({"id":773120,"src":"Umbrellas_Ban_Thon_Thailand_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_773120.html","width":130,"caption":"Umbrella festival, Ban Thon, Thailand #1","height":198});
															thumbnails[773034] = clik.newPhoto({"id":773034,"src":"Boats_Morocco2_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_773034.html","width":130,"caption":"Boats in Morocco #2","height":196});
															thumbnails[4546652] = clik.newPhoto({"id":4546652,"src":"Statue_Temple_Madurai_India2_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4546652.html","width":130,"caption":"Meenakshi Temple, Tamil Nadu","height":195});
															thumbnails[774320] = clik.newPhoto({"id":774320,"src":"Cuckmere_Haven_beach_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_774320.html","width":130,"caption":"Cuckmere Haven beach","height":195});
															thumbnails[4517814] = clik.newPhoto({"id":4517814,"src":"_DSC2372a_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517814.html","width":130,"caption":"St. Columba's cross, Eire","height":195});
															thumbnails[773099] = clik.newPhoto({"id":773099,"src":"Temple_Bells_Chang_Mai_Thailand_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_773099.html","width":130,"caption":"Temple bells, Chang Mai, Thailand","height":197});
															thumbnails[773074] = clik.newPhoto({"id":773074,"src":"Paper_Frames_Thailand_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_773074.html","width":130,"caption":"Paper making frames, Thailand","height":197});
															thumbnails[773130] = clik.newPhoto({"id":773130,"src":"Umbrellas_Ban_Thon_Thailand2_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_773130.html","width":130,"caption":"Umbrella festival, Ban Thon, Thailand #2","height":198});
															thumbnails[773047] = clik.newPhoto({"id":773047,"src":"Buddha_Toes_Chang_Mai_Thailand_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_773047.html","width":130,"caption":"Buddha toes in Chang Mai, Thailand","height":198});
															thumbnails[4517939] = clik.newPhoto({"id":4517939,"src":"Tile_Mural_Havana_Cuba_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_4517939.html","width":130,"caption":"Tiles, Havana","height":195});
															thumbnails[4517838] = clik.newPhoto({"id":4517838,"src":"_DSC3078_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517838.html","width":130,"caption":"Creek, Kent","height":194});
															thumbnails[4517821] = clik.newPhoto({"id":4517821,"src":"_DSC2927a_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517821.html","width":130,"caption":"Enjoy box","height":195});
															thumbnails[773041] = clik.newPhoto({"id":773041,"src":"Boys_Havana_Cuba_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_773041.html","width":130,"caption":"Boys in Havana, Cuba","height":195});
															thumbnails[4517655] = clik.newPhoto({"id":4517655,"src":"_DSC5479_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_4517655.html","width":130,"caption":"Notting Hill Carnival","height":196});
															thumbnails[782604] = clik.newPhoto({"id":782604,"src":"Women in park_thumb.JPG","galleries_id":59869,"server_id":15,"link":"photo_782604.html","width":130,"caption":"Woman in Park","height":195});
															thumbnails[774332] = clik.newPhoto({"id":774332,"src":"New_York_ City_Wall_Street_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_774332.html","width":130,"caption":"Wall Street, New York","height":195});
															thumbnails[774334] = clik.newPhoto({"id":774334,"src":"New_York_ City_park_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_774334.html","width":130,"caption":"Park, New York","height":195});
															thumbnails[774337] = clik.newPhoto({"id":774337,"src":"DSC_1113_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_774337.html","width":130,"caption":"Empire State Building,New York","height":195});
															thumbnails[774338] = clik.newPhoto({"id":774338,"src":"NYchurch_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_774338.html","width":130,"caption":"Church, Lower Manhattan, New York","height":196});
															thumbnails[774343] = clik.newPhoto({"id":774343,"src":"New_York_ City_Brooklyn_approach_thumb.jpg","galleries_id":59869,"server_id":15,"link":"photo_774343.html","width":130,"caption":"Brooklyn Bridge approach, New York","height":195});
															thumbnails[1635281] = clik.newPhoto({"id":1635281,"src":"In the mirror_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_1635281.html","width":130,"caption":"","height":87});
															thumbnails[1635301] = clik.newPhoto({"id":1635301,"src":"Uplifted_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_1635301.html","width":130,"caption":"","height":87});
															thumbnails[4538543] = clik.newPhoto({"id":4538543,"src":"_DSC2671a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538543.html","width":130,"caption":"","height":87});
															thumbnails[4538544] = clik.newPhoto({"id":4538544,"src":"_DSC2672a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538544.html","width":130,"caption":"","height":87});
															thumbnails[1635304] = clik.newPhoto({"id":1635304,"src":"Confetti_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_1635304.html","width":130,"caption":"","height":87});
															thumbnails[1635305] = clik.newPhoto({"id":1635305,"src":"_DSC2736a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_1635305.html","width":130,"caption":"","height":87});
															thumbnails[4538633] = clik.newPhoto({"id":4538633,"src":"_DSC2741a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538633.html","width":130,"caption":"","height":87});
															thumbnails[4538634] = clik.newPhoto({"id":4538634,"src":"_DSC2743_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538634.html","width":130,"caption":"","height":87});
															thumbnails[4538635] = clik.newPhoto({"id":4538635,"src":"_DSC2753a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538635.html","width":130,"caption":"","height":87});
															thumbnails[4538636] = clik.newPhoto({"id":4538636,"src":"_DSC2757a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538636.html","width":130,"caption":"","height":87});
															thumbnails[4517294] = clik.newPhoto({"id":4517294,"src":"_DSC3532_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517294.html","width":130,"caption":"","height":87});
															thumbnails[4517305] = clik.newPhoto({"id":4517305,"src":"_DSC6359a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517305.html","width":130,"caption":"","height":87});
															thumbnails[4517306] = clik.newPhoto({"id":4517306,"src":"_DSC6390_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517306.html","width":130,"caption":"","height":87});
															thumbnails[4517308] = clik.newPhoto({"id":4517308,"src":"_DSC6408a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517308.html","width":130,"caption":"","height":87});
															thumbnails[4517310] = clik.newPhoto({"id":4517310,"src":"_DSC6551a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517310.html","width":130,"caption":"","height":87});
															thumbnails[4517311] = clik.newPhoto({"id":4517311,"src":"_DSC6571_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517311.html","width":130,"caption":"","height":87});
															thumbnails[4517321] = clik.newPhoto({"id":4517321,"src":"_DSC6584a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517321.html","width":130,"caption":"","height":87});
															thumbnails[4517334] = clik.newPhoto({"id":4517334,"src":"_DSC7160a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517334.html","width":130,"caption":"","height":87});
															thumbnails[4517461] = clik.newPhoto({"id":4517461,"src":"_DSC7202a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517461.html","width":130,"caption":"","height":87});
															thumbnails[4517467] = clik.newPhoto({"id":4517467,"src":"_DSC7315a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517467.html","width":130,"caption":"","height":87});
															thumbnails[4517469] = clik.newPhoto({"id":4517469,"src":"_DSC7334a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517469.html","width":130,"caption":"","height":87});
															thumbnails[4517474] = clik.newPhoto({"id":4517474,"src":"_DSC7369_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517474.html","width":130,"caption":"","height":87});
															thumbnails[4517475] = clik.newPhoto({"id":4517475,"src":"_DSC7496a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517475.html","width":130,"caption":"","height":87});
															thumbnails[4517483] = clik.newPhoto({"id":4517483,"src":"_DSC8593a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517483.html","width":130,"caption":"","height":87});
															thumbnails[4517485] = clik.newPhoto({"id":4517485,"src":"_DSC8625_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517485.html","width":130,"caption":"","height":87});
															thumbnails[4517487] = clik.newPhoto({"id":4517487,"src":"_DSC8971_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517487.html","width":130,"caption":"","height":87});
															thumbnails[4517490] = clik.newPhoto({"id":4517490,"src":"_DSC9024_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517490.html","width":130,"caption":"","height":87});
															thumbnails[4517493] = clik.newPhoto({"id":4517493,"src":"_DSC9054a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517493.html","width":130,"caption":"","height":87});
															thumbnails[4517494] = clik.newPhoto({"id":4517494,"src":"_DSC9061_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517494.html","width":130,"caption":"","height":87});
															thumbnails[4517478] = clik.newPhoto({"id":4517478,"src":"_DSC7505a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4517478.html","width":130,"caption":"","height":87});
															thumbnails[4538863] = clik.newPhoto({"id":4538863,"src":"_DSC2684a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538863.html","width":130,"caption":"","height":195});
															thumbnails[4538865] = clik.newPhoto({"id":4538865,"src":"_DSC6302a1_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538865.html","width":130,"caption":"","height":195});
															thumbnails[4538869] = clik.newPhoto({"id":4538869,"src":"_DSC6602a1_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538869.html","width":130,"caption":"","height":195});
															thumbnails[4538875] = clik.newPhoto({"id":4538875,"src":"_DSC6624a1_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538875.html","width":130,"caption":"","height":195});
															thumbnails[4538876] = clik.newPhoto({"id":4538876,"src":"_DSC7006a1_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538876.html","width":130,"caption":"","height":195});
															thumbnails[4538880] = clik.newPhoto({"id":4538880,"src":"_DSC7174a1_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538880.html","width":130,"caption":"","height":195});
															thumbnails[4538882] = clik.newPhoto({"id":4538882,"src":"_DSC7213b_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538882.html","width":130,"caption":"","height":195});
															thumbnails[4538885] = clik.newPhoto({"id":4538885,"src":"_DSC7305a1_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538885.html","width":130,"caption":"","height":195});
															thumbnails[4538941] = clik.newPhoto({"id":4538941,"src":"_DSC8577a_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538941.html","width":130,"caption":"","height":195});
															thumbnails[4538889] = clik.newPhoto({"id":4538889,"src":"_DSC7620a1_thumb.jpg","galleries_id":72924,"server_id":15,"link":"photo_4538889.html","width":130,"caption":"","height":195});
															thumbnails[4556602] = clik.newPhoto({"id":4556602,"src":"Teather_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556602.html","width":130,"caption":"Sarah Teather","height":195});
															thumbnails[4556611] = clik.newPhoto({"id":4556611,"src":"Benn_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556611.html","width":130,"caption":"Tony Benn","height":195});
															thumbnails[4556613] = clik.newPhoto({"id":4556613,"src":"Harman_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556613.html","width":130,"caption":"Harriet Harman","height":195});
															thumbnails[4556616] = clik.newPhoto({"id":4556616,"src":"Scargill2_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556616.html","width":130,"caption":"Arthur Scargill","height":195});
															thumbnails[4556617] = clik.newPhoto({"id":4556617,"src":"Desai_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556617.html","width":130,"caption":"Jayaben Desai","height":195});
															thumbnails[4556632] = clik.newPhoto({"id":4556632,"src":"Hudson_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556632.html","width":130,"caption":"Kate Hudson","height":195});
															thumbnails[4556635] = clik.newPhoto({"id":4556635,"src":"Steele2_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556635.html","width":130,"caption":"Mark Steel","height":195});
															thumbnails[4556650] = clik.newPhoto({"id":4556650,"src":"Baroness_Pitkeighly_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556650.html","width":130,"caption":"Baroness Pitkeathley","height":195});
															thumbnails[4556656] = clik.newPhoto({"id":4556656,"src":"Dromey_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556656.html","width":130,"caption":"Jack Dromey","height":195});
															thumbnails[4556660] = clik.newPhoto({"id":4556660,"src":"Joan_Sadler_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556660.html","width":130,"caption":"Joan Saddler","height":195});
															thumbnails[4556664] = clik.newPhoto({"id":4556664,"src":"Marjorie_Johnson_ABPI_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556664.html","width":130,"caption":"Marjorie Johnson","height":195});
															thumbnails[4556666] = clik.newPhoto({"id":4556666,"src":"Ade2_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556666.html","width":130,"caption":"Dr Ade Adeagbo","height":195});
															thumbnails[4556668] = clik.newPhoto({"id":4556668,"src":"Chief_Exec_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556668.html","width":130,"caption":"Samantha Mauger","height":195});
															thumbnails[4556679] = clik.newPhoto({"id":4556679,"src":"Stephen_Bubb_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556679.html","width":130,"caption":"Stephen Bubb","height":195});
															thumbnails[4556680] = clik.newPhoto({"id":4556680,"src":"Celia_Grandison-Markey_thumb.jpg","galleries_id":262651,"server_id":15,"link":"photo_4556680.html","width":130,"caption":"Celia Grandison-Markey","height":195});
															thumbnails[4515573] = clik.newPhoto({"id":4515573,"src":"_DSC1739_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515573.html","width":130,"caption":"","height":87});
															thumbnails[4551575] = clik.newPhoto({"id":4551575,"src":"Observatory_Delhi_1_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551575.html","width":130,"caption":"","height":195});
															thumbnails[4551683] = clik.newPhoto({"id":4551683,"src":"2_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551683.html","width":130,"caption":"","height":87});
															thumbnails[4551748] = clik.newPhoto({"id":4551748,"src":"Northala_Park_1_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_4551748.html","width":130,"caption":"","height":87});
															thumbnails[4687056] = clik.newPhoto({"id":4687056,"src":"Lamp_post1_thumb.jpg","galleries_id":269720,"server_id":15,"link":"photo_4687056.html","width":130,"caption":"","height":195});
															thumbnails[1530965] = clik.newPhoto({"id":1530965,"src":"_DSC2187_thumb.jpg","galleries_id":104950,"server_id":15,"link":"photo_1530965.html","width":130,"caption":"","height":87});
															thumbnails[4515591] = clik.newPhoto({"id":4515591,"src":"_DSC2769_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515591.html","width":130,"caption":"","height":87});
															thumbnails[4551577] = clik.newPhoto({"id":4551577,"src":"Observatory_Delhi_2_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551577.html","width":130,"caption":"","height":195});
															thumbnails[4551684] = clik.newPhoto({"id":4551684,"src":"3_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551684.html","width":130,"caption":"","height":87});
															thumbnails[4551751] = clik.newPhoto({"id":4551751,"src":"Northala_Park_2_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_4551751.html","width":130,"caption":"","height":87});
															thumbnails[4687057] = clik.newPhoto({"id":4687057,"src":"Street_thumb.jpg","galleries_id":269720,"server_id":15,"link":"photo_4687057.html","width":130,"caption":"","height":195});
															thumbnails[6672831] = clik.newPhoto({"id":6672831,"src":"MB_Grille011_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672831.html","width":130,"caption":"","height":194});
															thumbnails[4515654] = clik.newPhoto({"id":4515654,"src":"_DSC3053_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515654.html","width":130,"caption":"","height":87});
															thumbnails[4551578] = clik.newPhoto({"id":4551578,"src":"Observatory_Delhi_3_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551578.html","width":130,"caption":"","height":195});
															thumbnails[4551685] = clik.newPhoto({"id":4551685,"src":"4_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551685.html","width":130,"caption":"","height":87});
															thumbnails[4551755] = clik.newPhoto({"id":4551755,"src":"Northala_Park_3_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_4551755.html","width":130,"caption":"","height":87});
															thumbnails[4687059] = clik.newPhoto({"id":4687059,"src":"Telephone_thumb.jpg","galleries_id":269720,"server_id":15,"link":"photo_4687059.html","width":130,"caption":"","height":195});
															thumbnails[1530968] = clik.newPhoto({"id":1530968,"src":"_DSC2168_thumb.jpg","galleries_id":104950,"server_id":15,"link":"photo_1530968.html","width":130,"caption":"","height":87});
															thumbnails[4515652] = clik.newPhoto({"id":4515652,"src":"_DSC3038_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515652.html","width":130,"caption":"","height":87});
															thumbnails[4551580] = clik.newPhoto({"id":4551580,"src":"Observatory_Delhi_4_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551580.html","width":130,"caption":"","height":195});
															thumbnails[4551686] = clik.newPhoto({"id":4551686,"src":"5_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551686.html","width":130,"caption":"","height":87});
															thumbnails[4687060] = clik.newPhoto({"id":4687060,"src":"Door_thumb.jpg","galleries_id":269720,"server_id":15,"link":"photo_4687060.html","width":130,"caption":"","height":195});
															thumbnails[6672833] = clik.newPhoto({"id":6672833,"src":"MB_Grille02_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672833.html","width":130,"caption":"","height":194});
															thumbnails[7087656] = clik.newPhoto({"id":7087656,"src":"NF_9_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087656.html","width":130,"caption":"","height":87});
															thumbnails[4515610] = clik.newPhoto({"id":4515610,"src":"_DSC2804_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515610.html","width":130,"caption":"","height":87});
															thumbnails[4551583] = clik.newPhoto({"id":4551583,"src":"Observatory_Delhi_6_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551583.html","width":130,"caption":"","height":195});
															thumbnails[4551688] = clik.newPhoto({"id":4551688,"src":"6_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551688.html","width":130,"caption":"","height":87});
															thumbnails[7087671] = clik.newPhoto({"id":7087671,"src":"NF_4_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087671.html","width":130,"caption":"","height":87});
															thumbnails[1530969] = clik.newPhoto({"id":1530969,"src":"_DSC2536_thumb.jpg","galleries_id":104950,"server_id":15,"link":"photo_1530969.html","width":130,"caption":"","height":87});
															thumbnails[4515608] = clik.newPhoto({"id":4515608,"src":"_DSC2803_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515608.html","width":130,"caption":"","height":87});
															thumbnails[4551584] = clik.newPhoto({"id":4551584,"src":"Observatory_Delhi_7_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551584.html","width":130,"caption":"","height":195});
															thumbnails[4551690] = clik.newPhoto({"id":4551690,"src":"7_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551690.html","width":130,"caption":"","height":87});
															thumbnails[6672836] = clik.newPhoto({"id":6672836,"src":"MB_Grille03_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672836.html","width":130,"caption":"","height":195});
															thumbnails[7087678] = clik.newPhoto({"id":7087678,"src":"NF_1_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087678.html","width":130,"caption":"","height":87});
															thumbnails[4515545] = clik.newPhoto({"id":4515545,"src":"_DSC0460_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515545.html","width":130,"caption":"","height":87});
															thumbnails[4551586] = clik.newPhoto({"id":4551586,"src":"Observatory_Delhi_8_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551586.html","width":130,"caption":"","height":195});
															thumbnails[4551691] = clik.newPhoto({"id":4551691,"src":"8_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551691.html","width":130,"caption":"","height":87});
															thumbnails[7087682] = clik.newPhoto({"id":7087682,"src":"NF_5_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087682.html","width":130,"caption":"","height":87});
															thumbnails[1530971] = clik.newPhoto({"id":1530971,"src":"_DSC2540_thumb.jpg","galleries_id":104950,"server_id":15,"link":"photo_1530971.html","width":130,"caption":"","height":87});
															thumbnails[4515596] = clik.newPhoto({"id":4515596,"src":"_DSC2778_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515596.html","width":130,"caption":"","height":87});
															thumbnails[4551588] = clik.newPhoto({"id":4551588,"src":"Observatory_Delhi_9_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551588.html","width":130,"caption":"","height":195});
															thumbnails[4551693] = clik.newPhoto({"id":4551693,"src":"9_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551693.html","width":130,"caption":"","height":87});
															thumbnails[6672837] = clik.newPhoto({"id":6672837,"src":"MB_Grille04_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672837.html","width":130,"caption":"","height":195});
															thumbnails[7087690] = clik.newPhoto({"id":7087690,"src":"NF_6_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087690.html","width":130,"caption":"","height":87});
															thumbnails[4515650] = clik.newPhoto({"id":4515650,"src":"_DSC3032_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515650.html","width":130,"caption":"","height":87});
															thumbnails[4551595] = clik.newPhoto({"id":4551595,"src":"Observatory_Delhi_12_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551595.html","width":130,"caption":"","height":195});
															thumbnails[4551694] = clik.newPhoto({"id":4551694,"src":"10_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551694.html","width":130,"caption":"","height":87});
															thumbnails[7087692] = clik.newPhoto({"id":7087692,"src":"NF_2_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087692.html","width":130,"caption":"","height":87});
															thumbnails[4515639] = clik.newPhoto({"id":4515639,"src":"_DSC3021_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515639.html","width":130,"caption":"","height":87});
															thumbnails[4551596] = clik.newPhoto({"id":4551596,"src":"Observatory_Delhi_13_thumb.jpg","galleries_id":263962,"server_id":15,"link":"photo_4551596.html","width":130,"caption":"","height":195});
															thumbnails[4551696] = clik.newPhoto({"id":4551696,"src":"11_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551696.html","width":130,"caption":"","height":87});
															thumbnails[6672838] = clik.newPhoto({"id":6672838,"src":"MB_Grille05_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672838.html","width":130,"caption":"","height":195});
															thumbnails[7087702] = clik.newPhoto({"id":7087702,"src":"NF_8_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087702.html","width":130,"caption":"","height":87});
															thumbnails[4515586] = clik.newPhoto({"id":4515586,"src":"_DSC2718_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515586.html","width":130,"caption":"","height":87});
															thumbnails[4551699] = clik.newPhoto({"id":4551699,"src":"12_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551699.html","width":130,"caption":"","height":87});
															thumbnails[7087707] = clik.newPhoto({"id":7087707,"src":"NF_7_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087707.html","width":130,"caption":"","height":87});
															thumbnails[4515598] = clik.newPhoto({"id":4515598,"src":"_DSC2789_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515598.html","width":130,"caption":"","height":87});
															thumbnails[4551700] = clik.newPhoto({"id":4551700,"src":"13_final_thumb.jpg","galleries_id":263963,"server_id":15,"link":"photo_4551700.html","width":130,"caption":"","height":87});
															thumbnails[6672839] = clik.newPhoto({"id":6672839,"src":"MB_Grille06_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672839.html","width":130,"caption":"","height":194});
															thumbnails[7087711] = clik.newPhoto({"id":7087711,"src":"NF_3_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087711.html","width":130,"caption":"","height":87});
															thumbnails[4515601] = clik.newPhoto({"id":4515601,"src":"_DSC2795_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515601.html","width":130,"caption":"","height":87});
															thumbnails[7087715] = clik.newPhoto({"id":7087715,"src":"NF_131_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087715.html","width":130,"caption":"","height":87});
															thumbnails[4515612] = clik.newPhoto({"id":4515612,"src":"_DSC2807_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515612.html","width":130,"caption":"","height":87});
															thumbnails[6672842] = clik.newPhoto({"id":6672842,"src":"MB_Grille07_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672842.html","width":130,"caption":"","height":195});
															thumbnails[7087716] = clik.newPhoto({"id":7087716,"src":"NF_12_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087716.html","width":130,"caption":"","height":87});
															thumbnails[4515535] = clik.newPhoto({"id":4515535,"src":"_DSC0325_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515535.html","width":130,"caption":"","height":87});
															thumbnails[7087720] = clik.newPhoto({"id":7087720,"src":"NF_10_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087720.html","width":130,"caption":"","height":87});
															thumbnails[4515758] = clik.newPhoto({"id":4515758,"src":"Picture_174_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515758.html","width":130,"caption":"","height":87});
															thumbnails[6672843] = clik.newPhoto({"id":6672843,"src":"MB_Grille08_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672843.html","width":130,"caption":"","height":194});
															thumbnails[7087723] = clik.newPhoto({"id":7087723,"src":"NF_11_thumb.jpg","galleries_id":263974,"server_id":15,"link":"photo_7087723.html","width":130,"caption":"","height":87});
															thumbnails[4515575] = clik.newPhoto({"id":4515575,"src":"_DSC1772_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515575.html","width":130,"caption":"","height":87});
															thumbnails[4515576] = clik.newPhoto({"id":4515576,"src":"_DSC1777_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515576.html","width":130,"caption":"","height":87});
															thumbnails[6672993] = clik.newPhoto({"id":6672993,"src":"MB_Grille09_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672993.html","width":130,"caption":"","height":195});
															thumbnails[4515618] = clik.newPhoto({"id":4515618,"src":"_DSC2830_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4515618.html","width":130,"caption":"","height":87});
															thumbnails[4545016] = clik.newPhoto({"id":4545016,"src":"Mud_1_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545016.html","width":130,"caption":"","height":87});
															thumbnails[6672994] = clik.newPhoto({"id":6672994,"src":"MB_Grille10_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672994.html","width":130,"caption":"","height":195});
															thumbnails[4545127] = clik.newPhoto({"id":4545127,"src":"_DSC0015a_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545127.html","width":130,"caption":"","height":195});
															thumbnails[4545138] = clik.newPhoto({"id":4545138,"src":"_DSC3016a_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545138.html","width":130,"caption":"","height":195});
															thumbnails[6672995] = clik.newPhoto({"id":6672995,"src":"MB_Grille11_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672995.html","width":130,"caption":"","height":194});
															thumbnails[4545157] = clik.newPhoto({"id":4545157,"src":"_DSC3031_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545157.html","width":130,"caption":"","height":194});
															thumbnails[4545162] = clik.newPhoto({"id":4545162,"src":"_DSC2865_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545162.html","width":130,"caption":"","height":194});
															thumbnails[6672997] = clik.newPhoto({"id":6672997,"src":"MB_Grille12_thumb.jpg","galleries_id":360016,"server_id":15,"link":"photo_6672997.html","width":130,"caption":"","height":195});
															thumbnails[4545172] = clik.newPhoto({"id":4545172,"src":"_DSC3028_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545172.html","width":130,"caption":"","height":194});
															thumbnails[4545188] = clik.newPhoto({"id":4545188,"src":"_DSC2775_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545188.html","width":130,"caption":"","height":194});
															thumbnails[4545192] = clik.newPhoto({"id":4545192,"src":"_DSC4243_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545192.html","width":130,"caption":"","height":194});
															thumbnails[4545198] = clik.newPhoto({"id":4545198,"src":"_DSC1056a_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545198.html","width":130,"caption":"","height":194});
															thumbnails[4545201] = clik.newPhoto({"id":4545201,"src":"Picture_172_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545201.html","width":130,"caption":"","height":194});
															thumbnails[4545206] = clik.newPhoto({"id":4545206,"src":"_DSC1074_thumb.jpg","galleries_id":262663,"server_id":15,"link":"photo_4545206.html","width":130,"caption":"","height":194});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[360016] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Looking up...","link":"section316791_360016.html","maxRecords":0.0,"photoIDs":[6672831.0,6672833.0,6672836.0,6672837.0,6672838.0,6672839.0,6672842.0,6672843.0,6672993.0,6672994.0,6672995.0,6672997.0],"skipIndex":0,"section_code":"section316791","featured_images":"6672997,6672995,6672994,6672993,6672843,6672842,6672839,6672838,6672837,6672836","id":360016,"singleSection":false});				  						galleries[269720] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Film Noire","link":"section316791_269720.html","maxRecords":0.0,"photoIDs":[4687056.0,4687057.0,4687059.0,4687060.0],"skipIndex":0,"section_code":"section316791","featured_images":"4687060,4687059,4687057,4687056","id":269720,"singleSection":false});				  						galleries[262663] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstracts","link":"section316791_262663.html","maxRecords":0.0,"photoIDs":[4515573.0,4515591.0,4515654.0,4515652.0,4515610.0,4515608.0,4515545.0,4515596.0,4515650.0,4515639.0,4515586.0,4515598.0,4515601.0,4515612.0,4515535.0,4515758.0,4515575.0,4515576.0,4515618.0,4545016.0,4545127.0,4545138.0,4545157.0,4545162.0,4545172.0,4545188.0,4545192.0,4545198.0,4545201.0,4545206.0],"skipIndex":0,"section_code":"section316791","featured_images":"4545192,4545172,4545127","id":262663,"singleSection":false});				  						galleries[263962] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jai Singh Observatory","link":"section316791_263962.html","maxRecords":0.0,"photoIDs":[4551575.0,4551577.0,4551578.0,4551580.0,4551583.0,4551584.0,4551586.0,4551588.0,4551595.0,4551596.0],"skipIndex":0,"section_code":"section316791","featured_images":4551595.0,"id":263962,"singleSection":false});				  						galleries[263974] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Northala Fields","link":"section316791_263974.html","maxRecords":0.0,"photoIDs":[4551748.0,4551751.0,4551755.0,7087656.0,7087671.0,7087678.0,7087682.0,7087690.0,7087692.0,7087702.0,7087707.0,7087711.0,7087715.0,7087716.0,7087720.0,7087723.0],"skipIndex":0,"section_code":"section316791","featured_images":4551748.0,"id":263974,"singleSection":false});				  						galleries[59869] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travel","link":"section316792.html","maxRecords":0.0,"photoIDs":[773020.0,773093.0,773096.0,773063.0,773053.0,773103.0,4517816.0,4517817.0,4517820.0,4517843.0,779837.0,4517920.0,779832.0,4517861.0,4517815.0,774249.0,4517932.0,4517944.0,4517957.0,4517898.0,773120.0,773034.0,4546652.0,774320.0,4517814.0,773099.0,773074.0,773130.0,773047.0,4517939.0,4517838.0,4517821.0,773041.0,4517655.0,782604.0,774332.0,774334.0,774337.0,774338.0,774343.0],"skipIndex":0,"section_code":"section316792","featured_images":"773120,773020","id":59869,"singleSection":true});				  						galleries[104950] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A different way of living","link":"section316791_104950.html","maxRecords":0.0,"photoIDs":[1530965.0,1530968.0,1530969.0,1530971.0],"skipIndex":0,"section_code":"section316791","featured_images":1530969.0,"id":104950,"singleSection":false});				  						galleries[262651] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"section316793.html","maxRecords":0.0,"photoIDs":[4556602.0,4556611.0,4556613.0,4556616.0,4556617.0,4556632.0,4556635.0,4556650.0,4556656.0,4556660.0,4556664.0,4556666.0,4556668.0,4556679.0,4556680.0],"skipIndex":0,"section_code":"section316793","featured_images":"4556680,4556679,4556668,4556666,4556664,4556660,4556656,4556650,4556635,4556632","id":262651,"singleSection":true});				  						galleries[72924] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings and engagements","link":"section316794.html","maxRecords":0.0,"photoIDs":[1635281.0,1635301.0,4538543.0,4538544.0,1635304.0,1635305.0,4538633.0,4538634.0,4538635.0,4538636.0,4517294.0,4517305.0,4517306.0,4517308.0,4517310.0,4517311.0,4517321.0,4517334.0,4517461.0,4517467.0,4517469.0,4517474.0,4517475.0,4517483.0,4517485.0,4517487.0,4517490.0,4517493.0,4517494.0,4517478.0,4538863.0,4538865.0,4538869.0,4538875.0,4538876.0,4538880.0,4538882.0,4538885.0,4538941.0,4538889.0],"skipIndex":0,"section_code":"section316794","featured_images":"4538941,4538889,4538885,4538882,4538880,4538876,4538875,4538869,4538865,4538863","id":72924,"singleSection":true});				  						galleries[263963] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ebb and flow","link":"section316791_263963.html","maxRecords":0.0,"photoIDs":[4551683.0,4551684.0,4551685.0,4551686.0,4551688.0,4551690.0,4551691.0,4551693.0,4551694.0,4551696.0,4551699.0,4551700.0],"skipIndex":0,"section_code":"section316791","featured_images":4551693.0,"id":263963,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6672831,6672833,6672836,6672837,6672838,6672839,6672842,6672993,6672994,6672995,6672997';
imageSets[2] = '4551748,773020,1530969,4551693,4551595,773120,4545127,4545172,4545192';
imageSets[3] = '7087723,7087720,7087716,7087715,7087711,7087707,7087702,7087692,7087690,7087682,7087678,7087671,7087656,6672997,6672995,6672994,6672993,6672843,6672842,6672839,6672838,6672837,6672836,6672833,6672831,4687060,4687059,4687057,4687056,4556680,4556679,4556668,4556666,4556664,4556660,4556656,4556650,4556635,4556632,4556617,4556616,4556613,4556611,4556602,4551755,4551751,4551748,4551700,4551699,4551696';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Petewebster/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Petewebster/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 += 'section316792.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 && 'section316792' != '') {
					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 = 'Pete Webster 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>';
	}
				
				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;
	}
}

			

