window.thumbnails = {};
															thumbnails[7689365] = clik.newPhoto({"id":7689365,"src":"cornerhouse1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":120,"caption":"","height":79});
															thumbnails[7682765] = clik.newPhoto({"id":7682765,"src":"Everyday_Life_Reader1_thumb.jpg","galleries_id":412935,"server_id":15,"link":"photo_7682765.html","width":120,"caption":"","height":113});
															thumbnails[7682793] = clik.newPhoto({"id":7682793,"src":"drawing_stack1_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682793.html","width":120,"caption":"","height":90});
															thumbnails[7682849] = clik.newPhoto({"id":7682849,"src":"Duet1_thumb.jpg","galleries_id":412944,"server_id":15,"link":"photo_7682849.html","width":120,"caption":"","height":74});
															thumbnails[7682857] = clik.newPhoto({"id":7682857,"src":"1.gramophone_dj_web_thumb.jpg","galleries_id":412934,"server_id":15,"link":"photo_7682857.html","width":120,"caption":"Wind-Up, Victoria Baths, Manchester (Sonic Arts Expo 2006)","height":90});
															thumbnails[7682860] = clik.newPhoto({"id":7682860,"src":"Repetition1_thumb.jpg","galleries_id":412927,"server_id":15,"link":"photo_7682860.html","width":120,"caption":"","height":80});
															thumbnails[7687933] = clik.newPhoto({"id":7687933,"src":"Iniva6_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687933.html","width":120,"caption":"","height":80});
															thumbnails[7687955] = clik.newPhoto({"id":7687955,"src":"Stationery_Orchestra1_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687955.html","width":120,"caption":"","height":80});
															thumbnails[7689299] = clik.newPhoto({"id":7689299,"src":"Piano_Hammer1_thumb.jpg","galleries_id":416377,"server_id":15,"link":"photo_7689299.html","width":90,"caption":"","height":120});
															thumbnails[7689368] = clik.newPhoto({"id":7689368,"src":"Iniva121_thumb.jpg","galleries_id":416379,"server_id":15,"link":"photo_7689368.html","width":107,"caption":"","height":120});
															thumbnails[7689378] = clik.newPhoto({"id":7689378,"src":"KandK1_thumb.jpg","galleries_id":412952,"server_id":15,"link":"photo_7689378.html","width":90,"caption":"","height":120});
															thumbnails[7689406] = clik.newPhoto({"id":7689406,"src":"Unrealised_Potential1_thumb.jpg","galleries_id":412946,"server_id":15,"link":"photo_7689406.html","width":120,"caption":"","height":120});
															thumbnails[7682799] = clik.newPhoto({"id":7682799,"src":"drawing_stack2_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682799.html","width":90,"caption":"","height":120});
															thumbnails[7682850] = clik.newPhoto({"id":7682850,"src":"Duet2_thumb.jpg","galleries_id":412944,"server_id":15,"link":"photo_7682850.html","width":120,"caption":"","height":85});
															thumbnails[7682858] = clik.newPhoto({"id":7682858,"src":"2.Wind_up_victoria_web_thumb.jpg","galleries_id":412934,"server_id":15,"link":"photo_7682858.html","width":90,"caption":"Wind-Up, Victoria Baths, Manchester (Sonic Arts Expo 2006)","height":120});
															thumbnails[7687935] = clik.newPhoto({"id":7687935,"src":"Iniva5_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687935.html","width":120,"caption":"","height":80});
															thumbnails[7687956] = clik.newPhoto({"id":7687956,"src":"Stationery_Orchestra2_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687956.html","width":120,"caption":"","height":80});
															thumbnails[7689301] = clik.newPhoto({"id":7689301,"src":"Piano_Hammer2_thumb.jpg","galleries_id":416377,"server_id":15,"link":"photo_7689301.html","width":90,"caption":"","height":120});
															thumbnails[7689306] = clik.newPhoto({"id":7689306,"src":"Piano_String2_84192D3D-1E4F-37DC-715A0D722F6CA864_thumb.jpg","galleries_id":416378,"server_id":15,"link":"photo_7689306.html","width":90,"caption":"","height":120});
															thumbnails[7689370] = clik.newPhoto({"id":7689370,"src":"Iniva21_thumb.jpg","galleries_id":416379,"server_id":15,"link":"photo_7689370.html","width":80,"caption":"","height":120});
															thumbnails[7689379] = clik.newPhoto({"id":7689379,"src":"KandK2_thumb.jpg","galleries_id":412952,"server_id":15,"link":"photo_7689379.html","width":120,"caption":"","height":90});
															thumbnails[7682810] = clik.newPhoto({"id":7682810,"src":"drawing_stack3_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682810.html","width":90,"caption":"","height":120});
															thumbnails[7682852] = clik.newPhoto({"id":7682852,"src":"Duet3_thumb.jpg","galleries_id":412944,"server_id":15,"link":"photo_7682852.html","width":120,"caption":"","height":85});
															thumbnails[7682859] = clik.newPhoto({"id":7682859,"src":"3.Wind-up_performance1_thumb.jpg","galleries_id":412934,"server_id":15,"link":"photo_7682859.html","width":120,"caption":"Wind- Up, Red Deer Club, Fuel, Manchester (2005)","height":89});
															thumbnails[7687937] = clik.newPhoto({"id":7687937,"src":"Iniva10_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687937.html","width":120,"caption":"","height":80});
															thumbnails[7687974] = clik.newPhoto({"id":7687974,"src":"Stationery_Orchestra3_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687974.html","width":120,"caption":"","height":80});
															thumbnails[7689303] = clik.newPhoto({"id":7689303,"src":"Piano_Hammer31_thumb.jpg","galleries_id":416377,"server_id":15,"link":"photo_7689303.html","width":90,"caption":"","height":120});
															thumbnails[7689311] = clik.newPhoto({"id":7689311,"src":"Piano_String3_thumb.jpg","galleries_id":416378,"server_id":15,"link":"photo_7689311.html","width":90,"caption":"","height":120});
															thumbnails[7689369] = clik.newPhoto({"id":7689369,"src":"Iniva13_thumb.jpg","galleries_id":416379,"server_id":15,"link":"photo_7689369.html","width":80,"caption":"","height":120});
															thumbnails[7689380] = clik.newPhoto({"id":7689380,"src":"KandK3_thumb.jpg","galleries_id":412952,"server_id":15,"link":"photo_7689380.html","width":120,"caption":"","height":90});
															thumbnails[7682809] = clik.newPhoto({"id":7682809,"src":"drawing_stack4_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682809.html","width":90,"caption":"","height":120});
															thumbnails[7682853] = clik.newPhoto({"id":7682853,"src":"Duet4_thumb.jpg","galleries_id":412944,"server_id":15,"link":"photo_7682853.html","width":120,"caption":"","height":92});
															thumbnails[7687942] = clik.newPhoto({"id":7687942,"src":"Iniva9_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687942.html","width":120,"caption":"","height":80});
															thumbnails[7687975] = clik.newPhoto({"id":7687975,"src":"Stationery_Orchestra4_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687975.html","width":120,"caption":"","height":80});
															thumbnails[7689305] = clik.newPhoto({"id":7689305,"src":"Piano_Hammer4_thumb.jpg","galleries_id":416377,"server_id":15,"link":"photo_7689305.html","width":90,"caption":"","height":120});
															thumbnails[7689312] = clik.newPhoto({"id":7689312,"src":"Piano_String4_thumb.jpg","galleries_id":416378,"server_id":15,"link":"photo_7689312.html","width":90,"caption":"","height":120});
															thumbnails[7689371] = clik.newPhoto({"id":7689371,"src":"cornerhouse11_thumb.jpg","galleries_id":416379,"server_id":15,"link":"photo_7689371.html","width":120,"caption":"","height":79});
															thumbnails[7689381] = clik.newPhoto({"id":7689381,"src":"KandK4_thumb.jpg","galleries_id":412952,"server_id":15,"link":"photo_7689381.html","width":120,"caption":"","height":120});
															thumbnails[7682815] = clik.newPhoto({"id":7682815,"src":"drawing_stack5_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682815.html","width":90,"caption":"","height":120});
															thumbnails[7682854] = clik.newPhoto({"id":7682854,"src":"Duet5_thumb.jpg","galleries_id":412944,"server_id":15,"link":"photo_7682854.html","width":120,"caption":"","height":86});
															thumbnails[7687944] = clik.newPhoto({"id":7687944,"src":"Iniva11_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687944.html","width":80,"caption":"","height":120});
															thumbnails[7687976] = clik.newPhoto({"id":7687976,"src":"Stationery_Orchestra5_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687976.html","width":120,"caption":"","height":80});
															thumbnails[7689313] = clik.newPhoto({"id":7689313,"src":"Piano_String5_thumb.jpg","galleries_id":416378,"server_id":15,"link":"photo_7689313.html","width":90,"caption":"","height":120});
															thumbnails[7689374] = clik.newPhoto({"id":7689374,"src":"Iniva41_thumb.jpg","galleries_id":416377,"server_id":15,"link":"photo_7689374.html","width":120,"caption":"","height":80});
															thumbnails[7689383] = clik.newPhoto({"id":7689383,"src":"KandK5_thumb.jpg","galleries_id":412952,"server_id":15,"link":"photo_7689383.html","width":90,"caption":"","height":120});
															thumbnails[7682813] = clik.newPhoto({"id":7682813,"src":"drawing_stack6_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682813.html","width":90,"caption":"","height":120});
															thumbnails[7687934] = clik.newPhoto({"id":7687934,"src":"Iniva2_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687934.html","width":80,"caption":"","height":120});
															thumbnails[7687979] = clik.newPhoto({"id":7687979,"src":"Stationery_Orchestra6_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687979.html","width":120,"caption":"","height":80});
															thumbnails[7689315] = clik.newPhoto({"id":7689315,"src":"Piano_String6_thumb.jpg","galleries_id":416378,"server_id":15,"link":"photo_7689315.html","width":90,"caption":"","height":120});
															thumbnails[7689367] = clik.newPhoto({"id":7689367,"src":"cornerhouse21_thumb.jpg","galleries_id":416377,"server_id":15,"link":"photo_7689367.html","width":120,"caption":"","height":80});
															thumbnails[7689373] = clik.newPhoto({"id":7689373,"src":"Duet51_thumb.jpg","galleries_id":416378,"server_id":15,"link":"photo_7689373.html","width":120,"caption":"","height":86});
															thumbnails[7682824] = clik.newPhoto({"id":7682824,"src":"waterlily_shadow1_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682824.html","width":90,"caption":"","height":120});
															thumbnails[7687947] = clik.newPhoto({"id":7687947,"src":"Iniva12_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687947.html","width":107,"caption":"","height":120});
															thumbnails[7687981] = clik.newPhoto({"id":7687981,"src":"Stationery_Orchestra7_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687981.html","width":120,"caption":"","height":80});
															thumbnails[7682825] = clik.newPhoto({"id":7682825,"src":"waterlily_shadow2_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682825.html","width":90,"caption":"","height":120});
															thumbnails[7687949] = clik.newPhoto({"id":7687949,"src":"Iniva111_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687949.html","width":120,"caption":"","height":80});
															thumbnails[7687982] = clik.newPhoto({"id":7687982,"src":"Stationery_Orchestra8_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687982.html","width":120,"caption":"","height":80});
															thumbnails[7682826] = clik.newPhoto({"id":7682826,"src":"waterlily_shadow3_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682826.html","width":90,"caption":"","height":120});
															thumbnails[7687951] = clik.newPhoto({"id":7687951,"src":"Iniva4_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687951.html","width":120,"caption":"","height":80});
															thumbnails[7687984] = clik.newPhoto({"id":7687984,"src":"Stationery_Orchestra9_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687984.html","width":120,"caption":"","height":80});
															thumbnails[7682827] = clik.newPhoto({"id":7682827,"src":"4.DSCF0020_web_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682827.html","width":90,"caption":"","height":120});
															thumbnails[7687952] = clik.newPhoto({"id":7687952,"src":"Iniva3_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687952.html","width":80,"caption":"","height":120});
															thumbnails[7682828] = clik.newPhoto({"id":7682828,"src":"waterlily_shadow5_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682828.html","width":90,"caption":"","height":120});
															thumbnails[7687953] = clik.newPhoto({"id":7687953,"src":"Iniva7_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687953.html","width":120,"caption":"","height":80});
															thumbnails[7687986] = clik.newPhoto({"id":7687986,"src":"Stationery_Orchestra11_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687986.html","width":120,"caption":"","height":80});
															thumbnails[7682830] = clik.newPhoto({"id":7682830,"src":"waterlily_reflective1_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682830.html","width":90,"caption":"","height":120});
															thumbnails[7687954] = clik.newPhoto({"id":7687954,"src":"Iniva8_thumb.jpg","galleries_id":412943,"server_id":15,"link":"photo_7687954.html","width":120,"caption":"","height":80});
															thumbnails[7687987] = clik.newPhoto({"id":7687987,"src":"Stationery_Orchestra12_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687987.html","width":120,"caption":"","height":80});
															thumbnails[7682832] = clik.newPhoto({"id":7682832,"src":"waterlily_reflective2_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682832.html","width":90,"caption":"","height":120});
															thumbnails[7687989] = clik.newPhoto({"id":7687989,"src":"Stationery_Orchestra13_thumb.jpg","galleries_id":412945,"server_id":15,"link":"photo_7687989.html","width":120,"caption":"","height":80});
															thumbnails[7682833] = clik.newPhoto({"id":7682833,"src":"waterlily_reflective3_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682833.html","width":120,"caption":"","height":90});
															thumbnails[7682834] = clik.newPhoto({"id":7682834,"src":"waterlily_reflective4_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682834.html","width":120,"caption":"","height":90});
															thumbnails[7682836] = clik.newPhoto({"id":7682836,"src":"waterlily_reflective5_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682836.html","width":120,"caption":"","height":90});
															thumbnails[7682837] = clik.newPhoto({"id":7682837,"src":"waterlily_paper1_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682837.html","width":90,"caption":"","height":120});
															thumbnails[7682838] = clik.newPhoto({"id":7682838,"src":"waterlily_paper2_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682838.html","width":120,"caption":"","height":90});
															thumbnails[7682840] = clik.newPhoto({"id":7682840,"src":"waterlily_paper3_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682840.html","width":120,"caption":"","height":90});
															thumbnails[7682841] = clik.newPhoto({"id":7682841,"src":"waterlily_paper4_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682841.html","width":120,"caption":"","height":90});
															thumbnails[7682843] = clik.newPhoto({"id":7682843,"src":"waterlily_installation1_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682843.html","width":90,"caption":"","height":120});
															thumbnails[7682844] = clik.newPhoto({"id":7682844,"src":"waterlily_installation3_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682844.html","width":90,"caption":"","height":120});
															thumbnails[7682846] = clik.newPhoto({"id":7682846,"src":"waterlily_installation4_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682846.html","width":120,"caption":"","height":90});
															thumbnails[7682847] = clik.newPhoto({"id":7682847,"src":"5.DSCF0107_web_thumb.jpg","galleries_id":412941,"server_id":15,"link":"photo_7682847.html","width":120,"caption":"","height":90});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[412934] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wind-Up","link":"gallery_412934.html","maxRecords":0.0,"photoIDs":[7682857.0,7682858.0,7682859.0],"skipIndex":0,"section_code":"gallery","featured_images":"7682859,7682858,7682857","id":412934,"singleSection":false});				  						galleries[416379] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gramophone Record Drawings","link":"gallery_416379.html","maxRecords":0.0,"photoIDs":[7689368.0,7689370.0,7689369.0,7689371.0],"skipIndex":0,"section_code":"gallery","featured_images":"7689371,7689370,7689369,7689368","id":416379,"singleSection":false});				  						galleries[416377] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Piano Hammer Drawings","link":"gallery_416377.html","maxRecords":0.0,"photoIDs":[7689299.0,7689301.0,7689303.0,7689305.0,7689374.0,7689367.0],"skipIndex":0,"section_code":"gallery","featured_images":"7689374,7689367,7689305,7689303,7689301,7689299","id":416377,"singleSection":false});				  						galleries[416378] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Piano String Drawings","link":"gallery_416378.html","maxRecords":0.0,"photoIDs":[7689306.0,7689311.0,7689312.0,7689313.0,7689315.0,7689373.0],"skipIndex":0,"section_code":"gallery","featured_images":"7689373,7689315,7689313,7689312,7689311,7689306","id":416378,"singleSection":false});				  						galleries[412927] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"||:Repetition:||","link":"gallery_412927.html","maxRecords":0.0,"photoIDs":[7682860.0],"skipIndex":0,"section_code":"gallery","featured_images":7682860.0,"id":412927,"singleSection":false});				  						galleries[412941] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Suiren","link":"gallery_412941.html","maxRecords":0.0,"photoIDs":[7682793.0,7682799.0,7682810.0,7682809.0,7682815.0,7682813.0,7682824.0,7682825.0,7682826.0,7682827.0,7682828.0,7682830.0,7682832.0,7682833.0,7682834.0,7682836.0,7682837.0,7682838.0,7682840.0,7682841.0,7682843.0,7682844.0,7682846.0,7682847.0],"skipIndex":0,"section_code":"gallery","featured_images":"7682847,7682846,7682844,7682843,7682841,7682840,7682838,7682837,7682836,7682834","id":412941,"singleSection":false});				  						galleries[412935] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Everyday Life Reader","link":"gallery_412935.html","maxRecords":0.0,"photoIDs":[7682765.0],"skipIndex":0,"section_code":"gallery","featured_images":7682765.0,"id":412935,"singleSection":false});				  						galleries[412946] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Unrealised Potential: Illuminations ","link":"gallery_412946.html","maxRecords":0.0,"photoIDs":[7689406.0],"skipIndex":0,"section_code":"gallery","featured_images":7689406.0,"id":412946,"singleSection":false});				  						galleries[412945] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stationery Orchestra","link":"gallery_412945.html","maxRecords":0.0,"photoIDs":[7687955.0,7687956.0,7687974.0,7687975.0,7687976.0,7687979.0,7687981.0,7687982.0,7687984.0,7687986.0,7687987.0,7687989.0],"skipIndex":0,"section_code":"gallery","featured_images":"7687989,7687987,7687986,7687984,7687982,7687981,7687979,7687976,7687975,7687974","id":412945,"singleSection":false});				  						galleries[412944] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Duet (British Art Show Sideshow) 2006","link":"gallery_412944.html","maxRecords":0.0,"photoIDs":[7682849.0,7682850.0,7682852.0,7682853.0,7682854.0],"skipIndex":0,"section_code":"gallery","featured_images":"7682854,7682853,7682852,7682850,7682849","id":412944,"singleSection":false});				  						galleries[412943] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Progress Reports: art in an era of diversity","link":"gallery_412943.html","maxRecords":0.0,"photoIDs":[7687933.0,7687935.0,7687937.0,7687942.0,7687944.0,7687934.0,7687947.0,7687949.0,7687951.0,7687952.0,7687953.0,7687954.0],"skipIndex":0,"section_code":"gallery","featured_images":"7687954,7687953,7687952,7687951,7687949,7687947,7687944,7687942,7687937,7687935","id":412943,"singleSection":false});				  						galleries[412952] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Krysko & Kashiwagi","link":"gallery_412952.html","maxRecords":0.0,"photoIDs":[7689378.0,7689379.0,7689380.0,7689381.0,7689383.0],"skipIndex":0,"section_code":"gallery","featured_images":"7689383,7689381,7689380,7689379,7689378","id":412952,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7689406,7689383,7689381,7689380,7689379,7689378,7689374,7689373,7689371,7689370,7689369,7689368,7689367,7689365,7689315,7689313,7689312,7689311,7689306,7689305,7689303,7689301,7689299,7687989,7687987,7687986,7687984,7687982,7687981,7687979,7687976,7687975,7687974,7687956,7687955,7687954,7687953,7687952,7687951,7687949,7687947,7687944,7687942,7687937,7687935,7687934,7687933,7682860,7682859,7682858';
imageSets[3] = '7689406,7689383,7689381,7689380,7689379,7689378,7689374,7689373,7689371,7689370,7689369,7689368,7689367,7689365,7689315,7689313,7689312,7689311,7689306,7689305,7689303,7689301,7689299,7687989,7687987,7687986,7687984,7687982,7687981,7687979,7687976,7687975,7687974,7687956,7687955,7687954,7687953,7687952,7687951,7687949,7687947,7687944,7687942,7687937,7687935,7687934,7687933,7682860,7682859,7682858';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/naomikashiwagi/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/naomikashiwagi/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 = 'Naomi Kashiwagi: ' + 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> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

