window.thumbnails = {};
															thumbnails[6363093] = clik.newPhoto({"id":6363093,"src":"Other_10_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Sibling love - the Pallas Cat Kittens at 6 weeks old.","height":79});
															thumbnails[6377676] = clik.newPhoto({"id":6377676,"src":"Jon823_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Nias - A magnificent male Sumatran Tiger.","height":108});
															thumbnails[6497371] = clik.newPhoto({"id":6497371,"src":"sumatran_tiger_12_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Is there a future for the Tiger?","height":116});
															thumbnails[6648013] = clik.newPhoto({"id":6648013,"src":"Amur_tiger_05_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Amur Tiger - Hope for the future.","height":84});
															thumbnails[5752128] = clik.newPhoto({"id":5752128,"src":"Puma_01_thumb.jpg","galleries_id":325788,"server_id":32,"link":"photo_5752128.html","width":130,"caption":"The cat with many names","height":117});
															thumbnails[5752143] = clik.newPhoto({"id":5752143,"src":"hybrid_tiger_01_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5752143.html","width":130,"caption":"Bruno stalking","height":195});
															thumbnails[5752150] = clik.newPhoto({"id":5752150,"src":"Cheetah_01_thumb.jpg","galleries_id":325794,"server_id":32,"link":"photo_5752150.html","width":130,"caption":"I am the fastest land mammal!!","height":84});
															thumbnails[5752156] = clik.newPhoto({"id":5752156,"src":"clouded_leopard_01_thumb.jpg","galleries_id":325791,"server_id":32,"link":"photo_5752156.html","width":130,"caption":"I have my eyes on you!","height":173});
															thumbnails[5752172] = clik.newPhoto({"id":5752172,"src":"Other_01_thumb.jpg","galleries_id":325792,"server_id":32,"link":"photo_5752172.html","width":130,"caption":"I may be small but I still wouldn't argue with me!","height":195});
															thumbnails[5752196] = clik.newPhoto({"id":5752196,"src":"Amur_tiger_01_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5752196.html","width":130,"caption":"Be afraid........be very afraid!","height":174});
															thumbnails[5754208] = clik.newPhoto({"id":5754208,"src":"Snow_Leopard_01_thumb.jpg","galleries_id":326099,"server_id":32,"link":"photo_5754208.html","width":130,"caption":"You know that I love you really!","height":78});
															thumbnails[5754239] = clik.newPhoto({"id":5754239,"src":"sumatran_tiger_02_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5754239.html","width":82,"caption":"Who is that good looking Tiger?!","height":130});
															thumbnails[5754298] = clik.newPhoto({"id":5754298,"src":"Amur_leopard_02_thumb.jpg","galleries_id":360541,"server_id":32,"link":"photo_5754298.html","width":130,"caption":"A thing of beauty and grace...","height":132});
															thumbnails[5755340] = clik.newPhoto({"id":5755340,"src":"Lion_02_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_5755340.html","width":130,"caption":"The profile of the King","height":114});
															thumbnails[5755342] = clik.newPhoto({"id":5755342,"src":"Amur_leopard_03_thumb.jpg","galleries_id":360541,"server_id":32,"link":"photo_5755342.html","width":130,"caption":"Be afraid......be very afraid.......AGAIN!!","height":157});
															thumbnails[5755355] = clik.newPhoto({"id":5755355,"src":"Cheetah_03_thumb.jpg","galleries_id":325794,"server_id":32,"link":"photo_5755355.html","width":130,"caption":"The 1 mile stare","height":158});
															thumbnails[5755438] = clik.newPhoto({"id":5755438,"src":"Lion_03_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_5755438.html","width":130,"caption":"All Lions need a good stretch!","height":190});
															thumbnails[5755631] = clik.newPhoto({"id":5755631,"src":"Amur_leopard_04_thumb.jpg","galleries_id":360541,"server_id":32,"link":"photo_5755631.html","width":130,"caption":"Amur leopard........against Amur leopard","height":160});
															thumbnails[5755751] = clik.newPhoto({"id":5755751,"src":"hybrid_tiger_03_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5755751.html","width":130,"caption":"I am going to get you!","height":88});
															thumbnails[5755836] = clik.newPhoto({"id":5755836,"src":"Other_04_thumb.jpg","galleries_id":325792,"server_id":32,"link":"photo_5755836.html","width":130,"caption":"I can't get away from you even when I try to hide!","height":172});
															thumbnails[5755841] = clik.newPhoto({"id":5755841,"src":"Snow_Leopard_03_thumb.jpg","galleries_id":326099,"server_id":32,"link":"photo_5755841.html","width":130,"caption":"So is this pose okay for you?","height":177});
															thumbnails[5755843] = clik.newPhoto({"id":5755843,"src":"Snow_Leopard_04_thumb.jpg","galleries_id":326099,"server_id":32,"link":"photo_5755843.html","width":130,"caption":"Being a fabulous Snow Leopard is tiring you know!","height":195});
															thumbnails[5755845] = clik.newPhoto({"id":5755845,"src":"Amur_leopard_06_thumb.jpg","galleries_id":360541,"server_id":32,"link":"photo_5755845.html","width":130,"caption":"I can still see you......even when my brother is fighting me!","height":195});
															thumbnails[5755866] = clik.newPhoto({"id":5755866,"src":"Amur_tiger_03_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5755866.html","width":130,"caption":"I love this snow....even in B&W!","height":107});
															thumbnails[5756414] = clik.newPhoto({"id":5756414,"src":"Snow_Leopard_06_thumb.jpg","galleries_id":326099,"server_id":32,"link":"photo_5756414.html","width":130,"caption":"Having fun in the snow!","height":84});
															thumbnails[5756418] = clik.newPhoto({"id":5756418,"src":"Lion_05_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_5756418.html","width":130,"caption":"What is that falling from the sky?!","height":87});
															thumbnails[5756426] = clik.newPhoto({"id":5756426,"src":"hybrid_tiger_04_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5756426.html","width":130,"caption":"I can jump as well you know!","height":180});
															thumbnails[5756956] = clik.newPhoto({"id":5756956,"src":"sumatran_tiger_05_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5756956.html","width":130,"caption":"A penny for your thoughts.","height":112});
															thumbnails[5757016] = clik.newPhoto({"id":5757016,"src":"hybrid_tiger_05_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5757016.html","width":93,"caption":"Snow patrol!","height":130});
															thumbnails[5757033] = clik.newPhoto({"id":5757033,"src":"Lion_06_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_5757033.html","width":130,"caption":"The eye of the........ummm......lion!","height":98});
															thumbnails[5757044] = clik.newPhoto({"id":5757044,"src":"Cheetah_04_thumb.jpg","galleries_id":325794,"server_id":32,"link":"photo_5757044.html","width":130,"caption":"You still want to argue?","height":104});
															thumbnails[5757056] = clik.newPhoto({"id":5757056,"src":"North_Chinese_Leopard_03_thumb.jpg","galleries_id":325767,"server_id":32,"link":"photo_5757056.html","width":130,"caption":"I am coming to get you!","height":155});
															thumbnails[5757090] = clik.newPhoto({"id":5757090,"src":"Puma_05_thumb.jpg","galleries_id":325788,"server_id":32,"link":"photo_5757090.html","width":130,"caption":"I fly through the air with the greatest of ease","height":100});
															thumbnails[5757170] = clik.newPhoto({"id":5757170,"src":"sumatran_tiger_07_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_5757170.html","width":130,"caption":"When I was younger so much younger than today","height":82});
															thumbnails[5757193] = clik.newPhoto({"id":5757193,"src":"Snow_Leopard_07_thumb.jpg","galleries_id":326099,"server_id":32,"link":"photo_5757193.html","width":130,"caption":"I was just powdering my nose!","height":98});
															thumbnails[5757220] = clik.newPhoto({"id":5757220,"src":"Other_05_thumb.jpg","galleries_id":325792,"server_id":32,"link":"photo_5757220.html","width":130,"caption":"I like this.........yes its all white!","height":192});
															thumbnails[5757227] = clik.newPhoto({"id":5757227,"src":"clouded_leopard_03_thumb.jpg","galleries_id":325791,"server_id":32,"link":"photo_5757227.html","width":130,"caption":"I love being up high in the trees","height":191});
															thumbnails[5757299] = clik.newPhoto({"id":5757299,"src":"Amur_leopard_07_thumb.jpg","galleries_id":360541,"server_id":32,"link":"photo_5757299.html","width":130,"caption":"Spot on spots!!","height":86});
															thumbnails[5956085] = clik.newPhoto({"id":5956085,"src":"North_Chinese_Leopard_05_thumb.jpg","galleries_id":325767,"server_id":32,"link":"photo_5956085.html","width":130,"caption":"Don't come any closer - these teeth are sharp!","height":82});
															thumbnails[5956128] = clik.newPhoto({"id":5956128,"src":"Puma_06_thumb.jpg","galleries_id":325788,"server_id":32,"link":"photo_5956128.html","width":130,"caption":"I still look vicious even in black & white!","height":91});
															thumbnails[6363064] = clik.newPhoto({"id":6363064,"src":"Other_07_thumb.jpg","galleries_id":357757,"server_id":32,"link":"photo_6363064.html","width":130,"caption":"Pallas Cat Kitten - I may be small but these teeth are still sharp!","height":111});
															thumbnails[6372382] = clik.newPhoto({"id":6372382,"src":"Black_leopard_01_thumb.jpg","galleries_id":357751,"server_id":32,"link":"photo_6372382.html","width":130,"caption":"Black Leopard - You can see I like my new enclosure!","height":88});
															thumbnails[6372383] = clik.newPhoto({"id":6372383,"src":"clouded_leopard_04_thumb.jpg","galleries_id":325791,"server_id":32,"link":"photo_6372383.html","width":130,"caption":"Clouded Leopard - I am sitting here nicely for you.","height":89});
															thumbnails[6372394] = clik.newPhoto({"id":6372394,"src":"Cheetah_07_thumb.jpg","galleries_id":325794,"server_id":32,"link":"photo_6372394.html","width":130,"caption":"Cheetah - So you want to argue do you?!","height":177});
															thumbnails[6372429] = clik.newPhoto({"id":6372429,"src":"Puma_07_thumb.jpg","galleries_id":325788,"server_id":32,"link":"photo_6372429.html","width":130,"caption":"Puma - I believe I can fly........","height":195});
															thumbnails[6425087] = clik.newPhoto({"id":6425087,"src":"sumatran_tiger_10_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_6425087.html","width":130,"caption":"Asu smiling for the camera!","height":90});
															thumbnails[6464035] = clik.newPhoto({"id":6464035,"src":"Black_leopard_02_thumb.jpg","galleries_id":357751,"server_id":32,"link":"photo_6464035.html","width":130,"caption":"Black Leopard - a magical cat","height":184});
															thumbnails[6497066] = clik.newPhoto({"id":6497066,"src":"Black_leopard_03_thumb.jpg","galleries_id":357751,"server_id":32,"link":"photo_6497066.html","width":130,"caption":"Black Leopard - Peaking around the tree!","height":215});
															thumbnails[6497108] = clik.newPhoto({"id":6497108,"src":"Cheetah_08_thumb.jpg","galleries_id":325794,"server_id":32,"link":"photo_6497108.html","width":130,"caption":"Cheetah - Pleased to see you!!","height":86});
															thumbnails[6497183] = clik.newPhoto({"id":6497183,"src":"North_Chinese_Leopard_06_thumb.jpg","galleries_id":325767,"server_id":32,"link":"photo_6497183.html","width":130,"caption":"Chinese Leopard - I think that you should go..........right now!!","height":110});
															thumbnails[6497260] = clik.newPhoto({"id":6497260,"src":"Pallas_01_thumb.jpg","galleries_id":357757,"server_id":32,"link":"photo_6497260.html","width":130,"caption":"Pallas Cat Kitten - 7 weeks old and growing and exploring!","height":183});
															thumbnails[6574246] = clik.newPhoto({"id":6574246,"src":"clouded_leopard_08_thumb.jpg","galleries_id":325791,"server_id":32,"link":"photo_6574246.html","width":130,"caption":"Clouded Leopard - Fancy having a closer look at these teeth?!","height":104});
															thumbnails[6628493] = clik.newPhoto({"id":6628493,"src":"Black_leopard_06_thumb.jpg","galleries_id":357751,"server_id":32,"link":"photo_6628493.html","width":130,"caption":"Black Leopard - Khan moving through the undergrowth.","height":91});
															thumbnails[6628528] = clik.newPhoto({"id":6628528,"src":"Pallas_06_thumb.jpg","galleries_id":357757,"server_id":32,"link":"photo_6628528.html","width":130,"caption":"Pallas Cat - And now for my next trick!!","height":191});
															thumbnails[6815820] = clik.newPhoto({"id":6815820,"src":"Black_leopard_07_thumb.jpg","galleries_id":357751,"server_id":32,"link":"photo_6815820.html","width":130,"caption":"Black Leopard - Stalking in the trees","height":179});
															thumbnails[7043805] = clik.newPhoto({"id":7043805,"src":"Amur_leopard_10_thumb.jpg","galleries_id":360541,"server_id":32,"link":"photo_7043805.html","width":130,"caption":"Amur Leopard - Now this is my scary face!","height":87});
															thumbnails[7043822] = clik.newPhoto({"id":7043822,"src":"Pallas_12_thumb.jpg","galleries_id":357757,"server_id":32,"link":"photo_7043822.html","width":130,"caption":"Pallas Cat - 6 month old and all growed up!","height":170});
															thumbnails[7043827] = clik.newPhoto({"id":7043827,"src":"Lion_12_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_7043827.html","width":130,"caption":"Lion - Do I look good in the snow?","height":85});
															thumbnails[7243215] = clik.newPhoto({"id":7243215,"src":"Bengal_tiger_Padmini_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_7243215.html","width":130,"caption":"Bengal Tiger - Just splashing around!","height":105});
															thumbnails[7243237] = clik.newPhoto({"id":7243237,"src":"North_Chinese_Leopard_Tiari_thumb.jpg","galleries_id":325767,"server_id":32,"link":"photo_7243237.html","width":130,"caption":"Chinese Leopard - On the move","height":181});
															thumbnails[7243241] = clik.newPhoto({"id":7243241,"src":"sumatran_tiger_bawa_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_7243241.html","width":130,"caption":"Sumatran Tiger - Its snowing","height":80});
															thumbnails[7395127] = clik.newPhoto({"id":7395127,"src":"Serval_1_thumb.jpg","galleries_id":325792,"server_id":32,"link":"photo_7395127.html","width":130,"caption":"Serval - Malawi Jumping for joy!","height":240});
															thumbnails[7631205] = clik.newPhoto({"id":7631205,"src":"Pallas_13_thumb.jpg","galleries_id":357757,"server_id":32,"link":"photo_7631205.html","width":130,"caption":"Pallas Cats - Looking out in the snow","height":87});
															thumbnails[7631217] = clik.newPhoto({"id":7631217,"src":"Lion_15_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_7631217.html","width":130,"caption":"White Lion - Introducing Themba","height":93});
															thumbnails[7631222] = clik.newPhoto({"id":7631222,"src":"North_Chinese_Leopard_07_thumb.jpg","galleries_id":325767,"server_id":32,"link":"photo_7631222.html","width":130,"caption":"Chinese Leopard - still keeping an eye on me!","height":124});
															thumbnails[7631234] = clik.newPhoto({"id":7631234,"src":"white_tiger_03_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_7631234.html","width":130,"caption":"White Tiger - Narnia looking for that bird!","height":94});
															thumbnails[7644116] = clik.newPhoto({"id":7644116,"src":"Amur_leopard_11_thumb.jpg","galleries_id":360541,"server_id":32,"link":"photo_7644116.html","width":87,"caption":"Amur Leopard - Missed you by a Whisker!","height":130});
															thumbnails[7644120] = clik.newPhoto({"id":7644120,"src":"Amur_leopard_12_thumb.jpg","galleries_id":360541,"server_id":32,"link":"photo_7644120.html","width":130,"caption":"Amur Leopard - Sometimes I pretend to be scary!","height":86});
															thumbnails[7644178] = clik.newPhoto({"id":7644178,"src":"North_Chinese_Leopard_Atara_thumb.jpg","galleries_id":325767,"server_id":32,"link":"photo_7644178.html","width":130,"caption":"Chinese Leopard - Are you sure that you want to rub my belly?!!","height":95});
															thumbnails[7807784] = clik.newPhoto({"id":7807784,"src":"Rusty_Spotted_01_thumb.jpg","galleries_id":325792,"server_id":32,"link":"photo_7807784.html","width":104,"caption":"Rusty Spotted Cat - Small and cute!","height":130});
															thumbnails[7807805] = clik.newPhoto({"id":7807805,"src":"Rusty_Spotted_03_thumb.jpg","galleries_id":325792,"server_id":32,"link":"photo_7807805.html","width":92,"caption":"Rusty Spotted Cat","height":130});
															thumbnails[7807902] = clik.newPhoto({"id":7807902,"src":"sumatran_tiger_bawa1_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_7807902.html","width":86,"caption":"Sumatran Tiger - Who said that it's hard to \"sex\" a tiger?!","height":130});
															thumbnails[7945528] = clik.newPhoto({"id":7945528,"src":"clouded_leopard_Ben_01_thumb.jpg","galleries_id":325791,"server_id":32,"link":"photo_7945528.html","width":118,"caption":"Clouded Leopard - Staring into the dark","height":130});
															thumbnails[7945592] = clik.newPhoto({"id":7945592,"src":"Lion_Themba_02_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_7945592.html","width":130,"caption":"White Lion - Growing Up!","height":91});
															thumbnails[7945598] = clik.newPhoto({"id":7945598,"src":"sumatran_tiger_Nias_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_7945598.html","width":130,"caption":"Sumatran Tiger - Nias in the sun","height":99});
															thumbnails[8291178] = clik.newPhoto({"id":8291178,"src":"clouded_leopard_Ben_02_thumb.jpg","galleries_id":325791,"server_id":32,"link":"photo_8291178.html","width":93,"caption":"Clouded Leopard - Strolling through the long grass","height":130});
															thumbnails[8291190] = clik.newPhoto({"id":8291190,"src":"Fishing_Cat_01_thumb.jpg","galleries_id":325792,"server_id":32,"link":"photo_8291190.html","width":130,"caption":"Fishing Cat - I may be new here but don't come too close!","height":86});
															thumbnails[8291191] = clik.newPhoto({"id":8291191,"src":"Lion_Themba_03_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_8291191.html","width":130,"caption":"White Lion - Themba doing what lions do best, taking a rest!","height":79});
															thumbnails[8291195] = clik.newPhoto({"id":8291195,"src":"Lion_Themba_04_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_8291195.html","width":88,"caption":"White Lion - Moving at pace!","height":130});
															thumbnails[8553091] = clik.newPhoto({"id":8553091,"src":"Jaguar_Ares01_thumb.jpg","galleries_id":451976,"server_id":32,"link":"photo_8553091.html","width":70,"caption":"Jaguar - Yes I am big and impressive!","height":130});
															thumbnails[8553093] = clik.newPhoto({"id":8553093,"src":"Amur_tiger_06_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_8553093.html","width":130,"caption":"Tiger - Hurry up, its cold waiting out here!","height":91});
															thumbnails[8553097] = clik.newPhoto({"id":8553097,"src":"clouded_leopard_Ben_03_thumb.jpg","galleries_id":325791,"server_id":32,"link":"photo_8553097.html","width":128,"caption":"Clouded Leopard -  Sharp teeth? What sharp teeth?","height":130});
															thumbnails[8553098] = clik.newPhoto({"id":8553098,"src":"Other_13_thumb.jpg","galleries_id":325792,"server_id":32,"link":"photo_8553098.html","width":130,"caption":"Fishing Cat - Feisty one you are","height":103});
															thumbnails[8553104] = clik.newPhoto({"id":8553104,"src":"white_tiger_04_thumb.jpg","galleries_id":325768,"server_id":32,"link":"photo_8553104.html","width":130,"caption":"Old Blue Eyes!","height":99});
															thumbnails[8688931] = clik.newPhoto({"id":8688931,"src":"sumatran_tiger_cub_toba_Kubu01_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8688931.html","width":130,"caption":"Sumatran Tiger Cubs - Introducing Kubu and Toba","height":95});
															thumbnails[8688934] = clik.newPhoto({"id":8688934,"src":"sumatran_tiger_cub_toba_Kubu02_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8688934.html","width":130,"caption":"Sumatran Tiger Cubs - Playing with Mum!","height":95});
															thumbnails[8688936] = clik.newPhoto({"id":8688936,"src":"sumatran_tiger_cub_toba_Kubu03_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8688936.html","width":130,"caption":"Sumatran Tiger Cubs - Learning to stalk!","height":87});
															thumbnails[8688938] = clik.newPhoto({"id":8688938,"src":"sumatran_tiger_cub_toba_Kubu04_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8688938.html","width":130,"caption":"Sumatran Tiger Cubs - Pulling brother by the tail!","height":100});
															thumbnails[8855694] = clik.newPhoto({"id":8855694,"src":"Sumatran_Tiger_Kubu_Toba10_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8855694.html","width":130,"caption":"Sumatran Tiger Cub - Late evening sun","height":88});
															thumbnails[8855700] = clik.newPhoto({"id":8855700,"src":"Sumatran_Tiger_Kubu_Toba11_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8855700.html","width":130,"caption":"Sumatran Tiger Cub - Did someone call me?","height":106});
															thumbnails[8855701] = clik.newPhoto({"id":8855701,"src":"Sumatran_Tiger_Kubu_Toba13_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8855701.html","width":130,"caption":"Sumatran Tiger Cub - Hello Mum","height":91});
															thumbnails[8970283] = clik.newPhoto({"id":8970283,"src":"Jaguar_Ares01_AE1D216A-1EC9-D45B-1C1F1DB826DAF389_thumb.jpg","galleries_id":451976,"server_id":32,"link":"photo_8970283.html","width":130,"caption":"Jaguar - Alert Ares","height":79});
															thumbnails[8970313] = clik.newPhoto({"id":8970313,"src":"Jaguar_Ares02_thumb.jpg","galleries_id":451976,"server_id":32,"link":"photo_8970313.html","width":130,"caption":"Jaguar - Upside Down","height":101});
															thumbnails[8970314] = clik.newPhoto({"id":8970314,"src":"Puma_Victoria01_thumb.jpg","galleries_id":325788,"server_id":32,"link":"photo_8970314.html","width":91,"caption":"Puma - It's cold out here!","height":130});
															thumbnails[8970329] = clik.newPhoto({"id":8970329,"src":"White_Lion_Themba01_thumb.jpg","galleries_id":325787,"server_id":32,"link":"photo_8970329.html","width":84,"caption":"White Lion - Sunset Themba","height":130});
															thumbnails[8970333] = clik.newPhoto({"id":8970333,"src":"Sumatran_Tiger_Kubu_Toba14_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8970333.html","width":130,"caption":"Sumatran Tiger Cubs - It's so much fun here....","height":104});
															thumbnails[8970335] = clik.newPhoto({"id":8970335,"src":"Sumatran_Tiger_Kubu_Toba15_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8970335.html","width":130,"caption":"Sumatran Tiger Cubs - I like to keep an eye on you","height":85});
															thumbnails[8970364] = clik.newPhoto({"id":8970364,"src":"Sumatran_Tiger_Kubu_Toba16_thumb.jpg","galleries_id":458522,"server_id":32,"link":"photo_8970364.html","width":130,"caption":"Sumatran Tiger Cubs - Who? Us two? As if!","height":73});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[360541] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Amur Leopards","link":"gallery_360541.html","maxRecords":0.0,"photoIDs":[5754298.0,5755342.0,5755631.0,5755845.0,5757299.0,7043805.0,7644116.0,7644120.0],"skipIndex":0,"section_code":"gallery","featured_images":"7644120,7644116,7043805,5757299,5755845,5755631,5755342,5754298","id":360541,"singleSection":false});				  						galleries[357751] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black Leopards","link":"gallery_357751.html","maxRecords":0.0,"photoIDs":[6372382.0,6464035.0,6497066.0,6628493.0,6815820.0],"skipIndex":0,"section_code":"gallery","featured_images":"6815820,6628493,6497066,6464035,6372382","id":357751,"singleSection":false});				  						galleries[325794] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cheetahs","link":"gallery_325794.html","maxRecords":0.0,"photoIDs":[5752150.0,5755355.0,5757044.0,6372394.0,6497108.0],"skipIndex":0,"section_code":"gallery","featured_images":"6497108,6372394,5757044,5755355,5752150","id":325794,"singleSection":false});				  						galleries[325791] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Clouded Leopards","link":"gallery_325791.html","maxRecords":0.0,"photoIDs":[5752156.0,5757227.0,6372383.0,6574246.0,7945528.0,8291178.0,8553097.0],"skipIndex":0,"section_code":"gallery","featured_images":"8553097,8291178,7945528,6574246,6372383,5757227,5752156","id":325791,"singleSection":false});				  						galleries[451976] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jaguars","link":"gallery_451976.html","maxRecords":0.0,"photoIDs":[8553091.0,8970283.0,8970313.0],"skipIndex":0,"section_code":"gallery","featured_images":8553091.0,"id":451976,"singleSection":false});				  						galleries[325787] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lions","link":"gallery_325787.html","maxRecords":0.0,"photoIDs":[5755340.0,5755438.0,5756418.0,5757033.0,7043827.0,7631217.0,7945592.0,8291191.0,8291195.0,8970329.0],"skipIndex":0,"section_code":"gallery","featured_images":"8970329,8291195,8291191,7945592,7631217,7043827,5757033,5756418,5755438,5755340","id":325787,"singleSection":false});				  						galleries[325792] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Cats","link":"gallery_325792.html","maxRecords":0.0,"photoIDs":[5752172.0,5755836.0,5757220.0,7395127.0,7807784.0,7807805.0,8291190.0,8553098.0],"skipIndex":0,"section_code":"gallery","featured_images":8553098.0,"id":325792,"singleSection":false});				  						galleries[357757] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pallas Cats","link":"gallery_357757.html","maxRecords":0.0,"photoIDs":[6363064.0,6497260.0,6628528.0,7043822.0,7631205.0],"skipIndex":0,"section_code":"gallery","featured_images":"7631205,7043822,6628528,6497260,6363064","id":357757,"singleSection":false});				  						galleries[325788] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pumas","link":"gallery_325788.html","maxRecords":0.0,"photoIDs":[5752128.0,5757090.0,5956128.0,6372429.0,8970314.0],"skipIndex":0,"section_code":"gallery","featured_images":"8970314,6372429,5956128,5757090,5752128","id":325788,"singleSection":false});				  						galleries[326099] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Snow Leopards","link":"gallery_326099.html","maxRecords":0.0,"photoIDs":[5754208.0,5755841.0,5755843.0,5756414.0,5757193.0],"skipIndex":0,"section_code":"gallery","featured_images":"5757193,5756414,5755843,5755841,5754208","id":326099,"singleSection":false});				  						galleries[458522] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sumatran Tiger Cubs","link":"gallery_458522.html","maxRecords":0.0,"photoIDs":[8688931.0,8688934.0,8688936.0,8688938.0,8855694.0,8855700.0,8855701.0,8970333.0,8970335.0,8970364.0],"skipIndex":0,"section_code":"gallery","featured_images":"8970364,8970335,8970333,8855701,8855700,8855694,8688938,8688936,8688934,8688931","id":458522,"singleSection":false});				  						galleries[325767] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"North Chinese Leopards","link":"gallery_325767.html","maxRecords":0.0,"photoIDs":[5757056.0,5956085.0,6497183.0,7243237.0,7631222.0,7644178.0],"skipIndex":0,"section_code":"gallery","featured_images":"7644178,7631222,7243237,6497183,5956085,5757056","id":325767,"singleSection":false});				  						galleries[325768] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tigers","link":"gallery_325768.html","maxRecords":0.0,"photoIDs":[5752143.0,5752196.0,5754239.0,5755751.0,5755866.0,5756426.0,5756956.0,5757016.0,5757170.0,6425087.0,7243215.0,7243241.0,7631234.0,7807902.0,7945598.0,8553093.0,8553104.0],"skipIndex":0,"section_code":"gallery","featured_images":"8553104,8553093","id":325768,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[241341] = '8970283,8553097,8553093,8553091,8291195,8291190,8291178,7807902,7807805,7644178,7644116,7631234,7631222,7631205,7243241,7243215,7043827,7043805,6815820,6497183,6464035,6425087,6372429,6372394,5757170,5757090,5757016,5756956,5756418,5756414,5755836,5755751,5752196,5752128';
