window.thumbnails = {};
															thumbnails[1903776] = clik.newPhoto({"id":1903776,"src":"037_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_1903776.html","width":130,"caption":"","height":86});
															thumbnails[1903779] = clik.newPhoto({"id":1903779,"src":"040_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_1903779.html","width":130,"caption":"","height":195});
															thumbnails[1952786] = clik.newPhoto({"id":1952786,"src":"044_thumb.jpg","galleries_id":131145,"server_id":1,"link":"photo_1952786.html","width":130,"caption":"","height":104});
															thumbnails[1952787] = clik.newPhoto({"id":1952787,"src":"045_thumb.jpg","galleries_id":131145,"server_id":1,"link":"photo_1952787.html","width":130,"caption":"","height":104});
															thumbnails[1952788] = clik.newPhoto({"id":1952788,"src":"046_thumb.jpg","galleries_id":131145,"server_id":1,"link":"photo_1952788.html","width":130,"caption":"","height":163});
															thumbnails[2084331] = clik.newPhoto({"id":2084331,"src":"048_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_2084331.html","width":130,"caption":"","height":190});
															thumbnails[2084341] = clik.newPhoto({"id":2084341,"src":"050_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_2084341.html","width":130,"caption":"","height":176});
															thumbnails[2433298] = clik.newPhoto({"id":2433298,"src":"059_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2433298.html","width":130,"caption":"","height":153});
															thumbnails[2433300] = clik.newPhoto({"id":2433300,"src":"057_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2433300.html","width":130,"caption":"","height":164});
															thumbnails[2433389] = clik.newPhoto({"id":2433389,"src":"053_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2433389.html","width":130,"caption":"","height":90});
															thumbnails[2433392] = clik.newPhoto({"id":2433392,"src":"052_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2433392.html","width":130,"caption":"","height":176});
															thumbnails[2649128] = clik.newPhoto({"id":2649128,"src":"063_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_2649128.html","width":130,"caption":"","height":101});
															thumbnails[2649131] = clik.newPhoto({"id":2649131,"src":"065_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_2649131.html","width":130,"caption":"","height":195});
															thumbnails[2649133] = clik.newPhoto({"id":2649133,"src":"067_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_2649133.html","width":130,"caption":"","height":110});
															thumbnails[2649147] = clik.newPhoto({"id":2649147,"src":"068_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_2649147.html","width":130,"caption":"","height":117});
															thumbnails[2649148] = clik.newPhoto({"id":2649148,"src":"069_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_2649148.html","width":130,"caption":"","height":194});
															thumbnails[2649150] = clik.newPhoto({"id":2649150,"src":"070_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_2649150.html","width":130,"caption":"","height":105});
															thumbnails[2649154] = clik.newPhoto({"id":2649154,"src":"072_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_2649154.html","width":130,"caption":"","height":87});
															thumbnails[2649156] = clik.newPhoto({"id":2649156,"src":"073_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_2649156.html","width":130,"caption":"","height":87});
															thumbnails[2651087] = clik.newPhoto({"id":2651087,"src":"076_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2651087.html","width":130,"caption":"","height":239});
															thumbnails[2651091] = clik.newPhoto({"id":2651091,"src":"078_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2651091.html","width":130,"caption":"","height":202});
															thumbnails[2651092] = clik.newPhoto({"id":2651092,"src":"079_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2651092.html","width":130,"caption":"","height":120});
															thumbnails[2651184] = clik.newPhoto({"id":2651184,"src":"080_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2651184.html","width":130,"caption":"","height":117});
															thumbnails[2828650] = clik.newPhoto({"id":2828650,"src":"0741_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2828650.html","width":130,"caption":"","height":92});
															thumbnails[2828675] = clik.newPhoto({"id":2828675,"src":"0751_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2828675.html","width":130,"caption":"","height":195});
															thumbnails[2828678] = clik.newPhoto({"id":2828678,"src":"0771_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2828678.html","width":130,"caption":"","height":146});
															thumbnails[2828681] = clik.newPhoto({"id":2828681,"src":"084_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2828681.html","width":130,"caption":"","height":142});
															thumbnails[2828682] = clik.newPhoto({"id":2828682,"src":"085_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2828682.html","width":130,"caption":"","height":190});
															thumbnails[2828683] = clik.newPhoto({"id":2828683,"src":"086_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_2828683.html","width":130,"caption":"","height":148});
															thumbnails[2923703] = clik.newPhoto({"id":2923703,"src":"0391_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_2923703.html","width":130,"caption":"","height":154});
															thumbnails[2923704] = clik.newPhoto({"id":2923704,"src":"0491_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_2923704.html","width":130,"caption":"","height":194});
															thumbnails[2923705] = clik.newPhoto({"id":2923705,"src":"087_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_2923705.html","width":130,"caption":"","height":86});
															thumbnails[2923706] = clik.newPhoto({"id":2923706,"src":"088_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_2923706.html","width":130,"caption":"","height":189});
															thumbnails[2957309] = clik.newPhoto({"id":2957309,"src":"089_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2957309.html","width":130,"caption":"","height":192});
															thumbnails[2957310] = clik.newPhoto({"id":2957310,"src":"090_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2957310.html","width":130,"caption":"","height":87});
															thumbnails[2957311] = clik.newPhoto({"id":2957311,"src":"091_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2957311.html","width":130,"caption":"","height":124});
															thumbnails[2957312] = clik.newPhoto({"id":2957312,"src":"092_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2957312.html","width":130,"caption":"","height":95});
															thumbnails[2957313] = clik.newPhoto({"id":2957313,"src":"093_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2957313.html","width":130,"caption":"","height":195});
															thumbnails[2957314] = clik.newPhoto({"id":2957314,"src":"094_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_2957314.html","width":130,"caption":"","height":117});
															thumbnails[3083589] = clik.newPhoto({"id":3083589,"src":"0551_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_3083589.html","width":130,"caption":"","height":137});
															thumbnails[3083590] = clik.newPhoto({"id":3083590,"src":"0561_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_3083590.html","width":130,"caption":"","height":101});
															thumbnails[3213026] = clik.newPhoto({"id":3213026,"src":"0611_thumb.jpg","galleries_id":131145,"server_id":1,"link":"photo_3213026.html","width":130,"caption":"","height":147});
															thumbnails[3213028] = clik.newPhoto({"id":3213028,"src":"095_thumb.jpg","galleries_id":131145,"server_id":1,"link":"photo_3213028.html","width":130,"caption":"","height":147});
															thumbnails[3319039] = clik.newPhoto({"id":3319039,"src":"097_thumb.jpg","galleries_id":131145,"server_id":1,"link":"photo_3319039.html","width":130,"caption":"","height":104});
															thumbnails[3319041] = clik.newPhoto({"id":3319041,"src":"096_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_3319041.html","width":130,"caption":"","height":136});
															thumbnails[3365535] = clik.newPhoto({"id":3365535,"src":"001_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3365535.html","width":130,"caption":"","height":199});
															thumbnails[3365539] = clik.newPhoto({"id":3365539,"src":"002_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3365539.html","width":130,"caption":"","height":159});
															thumbnails[3365540] = clik.newPhoto({"id":3365540,"src":"005_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3365540.html","width":130,"caption":"","height":237});
															thumbnails[3365541] = clik.newPhoto({"id":3365541,"src":"003_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3365541.html","width":130,"caption":"","height":170});
															thumbnails[3365542] = clik.newPhoto({"id":3365542,"src":"0061_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3365542.html","width":130,"caption":"","height":92});
															thumbnails[3365544] = clik.newPhoto({"id":3365544,"src":"004_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3365544.html","width":130,"caption":"","height":229});
															thumbnails[3402080] = clik.newPhoto({"id":3402080,"src":"098_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_3402080.html","width":130,"caption":"","height":207});
															thumbnails[3402082] = clik.newPhoto({"id":3402082,"src":"099_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_3402082.html","width":130,"caption":"","height":223});
															thumbnails[3402085] = clik.newPhoto({"id":3402085,"src":"100_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_3402085.html","width":130,"caption":"","height":166});
															thumbnails[3463980] = clik.newPhoto({"id":3463980,"src":"007_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3463980.html","width":130,"caption":"","height":295});
															thumbnails[3463982] = clik.newPhoto({"id":3463982,"src":"0081_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3463982.html","width":130,"caption":"","height":103});
															thumbnails[3463983] = clik.newPhoto({"id":3463983,"src":"0091_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3463983.html","width":130,"caption":"","height":283});
															thumbnails[3463984] = clik.newPhoto({"id":3463984,"src":"0411_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3463984.html","width":130,"caption":"","height":95});
															thumbnails[3463985] = clik.newPhoto({"id":3463985,"src":"0421_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3463985.html","width":130,"caption":"","height":173});
															thumbnails[3463986] = clik.newPhoto({"id":3463986,"src":"0811_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3463986.html","width":130,"caption":"","height":289});
															thumbnails[3463987] = clik.newPhoto({"id":3463987,"src":"0821_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3463987.html","width":130,"caption":"","height":220});
															thumbnails[3463988] = clik.newPhoto({"id":3463988,"src":"0831_thumb.jpg","galleries_id":117776,"server_id":1,"link":"photo_3463988.html","width":130,"caption":"","height":116});
															thumbnails[3708945] = clik.newPhoto({"id":3708945,"src":"0121_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3708945.html","width":130,"caption":"","height":104});
															thumbnails[3708971] = clik.newPhoto({"id":3708971,"src":"0131_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3708971.html","width":130,"caption":"","height":163});
															thumbnails[3708978] = clik.newPhoto({"id":3708978,"src":"0141_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3708978.html","width":130,"caption":"","height":147});
															thumbnails[3708980] = clik.newPhoto({"id":3708980,"src":"0151_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3708980.html","width":130,"caption":"","height":175});
															thumbnails[3708984] = clik.newPhoto({"id":3708984,"src":"0101_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3708984.html","width":130,"caption":"","height":108});
															thumbnails[3708985] = clik.newPhoto({"id":3708985,"src":"0111_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3708985.html","width":130,"caption":"","height":107});
															thumbnails[3810334] = clik.newPhoto({"id":3810334,"src":"0161_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3810334.html","width":130,"caption":"","height":206});
															thumbnails[3810347] = clik.newPhoto({"id":3810347,"src":"0171_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3810347.html","width":130,"caption":"","height":194});
															thumbnails[3810348] = clik.newPhoto({"id":3810348,"src":"0181_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3810348.html","width":130,"caption":"","height":159});
															thumbnails[3810350] = clik.newPhoto({"id":3810350,"src":"0191_thumb.jpg","galleries_id":1906,"server_id":1,"link":"photo_3810350.html","width":130,"caption":"","height":260});
															thumbnails[3816353] = clik.newPhoto({"id":3816353,"src":"020_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_3816353.html","width":130,"caption":"","height":138});
															thumbnails[3816355] = clik.newPhoto({"id":3816355,"src":"021_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_3816355.html","width":130,"caption":"","height":128});
															thumbnails[3816356] = clik.newPhoto({"id":3816356,"src":"022_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_3816356.html","width":130,"caption":"","height":172});
															thumbnails[3816357] = clik.newPhoto({"id":3816357,"src":"023_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_3816357.html","width":130,"caption":"","height":151});
															thumbnails[3830112] = clik.newPhoto({"id":3830112,"src":"032_thumb.jpg","galleries_id":85522,"server_id":1,"link":"photo_3830112.html","width":130,"caption":"","height":81});
															thumbnails[3830115] = clik.newPhoto({"id":3830115,"src":"0331_thumb.jpg","galleries_id":85522,"server_id":1,"link":"photo_3830115.html","width":130,"caption":"","height":86});
															thumbnails[3830116] = clik.newPhoto({"id":3830116,"src":"034_thumb.jpg","galleries_id":85522,"server_id":1,"link":"photo_3830116.html","width":130,"caption":"","height":87});
															thumbnails[3830119] = clik.newPhoto({"id":3830119,"src":"035_thumb.jpg","galleries_id":85522,"server_id":1,"link":"photo_3830119.html","width":130,"caption":"","height":148});
															thumbnails[4312575] = clik.newPhoto({"id":4312575,"src":"0511_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_4312575.html","width":130,"caption":"","height":163});
															thumbnails[4312580] = clik.newPhoto({"id":4312580,"src":"0541_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_4312580.html","width":130,"caption":"","height":163});
															thumbnails[4312582] = clik.newPhoto({"id":4312582,"src":"0581_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_4312582.html","width":130,"caption":"","height":163});
															thumbnails[4312584] = clik.newPhoto({"id":4312584,"src":"0601_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_4312584.html","width":130,"caption":"","height":163});
															thumbnails[4312603] = clik.newPhoto({"id":4312603,"src":"1031_thumb.jpg","galleries_id":157134,"server_id":1,"link":"photo_4312603.html","width":130,"caption":"","height":163});
															thumbnails[4438679] = clik.newPhoto({"id":4438679,"src":"038_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_4438679.html","width":130,"caption":"","height":142});
															thumbnails[4438680] = clik.newPhoto({"id":4438680,"src":"047_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_4438680.html","width":130,"caption":"","height":160});
															thumbnails[4438681] = clik.newPhoto({"id":4438681,"src":"062_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_4438681.html","width":130,"caption":"","height":174});
															thumbnails[4438682] = clik.newPhoto({"id":4438682,"src":"064_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_4438682.html","width":130,"caption":"","height":123});
															thumbnails[5094952] = clik.newPhoto({"id":5094952,"src":"107_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_5094952.html","width":130,"caption":"","height":108});
															thumbnails[5123183] = clik.newPhoto({"id":5123183,"src":"066_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_5123183.html","width":130,"caption":"","height":150});
															thumbnails[5123197] = clik.newPhoto({"id":5123197,"src":"071_thumb.JPG","galleries_id":127659,"server_id":1,"link":"photo_5123197.html","width":130,"caption":"","height":109});
															thumbnails[5142431] = clik.newPhoto({"id":5142431,"src":"108_thumb.jpg","galleries_id":85522,"server_id":1,"link":"photo_5142431.html","width":130,"caption":"","height":104});
															thumbnails[5670708] = clik.newPhoto({"id":5670708,"src":"024_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_5670708.html","width":130,"caption":"","height":246});
															thumbnails[6382240] = clik.newPhoto({"id":6382240,"src":"113_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_6382240.html","width":130,"caption":"","height":87});
															thumbnails[6409029] = clik.newPhoto({"id":6409029,"src":"114_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_6409029.html","width":130,"caption":"","height":153});
															thumbnails[6441664] = clik.newPhoto({"id":6441664,"src":"115_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_6441664.html","width":130,"caption":"","height":294});
															thumbnails[6441665] = clik.newPhoto({"id":6441665,"src":"116_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_6441665.html","width":130,"caption":"","height":205});
															thumbnails[6564208] = clik.newPhoto({"id":6564208,"src":"117_thumb.jpg","galleries_id":131145,"server_id":1,"link":"photo_6564208.html","width":130,"caption":"","height":143});
															thumbnails[6564210] = clik.newPhoto({"id":6564210,"src":"118_thumb.jpg","galleries_id":131145,"server_id":1,"link":"photo_6564210.html","width":130,"caption":"","height":167});
															thumbnails[6664402] = clik.newPhoto({"id":6664402,"src":"120_thumb.jpg","galleries_id":85522,"server_id":1,"link":"photo_6664402.html","width":130,"caption":"","height":204});
															thumbnails[6681486] = clik.newPhoto({"id":6681486,"src":"123_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6681486.html","width":130,"caption":"","height":68});
															thumbnails[6681494] = clik.newPhoto({"id":6681494,"src":"121_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6681494.html","width":130,"caption":"","height":110});
															thumbnails[6682074] = clik.newPhoto({"id":6682074,"src":"127_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6682074.html","width":130,"caption":"","height":87});
															thumbnails[6682110] = clik.newPhoto({"id":6682110,"src":"1261_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6682110.html","width":130,"caption":"","height":64});
															thumbnails[6682116] = clik.newPhoto({"id":6682116,"src":"1252_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6682116.html","width":130,"caption":"","height":77});
															thumbnails[6682118] = clik.newPhoto({"id":6682118,"src":"1221_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6682118.html","width":130,"caption":"","height":79});
															thumbnails[6686441] = clik.newPhoto({"id":6686441,"src":"130_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686441.html","width":130,"caption":"","height":86});
															thumbnails[6686444] = clik.newPhoto({"id":6686444,"src":"129_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686444.html","width":130,"caption":"","height":117});
															thumbnails[6686445] = clik.newPhoto({"id":6686445,"src":"128_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686445.html","width":130,"caption":"","height":65});
															thumbnails[6686556] = clik.newPhoto({"id":6686556,"src":"131_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686556.html","width":130,"caption":"","height":87});
															thumbnails[6686558] = clik.newPhoto({"id":6686558,"src":"132_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686558.html","width":130,"caption":"","height":77});
															thumbnails[6686560] = clik.newPhoto({"id":6686560,"src":"133_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686560.html","width":130,"caption":"","height":55});
															thumbnails[6686562] = clik.newPhoto({"id":6686562,"src":"134_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686562.html","width":130,"caption":"","height":104});
															thumbnails[6686565] = clik.newPhoto({"id":6686565,"src":"135_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686565.html","width":130,"caption":"","height":92});
															thumbnails[6686568] = clik.newPhoto({"id":6686568,"src":"136_thumb.jpg","galleries_id":364955,"server_id":1,"link":"photo_6686568.html","width":130,"caption":"","height":94});
															thumbnails[6824593] = clik.newPhoto({"id":6824593,"src":"0361_thumb.jpg","galleries_id":127659,"server_id":1,"link":"photo_6824593.html","width":130,"caption":"","height":195});
															thumbnails[1919841] = clik.newPhoto({"id":1919841,"src":"043_thumb.jpg","galleries_id":85344,"server_id":1,"link":"photo_1919841.html","width":130,"caption":"","height":195});
															thumbnails[3818908] = clik.newPhoto({"id":3818908,"src":"0261_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_3818908.html","width":130,"caption":"Felicity Hats of Hull","height":80});
															thumbnails[3818913] = clik.newPhoto({"id":3818913,"src":"0291_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_3818913.html","width":130,"caption":"Harley's Boutique","height":87});
															thumbnails[3818914] = clik.newPhoto({"id":3818914,"src":"028_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_3818914.html","width":130,"caption":"RazorBladeKisses","height":105});
															thumbnails[3818915] = clik.newPhoto({"id":3818915,"src":"030_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_3818915.html","width":130,"caption":"Tokyo Royale Fashions","height":60});
															thumbnails[3818918] = clik.newPhoto({"id":3818918,"src":"027_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_3818918.html","width":130,"caption":"Thundercity Motorcycles","height":107});
															thumbnails[3818921] = clik.newPhoto({"id":3818921,"src":"031_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_3818921.html","width":130,"caption":"Flask Inn Holiday Home Park","height":114});
															thumbnails[3890869] = clik.newPhoto({"id":3890869,"src":"102_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_3890869.html","width":130,"caption":"Sinners Skin Latex","height":68});
															thumbnails[4899657] = clik.newPhoto({"id":4899657,"src":"106_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_4899657.html","width":130,"caption":"Rebels Without Applause","height":74});
															thumbnails[5897281] = clik.newPhoto({"id":5897281,"src":"109_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_5897281.html","width":130,"caption":"Beading Marvellous ","height":74});
															thumbnails[5897282] = clik.newPhoto({"id":5897282,"src":"110_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_5897282.html","width":130,"caption":"Hatitude","height":74});
															thumbnails[5988975] = clik.newPhoto({"id":5988975,"src":"111_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_5988975.html","width":130,"caption":"BMX Asylum of Leeds","height":74});
															thumbnails[6566970] = clik.newPhoto({"id":6566970,"src":"101_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_6566970.html","width":130,"caption":"Angela Conniss","height":104});
															thumbnails[6662926] = clik.newPhoto({"id":6662926,"src":"119_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_6662926.html","width":130,"caption":"Eliza Wyke of Harrogate","height":74});
															thumbnails[6681499] = clik.newPhoto({"id":6681499,"src":"124_thumb.jpg","galleries_id":48191,"server_id":1,"link":"photo_6681499.html","width":130,"caption":"Little Izzy","height":74});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[48191] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"COMMERCIAL CUSTOMERS","link":"section72004.html","maxRecords":0.0,"photoIDs":[3818908.0,3818913.0,3818914.0,3818915.0,3818918.0,3818921.0,3890869.0,4899657.0,5897281.0,5897282.0,5988975.0,6566970.0,6662926.0,6681499.0],"skipIndex":0,"section_code":"section72004","featured_images":"6681499,6662926,6566970,5988975,5897282,5897281,4899657,3890869,3818921,3818918","id":48191,"singleSection":true});				  						galleries[364955] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LITTLE IZZY","link":"gallery_364955.html","maxRecords":0.0,"photoIDs":[6681486.0,6681494.0,6682074.0,6682110.0,6682116.0,6682118.0,6686441.0,6686444.0,6686445.0,6686556.0,6686558.0,6686560.0,6686562.0,6686565.0,6686568.0],"skipIndex":0,"section_code":"gallery","featured_images":6682074.0,"id":364955,"singleSection":false});				  						galleries[131145] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PORTRAIT PHOTOGRAPHY","link":"gallery_131145.html","maxRecords":0.0,"photoIDs":[1952786.0,1952787.0,1952788.0,3213026.0,3213028.0,3319039.0,6564208.0,6564210.0],"skipIndex":0,"section_code":"gallery","featured_images":3213028.0,"id":131145,"singleSection":false});				  						galleries[127659] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"WEDDING PHOTOGRAPHY","link":"gallery_127659.html","maxRecords":0.0,"photoIDs":[1903776.0,1903779.0,2084331.0,2084341.0,2649128.0,2649131.0,2649133.0,2649147.0,2649148.0,2649150.0,2649154.0,2649156.0,2923703.0,2923704.0,2923705.0,2923706.0,4438679.0,4438680.0,4438681.0,4438682.0,5094952.0,5123183.0,5123197.0,6382240.0,6409029.0,6824593.0],"skipIndex":0,"section_code":"gallery","featured_images":5094952.0,"id":127659,"singleSection":false});				  						galleries[157134] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"EVENT PHOTOGRAPHY","link":"gallery_157134.html","maxRecords":0.0,"photoIDs":[2433298.0,2433300.0,2433389.0,2433392.0,2957309.0,2957310.0,2957311.0,2957312.0,2957313.0,2957314.0,3083589.0,3083590.0,3402080.0,3402082.0,3402085.0,4312575.0,4312580.0,4312582.0,4312584.0,4312603.0],"skipIndex":0,"section_code":"gallery","featured_images":2433300.0,"id":157134,"singleSection":false});				  						galleries[1906] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MUSIC PHOTOGRAPHY","link":"gallery_1906.html","maxRecords":0.0,"photoIDs":[2651087.0,2651091.0,2651092.0,2651184.0,2828650.0,2828675.0,2828678.0,2828681.0,2828682.0,2828683.0,3708945.0,3708971.0,3708978.0,3708980.0,3708984.0,3708985.0,3810334.0,3810347.0,3810348.0,3810350.0],"skipIndex":0,"section_code":"gallery","featured_images":3708984.0,"id":1906,"singleSection":false});				  						galleries[85344] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BOUDOIR PHOTOGRAPHY","link":"gallery_85344.html","maxRecords":0.0,"photoIDs":[3319041.0,3816353.0,3816355.0,3816356.0,3816357.0,5670708.0,6441664.0,6441665.0,1919841.0],"skipIndex":0,"section_code":"gallery","featured_images":3816355.0,"id":85344,"singleSection":false});				  						galleries[85522] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PRODUCT and COMMERCIAL PHOTOGRAPHY","link":"gallery_85522.html","maxRecords":0.0,"photoIDs":[3830112.0,3830115.0,3830116.0,3830119.0,5142431.0,6664402.0],"skipIndex":0,"section_code":"gallery","featured_images":3830112.0,"id":85522,"singleSection":false});				  						galleries[117776] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MODEL PHOTOGRAPHY","link":"gallery_117776.html","maxRecords":0.0,"photoIDs":[3365535.0,3365539.0,3365540.0,3365541.0,3365542.0,3365544.0,3463980.0,3463982.0,3463983.0,3463984.0,3463985.0,3463986.0,3463987.0,3463988.0],"skipIndex":0,"section_code":"gallery","featured_images":3463980.0,"id":117776,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[127022] = '6564210,6564208,3319039,3213026,1952788';
imageSets[127023] = '6824593,6409029,6382240,5123197,5123183,4438682,4438681,4438680,4438679,1903779';
imageSets[127024] = '4312603,4312584,4312582,4312580,4312575';
imageSets[127027] = '6664402,5142431,3830115';
imageSets[1] = '3365539';
imageSets[2] = '6682074,5094952,3830112,3816355,3708984,3463980,3213028,2433300';
imageSets[127026] = '6441665,6441664,5670708,3816356,3816353';
imageSets[3] = '6824593,6686568,6686565,6686562,6686560,6686558,6686556,6686445,6686444,6686441,6682118,6682116,6682110,6682074,6681499,6681494,6681486,6664402,6662926,6566970,6564210,6564208,6441665,6441664,6409029,6382240,5988975,5897282,5897281,5670708,5142431,5123197,5123183,5094952,4899657,4438682,4438681,4438680,4438679,4312603,4312584,4312582,4312580,4312575,3890869,3830119,3830116,3830115,3830112,3818921';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ianwalker/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ianwalker/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 = 'Ian Walker 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> &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 += '<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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

