window.thumbnails = {};
															thumbnails[4342157] = clik.newPhoto({"id":4342157,"src":"E5s_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 11 155663","height":650});
															thumbnails[4342160] = clik.newPhoto({"id":4342160,"src":"E6s_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 11 155664","height":658});
															thumbnails[4342162] = clik.newPhoto({"id":4342162,"src":"E7s_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 11 155701","height":675});
															thumbnails[5636778] = clik.newPhoto({"id":5636778,"src":"DSC_2116_2_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 11 155665","height":63});
															thumbnails[140289] = clik.newPhoto({"id":140289,"src":"PC127477 (2)_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 163 556","height":132});
															thumbnails[4144376] = clik.newPhoto({"id":4144376,"src":"E8s2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 09 155893","height":667});
															thumbnails[4342156] = clik.newPhoto({"id":4342156,"src":"E4s_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 11 155666","height":650});
															thumbnails[140288] = clik.newPhoto({"id":140288,"src":"PC127475 (2)_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 163 567","height":130});
															thumbnails[3452895] = clik.newPhoto({"id":3452895,"src":"a11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 163 896","height":129});
															thumbnails[4342406] = clik.newPhoto({"id":4342406,"src":"E19s_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 11 155667","height":650});
															thumbnails[140290] = clik.newPhoto({"id":140290,"src":"PC127484 (2)_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 163 554","height":132});
															thumbnails[4342408] = clik.newPhoto({"id":4342408,"src":"E20s_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM # 11 155668","height":658});
															thumbnails[4144455] = clik.newPhoto({"id":4144455,"src":"EA_111_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM# 09 55623","height":757});
															thumbnails[4144454] = clik.newPhoto({"id":4144454,"src":"EA_10_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM# 09 22568","height":757});
															thumbnails[4144451] = clik.newPhoto({"id":4144451,"src":"EA_9_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"ITEM# 09 4885622","height":743});
															thumbnails[3033166] = clik.newPhoto({"id":3033166,"src":"03_thumb.jpg","galleries_id":4195,"server_id":18,"link":"photo_3033166.html","width":130,"caption":"ITEM # 11 155691","height":104});
															thumbnails[3452894] = clik.newPhoto({"id":3452894,"src":"a21_thumb.jpg","galleries_id":211072,"server_id":18,"link":"photo_3452894.html","width":130,"caption":"ITEM # 163 2569<br>\r\n","height":130});
															thumbnails[5636755] = clik.newPhoto({"id":5636755,"src":"P3026383_thumb.jpg","galleries_id":319580,"server_id":18,"link":"photo_5636755.html","width":130,"caption":"ITEM # 11 155669","height":127});
															thumbnails[5636761] = clik.newPhoto({"id":5636761,"src":"P30263801_thumb.jpg","galleries_id":319580,"server_id":18,"link":"photo_5636761.html","width":130,"caption":"ITEM # 11 155671","height":131});
															thumbnails[5636762] = clik.newPhoto({"id":5636762,"src":"P3026381_thumb.jpg","galleries_id":319580,"server_id":18,"link":"photo_5636762.html","width":130,"caption":"ITEM # 11 155672","height":131});
															thumbnails[5636764] = clik.newPhoto({"id":5636764,"src":"P3026388_2_thumb.jpg","galleries_id":319580,"server_id":18,"link":"photo_5636764.html","width":130,"caption":"ITEM # 11 155673","height":97});
															thumbnails[41035] = clik.newPhoto({"id":41035,"src":"P62745881 (2) (2)_thumb.jpg","galleries_id":4191,"server_id":18,"link":"photo_41035.html","width":130,"caption":"ITEM # 41035","height":130});
															thumbnails[41046] = clik.newPhoto({"id":41046,"src":"w2_thumb.jpg","galleries_id":4265,"server_id":18,"link":"photo_41046.html","width":130,"caption":"ITEM # 11 155692","height":64});
															thumbnails[140285] = clik.newPhoto({"id":140285,"src":"PA076586 (2)_thumb.JPG","galleries_id":12968,"server_id":18,"link":"photo_140285.html","width":130,"caption":"ITEM # 140285","height":130});
															thumbnails[1403657] = clik.newPhoto({"id":1403657,"src":"PA076625_thumb.JPG","galleries_id":97547,"server_id":18,"link":"photo_1403657.html","width":130,"caption":"ITEM # 1403657","height":133});
															thumbnails[1731622] = clik.newPhoto({"id":1731622,"src":"04 2008_thumb.jpg","galleries_id":97549,"server_id":18,"link":"photo_1731622.html","width":130,"caption":"ITEM # 1731622","height":124});
															thumbnails[1775500] = clik.newPhoto({"id":1775500,"src":"03 2008_thumb.jpg","galleries_id":116374,"server_id":18,"link":"photo_1775500.html","width":130,"caption":"ITEM # 1775500","height":126});
															thumbnails[3033168] = clik.newPhoto({"id":3033168,"src":"2008-03-31_0011202_thumb.jpg","galleries_id":255550,"server_id":18,"link":"photo_3033168.html","width":130,"caption":"ITEM # 303 3168","height":131});
															thumbnails[4144373] = clik.newPhoto({"id":4144373,"src":"E23s_thumb.jpg","galleries_id":247777,"server_id":18,"link":"photo_4144373.html","width":130,"caption":"ITEM# 09 156691","height":130});
															thumbnails[4144456] = clik.newPhoto({"id":4144456,"src":"EA_13_thumb.jpg","galleries_id":255542,"server_id":18,"link":"photo_4144456.html","width":130,"caption":"ITEM# 09 223665","height":132});
															thumbnails[4342251] = clik.newPhoto({"id":4342251,"src":"E11s_thumb.jpg","galleries_id":255553,"server_id":18,"link":"photo_4342251.html","width":130,"caption":"ITEM # 11 155695","height":62});
															thumbnails[4342499] = clik.newPhoto({"id":4342499,"src":"e1_thumb.jpg","galleries_id":255543,"server_id":18,"link":"photo_4342499.html","width":130,"caption":"ITEM# 09 144783","height":166});
															thumbnails[6420526] = clik.newPhoto({"id":6420526,"src":"AKA_4787_thumb.JPG","galleries_id":319581,"server_id":18,"link":"photo_6420526.html","width":130,"caption":"ITEM # 11 155665","height":63});
															thumbnails[40353] = clik.newPhoto({"id":40353,"src":"image072_thumb.jpg","galleries_id":4191,"server_id":18,"link":"photo_40353.html","width":130,"caption":"ITEM # 40353","height":134});
															thumbnails[40358] = clik.newPhoto({"id":40358,"src":"image078_thumb.jpg","galleries_id":97547,"server_id":18,"link":"photo_40358.html","width":130,"caption":"ITEM # 40358","height":131});
															thumbnails[41048] = clik.newPhoto({"id":41048,"src":"P62745551 (2) (2)_thumb.jpg","galleries_id":4265,"server_id":18,"link":"photo_41048.html","width":130,"caption":"ITEM # 11 155693","height":65});
															thumbnails[140286] = clik.newPhoto({"id":140286,"src":"PA076588 (2)_thumb.JPG","galleries_id":12968,"server_id":18,"link":"photo_140286.html","width":130,"caption":"ITEM # 140286","height":127});
															thumbnails[1731624] = clik.newPhoto({"id":1731624,"src":"2007-12-15_0006_thumb.jpg","galleries_id":97549,"server_id":18,"link":"photo_1731624.html","width":130,"caption":"ITEM # 1731624","height":127});
															thumbnails[4144370] = clik.newPhoto({"id":4144370,"src":"EA_11_thumb.jpg","galleries_id":255542,"server_id":18,"link":"photo_4144370.html","width":130,"caption":"ITEM# 09 145589","height":129});
															thumbnails[4342256] = clik.newPhoto({"id":4342256,"src":"E10s_thumb.jpg","galleries_id":255553,"server_id":18,"link":"photo_4342256.html","width":130,"caption":"ITEM # 11 155696","height":64});
															thumbnails[4342503] = clik.newPhoto({"id":4342503,"src":"e3_thumb.jpg","galleries_id":255543,"server_id":18,"link":"photo_4342503.html","width":130,"caption":"ITEM# 09 144783","height":164});
															thumbnails[4342593] = clik.newPhoto({"id":4342593,"src":"3s_thumb.jpg","galleries_id":247777,"server_id":18,"link":"photo_4342593.html","width":130,"caption":"ITEM # 11 155678","height":133});
															thumbnails[40340] = clik.newPhoto({"id":40340,"src":"image004_thumb.jpg","galleries_id":97547,"server_id":18,"link":"photo_40340.html","width":130,"caption":"ITEM # 40340","height":131});
															thumbnails[41039] = clik.newPhoto({"id":41039,"src":"P62745811 (2) (2)_thumb.jpg","galleries_id":4191,"server_id":18,"link":"photo_41039.html","width":130,"caption":"ITEM # 41039","height":174});
															thumbnails[41047] = clik.newPhoto({"id":41047,"src":"P62745641 (2) (2)_thumb.jpg","galleries_id":4265,"server_id":18,"link":"photo_41047.html","width":130,"caption":"ITEM # 11 155694","height":63});
															thumbnails[140287] = clik.newPhoto({"id":140287,"src":"PA076591 (2)_thumb.JPG","galleries_id":12968,"server_id":18,"link":"photo_140287.html","width":130,"caption":"ITEM # 140287","height":129});
															thumbnails[1731626] = clik.newPhoto({"id":1731626,"src":"2007-12-15_0007_thumb.jpg","galleries_id":97549,"server_id":18,"link":"photo_1731626.html","width":130,"caption":"ITEM # 1731626","height":130});
															thumbnails[1775504] = clik.newPhoto({"id":1775504,"src":"01 2008_thumb.jpg","galleries_id":116374,"server_id":18,"link":"photo_1775504.html","width":130,"caption":"ITEM # 1775504  <br>\r\n","height":133});
															thumbnails[3033226] = clik.newPhoto({"id":3033226,"src":"07_thumb.jpg","galleries_id":247777,"server_id":18,"link":"photo_3033226.html","width":130,"caption":"ITEM # 11 155679","height":130});
															thumbnails[4144371] = clik.newPhoto({"id":4144371,"src":"EA_21_thumb.jpg","galleries_id":255542,"server_id":18,"link":"photo_4144371.html","width":130,"caption":"ITEM# 09 415589","height":134});
															thumbnails[4144372] = clik.newPhoto({"id":4144372,"src":"EA_31_thumb.jpg","galleries_id":255543,"server_id":18,"link":"photo_4144372.html","width":130,"caption":"ITEM# 09 144783","height":163});
															thumbnails[1775610] = clik.newPhoto({"id":1775610,"src":"2007-12-15_0012_thumb.jpg","galleries_id":97549,"server_id":18,"link":"photo_1775610.html","width":130,"caption":"ITEM # 177610","height":124});
															thumbnails[3033206] = clik.newPhoto({"id":3033206,"src":"02_thumb.jpg","galleries_id":247777,"server_id":18,"link":"photo_3033206.html","width":130,"caption":"ITEM # 11 155680","height":97});
															thumbnails[4342153] = clik.newPhoto({"id":4342153,"src":"E2s_thumb.jpg","galleries_id":255543,"server_id":18,"link":"photo_4342153.html","width":130,"caption":"ITEM # 11 155674","height":195});
															thumbnails[4342787] = clik.newPhoto({"id":4342787,"src":"EDUARD_019_2_thumb.jpg","galleries_id":4191,"server_id":18,"link":"photo_4342787.html","width":130,"caption":"ITEM # 11 155686","height":175});
															thumbnails[3033225] = clik.newPhoto({"id":3033225,"src":"06_thumb.jpg","galleries_id":247777,"server_id":18,"link":"photo_3033225.html","width":130,"caption":"ITEM # 11 155681","height":63});
															thumbnails[4144458] = clik.newPhoto({"id":4144458,"src":"EA_14_thumb.jpg","galleries_id":255542,"server_id":18,"link":"photo_4144458.html","width":130,"caption":"ITEM# 09 414458","height":130});
															thumbnails[4342263] = clik.newPhoto({"id":4342263,"src":"E16s_thumb.jpg","galleries_id":4191,"server_id":18,"link":"photo_4342263.html","width":130,"caption":" ITEM # 11 155687","height":166});
															thumbnails[4342416] = clik.newPhoto({"id":4342416,"src":"E22s_thumb.jpg","galleries_id":255543,"server_id":18,"link":"photo_4342416.html","width":130,"caption":"ITEM # 11 155675","height":132});
															thumbnails[65247] = clik.newPhoto({"id":65247,"src":"P9076225 (2)_thumb.JPG","galleries_id":4266,"server_id":18,"link":"photo_65247.html","width":130,"caption":"ITEM # 65247","height":106});
															thumbnails[3033222] = clik.newPhoto({"id":3033222,"src":"01_thumb.jpg","galleries_id":247777,"server_id":18,"link":"photo_3033222.html","width":130,"caption":"ITEM # 11 155682","height":174});
															thumbnails[4144441] = clik.newPhoto({"id":4144441,"src":"EA_8_2a_thumb.jpg","galleries_id":255543,"server_id":18,"link":"photo_4144441.html","width":130,"caption":"ITEM# 09 1225893","height":98});
															thumbnails[4342272] = clik.newPhoto({"id":4342272,"src":"E14s_thumb.jpg","galleries_id":4191,"server_id":18,"link":"photo_4342272.html","width":130,"caption":"ITEM # 11 155688","height":162});
															thumbnails[65249] = clik.newPhoto({"id":65249,"src":"P9076203 (2)_thumb.JPG","galleries_id":4266,"server_id":18,"link":"photo_65249.html","width":130,"caption":"ITEM # 65249","height":100});
															thumbnails[1775609] = clik.newPhoto({"id":1775609,"src":"2007-12-15_0011_thumb.jpg","galleries_id":97549,"server_id":18,"link":"photo_1775609.html","width":130,"caption":"ITEM # 1775609","height":125});
															thumbnails[4342155] = clik.newPhoto({"id":4342155,"src":"E3s_thumb.jpg","galleries_id":255543,"server_id":18,"link":"photo_4342155.html","width":130,"caption":"ITEM # 11 155676","height":87});
															thumbnails[4342271] = clik.newPhoto({"id":4342271,"src":"E13s_2_thumb.jpg","galleries_id":247777,"server_id":18,"link":"photo_4342271.html","width":130,"caption":"ITEM # 11 155683","height":197});
															thumbnails[4342385] = clik.newPhoto({"id":4342385,"src":"E15s_thumb.jpg","galleries_id":4191,"server_id":18,"link":"photo_4342385.html","width":130,"caption":"ITEM # 11 155690","height":194});
															thumbnails[4342151] = clik.newPhoto({"id":4342151,"src":"E1s_thumb.jpg","galleries_id":255543,"server_id":18,"link":"photo_4342151.html","width":130,"caption":"ITEM # 11 155677","height":62});
															thumbnails[1403646] = clik.newPhoto({"id":1403646,"src":"PA076621_thumb.jpg","galleries_id":97550,"server_id":18,"link":"photo_1403646.html","width":130,"caption":"ITEM # 1403646","height":134});
															thumbnails[40337] = clik.newPhoto({"id":40337,"src":"image002_thumb.jpg","galleries_id":97550,"server_id":18,"link":"photo_40337.html","width":130,"caption":"ITEM # 40337","height":128});
															thumbnails[40338] = clik.newPhoto({"id":40338,"src":"image001_thumb.jpg","galleries_id":97550,"server_id":18,"link":"photo_40338.html","width":130,"caption":"ITEM # 40338","height":128});
															thumbnails[65257] = clik.newPhoto({"id":65257,"src":"PA246691 (2)_thumb.JPG","galleries_id":4266,"server_id":18,"link":"photo_65257.html","width":130,"caption":"ITEM # 65257","height":83});
															thumbnails[1403645] = clik.newPhoto({"id":1403645,"src":"P7186229_thumb.jpg","galleries_id":97550,"server_id":18,"link":"photo_1403645.html","width":130,"caption":"ITEM # 1403645","height":131});
															thumbnails[1403643] = clik.newPhoto({"id":1403643,"src":"04380001_thumb.jpg","galleries_id":97550,"server_id":18,"link":"photo_1403643.html","width":130,"caption":"ITEM # 1403643","height":129});
															thumbnails[65261] = clik.newPhoto({"id":65261,"src":"P9076232 (2)_thumb.JPG","galleries_id":4266,"server_id":18,"link":"photo_65261.html","width":130,"caption":"ITEM # 65261","height":30});
															thumbnails[65260] = clik.newPhoto({"id":65260,"src":"P9076230 (2)_thumb.JPG","galleries_id":4266,"server_id":18,"link":"photo_65260.html","width":130,"caption":"ITEM # 65260","height":32});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[319581] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CANADIAN RHAPSODY 2010","link":"gallery_319581.html","maxRecords":0.0,"photoIDs":[6420526.0],"skipIndex":0,"section_code":"gallery","featured_images":6420526.0,"id":319581,"singleSection":false});				  						galleries[319580] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MORNING MIST","link":"gallery_319580.html","maxRecords":0.0,"photoIDs":[5636755.0,5636761.0,5636762.0,5636764.0],"skipIndex":0,"section_code":"gallery","featured_images":5636755.0,"id":319580,"singleSection":false});				  						galleries[255543] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NEW ART","link":"gallery_255543.html","maxRecords":0.0,"photoIDs":[4342499.0,4342503.0,4144372.0,4342153.0,4342416.0,4144441.0,4342155.0,4342151.0],"skipIndex":0,"section_code":"gallery","featured_images":4342416.0,"id":255543,"singleSection":false});				  						galleries[255542] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NEW 36\" x 36\"","link":"gallery_255542.html","maxRecords":0.0,"photoIDs":[4144456.0,4144370.0,4144371.0,4144458.0],"skipIndex":0,"section_code":"gallery","featured_images":4144456.0,"id":255542,"singleSection":false});				  						galleries[247777] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"KAUAI ON MY MIND","link":"gallery_247777.html","maxRecords":0.0,"photoIDs":[4144373.0,4342593.0,3033226.0,3033206.0,3033225.0,3033222.0,4342271.0],"skipIndex":0,"section_code":"gallery","featured_images":4144373.0,"id":247777,"singleSection":false});				  						galleries[255550] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BLACK & WHITE WORLD","link":"gallery_255550.html","maxRecords":0.0,"photoIDs":[3033168.0],"skipIndex":0,"section_code":"gallery","featured_images":3033168.0,"id":255550,"singleSection":false});				  						galleries[97549] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"NEW ABSTRACT ART","link":"gallery_97549.html","maxRecords":0.0,"photoIDs":[1731622.0,1731624.0,1731626.0,1775610.0,1775609.0],"skipIndex":0,"section_code":"gallery","featured_images":1731622.0,"id":97549,"singleSection":false});				  						galleries[116374] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"POWER OF LOVE","link":"gallery_116374.html","maxRecords":0.0,"photoIDs":[1775500.0,1775504.0],"skipIndex":0,"section_code":"gallery","featured_images":1775500.0,"id":116374,"singleSection":false});				  						galleries[97547] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TOGETHER","link":"gallery_97547.html","maxRecords":0.0,"photoIDs":[1403657.0,40358.0,40340.0],"skipIndex":0,"section_code":"gallery","featured_images":"1403657,40340","id":97547,"singleSection":false});				  						galleries[12968] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"OUR FUTURE","link":"gallery_12968.html","maxRecords":0.0,"photoIDs":[140285.0,140286.0,140287.0],"skipIndex":0,"section_code":"gallery","featured_images":140285.0,"id":12968,"singleSection":false});				  						galleries[97550] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CANADIAN RHAPSODY","link":"gallery_97550.html","maxRecords":0.0,"photoIDs":[1403646.0,40337.0,40338.0,1403645.0,1403643.0],"skipIndex":0,"section_code":"gallery","featured_images":1403646.0,"id":97550,"singleSection":false});				  						galleries[4191] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"REFLECTIONS","link":"gallery_4191.html","maxRecords":0.0,"photoIDs":[41035.0,40353.0,41039.0,4342787.0,4342263.0,4342272.0,4342385.0],"skipIndex":0,"section_code":"gallery","featured_images":41035.0,"id":4191,"singleSection":false});				  						galleries[4195] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"UNIVERSE","link":"gallery_4195.html","maxRecords":0.0,"photoIDs":[3033166.0],"skipIndex":0,"section_code":"gallery","featured_images":3033166.0,"id":4195,"singleSection":false});				  						galleries[4266] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TUSCANY ON MY MIND","link":"gallery_4266.html","maxRecords":0.0,"photoIDs":[65247.0,65249.0,65257.0,65261.0,65260.0],"skipIndex":0,"section_code":"gallery","featured_images":"65261,65260,65257,65249,65247","id":4266,"singleSection":false});				  						galleries[4265] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CITYSCAPES II.","link":"gallery_4265.html","maxRecords":0.0,"photoIDs":[41046.0,41048.0,41047.0],"skipIndex":0,"section_code":"gallery","featured_images":41046.0,"id":4265,"singleSection":false});				  						galleries[255553] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SEASCAPES","link":"gallery_255553.html","maxRecords":0.0,"photoIDs":[4342251.0,4342256.0],"skipIndex":0,"section_code":"gallery","featured_images":4342251.0,"id":255553,"singleSection":false});				  						galleries[211072] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"HAWAIAN PETROGLYPHS","link":"gallery_211072.html","maxRecords":0.0,"photoIDs":[3452894.0],"skipIndex":0,"section_code":"gallery","featured_images":3452894.0,"id":211072,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1403657';
imageSets[2] = '6420526,5636778,5636755,4342416,4342251,4342156,4144456,4144376,4144373,3452894,3033168,3033166,1775500,1731622,1403657,1403646,140289,140285,41046,41035,40340';
imageSets[3] = '6420526,5636778,5636764,5636762,5636761,5636755,4342787,4342593,4342503,4342499,4342416,4342408,4342406,4342385,4342272,4342271,4342263,4342256,4342251,4342162,4342160,4342157,4342156,4342155,4342153,4342151,4144458,4144456,4144455,4144454,4144451,4144441,4144376,4144373,4144372,4144371,4144370,3452895,3452894,3033226,3033225,3033222,3033206,3033168,3033166,1775610,1775609,1775504,1775500,1731626';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ambrose/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ambrose/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ambrose/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ambrose/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ambrose/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ambrose/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ambrose/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 = 'ED AMBROSE: ' + 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> CN$' + (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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

