window.thumbnails = {};
															thumbnails[2658853] = clik.newPhoto({"id":2658853,"src":"CHERAI BREEZE_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Cherai Breeze","height":110});
															thumbnails[2658858] = clik.newPhoto({"id":2658858,"src":"COURTINGATPURANA QILA_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Courting Purana Qila","height":126});
															thumbnails[2658862] = clik.newPhoto({"id":2658862,"src":"EVENING CHOP AT THE BARBERS_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Evening Chop At The Barbers","height":119});
															thumbnails[2658865] = clik.newPhoto({"id":2658865,"src":"GAZING OUT AT THE GHATS_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Gazing at The Ghats","height":119});
															thumbnails[2658870] = clik.newPhoto({"id":2658870,"src":"HARD SELL_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Hard Sell","height":120});
															thumbnails[2658874] = clik.newPhoto({"id":2658874,"src":"ICECREAM KIOSK_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ice Cream Kiosk","height":110});
															thumbnails[2658884] = clik.newPhoto({"id":2658884,"src":"KITCHEN BOY_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Kitchen Boy","height":127});
															thumbnails[2658887] = clik.newPhoto({"id":2658887,"src":"KWALITY CHOWPATTY_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Kwality Chowpatty","height":120});
															thumbnails[2658890] = clik.newPhoto({"id":2658890,"src":"MALABAR WALK_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Malabar Walk","height":111});
															thumbnails[2658897] = clik.newPhoto({"id":2658897,"src":"SAFDARJANG'S ICE_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Safdarjang's Ice","height":127});
															thumbnails[2658900] = clik.newPhoto({"id":2658900,"src":"SHREE ENTRANCE_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Shree Entrance","height":125});
															thumbnails[2658903] = clik.newPhoto({"id":2658903,"src":"TRIBAL LOOKS_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Tribal Looks","height":127});
															thumbnails[2659126] = clik.newPhoto({"id":2659126,"src":"PUSHKAR BLUES (2)_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Pushkar Blues (2)","height":119});
															thumbnails[2659130] = clik.newPhoto({"id":2659130,"src":"PUSHKAR BLUES_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Pushkar Blues","height":117});
															thumbnails[2659139] = clik.newPhoto({"id":2659139,"src":"SWAN LAKE_thumb..jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Swan Lake","height":117});
															thumbnails[2659143] = clik.newPhoto({"id":2659143,"src":"WALKING MARINE DRIVE -WEB_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Walking Marine Drive","height":97});
															thumbnails[2659149] = clik.newPhoto({"id":2659149,"src":"KWALITY CHOWPATTY1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Kwality Chowpatty","height":119});
															thumbnails[2659242] = clik.newPhoto({"id":2659242,"src":"PRIVATE OFFERING1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Private Offering","height":122});
															thumbnails[2659278] = clik.newPhoto({"id":2659278,"src":"SHREE SHRUBBERY_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Shree Shrubbery","height":119});
															thumbnails[2884732] = clik.newPhoto({"id":2884732,"src":"ANA FOYER_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Ana Foyer","height":116});
															thumbnails[3748380] = clik.newPhoto({"id":3748380,"src":"GroveHillweb_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Grove Hill","height":130});
															thumbnails[3748566] = clik.newPhoto({"id":3748566,"src":"BeerandBugsBunnyweb_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Beer and Bugs Bunny","height":130});
															thumbnails[3748610] = clik.newPhoto({"id":3748610,"src":"Priorityweb_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Priority","height":130});
															thumbnails[3748626] = clik.newPhoto({"id":3748626,"src":"Everyonesawinnerweb12_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Everyone's a Winner","height":130});
															thumbnails[3748636] = clik.newPhoto({"id":3748636,"src":"BackYardweb_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Back Yard<br>\r\n<br>\r\n","height":130});
															thumbnails[5544671] = clik.newPhoto({"id":5544671,"src":"homepage_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":129,"caption":"Detail from FABRICATION","height":130});
															thumbnails[5620093] = clik.newPhoto({"id":5620093,"src":"FABRICATION_1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"WATERCOLOUR","height":129});
															thumbnails[5632724] = clik.newPhoto({"id":5632724,"src":"FABRICATION_hp_2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"HomePage","height":130});
															thumbnails[7710157] = clik.newPhoto({"id":7710157,"src":"image_cmoss_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":63});
															thumbnails[7711485] = clik.newPhoto({"id":7711485,"src":"home_page_image_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8722914] = clik.newPhoto({"id":8722914,"src":"40_th_invite_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":105,"caption":".","height":130});
															thumbnails[8513894] = clik.newPhoto({"id":8513894,"src":"blind__thumb.jpg","galleries_id":450032,"server_id":32,"link":"photo_8513894.html","width":130,"caption":"Blind","height":130});
															thumbnails[8513901] = clik.newPhoto({"id":8513901,"src":"blind_5_thumb.jpg","galleries_id":450032,"server_id":32,"link":"photo_8513901.html","width":130,"caption":"Blind - Detail","height":130});
															thumbnails[8513920] = clik.newPhoto({"id":8513920,"src":"blind_3_thumb.jpg","galleries_id":450032,"server_id":32,"link":"photo_8513920.html","width":130,"caption":"BLIND - Detail","height":130});
															thumbnails[9095889] = clik.newPhoto({"id":9095889,"src":"PEACH_BLACK-_thumb_1.jpg","galleries_id":479973,"server_id":38,"link":"photo_9095889.html","width":128,"caption":"PEACH BLACK MOONS","height":130});
															thumbnails[7533893] = clik.newPhoto({"id":7533893,"src":"installation_shot_11_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7533893.html","width":117,"caption":"DOG KENNEL HILL","height":130});
															thumbnails[7533902] = clik.newPhoto({"id":7533902,"src":"interior_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7533902.html","width":124,"caption":"DOG KENNEL HILL","height":130});
															thumbnails[7533763] = clik.newPhoto({"id":7533763,"src":"Caped_demon_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7533763.html","width":130,"caption":"CAPED DEMON","height":128});
															thumbnails[7533869] = clik.newPhoto({"id":7533869,"src":"DKH_roof12_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7533869.html","width":130,"caption":"INTERIOR CEILING","height":127});
															thumbnails[7534036] = clik.newPhoto({"id":7534036,"src":"Ceiling_detail1_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7534036.html","width":128,"caption":"DOG KENNEL HILL","height":130});
															thumbnails[7533761] = clik.newPhoto({"id":7533761,"src":"Dawson_Heights_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7533761.html","width":130,"caption":"DAWSON HEIGHTS","height":128});
															thumbnails[7534049] = clik.newPhoto({"id":7534049,"src":"Right_side_wall1_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7534049.html","width":126,"caption":"DOG KENNEL HILL","height":130});
															thumbnails[7414942] = clik.newPhoto({"id":7414942,"src":"demonic_gesture1_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7414942.html","width":126,"caption":"DEMONIC GESTURE ","height":130});
															thumbnails[7415049] = clik.newPhoto({"id":7415049,"src":"demonic_gesture_2_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7415049.html","width":127,"caption":"DEMONIC GESTURE 2","height":130});
															thumbnails[7533768] = clik.newPhoto({"id":7533768,"src":"demonic_gesture_41_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7533768.html","width":129,"caption":"DEMONIC GESTURE 3","height":130});
															thumbnails[7342255] = clik.newPhoto({"id":7342255,"src":"DKH_detail_1_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7342255.html","width":128,"caption":"DETAIL 1","height":130});
															thumbnails[7342256] = clik.newPhoto({"id":7342256,"src":"DKH_detail2_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7342256.html","width":128,"caption":"DETAIL 2","height":130});
															thumbnails[7342258] = clik.newPhoto({"id":7342258,"src":"DKH_detail_4_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7342258.html","width":130,"caption":"DETAIL 3","height":126});
															thumbnails[7342307] = clik.newPhoto({"id":7342307,"src":"DKH_detail_3_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7342307.html","width":123,"caption":"DETAIL 4","height":130});
															thumbnails[7534069] = clik.newPhoto({"id":7534069,"src":"Left_Side_wall1_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7534069.html","width":125,"caption":"DOG KENNEL HILL","height":130});
															thumbnails[7534045] = clik.newPhoto({"id":7534045,"src":"front_ceiling1_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7534045.html","width":130,"caption":"DOG KENNEL HILL","height":130});
															thumbnails[7342236] = clik.newPhoto({"id":7342236,"src":"front_thumb.jpg","galleries_id":397425,"server_id":32,"link":"photo_7342236.html","width":128,"caption":"INSTALLATION- FRONT SECTION","height":130});
															thumbnails[3748468] = clik.newPhoto({"id":3748468,"src":"SuperSoftweb_thumb.jpg","galleries_id":309427,"server_id":32,"link":"photo_3748468.html","width":130,"caption":"Super Soft","height":130});
															thumbnails[3748515] = clik.newPhoto({"id":3748515,"src":"Partyplumageweb_thumb.jpg","galleries_id":309427,"server_id":32,"link":"photo_3748515.html","width":130,"caption":"Party Plumage","height":130});
															thumbnails[3748646] = clik.newPhoto({"id":3748646,"src":"EveryOnesaWinnerprintweb_thumb.jpg","galleries_id":309428,"server_id":32,"link":"photo_3748646.html","width":130,"caption":"Everyone's a Winner","height":130});
															thumbnails[3748653] = clik.newPhoto({"id":3748653,"src":"SuperSoftprintweb_thumb.jpg","galleries_id":309428,"server_id":32,"link":"photo_3748653.html","width":130,"caption":"Super Soft","height":130});
															thumbnails[3748681] = clik.newPhoto({"id":3748681,"src":"MelbourneTyresprintweb_thumb.jpg","galleries_id":309428,"server_id":32,"link":"photo_3748681.html","width":130,"caption":"Melbourne Tyres","height":130});
															thumbnails[3748683] = clik.newPhoto({"id":3748683,"src":"GroveHillprintweb_thumb.jpg","galleries_id":309428,"server_id":32,"link":"photo_3748683.html","width":130,"caption":"Grove Hill","height":130});
															thumbnails[3842927] = clik.newPhoto({"id":3842927,"src":"rooftop_2_thumb.jpg","galleries_id":309427,"server_id":32,"link":"photo_3842927.html","width":130,"caption":"ROOF TOP 2","height":130});
															thumbnails[4361592] = clik.newPhoto({"id":4361592,"src":"Dream_on_Dream_Home_Watercolour_thumb.jpg","galleries_id":321745,"server_id":32,"link":"photo_4361592.html","width":130,"caption":"WATERCOLOUR<br>\r\n","height":130});
															thumbnails[4834224] = clik.newPhoto({"id":4834224,"src":"dream_on_dream_home_drawing1234_thumb.jpg","galleries_id":321745,"server_id":32,"link":"photo_4834224.html","width":128,"caption":"GRAPHITE<br>\r\n","height":130});
															thumbnails[4834253] = clik.newPhoto({"id":4834253,"src":"Green_Cresent_drawing1_thumb.jpg","galleries_id":322601,"server_id":32,"link":"photo_4834253.html","width":122,"caption":"GRAPHITE","height":130});
															thumbnails[5469198] = clik.newPhoto({"id":5469198,"src":"Pop_Up_2_thumb.jpg","galleries_id":309509,"server_id":32,"link":"photo_5469198.html","width":126,"caption":"POP UP BOX 2","height":130});
															thumbnails[5469265] = clik.newPhoto({"id":5469265,"src":"Pop_Up_3_thumb.jpg","galleries_id":309509,"server_id":32,"link":"photo_5469265.html","width":130,"caption":"POP UP BOX 3","height":126});
															thumbnails[5475376] = clik.newPhoto({"id":5475376,"src":"PopUp_1_thumb.jpg","galleries_id":309509,"server_id":32,"link":"photo_5475376.html","width":130,"caption":"POP UP BOX 1","height":130});
															thumbnails[5679636] = clik.newPhoto({"id":5679636,"src":"dream_on_dream_home_etching_web1_thumb.jpg","galleries_id":321745,"server_id":32,"link":"photo_5679636.html","width":130,"caption":"ETCHING","height":128});
															thumbnails[6117736] = clik.newPhoto({"id":6117736,"src":"JACK_IN_THE_BOX_THUMB.jpg","galleries_id":342862,"server_id":32,"link":"photo_6117736.html","width":129,"caption":"OIL","height":130});
															thumbnails[6297141] = clik.newPhoto({"id":6297141,"src":"nancys_circus_thumb.jpg","galleries_id":349327,"server_id":32,"link":"photo_6297141.html","width":130,"caption":"NANCY'S CIRCUS","height":126});
															thumbnails[3748448] = clik.newPhoto({"id":3748448,"src":"Dreamondreamhomeweb_thumb.jpg","galleries_id":321745,"server_id":32,"link":"photo_3748448.html","width":130,"caption":"OIL","height":130});
															thumbnails[6614796] = clik.newPhoto({"id":6614796,"src":"FABRICATION_oil_white_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_6614796.html","width":127,"caption":"OIL","height":130});
															thumbnails[4361845] = clik.newPhoto({"id":4361845,"src":"3-way_control_NEW1_thumb.jpg","galleries_id":322601,"server_id":32,"link":"photo_4361845.html","width":126,"caption":"OIL","height":130});
															thumbnails[6685851] = clik.newPhoto({"id":6685851,"src":"FABRICATION_oil_1_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_6685851.html","width":130,"caption":"OIL DETAIL 1","height":130});
															thumbnails[3765539] = clik.newPhoto({"id":3765539,"src":"tartanweb2_thumb.jpg","galleries_id":322602,"server_id":32,"link":"photo_3765539.html","width":130,"caption":"TARTAN","height":130});
															thumbnails[6685854] = clik.newPhoto({"id":6685854,"src":"FABRICATION_oil_2_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_6685854.html","width":130,"caption":"OIL DETAIL 2","height":128});
															thumbnails[7073996] = clik.newPhoto({"id":7073996,"src":"3-way_detail_web_THUMB.jpg","galleries_id":322601,"server_id":32,"link":"photo_7073996.html","width":130,"caption":"OIL DETAIL","height":129});
															thumbnails[3842914] = clik.newPhoto({"id":3842914,"src":"rooftop_1web1_thumb.jpg","galleries_id":309427,"server_id":32,"link":"photo_3842914.html","width":130,"caption":"ROOF TOP 1","height":130});
															thumbnails[6654588] = clik.newPhoto({"id":6654588,"src":"FABRICATION_312_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_6654588.html","width":130,"caption":"OIL DETAIL 3","height":130});
															thumbnails[7074178] = clik.newPhoto({"id":7074178,"src":"3-way_DETAIL_WEB_21_thumb.jpg","galleries_id":322601,"server_id":32,"link":"photo_7074178.html","width":128,"caption":"OIL DETAIL","height":130});
															thumbnails[3842962] = clik.newPhoto({"id":3842962,"src":"heaven_on_earth_study_thumb.jpg","galleries_id":309427,"server_id":32,"link":"photo_3842962.html","width":130,"caption":"HEAVEN ON EARTH- study","height":128});
															thumbnails[6654664] = clik.newPhoto({"id":6654664,"src":"FABRICATION_41_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_6654664.html","width":130,"caption":"OIL DETAIL 4","height":130});
															thumbnails[3748338] = clik.newPhoto({"id":3748338,"src":"Heaven_on_Earth_web_thumb.jpg","galleries_id":309427,"server_id":32,"link":"photo_3748338.html","width":130,"caption":"Heaven on Earth","height":130});
															thumbnails[5464216] = clik.newPhoto({"id":5464216,"src":"FABRICATION_1_WEB1_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_5464216.html","width":130,"caption":"WATERCOLOUR 1<br>\r\n","height":130});
															thumbnails[5464215] = clik.newPhoto({"id":5464215,"src":"FABRICATION_2_WEB12_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_5464215.html","width":129,"caption":"WATERCOLOUR 2<br>\r\n","height":130});
															thumbnails[5620101] = clik.newPhoto({"id":5620101,"src":"FABRICATION_3_web12_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_5620101.html","width":127,"caption":"WATERCOLOUR 3","height":130});
															thumbnails[5620100] = clik.newPhoto({"id":5620100,"src":"FABRICATION_4_web_thumb.jpg","galleries_id":322248,"server_id":32,"link":"photo_5620100.html","width":130,"caption":"WATERCOLOUR 4","height":128});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[450032] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BLIND","link":"gallery_450032.html","maxRecords":0.0,"photoIDs":[8513894.0,8513901.0,8513920.0],"skipIndex":0,"section_code":"gallery","featured_images":"8513920,8513901,8513894","id":450032,"singleSection":false});				  						galleries[479973] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PEACH BLACK MOONS","link":"gallery_479973.html","maxRecords":0.0,"photoIDs":[9095889.0],"skipIndex":0,"section_code":"gallery","featured_images":9095889.0,"id":479973,"singleSection":false});				  						galleries[397425] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"DOG KENNEL HILL","link":"gallery_397425.html","maxRecords":0.0,"photoIDs":[7533893.0,7533902.0,7533763.0,7533869.0,7534036.0,7533761.0,7534049.0,7414942.0,7415049.0,7533768.0,7342255.0,7342256.0,7342258.0,7342307.0,7534069.0,7534045.0,7342236.0],"skipIndex":0,"section_code":"gallery","featured_images":"7534069,7534049,7534045,7534036,7533902,7533893,7533869,7533768,7533763,7533761","id":397425,"singleSection":false});				  						galleries[321745] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"DREAM ON DREAM HOME","link":"section370729_321745.html","maxRecords":0.0,"photoIDs":[4361592.0,4834224.0,5679636.0,3748448.0],"skipIndex":0,"section_code":"section370729","featured_images":"4834224,3748448","id":321745,"singleSection":false});				  						galleries[322601] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"3-WAY CONTROL","link":"section370729_322601.html","maxRecords":0.0,"photoIDs":[4834253.0,4361845.0,7073996.0,7074178.0],"skipIndex":0,"section_code":"section370729","featured_images":"7074178,7073996,4834253,4361845","id":322601,"singleSection":false});				  						galleries[322248] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FABRICATION","link":"section370729_322248.html","maxRecords":0.0,"photoIDs":[6614796.0,6685851.0,6685854.0,6654588.0,6654664.0,5464216.0,5464215.0,5620101.0,5620100.0],"skipIndex":0,"section_code":"section370729","featured_images":"6685854,6685851,6654664,6654588,6614796,5620101,5620100,5464216,5464215","id":322248,"singleSection":false});				  						galleries[342862] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"JACK IN THE BOX","link":"section370729_342862.html","maxRecords":0.0,"photoIDs":[6117736.0],"skipIndex":0,"section_code":"section370729","featured_images":6117736.0,"id":342862,"singleSection":false});				  						galleries[349327] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NANCY'S CIRCUS","link":"section370729_349327.html","maxRecords":0.0,"photoIDs":[6297141.0],"skipIndex":0,"section_code":"section370729","featured_images":6297141.0,"id":349327,"singleSection":false});				  						galleries[322602] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TARTAN","link":"section370729_322602.html","maxRecords":0.0,"photoIDs":[3765539.0],"skipIndex":0,"section_code":"section370729","featured_images":3765539.0,"id":322602,"singleSection":false});				  						galleries[309509] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"POP UP","link":"section370729_309509.html","maxRecords":0.0,"photoIDs":[5469198.0,5469265.0,5475376.0],"skipIndex":0,"section_code":"section370729","featured_images":"5475376,5469265,5469198","id":309509,"singleSection":false});				  						galleries[309427] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"OTHER PAINTINGS","link":"section370729_309427.html","maxRecords":0.0,"photoIDs":[3748468.0,3748515.0,3842927.0,3842914.0,3842962.0,3748338.0],"skipIndex":0,"section_code":"section370729","featured_images":"3842962,3842927,3842914,3748515,3748468,3748338","id":309427,"singleSection":false});				  						galleries[309428] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"OTHER ETCHINGS","link":"section370729_309428.html","maxRecords":0.0,"photoIDs":[3748646.0,3748653.0,3748681.0,3748683.0],"skipIndex":0,"section_code":"section370729","featured_images":3748653.0,"id":309428,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8513901,8513894';
imageSets[2] = '4834224,3748653,3748448';
imageSets[3] = '4361845';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/bellaeaston/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/bellaeaston/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 = 'BELLA EASTON: ' + 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.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>Artist </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<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;
	}
}

		

