window.thumbnails = {};
															thumbnails[2115917] = clik.newPhoto({"id":2115917,"src":"another2_thumb.JPG","galleries_id":314716,"server_id":32,"link":"photo_2115917.html","width":130,"caption":"","height":157});
															thumbnails[2115921] = clik.newPhoto({"id":2115921,"src":"another3_thumb.JPG","galleries_id":314716,"server_id":32,"link":"photo_2115921.html","width":130,"caption":"","height":146});
															thumbnails[2115924] = clik.newPhoto({"id":2115924,"src":"another4_thumb.JPG","galleries_id":314716,"server_id":32,"link":"photo_2115924.html","width":130,"caption":"","height":160});
															thumbnails[2136167] = clik.newPhoto({"id":2136167,"src":"prescious things enhanced_thumb.JPG","galleries_id":144622,"server_id":32,"link":"photo_2136167.html","width":130,"caption":"click to enlarge","height":225});
															thumbnails[5552756] = clik.newPhoto({"id":5552756,"src":"TUTTE_NEWALL_mary_mary21x18cm_2009s_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_5552756.html","width":130,"caption":"Mary, Mary...<br>\r\n","height":168});
															thumbnails[5552762] = clik.newPhoto({"id":5552762,"src":"TUTTE_NEWALL_Peeping_tom_24x20cm_2009s_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_5552762.html","width":130,"caption":"Peeping Tom<br>\r\n","height":146});
															thumbnails[5552764] = clik.newPhoto({"id":5552764,"src":"TUTTE_NEWALL_Flight_15x12cm20103picsm_thumb.jpg","galleries_id":230326,"server_id":32,"link":"photo_5552764.html","width":130,"caption":"Flight<br>\r\n","height":84});
															thumbnails[5552993] = clik.newPhoto({"id":5552993,"src":"TUTTE_NEWALL_Totem_III_2009_19_x_125cms_thumb.jpg","galleries_id":230326,"server_id":32,"link":"photo_5552993.html","width":130,"caption":"Totem III","height":118});
															thumbnails[6361279] = clik.newPhoto({"id":6361279,"src":"TUTTE_NEWALL_I_love_you_so_very_much_my_dear_sideviews_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_6361279.html","width":130,"caption":"I Love you so very much my dear","height":107});
															thumbnails[6361304] = clik.newPhoto({"id":6361304,"src":"TUTTE_NEWALL_My_darling_let_me_hold_you_in_my_arms_and_legs_27x31cm_2010_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_6361304.html","width":130,"caption":"My darling let me hold you in my arms and legs","height":148});
															thumbnails[6361308] = clik.newPhoto({"id":6361308,"src":"TUTTE_NEWALL_The_Loverss1_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_6361308.html","width":130,"caption":"The Lovers","height":74});
															thumbnails[7141892] = clik.newPhoto({"id":7141892,"src":"TrophyIIsideviewm1_thumb.jpg","galleries_id":230326,"server_id":32,"link":"photo_7141892.html","width":130,"caption":"Trophy II","height":119});
															thumbnails[7141913] = clik.newPhoto({"id":7141913,"src":"Tutte_Newall_Her_foldssl1_thumb.jpg","galleries_id":230326,"server_id":32,"link":"photo_7141913.html","width":130,"caption":"Her Folds","height":163});
															thumbnails[7141921] = clik.newPhoto({"id":7141921,"src":"Discarded_Trophys1_thumb.jpg","galleries_id":230326,"server_id":32,"link":"photo_7141921.html","width":130,"caption":"Discarded Trophy","height":169});
															thumbnails[2115912] = clik.newPhoto({"id":2115912,"src":"sweet things enhanced_thumb.JPG","galleries_id":141919,"server_id":32,"link":"photo_2115912.html","width":130,"caption":"Sweet things","height":151});
															thumbnails[2136210] = clik.newPhoto({"id":2136210,"src":"jungle cat amended1_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_2136210.html","width":130,"caption":"Utopia:Jungle cat","height":118});
															thumbnails[3776299] = clik.newPhoto({"id":3776299,"src":"at_rest_on_my_mothers_breast_m_thumb.JPG","galleries_id":230326,"server_id":32,"link":"photo_3776299.html","width":130,"caption":"At rest on my mothers breast","height":95});
															thumbnails[5552769] = clik.newPhoto({"id":5552769,"src":"website_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_5552769.html","width":130,"caption":"The Invasion of Wonderland<br>\r\n","height":85});
															thumbnails[2136146] = clik.newPhoto({"id":2136146,"src":"come to me enhanced_thumb.JPG","galleries_id":141919,"server_id":32,"link":"photo_2136146.html","width":130,"caption":"Come to me<br>\r\n<br>\r\n","height":212});
															thumbnails[2136160] = clik.newPhoto({"id":2136160,"src":"bunny enhanced_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_2136160.html","width":130,"caption":"Utopia:Mawkish inhabitant","height":141});
															thumbnails[3993022] = clik.newPhoto({"id":3993022,"src":"my_skin_s__thumb.JPG","galleries_id":230326,"server_id":32,"link":"photo_3993022.html","width":130,"caption":"My Skin","height":125});
															thumbnails[5552891] = clik.newPhoto({"id":5552891,"src":"Fur_ms_thumb.jpg","galleries_id":230326,"server_id":32,"link":"photo_5552891.html","width":130,"caption":"Fur<br>\r\n","height":102});
															thumbnails[5553021] = clik.newPhoto({"id":5553021,"src":"vanishing_points_thumb.JPG","galleries_id":314703,"server_id":32,"link":"photo_5553021.html","width":130,"caption":"Vanishing Point","height":243});
															thumbnails[2136148] = clik.newPhoto({"id":2136148,"src":"flora enhanced_thumb.JPG","galleries_id":141919,"server_id":32,"link":"photo_2136148.html","width":130,"caption":"Flora","height":189});
															thumbnails[2136164] = clik.newPhoto({"id":2136164,"src":"woodlander enhanced_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_2136164.html","width":130,"caption":"Utopia:Woodlander","height":194});
															thumbnails[3993028] = clik.newPhoto({"id":3993028,"src":"my_bones_m_thumb.JPG","galleries_id":230326,"server_id":32,"link":"photo_3993028.html","width":130,"caption":"My Bones","height":68});
															thumbnails[5553032] = clik.newPhoto({"id":5553032,"src":"TUTTE_NEWALL_vanishing_point_img_detail_170x69cm_2009_thumb.JPG","galleries_id":314703,"server_id":32,"link":"photo_5553032.html","width":130,"caption":"Vanishing point [detail]","height":118});
															thumbnails[2136150] = clik.newPhoto({"id":2136150,"src":"patternation enhanced_thumb.JPG","galleries_id":141919,"server_id":32,"link":"photo_2136150.html","width":130,"caption":"Patternation","height":138});
															thumbnails[2184309] = clik.newPhoto({"id":2184309,"src":"Utopia-Silhouettes Interruption 14x17cm_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_2184309.html","width":130,"caption":"Utopia:Silhouettes interruption","height":144});
															thumbnails[3993095] = clik.newPhoto({"id":3993095,"src":"hidden_limbs_s_thumb.JPG","galleries_id":230326,"server_id":32,"link":"photo_3993095.html","width":130,"caption":"Hidden Limbs","height":107});
															thumbnails[5552768] = clik.newPhoto({"id":5552768,"src":"TUTTE_NEWALL_Brittle_Bones_2009_37x52cms_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_5552768.html","width":130,"caption":"Brittle Bones<br>\r\n","height":96});
															thumbnails[2136149] = clik.newPhoto({"id":2136149,"src":"gilister enhanced_thumb.JPG","galleries_id":141919,"server_id":32,"link":"photo_2136149.html","width":130,"caption":"Glister","height":158});
															thumbnails[2359770] = clik.newPhoto({"id":2359770,"src":"Utopia-Disrupted Effigy  14_thumb.5x17cm.JPG","galleries_id":141979,"server_id":32,"link":"photo_2359770.html","width":130,"caption":"Disrupted effigy","height":140});
															thumbnails[3993017] = clik.newPhoto({"id":3993017,"src":"Totem__small_multi_angled_s_thumb.jpg","galleries_id":230326,"server_id":32,"link":"photo_3993017.html","width":130,"caption":"Totem I","height":122});
															thumbnails[5552771] = clik.newPhoto({"id":5552771,"src":"TUTTE_NEWALL_An_archangels_descent_2009_18x13cm_s_thumb.JPG","galleries_id":314703,"server_id":32,"link":"photo_5552771.html","width":130,"caption":"An Archangels descent","height":182});
															thumbnails[2136151] = clik.newPhoto({"id":2136151,"src":"trifle enhanced_thumb.JPG","galleries_id":141919,"server_id":32,"link":"photo_2136151.html","width":130,"caption":"Trifle","height":93});
															thumbnails[3764728] = clik.newPhoto({"id":3764728,"src":"Utopia-_Tobys_mirages1_thumb.jpg","galleries_id":141979,"server_id":32,"link":"photo_3764728.html","width":130,"caption":"Utopia: Toby's Mirage","height":152});
															thumbnails[5552776] = clik.newPhoto({"id":5552776,"src":"TUTTE_NEWALL_Dance_of_the_copulating_beetle_2009_18x18cm__thumb.JPG","galleries_id":314703,"server_id":32,"link":"photo_5552776.html","width":130,"caption":"Dance of the copulating beetle<br>\r\n","height":130});
															thumbnails[2136145] = clik.newPhoto({"id":2136145,"src":"seet things 2 enhanced1_thumb.JPG","galleries_id":141919,"server_id":32,"link":"photo_2136145.html","width":130,"caption":"Sweet things #2","height":213});
															thumbnails[2359774] = clik.newPhoto({"id":2359774,"src":"Eden's Vitrine-A fictional truth 21x18 cm_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_2359774.html","width":130,"caption":"Eden's Vitrine: A fictional Truth","height":114});
															thumbnails[5552774] = clik.newPhoto({"id":5552774,"src":"TUTTE_NEWALL_Usurper_2009_20x10cms_thumb.JPG","galleries_id":314703,"server_id":32,"link":"photo_5552774.html","width":130,"caption":"Usurper<br>\r\n","height":230});
															thumbnails[3431107] = clik.newPhoto({"id":3431107,"src":"TUTTE_NEWALL_in_the_forest_of_the_night_27x18cm_2008web_thumb.jpg","galleries_id":141979,"server_id":32,"link":"photo_3431107.html","width":130,"caption":"In the forest of the night<br>\r\n<br>\r\n","height":92});
															thumbnails[5552747] = clik.newPhoto({"id":5552747,"src":"The_invaderm_thumb.JPG","galleries_id":314703,"server_id":32,"link":"photo_5552747.html","width":130,"caption":"The Invader<br>\r\n","height":257});
															thumbnails[2184317] = clik.newPhoto({"id":2184317,"src":"TUTTE_NEWALL_Velvet_Moss-a_whiskered_paradise_89x55cm_2008web_thumb.jpg","galleries_id":141979,"server_id":32,"link":"photo_2184317.html","width":130,"caption":"Velvet<br>\r\nMoss","height":81});
															thumbnails[6361275] = clik.newPhoto({"id":6361275,"src":"TUTTE_NEWALL_exodus_m2010_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_6361275.html","width":130,"caption":"Exodus","height":176});
															thumbnails[2222371] = clik.newPhoto({"id":2222371,"src":"f mother edit_thumb.jpg","galleries_id":314716,"server_id":32,"link":"photo_2222371.html","width":130,"caption":"click to enlarge","height":99});
															thumbnails[2359756] = clik.newPhoto({"id":2359756,"src":"TUTTE_NEWALL_Evocation_of_an_Allegorym_89x55cm_2008_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_2359756.html","width":130,"caption":"Evocation of an Allegory","height":82});
															thumbnails[6361324] = clik.newPhoto({"id":6361324,"src":"TUTTE_NEWALL_Relics_of_our_past_78x56cmm20101_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_6361324.html","width":130,"caption":"Relics of our Past","height":95});
															thumbnails[2359763] = clik.newPhoto({"id":2359763,"src":"Luminous Illusion  89x55cm_thumb.JPG","galleries_id":141979,"server_id":32,"link":"photo_2359763.html","width":130,"caption":"Luminous Illusion","height":82});
															thumbnails[6375471] = clik.newPhoto({"id":6375471,"src":"TUTTE_NEWALL_Relics_of_our_past_detail_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_6375471.html","width":130,"caption":"Relics of our past (detail)","height":97});
															thumbnails[3431201] = clik.newPhoto({"id":3431201,"src":"TUTTE_NEWALL_zephyr_89x55cmweb_thumb.jpg","galleries_id":141979,"server_id":32,"link":"photo_3431201.html","width":130,"caption":"Zephyr","height":80});
															thumbnails[6361318] = clik.newPhoto({"id":6361318,"src":"TUTTE_NEWALL_The_silent_captive_businesscard_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_6361318.html","width":130,"caption":"The Silent Captive","height":104});
															thumbnails[6361331] = clik.newPhoto({"id":6361331,"src":"ppwebsite_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_6361331.html","width":130,"caption":"Palm Paradise","height":104});
															thumbnails[6377431] = clik.newPhoto({"id":6377431,"src":"incandescent_minutiae_mweb_thumb.jpg","galleries_id":141979,"server_id":32,"link":"photo_6377431.html","width":130,"caption":"Incandescent Minutiae","height":155});
															thumbnails[7139124] = clik.newPhoto({"id":7139124,"src":"The_foreigners_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_7139124.html","width":130,"caption":"The Foreigner","height":106});
															thumbnails[7139128] = clik.newPhoto({"id":7139128,"src":"The_foreigner_detail_thumb.jpg","galleries_id":314703,"server_id":32,"link":"photo_7139128.html","width":130,"caption":"The foreigner (detail)","height":87});
															thumbnails[3757704] = clik.newPhoto({"id":3757704,"src":"Utopia-_Tobys_mirages_thumb.jpg","galleries_id":229272,"server_id":32,"link":"photo_3757704.html","width":130,"caption":"Click to enter","height":152});
															thumbnails[7139049] = clik.newPhoto({"id":7139049,"src":"TUTTE_NEWALL_The_silent_captive_31_x_26_cm_2009web_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7139049.html","width":130,"caption":"The Silent Captive","height":104});
															thumbnails[3757729] = clik.newPhoto({"id":3757729,"src":"Mirage_skatchs_thumb.jpg","galleries_id":229272,"server_id":32,"link":"photo_3757729.html","width":130,"caption":"","height":156});
															thumbnails[7139054] = clik.newPhoto({"id":7139054,"src":"ppwebsite_A18E3DF9-1E4F-37DC-71A4F57CF0FD8FFC_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7139054.html","width":130,"caption":"Palm Paradise","height":104});
															thumbnails[8607119] = clik.newPhoto({"id":8607119,"src":"balance_payment_3_thumb.jpg","galleries_id":229272,"server_id":35,"link":"photo_8607119.html","width":130,"caption":"Balance of payment for commission","height":98});
															thumbnails[7139133] = clik.newPhoto({"id":7139133,"src":"TUTTE_NEWALL_The_Loverss_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7139133.html","width":130,"caption":"The Lovers","height":74});
															thumbnails[7139143] = clik.newPhoto({"id":7139143,"src":"TUTTE_NEWALL_My_darling_let_me_hold_you_in_my_arms_and_legs_27x31cm_2010s_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7139143.html","width":130,"caption":"My Darling, let me hold  you in my arms and legs","height":148});
															thumbnails[7139162] = clik.newPhoto({"id":7139162,"src":"TUTTE_NEWALL_The_invader12x28cm_2010s_thumb.JPG","galleries_id":385905,"server_id":32,"link":"photo_7139162.html","width":130,"caption":"The Invader","height":258});
															thumbnails[7139175] = clik.newPhoto({"id":7139175,"src":"TUTTE_NEWALL_vanishing_point_170x69cm_2009ms_thumb.JPG","galleries_id":385905,"server_id":32,"link":"photo_7139175.html","width":130,"caption":"Vanishing Point","height":243});
															thumbnails[7139183] = clik.newPhoto({"id":7139183,"src":"at_rest_on_my_mothers_breast_s_thumb.JPG","galleries_id":385905,"server_id":32,"link":"photo_7139183.html","width":130,"caption":"At rest on my mothers breast","height":95});
															thumbnails[7139189] = clik.newPhoto({"id":7139189,"src":"TUTTE_NEWALL_Fur_2009_12.5x17cm__thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7139189.html","width":130,"caption":"Fur","height":102});
															thumbnails[7139203] = clik.newPhoto({"id":7139203,"src":"TUTTE_NEWALL_my_skin_2009_12x12cm_thumb.JPG","galleries_id":385905,"server_id":32,"link":"photo_7139203.html","width":130,"caption":"My Skin","height":125});
															thumbnails[7139206] = clik.newPhoto({"id":7139206,"src":"TUTTE_NEWALL_my_bones_2009_7x14cm__thumb.JPG","galleries_id":385905,"server_id":32,"link":"photo_7139206.html","width":130,"caption":"My Bones","height":68});
															thumbnails[7139209] = clik.newPhoto({"id":7139209,"src":"TUTTE_NEWALL_hidden_limbs_10x8cm_2009_s_thumb.JPG","galleries_id":385905,"server_id":32,"link":"photo_7139209.html","width":130,"caption":"Hidden Limbs","height":107});
															thumbnails[7139214] = clik.newPhoto({"id":7139214,"src":"Discarded_Trophys_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7139214.html","width":130,"caption":"Discarded Trophy","height":169});
															thumbnails[7139222] = clik.newPhoto({"id":7139222,"src":"Flight3pics_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7139222.html","width":130,"caption":"Flight","height":84});
															thumbnails[7139227] = clik.newPhoto({"id":7139227,"src":"TrophyIIsideviewm_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7139227.html","width":130,"caption":"Trophy II","height":119});
															thumbnails[7141329] = clik.newPhoto({"id":7141329,"src":"Tutte_Newall_Her_foldssl_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7141329.html","width":130,"caption":"Her Folds","height":163});
															thumbnails[7141407] = clik.newPhoto({"id":7141407,"src":"TUTTE_NEWALL_zephyr_89x55cmweb_A33F5534-1E4F-37DC-7198C643FA2481FA_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7141407.html","width":130,"caption":"Zephyr","height":80});
															thumbnails[7177797] = clik.newPhoto({"id":7177797,"src":"incandescent_minutiae_mweb_D015C868-1EC9-D45B-1C32217D5B986A82_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7177797.html","width":130,"caption":"Incandescent Minutiae","height":155});
															thumbnails[7177805] = clik.newPhoto({"id":7177805,"src":"TUTTE_NEWALL_Velvet_Moss-a_whiskered_paradise_89x55cm_2008web_D02034E2-1EC9-D45B-1C9D19358DFD1BA2_thumb.jpg","galleries_id":385905,"server_id":32,"link":"photo_7177805.html","width":130,"caption":"Velvet Moss: A whiskered paradise","height":81});
															thumbnails[7177815] = clik.newPhoto({"id":7177815,"src":"TUTTE_NEWALL_mawkish_inhabitantm_17x18.5cm_2008_thumb.JPG","galleries_id":385905,"server_id":32,"link":"photo_7177815.html","width":130,"caption":"Mawkish Inhabitant","height":141});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[385905] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Available works","link":"section458888_385905.html","maxRecords":0.0,"photoIDs":[7139049.0,7139054.0,7139133.0,7139143.0,7139162.0,7139175.0,7139183.0,7139189.0,7139203.0,7139206.0,7139209.0,7139214.0,7139222.0,7139227.0,7141329.0,7141407.0,7177797.0,7177805.0,7177815.0],"skipIndex":0,"section_code":"section458888","featured_images":7139049.0,"id":385905,"singleSection":false});				  						galleries[141919] = clik.newGallery({"parentGallery":146368,"usePopups":false,"title":"Desired Objects","link":"gallery_141919.html","maxRecords":0.0,"photoIDs":[2115912.0,2136146.0,2136148.0,2136150.0,2136149.0,2136151.0,2136145.0],"skipIndex":0,"section_code":"gallery","featured_images":2136149.0,"id":141919,"singleSection":false});				  						galleries[230326] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fur","link":"gallery_230326.html","maxRecords":0.0,"photoIDs":[5552764.0,5552993.0,7141892.0,7141913.0,7141921.0,3776299.0,3993022.0,5552891.0,3993028.0,3993095.0,3993017.0],"skipIndex":0,"section_code":"gallery","featured_images":3776299.0,"id":230326,"singleSection":false});				  						galleries[314703] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dystopia","link":"gallery_314703.html","maxRecords":0.0,"photoIDs":[6361279.0,6361304.0,6361308.0,5552769.0,5553021.0,5553032.0,5552768.0,5552771.0,5552776.0,5552774.0,5552747.0,6361275.0,6361324.0,6375471.0,6361318.0,6361331.0,7139124.0,7139128.0],"skipIndex":0,"section_code":"gallery","featured_images":5552771.0,"id":314703,"singleSection":false});				  						galleries[144622] = clik.newGallery({"parentGallery":146368,"usePopups":false,"title":"Precious things","link":"gallery_144622.html","maxRecords":0.0,"photoIDs":[2136167.0],"skipIndex":0,"section_code":"gallery","featured_images":2136167.0,"id":144622,"singleSection":false});				  						galleries[141979] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Utopia","link":"gallery_141979.html","maxRecords":0.0,"photoIDs":[5552756.0,5552762.0,2136210.0,2136160.0,2136164.0,2184309.0,2359770.0,3764728.0,2359774.0,3431107.0,2184317.0,2359756.0,2359763.0,3431201.0,6377431.0],"skipIndex":0,"section_code":"gallery","featured_images":2136160.0,"id":141979,"singleSection":false});				  						galleries[314716] = clik.newGallery({"parentGallery":146368,"usePopups":false,"title":"Works on Paper","link":"gallery_314716.html","maxRecords":0.0,"photoIDs":[2115917.0,2115921.0,2115924.0,2222371.0],"skipIndex":0,"section_code":"gallery","featured_images":2115917.0,"id":314716,"singleSection":false});				  						galleries[146368] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Archive","link":"gallery_146368.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"2136167,2136149,2115917","id":146368,"singleSection":false});				  						galleries[229272] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commissions","link":"section458888_229272.html","maxRecords":0.0,"photoIDs":[3757704.0,3757729.0,8607119.0],"skipIndex":0,"section_code":"section458888","featured_images":3757704.0,"id":229272,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6375471';
imageSets[2] = '2136167,2115917,7139049,3776299,3757704,2136160,5552771,2136149';
imageSets[3] = '8607119,7177815,7177805,7177797,7141921,7141913,7141892,7141407,7141329,7139227,7139222,7139214,7139209,7139206,7139203,7139189,7139183,7139175,7139162,7139143,7139133,7139128,7139124,7139054,7139049,6377431,6375471,6361331,6361324,6361318,6361308,6361304,6361279,6361275,5553032,5553021,5552993,5552891,5552776,5552774,5552771,5552769,5552768,5552764,5552762,5552756,5552747,3993095,3993028,3993022';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Tuttenewall/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Tuttenewall/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 = 'TUTTE NEWALL: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="tuttenewall@hotmail.co.uk">';
					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="tuttenewall@hotmail.co.uk">';
				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;
	}
}

			

