window.thumbnails = {};
															thumbnails[5990767] = clik.newPhoto({"id":5990767,"src":"Renate_P1000130-small_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Renate Van Nijen","height":139});
															thumbnails[5682024] = clik.newPhoto({"id":5682024,"src":"Save_Haven_thumb.jpg","galleries_id":327964,"server_id":32,"link":"photo_5682024.html","width":130,"caption":"Safe Haven","height":173});
															thumbnails[5682074] = clik.newPhoto({"id":5682074,"src":"Vrouw_in_kleur_thumb.jpg","galleries_id":327961,"server_id":32,"link":"photo_5682074.html","width":130,"caption":"Vrouw in kleur","height":102});
															thumbnails[5682087] = clik.newPhoto({"id":5682087,"src":"dancing_nieuwe_naam_thumb.jpg","galleries_id":327969,"server_id":32,"link":"photo_5682087.html","width":130,"caption":"Distant Attraction","height":168});
															thumbnails[5682132] = clik.newPhoto({"id":5682132,"src":"Time_thumb.jpg","galleries_id":327964,"server_id":32,"link":"photo_5682132.html","width":130,"caption":"Time","height":171});
															thumbnails[5682138] = clik.newPhoto({"id":5682138,"src":"moments_before_thumb.JPG","galleries_id":327961,"server_id":32,"link":"photo_5682138.html","width":130,"caption":"Moments before","height":77});
															thumbnails[5682140] = clik.newPhoto({"id":5682140,"src":"donna_in_blu_thumb.JPG","galleries_id":327961,"server_id":32,"link":"photo_5682140.html","width":130,"caption":"Donna in Blue","height":99});
															thumbnails[5682152] = clik.newPhoto({"id":5682152,"src":"reflection_thumb.JPG","galleries_id":327964,"server_id":32,"link":"photo_5682152.html","width":130,"caption":"Reflection","height":165});
															thumbnails[5682158] = clik.newPhoto({"id":5682158,"src":"Eva_thumb.JPG","galleries_id":327961,"server_id":32,"link":"photo_5682158.html","width":130,"caption":"Eva","height":181});
															thumbnails[5742696] = clik.newPhoto({"id":5742696,"src":"Cover_Secret_Thoughts_revised_Renate1_thumb.jpg","galleries_id":321880,"server_id":32,"link":"photo_5742696.html","width":130,"caption":"An image of the cover of my book Secret Thoughts.","height":98});
															thumbnails[5792661] = clik.newPhoto({"id":5792661,"src":"dancing_F76905DC-1D09-001F-99DD6D5CE982BBDC_thumb.JPG","galleries_id":327969,"server_id":32,"link":"photo_5792661.html","width":130,"caption":"Dancing","height":169});
															thumbnails[5792674] = clik.newPhoto({"id":5792674,"src":"Frente_al_mar_1_thumb.JPG","galleries_id":327964,"server_id":32,"link":"photo_5792674.html","width":130,"caption":"Frente al mar 1","height":127});
															thumbnails[5792677] = clik.newPhoto({"id":5792677,"src":"Frente_al_mar_2_thumb.JPG","galleries_id":327964,"server_id":32,"link":"photo_5792677.html","width":130,"caption":"Frente al mar 2","height":133});
															thumbnails[5796036] = clik.newPhoto({"id":5796036,"src":"moeder_en_dochter_thumb.JPG","galleries_id":327969,"server_id":32,"link":"photo_5796036.html","width":130,"caption":"Mother and daughter","height":169});
															thumbnails[5796079] = clik.newPhoto({"id":5796079,"src":"secret_thoughts_thumb.JPG","galleries_id":327969,"server_id":32,"link":"photo_5796079.html","width":130,"caption":"Secret Thoughts   SOLD","height":168});
															thumbnails[7986951] = clik.newPhoto({"id":7986951,"src":"Sailing_thoughts_-_oil_-_26x28_cm_-_Renate_van_Nijen_thumb.JPG","galleries_id":429429,"server_id":32,"link":"photo_7986951.html","width":130,"caption":"Sailing thoughts","height":131});
															thumbnails[7986958] = clik.newPhoto({"id":7986958,"src":"Noche_de_luna_-_oil_-_25x25_cm_-_Renat_van_Nijen_thumb.JPG","galleries_id":429429,"server_id":32,"link":"photo_7986958.html","width":130,"caption":"Noche de luna   SOLD","height":130});
															thumbnails[7986117] = clik.newPhoto({"id":7986117,"src":"cheers_3_thumb.JPG","galleries_id":327969,"server_id":32,"link":"photo_7986117.html","width":130,"caption":"Cheers","height":176});
															thumbnails[5990764] = clik.newPhoto({"id":5990764,"src":"Renate_infront_of_big_mandala_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5990764.html","width":130,"caption":"Renate with an example of her Mandala work","height":120});
															thumbnails[6113467] = clik.newPhoto({"id":6113467,"src":"Base_chakra_woman_thumb.jpg","galleries_id":342640,"server_id":32,"link":"photo_6113467.html","width":130,"caption":"Muladhara, base chakra","height":180});
															thumbnails[6253091] = clik.newPhoto({"id":6253091,"src":"Esperanza_woman_thumb.jpg","galleries_id":347734,"server_id":32,"link":"photo_6253091.html","width":130,"caption":"Esperanza","height":130});
															thumbnails[7986949] = clik.newPhoto({"id":7986949,"src":"Diva_-_oil_-_28x24_cm_-_Renate_van_Nijen_thumb.JPG","galleries_id":429429,"server_id":32,"link":"photo_7986949.html","width":130,"caption":"Diva   SOLD","height":108});
															thumbnails[6113483] = clik.newPhoto({"id":6113483,"src":"Sacral_chakra_woman_thumb.jpg","galleries_id":342640,"server_id":32,"link":"photo_6113483.html","width":130,"caption":"Svadisthana, Sacral chakra","height":176});
															thumbnails[6253080] = clik.newPhoto({"id":6253080,"src":"Prosperity_woman_thumb.jpg","galleries_id":347734,"server_id":32,"link":"photo_6253080.html","width":130,"caption":"Prosperity","height":174});
															thumbnails[6113495] = clik.newPhoto({"id":6113495,"src":"solar_plexus__chakra_woman_thumb.jpg","galleries_id":342640,"server_id":32,"link":"photo_6113495.html","width":130,"caption":"Manipura, Solar plexus chakra","height":173});
															thumbnails[6253078] = clik.newPhoto({"id":6253078,"src":"Balance_woman_thumb.jpg","galleries_id":347734,"server_id":32,"link":"photo_6253078.html","width":130,"caption":"Balance ","height":178});
															thumbnails[7986952] = clik.newPhoto({"id":7986952,"src":"Introspection_-_oil_-_22x22_cm_-_renate_van_Nijen_thumb.JPG","galleries_id":429429,"server_id":32,"link":"photo_7986952.html","width":130,"caption":"Introspection","height":132});
															thumbnails[6113500] = clik.newPhoto({"id":6113500,"src":"Heart_chakra_woman_thumb.jpg","galleries_id":342640,"server_id":32,"link":"photo_6113500.html","width":130,"caption":"Anahata, Heart chakra","height":174});
															thumbnails[6381753] = clik.newPhoto({"id":6381753,"src":"Desire_thumb.jpg","galleries_id":347734,"server_id":32,"link":"photo_6381753.html","width":130,"caption":"Desire ","height":131});
															thumbnails[6113516] = clik.newPhoto({"id":6113516,"src":"Throat_chakra_woman_thumb.jpg","galleries_id":342640,"server_id":32,"link":"photo_6113516.html","width":130,"caption":"Vishuddi, Throat chakra","height":96});
															thumbnails[6381759] = clik.newPhoto({"id":6381759,"src":"Friendship_EFA9FB35-24E8-5EC4-4F48ACB5FB269C75_thumb.jpg","galleries_id":347734,"server_id":32,"link":"photo_6381759.html","width":130,"caption":"Friendship","height":130});
															thumbnails[7986622] = clik.newPhoto({"id":7986622,"src":"P8180337_thumb.JPG","galleries_id":327970,"server_id":32,"link":"photo_7986622.html","width":130,"caption":"Red moon contemplation","height":99});
															thumbnails[6162643] = clik.newPhoto({"id":6162643,"src":"Third_eye_chakra_thumb.jpg","galleries_id":342640,"server_id":32,"link":"photo_6162643.html","width":130,"caption":"Ajna, third eye chakra","height":168});
															thumbnails[7986906] = clik.newPhoto({"id":7986906,"src":"ragazze_thumb.JPG","galleries_id":327969,"server_id":32,"link":"photo_7986906.html","width":130,"caption":"ragazze","height":182});
															thumbnails[8097586] = clik.newPhoto({"id":8097586,"src":"Desideri_futuri_thumb.JPG","galleries_id":429429,"server_id":32,"link":"photo_8097586.html","width":130,"caption":"Desideri futuri","height":115});
															thumbnails[6162647] = clik.newPhoto({"id":6162647,"src":"crown_chakra_thumb.jpg","galleries_id":342640,"server_id":32,"link":"photo_6162647.html","width":130,"caption":"Sahasrara, crown chakra","height":98});
															thumbnails[8097592] = clik.newPhoto({"id":8097592,"src":"memory_thumb.JPG","galleries_id":429429,"server_id":32,"link":"photo_8097592.html","width":130,"caption":"Memory","height":129});
															thumbnails[8097596] = clik.newPhoto({"id":8097596,"src":"Pensieri_nascosti_thumb.JPG","galleries_id":429429,"server_id":32,"link":"photo_8097596.html","width":130,"caption":"Pensieri nascosti","height":114});
															thumbnails[5682099] = clik.newPhoto({"id":5682099,"src":"two_masks_thumb.jpg","galleries_id":327963,"server_id":32,"link":"photo_5682099.html","width":130,"caption":"Two Masks","height":101});
															thumbnails[5682126] = clik.newPhoto({"id":5682126,"src":"Angel_Wings_thumb.JPG","galleries_id":327962,"server_id":32,"link":"photo_5682126.html","width":130,"caption":"Angelic Passion ","height":137});
															thumbnails[5792629] = clik.newPhoto({"id":5792629,"src":"ceramic_ball-1-10x10cm-by_Renate_van_Nijen_thumb.JPG","galleries_id":325267,"server_id":32,"link":"photo_5792629.html","width":130,"caption":"Ceramic ball","height":87});
															thumbnails[5792671] = clik.newPhoto({"id":5792671,"src":"fire_in_flesh_thumb.JPG","galleries_id":327970,"server_id":32,"link":"photo_5792671.html","width":130,"caption":"Fire in Flesh   SOLD","height":98});
															thumbnails[5796066] = clik.newPhoto({"id":5796066,"src":"plaza_in_blue_thumb.JPG","galleries_id":327971,"server_id":32,"link":"photo_5796066.html","width":130,"caption":"Plaza in blue \/ sold","height":173});
															thumbnails[5796121] = clik.newPhoto({"id":5796121,"src":"a_new_beginning_FBC931FE-1EC9-D45B-1C244E4C939D21BD_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5796121.html","width":130,"caption":"A new Beginning","height":129});
															thumbnails[5682059] = clik.newPhoto({"id":5682059,"src":"meditatie_bij_Birgit_thumb.jpg","galleries_id":327962,"server_id":32,"link":"photo_5682059.html","width":130,"caption":"Seaside dream","height":132});
															thumbnails[5682135] = clik.newPhoto({"id":5682135,"src":"the_three_masks_thumb.JPG","galleries_id":327963,"server_id":32,"link":"photo_5682135.html","width":130,"caption":"The three masks","height":90});
															thumbnails[5792632] = clik.newPhoto({"id":5792632,"src":"ceramic_ball_sold_thumb.JPG","galleries_id":325267,"server_id":32,"link":"photo_5792632.html","width":130,"caption":"Ceramic ball","height":133});
															thumbnails[5792667] = clik.newPhoto({"id":5792667,"src":"1_gezichten_thumb.JPG","galleries_id":327970,"server_id":32,"link":"photo_5792667.html","width":130,"caption":"Eerste gezichten","height":100});
															thumbnails[5796062] = clik.newPhoto({"id":5796062,"src":"plaza_del_sol_thumb.JPG","galleries_id":327971,"server_id":32,"link":"photo_5796062.html","width":130,"caption":"Plaza del sol \/ sold","height":162});
															thumbnails[5796115] = clik.newPhoto({"id":5796115,"src":"tao-balance_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5796115.html","width":130,"caption":"Tao balance","height":130});
															thumbnails[5682121] = clik.newPhoto({"id":5682121,"src":"Sailing_sunset_thumb.jpg","galleries_id":327962,"server_id":32,"link":"photo_5682121.html","width":130,"caption":"Sailing sunset","height":257});
															thumbnails[5682288] = clik.newPhoto({"id":5682288,"src":"Togetherness-etsy_thumb.jpg","galleries_id":327971,"server_id":32,"link":"photo_5682288.html","width":130,"caption":"Togetherness","height":161});
															thumbnails[5792634] = clik.newPhoto({"id":5792634,"src":"ceramic_ball-2-9x9cm-by_Renate_van_Nijen_thumb.JPG","galleries_id":325267,"server_id":32,"link":"photo_5792634.html","width":130,"caption":"Ceramic ball","height":126});
															thumbnails[5796020] = clik.newPhoto({"id":5796020,"src":"liggende_vrouw_met_masker_thumb.JPG","galleries_id":327963,"server_id":32,"link":"photo_5796020.html","width":130,"caption":"Liggende vrouw met masker","height":80});
															thumbnails[5796028] = clik.newPhoto({"id":5796028,"src":"Love__Joy_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5796028.html","width":130,"caption":"Love and Light","height":129});
															thumbnails[5796111] = clik.newPhoto({"id":5796111,"src":"Vestito_blu_thumb.JPG","galleries_id":327970,"server_id":32,"link":"photo_5796111.html","width":130,"caption":"Vestito blu","height":98});
															thumbnails[5682116] = clik.newPhoto({"id":5682116,"src":"Seaside_meditation_thumb.jpg","galleries_id":327962,"server_id":32,"link":"photo_5682116.html","width":130,"caption":"Seaside Meditation","height":258});
															thumbnails[5682144] = clik.newPhoto({"id":5682144,"src":"spirit_of_silence_thumb.JPG","galleries_id":327970,"server_id":32,"link":"photo_5682144.html","width":130,"caption":"Spirit in silence","height":201});
															thumbnails[5682155] = clik.newPhoto({"id":5682155,"src":"masquerade_thumb.JPG","galleries_id":327963,"server_id":32,"link":"photo_5682155.html","width":130,"caption":"Masquerade","height":174});
															thumbnails[5682287] = clik.newPhoto({"id":5682287,"src":"Groepje_in_geel_ebay_thumb.jpg","galleries_id":327971,"server_id":32,"link":"photo_5682287.html","width":130,"caption":"Yellow Gathering","height":161});
															thumbnails[5796015] = clik.newPhoto({"id":5796015,"src":"healing_star_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5796015.html","width":130,"caption":"","height":131});
															thumbnails[5682185] = clik.newPhoto({"id":5682185,"src":"La_Luna_2_etsy_thumb.jpg","galleries_id":327971,"server_id":32,"link":"photo_5682185.html","width":130,"caption":"Red Temptation 1","height":164});
															thumbnails[5792681] = clik.newPhoto({"id":5792681,"src":"gratitude_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5792681.html","width":130,"caption":"Gratitude","height":130});
															thumbnails[5682182] = clik.newPhoto({"id":5682182,"src":"De_rode_jurk_2-ebay_thumb.jpg","galleries_id":327971,"server_id":32,"link":"photo_5682182.html","width":130,"caption":"Red Temptation 2","height":160});
															thumbnails[5792643] = clik.newPhoto({"id":5792643,"src":"ceramic_torso_thumb.JPG","galleries_id":325267,"server_id":32,"link":"photo_5792643.html","width":130,"caption":"Ceramic Torso","height":176});
															thumbnails[5792680] = clik.newPhoto({"id":5792680,"src":"Friendship_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5792680.html","width":130,"caption":"Friendship","height":130});
															thumbnails[5792639] = clik.newPhoto({"id":5792639,"src":"ceramic_statue_sold_thumb.JPG","galleries_id":325267,"server_id":32,"link":"photo_5792639.html","width":130,"caption":"Ceramic statue","height":224});
															thumbnails[5792648] = clik.newPhoto({"id":5792648,"src":"commissioned_mandala_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5792648.html","width":130,"caption":"Commissioned mandala","height":128});
															thumbnails[5682176] = clik.newPhoto({"id":5682176,"src":"Spanish_Dream_etsy_thumb.jpg","galleries_id":327971,"server_id":32,"link":"photo_5682176.html","width":130,"caption":"Plaza in yellow SOLD","height":204});
															thumbnails[5792611] = clik.newPhoto({"id":5792611,"src":"P5090843_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5792611.html","width":130,"caption":"Follow your heart","height":130});
															thumbnails[5792647] = clik.newPhoto({"id":5792647,"src":"ceramic_toros_wetlook_thumb.JPG","galleries_id":325267,"server_id":32,"link":"photo_5792647.html","width":130,"caption":"Ceramic torso, wetlook","height":195});
															thumbnails[5796100] = clik.newPhoto({"id":5796100,"src":"vrouw_uit_beeld_front_thumb.JPG","galleries_id":325267,"server_id":32,"link":"photo_5796100.html","width":130,"caption":"Vrouw uit beeld  ","height":190});
															thumbnails[5796092] = clik.newPhoto({"id":5796092,"src":"series_of_7_mandalas_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5796092.html","width":130,"caption":"Set of seven mandala cards","height":92});
															thumbnails[5796086] = clik.newPhoto({"id":5796086,"src":"series_of_5_mandalas_thumb.JPG","galleries_id":321881,"server_id":32,"link":"photo_5796086.html","width":130,"caption":"Set of 5 Mandala Cards","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[342640] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Chakra women","link":"gallery_342640.html","maxRecords":0.0,"photoIDs":[6113467.0,6113483.0,6113495.0,6113500.0,6113516.0,6162643.0,6162647.0],"skipIndex":0,"section_code":"gallery","featured_images":"6162647,6162643,6113516,6113500,6113495,6113483,6113467","id":342640,"singleSection":false});				  						galleries[347734] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Mandala women","link":"gallery_347734.html","maxRecords":0.0,"photoIDs":[6253091.0,6253080.0,6253078.0,6381753.0,6381759.0],"skipIndex":0,"section_code":"gallery","featured_images":"6381759,6381753,6253091,6253080,6253078","id":347734,"singleSection":false});				  						galleries[327961] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Blue Women","link":"gallery_327961.html","maxRecords":0.0,"photoIDs":[5682074.0,5682138.0,5682140.0,5682158.0],"skipIndex":0,"section_code":"gallery","featured_images":"5682158,5682140,5682138,5682074","id":327961,"singleSection":false});				  						galleries[321136] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings","link":"gallery_321136.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8097596,8097592,8097586,7986958,7986952,7986951,7986949,7986906,7986622,7986117","id":321136,"singleSection":false});				  						galleries[429429] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Small size paintings","link":"gallery_429429.html","maxRecords":0.0,"photoIDs":[7986951.0,7986958.0,7986949.0,7986952.0,8097586.0,8097592.0,8097596.0],"skipIndex":0,"section_code":"gallery","featured_images":"8097596,8097592,8097586,7986958,7986952,7986951,7986949","id":429429,"singleSection":false});				  						galleries[325267] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ceramics","link":"gallery_325267.html","maxRecords":0.0,"photoIDs":[5792629.0,5792632.0,5792634.0,5792643.0,5792639.0,5792647.0,5796100.0],"skipIndex":0,"section_code":"gallery","featured_images":"5796100,5792647,5792643,5792639,5792634,5792632,5792629","id":325267,"singleSection":false});				  						galleries[327963] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Masks","link":"gallery_327963.html","maxRecords":0.0,"photoIDs":[5682099.0,5682135.0,5796020.0,5682155.0],"skipIndex":0,"section_code":"gallery","featured_images":"5796020,5682155,5682135,5682099","id":327963,"singleSection":false});				  						galleries[321881] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mandalas","link":"gallery_321881.html","maxRecords":0.0,"photoIDs":[5990764.0,5796121.0,5796115.0,5796028.0,5796015.0,5792681.0,5792680.0,5792648.0,5792611.0,5796092.0,5796086.0],"skipIndex":0,"section_code":"gallery","featured_images":"5990764,5796121,5796115,5796092,5796086,5796028,5796015,5792681,5792680,5792648","id":321881,"singleSection":false});				  						galleries[327964] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Seaside fantasy","link":"gallery_327964.html","maxRecords":0.0,"photoIDs":[5682024.0,5682132.0,5682152.0,5792674.0,5792677.0],"skipIndex":0,"section_code":"gallery","featured_images":"5792677,5792674,5682152,5682132,5682024","id":327964,"singleSection":false});				  						galleries[321880] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"My Book","link":"gallery_321880.html","maxRecords":0.0,"photoIDs":[5742696.0],"skipIndex":0,"section_code":"gallery","featured_images":5742696.0,"id":321880,"singleSection":false});				  						galleries[327971] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Series","link":"gallery_327971.html","maxRecords":0.0,"photoIDs":[5796066.0,5796062.0,5682288.0,5682287.0,5682185.0,5682182.0,5682176.0],"skipIndex":0,"section_code":"gallery","featured_images":"5796066,5796062,5682288,5682287,5682185,5682182,5682176","id":327971,"singleSection":false});				  						galleries[327969] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Together","link":"gallery_327969.html","maxRecords":0.0,"photoIDs":[5682087.0,5792661.0,5796036.0,5796079.0,7986117.0,7986906.0],"skipIndex":0,"section_code":"gallery","featured_images":"7986906,7986117,5796079,5796036,5792661,5682087","id":327969,"singleSection":false});				  						galleries[327970] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Female reflection","link":"gallery_327970.html","maxRecords":0.0,"photoIDs":[7986622.0,5792671.0,5792667.0,5796111.0,5682144.0],"skipIndex":0,"section_code":"gallery","featured_images":"7986622,5796111,5792671,5792667,5682144","id":327970,"singleSection":false});				  						galleries[327962] = clik.newGallery({"parentGallery":321136,"usePopups":false,"title":"Meditation Angels","link":"gallery_327962.html","maxRecords":0.0,"photoIDs":[5682126.0,5682059.0,5682121.0,5682116.0],"skipIndex":0,"section_code":"gallery","featured_images":"5682126,5682121,5682116,5682059","id":327962,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5682158,5682155,5682152,5682140,5682138,5682135,5682132,5682126,5682121,5682116,5682099,5682074,5682059,5682024';
imageSets[3] = '5682158,5682155,5682152,5682140,5682138,5682135,5682132,5682126,5682121,5682116,5682099,5682074,5682059,5682024';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/renate/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/renate/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/renate/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/renate/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/renate/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/renate/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/renate/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 = 'RenartsWorld: ' + 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> &euro;' + (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 item online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="RENATE">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

