window.thumbnails = {};
															thumbnails[3236103] = clik.newPhoto({"id":3236103,"src":"Copy of scan00051_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":166});
															thumbnails[3236122] = clik.newPhoto({"id":3236122,"src":"Copy of scan00041_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":167});
															thumbnails[409339] = clik.newPhoto({"id":409339,"src":"Monochrome Copy of Scan 0001JPG_thumb.jpg","galleries_id":32912,"server_id":15,"link":"photo_409339.html","width":130,"caption":"","height":88});
															thumbnails[412472] = clik.newPhoto({"id":412472,"src":"Copy of image003JPG_thumb.jpg","galleries_id":33150,"server_id":15,"link":"photo_412472.html","width":130,"caption":"","height":195});
															thumbnails[413567] = clik.newPhoto({"id":413567,"src":"CNV00020_thumb.JPG","galleries_id":32567,"server_id":15,"link":"photo_413567.html","width":130,"caption":"","height":87});
															thumbnails[541815] = clik.newPhoto({"id":541815,"src":"Copy of 0013_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_541815.html","width":130,"caption":"","height":92});
															thumbnails[847973] = clik.newPhoto({"id":847973,"src":"image008_thumb.jpg","galleries_id":65399,"server_id":15,"link":"photo_847973.html","width":130,"caption":"","height":88});
															thumbnails[1159579] = clik.newPhoto({"id":1159579,"src":"CNV000141_thumb.JPG","galleries_id":65857,"server_id":15,"link":"photo_1159579.html","width":130,"caption":"","height":194});
															thumbnails[2341173] = clik.newPhoto({"id":2341173,"src":"scan00211_thumb.jpg","galleries_id":152547,"server_id":15,"link":"photo_2341173.html","width":130,"caption":"","height":89});
															thumbnails[3671943] = clik.newPhoto({"id":3671943,"src":"Copy_of_image001_copy1_thumb.jpg","galleries_id":223886,"server_id":15,"link":"photo_3671943.html","width":130,"caption":"","height":86});
															thumbnails[4036513] = clik.newPhoto({"id":4036513,"src":"Copy_of_image009_thumb.jpg","galleries_id":243304,"server_id":15,"link":"photo_4036513.html","width":130,"caption":"","height":88});
															thumbnails[5270717] = clik.newPhoto({"id":5270717,"src":"image005_copy_thumb.jpg","galleries_id":296661,"server_id":15,"link":"photo_5270717.html","width":130,"caption":"","height":88});
															thumbnails[5705092] = clik.newPhoto({"id":5705092,"src":"IMG_2427_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5705092.html","width":130,"caption":"","height":195});
															thumbnails[6527106] = clik.newPhoto({"id":6527106,"src":"CRW_3169_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527106.html","width":130,"caption":"","height":98});
															thumbnails[8118309] = clik.newPhoto({"id":8118309,"src":"Fish_21_thumb.jpg","galleries_id":389730,"server_id":15,"link":"photo_8118309.html","width":130,"caption":"","height":182});
															thumbnails[8130131] = clik.newPhoto({"id":8130131,"src":"IMG_4272_copy12_thumb.jpg","galleries_id":434860,"server_id":15,"link":"photo_8130131.html","width":130,"caption":"","height":87});
															thumbnails[8364651] = clik.newPhoto({"id":8364651,"src":"Ami_23_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8364651.html","width":130,"caption":"","height":195});
															thumbnails[8936328] = clik.newPhoto({"id":8936328,"src":"Troix_7_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_8936328.html","width":130,"caption":"","height":197});
															thumbnails[8130156] = clik.newPhoto({"id":8130156,"src":"IMG_4222_copy123_thumb.jpg","galleries_id":434860,"server_id":15,"link":"photo_8130156.html","width":130,"caption":"","height":86});
															thumbnails[405530] = clik.newPhoto({"id":405530,"src":"Copy of IMG_0444JPG_thumb.jpg","galleries_id":32567,"server_id":15,"link":"photo_405530.html","width":130,"caption":"","height":98});
															thumbnails[409342] = clik.newPhoto({"id":409342,"src":"scan 0010JPG_thumb.jpg","galleries_id":32912,"server_id":15,"link":"photo_409342.html","width":130,"caption":"","height":87});
															thumbnails[412468] = clik.newPhoto({"id":412468,"src":"image001JPG_thumb.jpg","galleries_id":33150,"server_id":15,"link":"photo_412468.html","width":130,"caption":"","height":87});
															thumbnails[847971] = clik.newPhoto({"id":847971,"src":"Copy of image001_thumb.jpg","galleries_id":65399,"server_id":15,"link":"photo_847971.html","width":130,"caption":"","height":87});
															thumbnails[853800] = clik.newPhoto({"id":853800,"src":"Copy of CNV00007_thumb.JPG","galleries_id":65857,"server_id":15,"link":"photo_853800.html","width":130,"caption":"","height":87});
															thumbnails[2341040] = clik.newPhoto({"id":2341040,"src":"scan0022_thumb.jpg","galleries_id":152547,"server_id":15,"link":"photo_2341040.html","width":130,"caption":"","height":89});
															thumbnails[3215583] = clik.newPhoto({"id":3215583,"src":"Copy of scan0005_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_3215583.html","width":130,"caption":"","height":59});
															thumbnails[3665099] = clik.newPhoto({"id":3665099,"src":"Copy_of_image004_thumb.jpg","galleries_id":223886,"server_id":15,"link":"photo_3665099.html","width":130,"caption":"","height":86});
															thumbnails[4036509] = clik.newPhoto({"id":4036509,"src":"Copy_of_image006_thumb.jpg","galleries_id":243304,"server_id":15,"link":"photo_4036509.html","width":130,"caption":"","height":194});
															thumbnails[5270718] = clik.newPhoto({"id":5270718,"src":"image002_copy_thumb.jpg","galleries_id":296661,"server_id":15,"link":"photo_5270718.html","width":130,"caption":"","height":85});
															thumbnails[5705088] = clik.newPhoto({"id":5705088,"src":"IMG_2410_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5705088.html","width":130,"caption":"","height":87});
															thumbnails[6527107] = clik.newPhoto({"id":6527107,"src":"CRW_3173_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527107.html","width":130,"caption":"","height":98});
															thumbnails[8118321] = clik.newPhoto({"id":8118321,"src":"Fish_91_thumb.jpg","galleries_id":389730,"server_id":15,"link":"photo_8118321.html","width":130,"caption":"","height":91});
															thumbnails[8130134] = clik.newPhoto({"id":8130134,"src":"IMG_4242_copy12_thumb.jpg","galleries_id":434860,"server_id":15,"link":"photo_8130134.html","width":130,"caption":"","height":87});
															thumbnails[8501128] = clik.newPhoto({"id":8501128,"src":"Ami_28_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8501128.html","width":130,"caption":"","height":97});
															thumbnails[8936331] = clik.newPhoto({"id":8936331,"src":"Troix_11_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_8936331.html","width":130,"caption":"","height":92});
															thumbnails[405532] = clik.newPhoto({"id":405532,"src":"CNV00030JPG_thumb.jpg","galleries_id":32567,"server_id":15,"link":"photo_405532.html","width":130,"caption":"","height":87});
															thumbnails[412469] = clik.newPhoto({"id":412469,"src":"image010JPG_thumb.jpg","galleries_id":33150,"server_id":15,"link":"photo_412469.html","width":130,"caption":"","height":46});
															thumbnails[412490] = clik.newPhoto({"id":412490,"src":"Copy of IMG_0402_thumb.JPG","galleries_id":32912,"server_id":15,"link":"photo_412490.html","width":130,"caption":"","height":173});
															thumbnails[541821] = clik.newPhoto({"id":541821,"src":"Copy of 0016_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_541821.html","width":130,"caption":"","height":92});
															thumbnails[847970] = clik.newPhoto({"id":847970,"src":"Copy of image009_thumb.jpg","galleries_id":65399,"server_id":15,"link":"photo_847970.html","width":130,"caption":"","height":193});
															thumbnails[853802] = clik.newPhoto({"id":853802,"src":"Copy of CNV00005 copy_thumb.jpg","galleries_id":65857,"server_id":15,"link":"photo_853802.html","width":130,"caption":"","height":86});
															thumbnails[2341044] = clik.newPhoto({"id":2341044,"src":"scan002 copy_thumb.jpg","galleries_id":152547,"server_id":15,"link":"photo_2341044.html","width":130,"caption":"","height":54});
															thumbnails[4036515] = clik.newPhoto({"id":4036515,"src":"image008_1_thumb.jpg","galleries_id":243304,"server_id":15,"link":"photo_4036515.html","width":130,"caption":"","height":87});
															thumbnails[5271615] = clik.newPhoto({"id":5271615,"src":"image001_copy1_thumb.jpg","galleries_id":296661,"server_id":15,"link":"photo_5271615.html","width":130,"caption":"","height":197});
															thumbnails[5804964] = clik.newPhoto({"id":5804964,"src":"5_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5804964.html","width":130,"caption":"","height":195});
															thumbnails[6527108] = clik.newPhoto({"id":6527108,"src":"CRW_3184_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527108.html","width":130,"caption":"","height":98});
															thumbnails[7864998] = clik.newPhoto({"id":7864998,"src":"CCF17052011_00000_copy_copy_thumb.jpg","galleries_id":223886,"server_id":15,"link":"photo_7864998.html","width":130,"caption":"","height":188});
															thumbnails[8118312] = clik.newPhoto({"id":8118312,"src":"Fish_10_thumb.jpg","galleries_id":389730,"server_id":15,"link":"photo_8118312.html","width":130,"caption":"","height":99});
															thumbnails[8501759] = clik.newPhoto({"id":8501759,"src":"Ami_31_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8501759.html","width":130,"caption":"","height":197});
															thumbnails[8936413] = clik.newPhoto({"id":8936413,"src":"Troix_81_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_8936413.html","width":130,"caption":"","height":195});
															thumbnails[409893] = clik.newPhoto({"id":409893,"src":"Scan 0008JPG1_thumb.jpg","galleries_id":32912,"server_id":15,"link":"photo_409893.html","width":130,"caption":"","height":88});
															thumbnails[412473] = clik.newPhoto({"id":412473,"src":"Copy of Copy of image002JPG_thumb.jpg","galleries_id":33150,"server_id":15,"link":"photo_412473.html","width":130,"caption":"","height":87});
															thumbnails[427108] = clik.newPhoto({"id":427108,"src":"Copy of IMG_0453_thumb.JPG","galleries_id":32567,"server_id":15,"link":"photo_427108.html","width":130,"caption":"","height":98});
															thumbnails[847966] = clik.newPhoto({"id":847966,"src":"Copy of image004_thumb.jpg","galleries_id":65399,"server_id":15,"link":"photo_847966.html","width":130,"caption":"","height":87});
															thumbnails[853807] = clik.newPhoto({"id":853807,"src":"Copy of CNV00036 copy_thumb.jpg","galleries_id":65857,"server_id":15,"link":"photo_853807.html","width":130,"caption":"","height":87});
															thumbnails[2341175] = clik.newPhoto({"id":2341175,"src":"scan00251_thumb.jpg","galleries_id":152547,"server_id":15,"link":"photo_2341175.html","width":130,"caption":"","height":88});
															thumbnails[3215582] = clik.newPhoto({"id":3215582,"src":"Copy of scan0004_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_3215582.html","width":130,"caption":"","height":59});
															thumbnails[3665101] = clik.newPhoto({"id":3665101,"src":"Copy_of_image003_thumb.jpg","galleries_id":223886,"server_id":15,"link":"photo_3665101.html","width":130,"caption":"","height":85});
															thumbnails[5270720] = clik.newPhoto({"id":5270720,"src":"image006_copy_thumb.jpg","galleries_id":296661,"server_id":15,"link":"photo_5270720.html","width":130,"caption":"","height":85});
															thumbnails[5705125] = clik.newPhoto({"id":5705125,"src":"IMG_24241_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5705125.html","width":130,"caption":"","height":87});
															thumbnails[6527109] = clik.newPhoto({"id":6527109,"src":"CRW_3189_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527109.html","width":130,"caption":"","height":98});
															thumbnails[7227373] = clik.newPhoto({"id":7227373,"src":"Copy_of_scan_1_copy_thumb.jpg","galleries_id":243304,"server_id":15,"link":"photo_7227373.html","width":130,"caption":"","height":193});
															thumbnails[8118324] = clik.newPhoto({"id":8118324,"src":"Fish_212_thumb.jpg","galleries_id":389730,"server_id":15,"link":"photo_8118324.html","width":130,"caption":"","height":94});
															thumbnails[8130150] = clik.newPhoto({"id":8130150,"src":"IMG_4268_copy123_thumb.jpg","galleries_id":434860,"server_id":15,"link":"photo_8130150.html","width":130,"caption":"","height":87});
															thumbnails[8303406] = clik.newPhoto({"id":8303406,"src":"Angelique_32_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_8303406.html","width":130,"caption":"","height":202});
															thumbnails[8501129] = clik.newPhoto({"id":8501129,"src":"Ami_29_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8501129.html","width":130,"caption":"","height":195});
															thumbnails[405531] = clik.newPhoto({"id":405531,"src":"CNV00032JPG_thumb.jpg","galleries_id":32567,"server_id":15,"link":"photo_405531.html","width":130,"caption":"","height":87});
															thumbnails[409892] = clik.newPhoto({"id":409892,"src":"Copy of Monochrome Copy (3) of Scan 0003JPG1_thumb.jpg","galleries_id":32912,"server_id":15,"link":"photo_409892.html","width":130,"caption":"","height":88});
															thumbnails[412474] = clik.newPhoto({"id":412474,"src":"image002JPG_thumb.jpg","galleries_id":33150,"server_id":15,"link":"photo_412474.html","width":130,"caption":"","height":195});
															thumbnails[541919] = clik.newPhoto({"id":541919,"src":"Copy of 00141_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_541919.html","width":130,"caption":"","height":92});
															thumbnails[847972] = clik.newPhoto({"id":847972,"src":"Copy of image002_thumb.jpg","galleries_id":65399,"server_id":15,"link":"photo_847972.html","width":130,"caption":"","height":87});
															thumbnails[853957] = clik.newPhoto({"id":853957,"src":"Copy of CNV000192_thumb.JPG","galleries_id":65857,"server_id":15,"link":"photo_853957.html","width":130,"caption":"","height":198});
															thumbnails[2341045] = clik.newPhoto({"id":2341045,"src":"scan0024_thumb.jpg","galleries_id":152547,"server_id":15,"link":"photo_2341045.html","width":130,"caption":"","height":88});
															thumbnails[3927486] = clik.newPhoto({"id":3927486,"src":"scan00021_thumb.jpg","galleries_id":223886,"server_id":15,"link":"photo_3927486.html","width":130,"caption":"","height":87});
															thumbnails[4036516] = clik.newPhoto({"id":4036516,"src":"image010_thumb.jpg","galleries_id":243304,"server_id":15,"link":"photo_4036516.html","width":130,"caption":"","height":88});
															thumbnails[5270721] = clik.newPhoto({"id":5270721,"src":"image007_copy_thumb.jpg","galleries_id":296661,"server_id":15,"link":"photo_5270721.html","width":130,"caption":"","height":88});
															thumbnails[5705114] = clik.newPhoto({"id":5705114,"src":"IMG_2430_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5705114.html","width":130,"caption":"","height":195});
															thumbnails[6527110] = clik.newPhoto({"id":6527110,"src":"CRW_3196_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527110.html","width":130,"caption":"","height":98});
															thumbnails[8118315] = clik.newPhoto({"id":8118315,"src":"Fish_2_thumb.jpg","galleries_id":389730,"server_id":15,"link":"photo_8118315.html","width":130,"caption":"","height":193});
															thumbnails[8130137] = clik.newPhoto({"id":8130137,"src":"IMG_4257_copy12_thumb.jpg","galleries_id":434860,"server_id":15,"link":"photo_8130137.html","width":130,"caption":"","height":93});
															thumbnails[8303408] = clik.newPhoto({"id":8303408,"src":"Angelique_30_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_8303408.html","width":130,"caption":"","height":98});
															thumbnails[8403170] = clik.newPhoto({"id":8403170,"src":"IMG_5711-copy_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8403170.html","width":130,"caption":"","height":272});
															thumbnails[405537] = clik.newPhoto({"id":405537,"src":"Copy of IMG_0446JPG_thumb.jpg","galleries_id":32567,"server_id":15,"link":"photo_405537.html","width":130,"caption":"","height":173});
															thumbnails[412487] = clik.newPhoto({"id":412487,"src":"Copy of IMG_0407_thumb.JPG","galleries_id":32912,"server_id":15,"link":"photo_412487.html","width":130,"caption":"","height":98});
															thumbnails[547662] = clik.newPhoto({"id":547662,"src":"Copy of Copy of 0023 copy1_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_547662.html","width":130,"caption":"","height":89});
															thumbnails[1159578] = clik.newPhoto({"id":1159578,"src":"CNV000081_thumb.JPG","galleries_id":65857,"server_id":15,"link":"photo_1159578.html","width":130,"caption":"","height":194});
															thumbnails[5727292] = clik.newPhoto({"id":5727292,"src":"IMG_2421_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5727292.html","width":130,"caption":"","height":195});
															thumbnails[6527111] = clik.newPhoto({"id":6527111,"src":"CRW_3198_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527111.html","width":130,"caption":"","height":98});
															thumbnails[8304786] = clik.newPhoto({"id":8304786,"src":"Angelique_26_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_8304786.html","width":130,"caption":"","height":203});
															thumbnails[8403171] = clik.newPhoto({"id":8403171,"src":"Ami_15_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8403171.html","width":130,"caption":"","height":89});
															thumbnails[405535] = clik.newPhoto({"id":405535,"src":"Copy of IMG_0454JPG_thumb.jpg","galleries_id":32567,"server_id":15,"link":"photo_405535.html","width":130,"caption":"","height":98});
															thumbnails[412491] = clik.newPhoto({"id":412491,"src":"Copy of IMG_0339_thumb.JPG","galleries_id":32912,"server_id":15,"link":"photo_412491.html","width":130,"caption":"","height":98});
															thumbnails[853793] = clik.newPhoto({"id":853793,"src":"Copy of CNV00016_thumb.JPG","galleries_id":65857,"server_id":15,"link":"photo_853793.html","width":130,"caption":"","height":201});
															thumbnails[3233597] = clik.newPhoto({"id":3233597,"src":"Copy of scan00063_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_3233597.html","width":130,"caption":"","height":88});
															thumbnails[5727231] = clik.newPhoto({"id":5727231,"src":"IMG_2510a_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5727231.html","width":130,"caption":"","height":195});
															thumbnails[6527112] = clik.newPhoto({"id":6527112,"src":"CRW_3203_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527112.html","width":130,"caption":"","height":98});
															thumbnails[7402994] = clik.newPhoto({"id":7402994,"src":"Copy_of_scan0001_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7402994.html","width":130,"caption":"","height":162});
															thumbnails[405564] = clik.newPhoto({"id":405564,"src":"WarriorScan0005JPG1_thumb.jpg","galleries_id":32567,"server_id":15,"link":"photo_405564.html","width":130,"caption":"","height":193});
															thumbnails[1159588] = clik.newPhoto({"id":1159588,"src":"CNV000131_thumb.JPG","galleries_id":65857,"server_id":15,"link":"photo_1159588.html","width":130,"caption":"","height":87});
															thumbnails[3224228] = clik.newPhoto({"id":3224228,"src":"Copy of CNV00025_thumb.jpg","galleries_id":32912,"server_id":15,"link":"photo_3224228.html","width":130,"caption":"","height":194});
															thumbnails[5725887] = clik.newPhoto({"id":5725887,"src":"IMG_2473_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5725887.html","width":130,"caption":"","height":87});
															thumbnails[6527113] = clik.newPhoto({"id":6527113,"src":"CRW_3209_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527113.html","width":130,"caption":"","height":98});
															thumbnails[7397361] = clik.newPhoto({"id":7397361,"src":"scan0001_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7397361.html","width":130,"caption":"","height":89});
															thumbnails[7579525] = clik.newPhoto({"id":7579525,"src":"0025_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_7579525.html","width":130,"caption":"","height":182});
															thumbnails[8300540] = clik.newPhoto({"id":8300540,"src":"Kelli_30_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8300540.html","width":130,"caption":"","height":93});
															thumbnails[405533] = clik.newPhoto({"id":405533,"src":"Copy of IMG_0443JPG_thumb.jpg","galleries_id":32567,"server_id":15,"link":"photo_405533.html","width":130,"caption":"","height":98});
															thumbnails[412493] = clik.newPhoto({"id":412493,"src":"Copy of IMG_0351_thumb.JPG","galleries_id":32912,"server_id":15,"link":"photo_412493.html","width":130,"caption":"","height":98});
															thumbnails[1159583] = clik.newPhoto({"id":1159583,"src":"CNV000181_thumb.JPG","galleries_id":65857,"server_id":15,"link":"photo_1159583.html","width":130,"caption":"","height":194});
															thumbnails[5738400] = clik.newPhoto({"id":5738400,"src":"IMG_2418_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5738400.html","width":130,"caption":"","height":195});
															thumbnails[6527114] = clik.newPhoto({"id":6527114,"src":"CRW_3213_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527114.html","width":130,"caption":"","height":98});
															thumbnails[7402995] = clik.newPhoto({"id":7402995,"src":"Copy_of_scan0002_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7402995.html","width":130,"caption":"","height":166});
															thumbnails[7580946] = clik.newPhoto({"id":7580946,"src":"Copy_of_scan0008_copy_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_7580946.html","width":130,"caption":"","height":91});
															thumbnails[405536] = clik.newPhoto({"id":405536,"src":"Copy of IMG_0452JPG_thumb.jpg","galleries_id":32567,"server_id":15,"link":"photo_405536.html","width":130,"caption":"","height":173});
															thumbnails[412485] = clik.newPhoto({"id":412485,"src":"Copy of IMG_0411_thumb.JPG","galleries_id":32912,"server_id":15,"link":"photo_412485.html","width":130,"caption":"","height":98});
															thumbnails[1159584] = clik.newPhoto({"id":1159584,"src":"CNV000091_thumb.JPG","galleries_id":65857,"server_id":15,"link":"photo_1159584.html","width":130,"caption":"","height":194});
															thumbnails[5725891] = clik.newPhoto({"id":5725891,"src":"IMG_2433_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5725891.html","width":130,"caption":"","height":195});
															thumbnails[6527115] = clik.newPhoto({"id":6527115,"src":"CRW_3224_1_copy_thumb.jpg","galleries_id":358832,"server_id":15,"link":"photo_6527115.html","width":130,"caption":"","height":98});
															thumbnails[7397362] = clik.newPhoto({"id":7397362,"src":"scan0002_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7397362.html","width":130,"caption":"","height":89});
															thumbnails[8371719] = clik.newPhoto({"id":8371719,"src":"Kelli_31_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8371719.html","width":130,"caption":"","height":171});
															thumbnails[8649804] = clik.newPhoto({"id":8649804,"src":"Copy-of-0015_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_8649804.html","width":130,"caption":"","height":68});
															thumbnails[5727313] = clik.newPhoto({"id":5727313,"src":"IMG_2500_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5727313.html","width":130,"caption":"","height":195});
															thumbnails[7402996] = clik.newPhoto({"id":7402996,"src":"Copy_of_scan0003_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7402996.html","width":130,"caption":"","height":163});
															thumbnails[8300546] = clik.newPhoto({"id":8300546,"src":"Kelli_211_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8300546.html","width":130,"caption":"","height":87});
															thumbnails[8649825] = clik.newPhoto({"id":8649825,"src":"0019JPG_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_8649825.html","width":130,"caption":"","height":249});
															thumbnails[8749643] = clik.newPhoto({"id":8749643,"src":"Kelli_36_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8749643.html","width":130,"caption":"","height":208});
															thumbnails[5727315] = clik.newPhoto({"id":5727315,"src":"IMG_2542_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5727315.html","width":130,"caption":"","height":87});
															thumbnails[7397363] = clik.newPhoto({"id":7397363,"src":"scan0005_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7397363.html","width":130,"caption":"","height":191});
															thumbnails[8178551] = clik.newPhoto({"id":8178551,"src":"Sam_10_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8178551.html","width":130,"caption":"","height":232});
															thumbnails[8728022] = clik.newPhoto({"id":8728022,"src":"Copy-of-0009JPG1_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_8728022.html","width":130,"caption":"","height":273});
															thumbnails[5727316] = clik.newPhoto({"id":5727316,"src":"IMG_2548_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5727316.html","width":130,"caption":"","height":195});
															thumbnails[7402988] = clik.newPhoto({"id":7402988,"src":"scan0008_copy_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7402988.html","width":130,"caption":"","height":179});
															thumbnails[8380538] = clik.newPhoto({"id":8380538,"src":"IMG_5855_copy_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8380538.html","width":130,"caption":"","height":211});
															thumbnails[8648031] = clik.newPhoto({"id":8648031,"src":"0030_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_8648031.html","width":130,"caption":"","height":182});
															thumbnails[5727317] = clik.newPhoto({"id":5727317,"src":"IMG_2541_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5727317.html","width":130,"caption":"","height":87});
															thumbnails[7402997] = clik.newPhoto({"id":7402997,"src":"scan00010_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7402997.html","width":130,"caption":"","height":103});
															thumbnails[8297515] = clik.newPhoto({"id":8297515,"src":"Sam_15_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8297515.html","width":130,"caption":"","height":225});
															thumbnails[8648034] = clik.newPhoto({"id":8648034,"src":"0032_thumb.jpg","galleries_id":42038,"server_id":15,"link":"photo_8648034.html","width":130,"caption":"","height":180});
															thumbnails[5727319] = clik.newPhoto({"id":5727319,"src":"IMG_2544_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5727319.html","width":130,"caption":"","height":199});
															thumbnails[7402973] = clik.newPhoto({"id":7402973,"src":"scan0004_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7402973.html","width":130,"caption":"","height":186});
															thumbnails[8657683] = clik.newPhoto({"id":8657683,"src":"IMG_6203_copy_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8657683.html","width":130,"caption":"","height":239});
															thumbnails[5813856] = clik.newPhoto({"id":5813856,"src":"IMG_2520_copy_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5813856.html","width":130,"caption":"","height":87});
															thumbnails[7402972] = clik.newPhoto({"id":7402972,"src":"scan0003_copy_thumb.jpg","galleries_id":470294,"server_id":15,"link":"photo_7402972.html","width":130,"caption":"","height":201});
															thumbnails[8381211] = clik.newPhoto({"id":8381211,"src":"IMG_5854_copy1_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8381211.html","width":130,"caption":"","height":217});
															thumbnails[7580900] = clik.newPhoto({"id":7580900,"src":"Bride_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_7580900.html","width":130,"caption":"","height":192});
															thumbnails[8178406] = clik.newPhoto({"id":8178406,"src":"Sam_8_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8178406.html","width":130,"caption":"","height":192});
															thumbnails[5805024] = clik.newPhoto({"id":5805024,"src":"38_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5805024.html","width":130,"caption":"","height":195});
															thumbnails[8339956] = clik.newPhoto({"id":8339956,"src":"Sam_5_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8339956.html","width":130,"caption":"","height":94});
															thumbnails[5736881] = clik.newPhoto({"id":5736881,"src":"IMG_2606_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5736881.html","width":130,"caption":"","height":195});
															thumbnails[8728032] = clik.newPhoto({"id":8728032,"src":"Samantha_Infra-red_copy_thumb.jpg","galleries_id":434862,"server_id":15,"link":"photo_8728032.html","width":130,"caption":"","height":201});
															thumbnails[5813865] = clik.newPhoto({"id":5813865,"src":"19_copy_copy_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5813865.html","width":130,"caption":"","height":87});
															thumbnails[8935124] = clik.newPhoto({"id":8935124,"src":"Troix_24_thumb_A57ADF8C-24E8-5EC4-4F7074101797F100.jpg","galleries_id":434862,"server_id":15,"link":"photo_8935124.html","width":130,"caption":"","height":207});
															thumbnails[5739636] = clik.newPhoto({"id":5739636,"src":"IMG_25971_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5739636.html","width":130,"caption":"","height":87});
															thumbnails[8935126] = clik.newPhoto({"id":8935126,"src":"Troix_25_thumb_A57E0D26-24E8-5EC4-4F8D23B8625CBF8D.jpg","galleries_id":434862,"server_id":15,"link":"photo_8935126.html","width":130,"caption":"","height":214});
															thumbnails[5739719] = clik.newPhoto({"id":5739719,"src":"IMG_2598_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5739719.html","width":130,"caption":"","height":195});
															thumbnails[5739721] = clik.newPhoto({"id":5739721,"src":"IMG_2562_Copy_copy1_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_5739721.html","width":130,"caption":"","height":87});
															thumbnails[5739642] = clik.newPhoto({"id":5739642,"src":"IMG_2556_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5739642.html","width":130,"caption":"","height":195});
															thumbnails[5739594] = clik.newPhoto({"id":5739594,"src":"IMG_2602_thumb.JPG","galleries_id":323208,"server_id":15,"link":"photo_5739594.html","width":130,"caption":"","height":87});
															thumbnails[8358348] = clik.newPhoto({"id":8358348,"src":"Sarah_2_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_8358348.html","width":130,"caption":"","height":213});
															thumbnails[8358376] = clik.newPhoto({"id":8358376,"src":"Sarah_3_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_8358376.html","width":130,"caption":"","height":223});
															thumbnails[8360731] = clik.newPhoto({"id":8360731,"src":"Sarah_4_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_8360731.html","width":130,"caption":"","height":212});
															thumbnails[8374704] = clik.newPhoto({"id":8374704,"src":"Copy_of_IMG_1140_thumb.jpg","galleries_id":323208,"server_id":15,"link":"photo_8374704.html","width":130,"caption":"","height":83});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[323208] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Portfolio","link":"gallery_323208.html","maxRecords":0.0,"photoIDs":[5705092.0,5705088.0,5804964.0,5705125.0,5705114.0,5727292.0,5727231.0,5725887.0,5738400.0,5725891.0,5727313.0,5727315.0,5727316.0,5727317.0,5727319.0,5813856.0,7580900.0,5805024.0,5736881.0,5813865.0,5739636.0,5739719.0,5739721.0,5739642.0,5739594.0,8358348.0,8358376.0,8360731.0,8374704.0],"skipIndex":0,"section_code":"gallery","featured_images":"8374704,8360731,8358376,8358348,7580900,5813865,5813856,5805024,5804964,5739721","id":323208,"singleSection":false});				  						galleries[434862] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Glamour Portfolio","link":"gallery_434862.html","maxRecords":0.0,"photoIDs":[8364651.0,8501128.0,8501759.0,8501129.0,8403170.0,8403171.0,8300540.0,8371719.0,8300546.0,8749643.0,8178551.0,8380538.0,8297515.0,8657683.0,8381211.0,8178406.0,8339956.0,8728032.0,8935124.0,8935126.0],"skipIndex":0,"section_code":"gallery","featured_images":"8935126,8935124,8749643,8728032,8657683,8501759,8501129,8501128,8403171,8403170","id":434862,"singleSection":false});				  						galleries[470294] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait Gallery","link":"gallery_470294.html","maxRecords":0.0,"photoIDs":[8936328.0,8936331.0,8936413.0,8303406.0,8303408.0,8304786.0,7402994.0,7397361.0,7402995.0,7397362.0,7402996.0,7397363.0,7402988.0,7402997.0,7402973.0,7402972.0],"skipIndex":0,"section_code":"gallery","featured_images":"8936413,8936331,8936328,8304786,8303408,8303406,7402997,7402996,7402995,7402994","id":470294,"singleSection":false});				  						galleries[296661] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Berlin","link":"gallery_296661.html","maxRecords":0.0,"photoIDs":[5270717.0,5270718.0,5271615.0,5270720.0,5270721.0],"skipIndex":0,"section_code":"gallery","featured_images":"5271615,5270721,5270720,5270718,5270717","id":296661,"singleSection":false});				  						galleries[223886] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CCCP","link":"gallery_223886.html","maxRecords":0.0,"photoIDs":[3671943.0,3665099.0,7864998.0,3665101.0,3927486.0],"skipIndex":0,"section_code":"gallery","featured_images":"7864998,3927486,3671943,3665101,3665099","id":223886,"singleSection":false});				  						galleries[32912] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"China","link":"gallery_32912.html","maxRecords":0.0,"photoIDs":[409339.0,409342.0,412490.0,409893.0,409892.0,412487.0,412491.0,3224228.0,412493.0,412485.0],"skipIndex":0,"section_code":"gallery","featured_images":"3224228,412493,412491,412490,412487,412485,409893,409892,409342,409339","id":32912,"singleSection":false});				  						galleries[389730] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fish","link":"gallery_389730.html","maxRecords":0.0,"photoIDs":[8118309.0,8118321.0,8118312.0,8118324.0,8118315.0],"skipIndex":0,"section_code":"gallery","featured_images":"8118324,8118321,8118315,8118312,8118309","id":389730,"singleSection":false});				  						galleries[243304] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Iceland","link":"gallery_243304.html","maxRecords":0.0,"photoIDs":[4036513.0,4036509.0,4036515.0,7227373.0,4036516.0],"skipIndex":0,"section_code":"gallery","featured_images":"7227373,4036516,4036515,4036513,4036509","id":243304,"singleSection":false});				  						galleries[65857] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"India","link":"gallery_65857.html","maxRecords":0.0,"photoIDs":[1159579.0,853800.0,853802.0,853807.0,853957.0,1159578.0,853793.0,1159588.0,1159583.0,1159584.0],"skipIndex":0,"section_code":"gallery","featured_images":"1159588,1159584,1159583,1159579,1159578,853957,853807,853802,853800,853793","id":65857,"singleSection":false});				  						galleries[358832] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"KISS","link":"gallery_358832.html","maxRecords":0.0,"photoIDs":[6527106.0,6527107.0,6527108.0,6527109.0,6527110.0,6527111.0,6527112.0,6527113.0,6527114.0,6527115.0],"skipIndex":0,"section_code":"gallery","featured_images":"6527115,6527114,6527113,6527112,6527111,6527110,6527109,6527108,6527107,6527106","id":358832,"singleSection":false});				  						galleries[434860] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Papillons","link":"gallery_434860.html","maxRecords":0.0,"photoIDs":[8130131.0,8130156.0,8130134.0,8130150.0,8130137.0],"skipIndex":0,"section_code":"gallery","featured_images":"8130156,8130150,8130137,8130134,8130131","id":434860,"singleSection":false});				  						galleries[152547] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stonehenge","link":"gallery_152547.html","maxRecords":0.0,"photoIDs":[2341173.0,2341040.0,2341044.0,2341175.0,2341045.0],"skipIndex":0,"section_code":"gallery","featured_images":"2341175,2341173,2341045,2341044,2341040","id":152547,"singleSection":false});				  						galleries[33150] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"South America","link":"gallery_33150.html","maxRecords":0.0,"photoIDs":[412472.0,412468.0,412469.0,412473.0,412474.0],"skipIndex":0,"section_code":"gallery","featured_images":"412474,412473,412472,412469,412468","id":33150,"singleSection":false});				  						galleries[32567] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Terracotta Warriors","link":"gallery_32567.html","maxRecords":0.0,"photoIDs":[413567.0,405530.0,405532.0,427108.0,405531.0,405537.0,405535.0,405564.0,405533.0,405536.0],"skipIndex":0,"section_code":"gallery","featured_images":"427108,413567,405564,405537,405536,405535,405533,405532,405531,405530","id":32567,"singleSection":false});				  						galleries[65399] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Turkey","link":"gallery_65399.html","maxRecords":0.0,"photoIDs":[847973.0,847971.0,847970.0,847966.0,847972.0],"skipIndex":0,"section_code":"gallery","featured_images":"847973,847972,847971,847970,847966","id":65399,"singleSection":false});				  						galleries[42038] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"USA","link":"gallery_42038.html","maxRecords":0.0,"photoIDs":[541815.0,3215583.0,541821.0,3215582.0,541919.0,547662.0,3233597.0,7579525.0,7580946.0,8649804.0,8649825.0,8728022.0,8648031.0,8648034.0],"skipIndex":0,"section_code":"gallery","featured_images":"8728022,8649825,8649804,8648034,8648031,7580946,7579525,3233597,3215583,3215582","id":42038,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8358348';
imageSets[3] = '8374704';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/howardgould/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/howardgould/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/howardgould/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/howardgould/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/howardgould/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/howardgould/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/howardgould/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/howardgould/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Howard Gould 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.item_price !== '') {
			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;
	}
}

			