imageSets[1] = '8970364,8970335,8970333,8970329,8970314,8970313,8970283,8855701,8855700,8855694,8688938,8688936,8688934,8688931,8553104,8553098,8553097,8553093,8553091,8291195,8291190,7807902,7807784,7644178,7644120,7644116,7631234,7631222,7631217,7631205,7395127,7243241,7243237,7243215,7043827,7043822,7043805,6815820,6628528,6628493,6574246,6497371,6497260,6497183,6497108,6497066,6464035,6425087,6372429,6372394,6372383,6372382,6363064,5956128,5956085,5757299,5757227,5757220,5757193,5757170,5757090,5757056,5757044,5757033,5757016,5756956,5756426,5756418,5756414,5755866,5755845,5755843,5755841,5755836,5755751,5755631,5755438,5755355,5755342,5755340,5754298,5754239,5754208,5752196,5752172,5752156,5752150,5752143,5752128';
imageSets[2] = '8553104,8553098,8553093,8553091';
imageSets[3] = '7644178,7644120,7644116,7631234,7631222,7631217,7631205,7395127,7243241,7243237,7243215,7043827,7043822,7043805,6815820,6648013,6628528,6628493,6574246,6497371,6497260,6497183,6497108,6497066,6464035,6425087,6377676,6372429,6372394,6372383,6372382,6363093,6363064,5956128,5956085,5757299,5757227,5757220,5757193,5757170,5757090,5757056,5757044,5757033,5757016,5756956,5756426,5756418,5756414,5755866,5755845,5755843,5755841,5755836,5755751,5755631,5755438,5755355,5755342,5755340,5754298,5754239,5754208,5752196,5752172,5752156,5752150,5752143,5752128';
imageSets[241321] = '8970283,8291195,8291190,7807902,7807805,7631234';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/bigcatphotography/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/bigcatphotography/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 = 'Big Cat 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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="bigcatphotography@googlemail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="bigcatphotography@googlemail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

