window.thumbnails = {};
															thumbnails[600980] = clik.newPhoto({"id":600980,"src":"karren in studio013_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Karren in her studio, Patcham, Brighton.","height":128});
															thumbnails[2007071] = clik.newPhoto({"id":2007071,"src":"Zoe Urben (model) Karren Urben (artist) Bryony Orsborn (model) 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Zoe Urben (model), Karren Urben & Bryony Orsborn (model) Photograph credit 'Art at Five'","height":97});
															thumbnails[3685885] = clik.newPhoto({"id":3685885,"src":"DSC04675_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"'Teatime' Karren Urben DEMO; 3pm Sunday 3rd May ;Portrait in Oil . Sunday 10th May,3pm Portrait in Pastel. Using a model Karren will be demonstrating how she works.","height":97});
															thumbnails[5692515] = clik.newPhoto({"id":5692515,"src":"may_2009_open_house013_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Karren Urben giving a Demonstration of  Portrait Painting in Pastel. ('09)","height":98});
															thumbnails[5701712] = clik.newPhoto({"id":5701712,"src":"venice_for_flyer0151_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Grand Canal, Venice KARREN URBEN Oil on canvas","height":129});
															thumbnails[5701726] = clik.newPhoto({"id":5701726,"src":"venice_for_flyer001_9A40F86D-1D09-001F-99D150BA7BFBA068_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Quiet waters, Venice KARREN URBEN oil on canvas","height":188});
															thumbnails[290880] = clik.newPhoto({"id":290880,"src":"DSC005691_thumb.JPG","galleries_id":78015,"server_id":1,"link":"photo_290880.html","width":130,"caption":"'In Bloom'","height":173});
															thumbnails[290882] = clik.newPhoto({"id":290882,"src":"DSC00572_thumb.JPG","galleries_id":445181,"server_id":1,"link":"photo_290882.html","width":130,"caption":"'Doolin cliffs;Co.Clare'","height":103});
															thumbnails[411643] = clik.newPhoto({"id":411643,"src":"website imagesno1004_thumb.jpg","galleries_id":445181,"server_id":1,"link":"photo_411643.html","width":130,"caption":"'Early morning at Killarney Lakes'SOLD","height":49});
															thumbnails[411650] = clik.newPhoto({"id":411650,"src":"website imagesno1005_thumb.jpg","galleries_id":65456,"server_id":1,"link":"photo_411650.html","width":130,"caption":"Zoe","height":148});
															thumbnails[411674] = clik.newPhoto({"id":411674,"src":"website imagesno1018_thumb.jpg","galleries_id":78015,"server_id":1,"link":"photo_411674.html","width":130,"caption":"'Reflections'","height":166});
															thumbnails[717858] = clik.newPhoto({"id":717858,"src":"web new new011_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_717858.html","width":130,"caption":"Ashley.","height":175});
															thumbnails[717859] = clik.newPhoto({"id":717859,"src":"web new new009_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_717859.html","width":130,"caption":"Ed Caporale","height":176});
															thumbnails[717863] = clik.newPhoto({"id":717863,"src":"web new new008_thumb.jpg","galleries_id":78015,"server_id":1,"link":"photo_717863.html","width":130,"caption":"Mother & Child","height":128});
															thumbnails[717866] = clik.newPhoto({"id":717866,"src":"web new new001_thumb.jpg","galleries_id":78015,"server_id":1,"link":"photo_717866.html","width":130,"caption":"'Unconditional'","height":171});
															thumbnails[731984] = clik.newPhoto({"id":731984,"src":"EubankWeb_thumb.JPG","galleries_id":211102,"server_id":1,"link":"photo_731984.html","width":130,"caption":"'Beach Lover'","height":95});
															thumbnails[856223] = clik.newPhoto({"id":856223,"src":"pastel bryony in gaultier dress009_thumb.jpg","galleries_id":65456,"server_id":1,"link":"photo_856223.html","width":130,"caption":"'Girl in the Gaultier dress'<br>\r\nSOLD","height":102});
															thumbnails[889959] = clik.newPhoto({"id":889959,"src":"easter and harry015_thumb.jpg","galleries_id":65456,"server_id":1,"link":"photo_889959.html","width":130,"caption":"'Harry'<br>\r\nSOLD","height":106});
															thumbnails[915536] = clik.newPhoto({"id":915536,"src":"pastel s of kate0111_thumb.jpg","galleries_id":65456,"server_id":1,"link":"photo_915536.html","width":130,"caption":"Untitled<br>\r\nSOLD","height":170});
															thumbnails[1382938] = clik.newPhoto({"id":1382938,"src":"DSC02726_thumb.JPG","galleries_id":65456,"server_id":1,"link":"photo_1382938.html","width":130,"caption":"'Reflection'","height":101});
															thumbnails[1434675] = clik.newPhoto({"id":1434675,"src":"drag artistes best019_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_1434675.html","width":130,"caption":"Dave LynnCabaret\/ Drag Artiste\/ Actor","height":74});
															thumbnails[1434685] = clik.newPhoto({"id":1434685,"src":"drag artistes best006_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_1434685.html","width":130,"caption":"'David Raven to Maisie' SOLD","height":102});
															thumbnails[1731381] = clik.newPhoto({"id":1731381,"src":"pastel painting 'ANGEL'006_thumb.jpg","galleries_id":65456,"server_id":1,"link":"photo_1731381.html","width":130,"caption":"'Angel'","height":171});
															thumbnails[2037986] = clik.newPhoto({"id":2037986,"src":"wish upon a star oil008_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_2037986.html","width":130,"caption":"'Wish upon a star'","height":180});
															thumbnails[2115635] = clik.newPhoto({"id":2115635,"src":"bb 4 & 5007_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_2115635.html","width":130,"caption":"'Morning' Oil on canvas","height":177});
															thumbnails[2115652] = clik.newPhoto({"id":2115652,"src":"mayor completed0372_thumb.jpg","galleries_id":195254,"server_id":1,"link":"photo_2115652.html","width":130,"caption":"'The Right Worshipful Mayor of the City of Brighton & Hove 2007\/08; Cllr Carol Ann Theobald'. pastel painting","height":194});
															thumbnails[2115673] = clik.newPhoto({"id":2115673,"src":"corset and bb30111_thumb.jpg","galleries_id":65456,"server_id":1,"link":"photo_2115673.html","width":130,"caption":"'Seduction' ","height":200});
															thumbnails[2680494] = clik.newPhoto({"id":2680494,"src":"faeries020_thumb.jpg","galleries_id":159390,"server_id":1,"link":"photo_2680494.html","width":130,"caption":" Faeries at the bottom of the garden","height":125});
															thumbnails[2680496] = clik.newPhoto({"id":2680496,"src":"faeries021_thumb.jpg","galleries_id":159390,"server_id":1,"link":"photo_2680496.html","width":130,"caption":"'Oh ! '","height":129});
															thumbnails[2680690] = clik.newPhoto({"id":2680690,"src":"faeries033_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_2680690.html","width":130,"caption":"Zoe 2008","height":133});
															thumbnails[2726090] = clik.newPhoto({"id":2726090,"src":"urben-faeries updated041_thumb.jpg","galleries_id":159390,"server_id":1,"link":"photo_2726090.html","width":130,"caption":"Ssh","height":175});
															thumbnails[2726241] = clik.newPhoto({"id":2726241,"src":"urben-faeries updated0151_thumb.jpg","galleries_id":159390,"server_id":1,"link":"photo_2726241.html","width":130,"caption":"I must tell Tom","height":174});
															thumbnails[3464023] = clik.newPhoto({"id":3464023,"src":"love letters 2009_thumb.JPG","galleries_id":211102,"server_id":1,"link":"photo_3464023.html","width":130,"caption":" S.W.A.L.K","height":176});
															thumbnails[4454469] = clik.newPhoto({"id":4454469,"src":"the_bride027_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_4454469.html","width":130,"caption":"The Bride SOLD","height":166});
															thumbnails[4486657] = clik.newPhoto({"id":4486657,"src":"new_paintings039_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_4486657.html","width":130,"caption":"Portrait of a young boy","height":130});
															thumbnails[4486700] = clik.newPhoto({"id":4486700,"src":"new_paintings050_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_4486700.html","width":130,"caption":"The Party Dress","height":306});
															thumbnails[4486781] = clik.newPhoto({"id":4486781,"src":"new_paintings060_thumb.jpg","galleries_id":445180,"server_id":1,"link":"photo_4486781.html","width":130,"caption":"study of three heads","height":98});
															thumbnails[4486792] = clik.newPhoto({"id":4486792,"src":"new_paintings063_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_4486792.html","width":130,"caption":"The Meet at The Lamb Inn","height":91});
															thumbnails[5061854] = clik.newPhoto({"id":5061854,"src":"first_of_angel_lanterns012_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_5061854.html","width":130,"caption":"Angel Lantern","height":172});
															thumbnails[5061865] = clik.newPhoto({"id":5061865,"src":"first_of_angel_lanterns0021_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_5061865.html","width":130,"caption":"Sing Choir of Angels.","height":85});
															thumbnails[5124581] = clik.newPhoto({"id":5124581,"src":"snowmen__angel_lanterns_2009040_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_5124581.html","width":130,"caption":"SOLD. Angel Lantern by KARREN URBEN 'Sing choirs of Angels'","height":197});
															thumbnails[5124587] = clik.newPhoto({"id":5124587,"src":"snowmen__angel_lanterns_2009045_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_5124587.html","width":130,"caption":"Sing choir of Angels by KARREN URBEN","height":102});
															thumbnails[5124598] = clik.newPhoto({"id":5124598,"src":"snowmen__angel_lanterns_2009032_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_5124598.html","width":130,"caption":"","height":208});
															thumbnails[5124623] = clik.newPhoto({"id":5124623,"src":"snowmen__angel_lanterns_2009035_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_5124623.html","width":130,"caption":"Urben Snowmen.","height":101});
															thumbnails[5701657] = clik.newPhoto({"id":5701657,"src":"new_venice_oils012_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5701657.html","width":130,"caption":"Dolce Vita Oil on canvas 101 cm x 101 cm","height":127});
															thumbnails[5701705] = clik.newPhoto({"id":5701705,"src":"new_venice_oils004_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5701705.html","width":130,"caption":"SOLD Under the Bridge, Venice. KARREN URBEN Oil on canvas","height":184});
															thumbnails[5701710] = clik.newPhoto({"id":5701710,"src":"venice_for_flyer015_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5701710.html","width":130,"caption":"Grand Canal, Venice KARREN URBEN Oil on canvas","height":129});
															thumbnails[5701730] = clik.newPhoto({"id":5701730,"src":"venice_for_flyer001_9A42BAAF-1D09-001F-997E6C769BA546EF_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5701730.html","width":130,"caption":"SOLD Quiet waters, Venice KARREN URBEN Oil on canvas","height":188});
															thumbnails[5728425] = clik.newPhoto({"id":5728425,"src":"baby_shower098_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5728425.html","width":130,"caption":"L'Amore Oil on Canvas Venice Oils","height":182});
															thumbnails[5852196] = clik.newPhoto({"id":5852196,"src":"ponte_dei_Ferali_oil_on_canvas006_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5852196.html","width":130,"caption":"'Ponte dei Ferali' oil on canvas","height":177});
															thumbnails[5859778] = clik.newPhoto({"id":5859778,"src":"Phoenix015_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5859778.html","width":130,"caption":"oil on canvas KARREN URBEN","height":93});
															thumbnails[6602932] = clik.newPhoto({"id":6602932,"src":"all_saints_communion032_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_6602932.html","width":130,"caption":"Per S.Marco. oil on canvas panel","height":189});
															thumbnails[7048688] = clik.newPhoto({"id":7048688,"src":"NEW_snowmen_for_website014_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048688.html","width":130,"caption":"Cheeky Charlie 2010","height":214});
															thumbnails[7048694] = clik.newPhoto({"id":7048694,"src":"NEW_snowmen_for_website015_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048694.html","width":130,"caption":"Cheeky Charlie","height":207});
															thumbnails[7048703] = clik.newPhoto({"id":7048703,"src":"NEW_snowmen_for_website025_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048703.html","width":130,"caption":"Two smiling snowmen 2010","height":184});
															thumbnails[7048713] = clik.newPhoto({"id":7048713,"src":"NEW_snowmen_for_website010_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048713.html","width":130,"caption":"Clarissa","height":283});
															thumbnails[7048716] = clik.newPhoto({"id":7048716,"src":"NEW_snowmen_for_website006_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048716.html","width":130,"caption":"Happy Harry","height":291});
															thumbnails[7048722] = clik.newPhoto({"id":7048722,"src":"NEW_snowmen_for_website016_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048722.html","width":130,"caption":"Toby 2010. Just one left. Available at The Christmas Shop in Arundel.","height":269});
															thumbnails[7048724] = clik.newPhoto({"id":7048724,"src":"NEW_snowmen_for_website017_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048724.html","width":130,"caption":"Toby. ONE TOBY LEFT. Blue scarf as seen here. Available at The Christmas Shop. Arundel.","height":274});
															thumbnails[7048729] = clik.newPhoto({"id":7048729,"src":"NEW_snowmen_for_website003_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048729.html","width":130,"caption":"Millie","height":208});
															thumbnails[7048785] = clik.newPhoto({"id":7048785,"src":"NEW_snowmen_for_website020_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7048785.html","width":130,"caption":"Mrs. Bridges (Nellie)","height":302});
															thumbnails[7168988] = clik.newPhoto({"id":7168988,"src":"santasand_figgy_pudding015_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7168988.html","width":130,"caption":"'To Santa' 2010 SOLD. You can now order for 2011","height":253});
															thumbnails[7168994] = clik.newPhoto({"id":7168994,"src":"santasand_figgy_pudding012_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7168994.html","width":130,"caption":"Santa with Holly. 2010 SOLD. You can now order for 2011","height":173});
															thumbnails[7169038] = clik.newPhoto({"id":7169038,"src":"santasand_figgy_pudding009_thumb.jpg","galleries_id":276690,"server_id":1,"link":"photo_7169038.html","width":130,"caption":"Santa's List 2010 SOLD. You can now order for 2011","height":261});
															thumbnails[8402987] = clik.newPhoto({"id":8402987,"src":"DSC07740_thumb.JPG","galleries_id":445179,"server_id":35,"link":"photo_8402987.html","width":130,"caption":"'The Tea Party'","height":127});
															thumbnails[3685893] = clik.newPhoto({"id":3685893,"src":"DSC046751_thumb.JPG","galleries_id":445179,"server_id":1,"link":"photo_3685893.html","width":130,"caption":"'Teatime'","height":97});
															thumbnails[5488351] = clik.newPhoto({"id":5488351,"src":"Veniceimage_for_brochure_10010_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5488351.html","width":130,"caption":"Past & Present, Venice. oil on canvas","height":130});
															thumbnails[3685875] = clik.newPhoto({"id":3685875,"src":"DSC04672_thumb.JPG","galleries_id":445179,"server_id":1,"link":"photo_3685875.html","width":130,"caption":"'A mother brushing her daughters hair'","height":98});
															thumbnails[3967829] = clik.newPhoto({"id":3967829,"src":"coffee_may_morning_at_open_house005_thumb.jpg","galleries_id":445179,"server_id":1,"link":"photo_3967829.html","width":130,"caption":"'A May morning at the Artists Open House'","height":97});
															thumbnails[3685880] = clik.newPhoto({"id":3685880,"src":"DSC04671_thumb.JPG","galleries_id":445179,"server_id":1,"link":"photo_3685880.html","width":130,"caption":"'Preparing the mincemeat for Christmas'","height":94});
															thumbnails[5589423] = clik.newPhoto({"id":5589423,"src":"venice_for_flyer009_thumb.jpg","galleries_id":310644,"server_id":1,"link":"photo_5589423.html","width":130,"caption":"Venice moments. Oil on Canvas unframed, deep sided canvas.","height":191});
															thumbnails[3795374] = clik.newPhoto({"id":3795374,"src":"a_stolen_moment_in_spring_sunshine007_thumb.jpg","galleries_id":445179,"server_id":1,"link":"photo_3795374.html","width":130,"caption":"'A stolen moment in Spring sunshine' oil on canvas","height":92});
															thumbnails[1434683] = clik.newPhoto({"id":1434683,"src":"drag artistes best001_thumb.jpg","galleries_id":211102,"server_id":1,"link":"photo_1434683.html","width":130,"caption":"Maisie TrolletteDavid Raven as 'Maisie'SOLD","height":178});
															thumbnails[486449] = clik.newPhoto({"id":486449,"src":"DSC01326_thumb.JPG","galleries_id":211102,"server_id":1,"link":"photo_486449.html","width":130,"caption":"Singer\/Songwriter Gala..Tryptych'","height":404});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[445180] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ANIMAL PAINTINGS","link":"gallery_445180.html","maxRecords":0.0,"photoIDs":[4486781.0],"skipIndex":0,"section_code":"gallery","featured_images":4486781.0,"id":445180,"singleSection":false});				  						galleries[445179] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CAPTURED MOMENT'S","link":"gallery_445179.html","maxRecords":0.0,"photoIDs":[8402987.0,3685893.0,3685875.0,3967829.0,3685880.0,3795374.0],"skipIndex":0,"section_code":"gallery","featured_images":"8402987,3967829,3795374,3685893,3685880,3685875","id":445179,"singleSection":false});				  						galleries[310644] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"VENICE PAINTINGS","link":"gallery_310644.html","maxRecords":0.0,"photoIDs":[5701657.0,5701705.0,5701710.0,5701730.0,5728425.0,5852196.0,5859778.0,6602932.0,5488351.0,5589423.0],"skipIndex":0,"section_code":"gallery","featured_images":"6602932,5859778,5852196,5728425,5701730,5701710,5701705,5701657,5589423,5488351","id":310644,"singleSection":false});				  						galleries[211102] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"OIL PAINTINGS","link":"gallery_211102.html","maxRecords":0.0,"photoIDs":[717858.0,717859.0,731984.0,1434675.0,1434685.0,2037986.0,2115635.0,2680690.0,3464023.0,4454469.0,4486657.0,4486700.0,4486792.0,1434683.0,486449.0],"skipIndex":0,"section_code":"gallery","featured_images":"4486792,4486700,4486657,4454469,3464023,2680690,2115635,2037986,1434685,1434683","id":211102,"singleSection":false});				  						galleries[65456] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" PASTEL PAINTINGS ","link":"gallery_65456.html","maxRecords":0.0,"photoIDs":[411650.0,856223.0,889959.0,915536.0,1382938.0,1731381.0,2115673.0],"skipIndex":0,"section_code":"gallery","featured_images":"2115673,1731381,1382938,915536,889959,856223,411650","id":65456,"singleSection":false});				  						galleries[78015] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FECUNDITY & MOTHERHOOD series","link":"gallery_78015.html","maxRecords":0.0,"photoIDs":[290880.0,411674.0,717863.0,717866.0],"skipIndex":0,"section_code":"gallery","featured_images":"717866,717863,411674,290880","id":78015,"singleSection":false});				  						galleries[159390] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Faeries at the bottom of the garden","link":"gallery_159390.html","maxRecords":0.0,"photoIDs":[2680494.0,2680496.0,2726090.0,2726241.0],"skipIndex":0,"section_code":"gallery","featured_images":"2726241,2726090,2680496,2680494","id":159390,"singleSection":false});				  						galleries[195254] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait of The Mayor of Brighton & Hove","link":"gallery_195254.html","maxRecords":0.0,"photoIDs":[2115652.0],"skipIndex":0,"section_code":"gallery","featured_images":2115652.0,"id":195254,"singleSection":false});				  						galleries[276690] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CHRISTMAS POTTERY. ","link":"gallery_276690.html","maxRecords":0.0,"photoIDs":[5061854.0,5061865.0,5124581.0,5124587.0,5124598.0,5124623.0,7048688.0,7048694.0,7048703.0,7048713.0,7048716.0,7048722.0,7048724.0,7048729.0,7048785.0,7168988.0,7168994.0,7169038.0],"skipIndex":0,"section_code":"gallery","featured_images":"7169038,7168994,7168988,7048785,7048729,7048724,7048722,7048716,7048713,7048703","id":276690,"singleSection":false});				  						galleries[445181] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_445181.html","maxRecords":0.0,"photoIDs":[290882.0,411643.0],"skipIndex":0,"section_code":"gallery","featured_images":"411643,290882","id":445181,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5859778,5852196,5728425,5701730,5701726,5701712,5701710,5701705,5701657,5692515,5124623,5124598,5124587,5124581,5061865,5061854,4486792,4486781,4486700,4486657,4454469,3685885,3464023,2726241,2726090,2680690,2680496,2680494,2115673,2115652,2115635,2037986,2007071,3685893,3685875,3967829,3685880,3795374';
imageSets[3] = '6602932,5859778,5852196,5728425,5701730,5701726,5701712,5701710,5701705,5701657,5692515,5124623,5124598,5124587,5124581,5061865,5061854,4486792,4486781,4486700,4486657,4454469,3685885,3464023,2726241,2726090,2680690,2680496,2680494,2115673,2115652,2115635,2037986,2007071,3685893,3685875,3967829,3685880,3795374';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/karrenu/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/karrenu/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/karrenu/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/karrenu/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/karrenu/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/karrenu/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/karrenu/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Karren Urben Fine Art: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					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;
	}
}

			

