window.thumbnails = new Object();
												thumbnails[2218189] = new thumbnail(2218189,'','','ace small_thumb.JPG',130, 129,1,'#');
												thumbnails[3985342] = new thumbnail(3985342,'','','me2_thumb.JPG',130, 188,1,'#');
												thumbnails[1051553] = new thumbnail(1051553,'','Reading, Saturday Morning.  Roisin McAuley and Richard Lee','reading_thumb.JPG',130, 96,1,'#');
												thumbnails[1051560] = new thumbnail(1051560,'','Annie and Salvador','annie_thumb.JPG',130, 307,1,'#');
												thumbnails[1051583] = new thumbnail(1051583,'','Self','self1_thumb.JPG',130, 277,1,'#');
												thumbnails[2848651] = new thumbnail(2848651,'','The Contender II','contender 2_1_thumb.JPG',130, 204,1,'#');
												thumbnails[577286] = new thumbnail(577286,'','Self in the Studio Calm','self oval_thumb.JPG',130, 163,1,'#');
												thumbnails[7258112] = new thumbnail(7258112,'','imagining more perfect worlds','imagining_drawing_thumb.JPG',130, 95,1,'#');
												thumbnails[7917838] = new thumbnail(7917838,'','man in the machine','men_in_the_machine_i_web_thumb.jpg',130, 164,1,'#');
												thumbnails[6133124] = new thumbnail(6133124,'343576','starbucks coffee cup holder depicting electron - positron interaction','starbucks_thumb.jpg',130, 87,1,'photo_6133124.html');
												thumbnails[6133128] = new thumbnail(6133128,'343576','all matter is the same','all_matter_is_the_same2123_thumb.JPG',130, 163,1,'photo_6133128.html');
												thumbnails[6133133] = new thumbnail(6133133,'343576','this tremendous world of interconnecting hierarchies','hierarchy_A4_thumb.jpg',130, 184,1,'photo_6133133.html');
												thumbnails[6301044] = new thumbnail(6301044,'343576','the universal and abstract nature of our scientific theories lets the human scaffolding via which they are constructed be completely removed from the final edifice','edifice_drawing_thumb.JPG',130, 186,1,'photo_6301044.html');
												thumbnails[6529364] = new thumbnail(6529364,'343576','physicist i','physicist1_thumb.JPG',130, 236,1,'photo_6529364.html');
												thumbnails[6862718] = new thumbnail(6862718,'343576','the beginning and the end','The_beginning_and_the_end_thumb.jpg',130, 98,1,'photo_6862718.html');
												thumbnails[6989492] = new thumbnail(6989492,'343576','thought experiment with entangled photons','alice_and_bob_1_thumb.jpg',130, 86,1,'photo_6989492.html');
												thumbnails[7185780] = new thumbnail(7185780,'343576','the flight of an idea','idea_in_flight_thumb.jpg',130, 107,1,'photo_7185780.html');
												thumbnails[7448289] = new thumbnail(7448289,'343576','the laws of physics','the_laws_of_physics_thumb.JPG',130, 55,1,'photo_7448289.html');
												thumbnails[7452574] = new thumbnail(7452574,'343576','man explaining aspects of electromagnetism','em_lecture_thumb.jpg',130, 101,1,'photo_7452574.html');
												thumbnails[7912432] = new thumbnail(7912432,'343576','light is a force','light_is_a_force_web_thumb.jpg',130, 219,1,'photo_7912432.html');
												thumbnails[6133135] = new thumbnail(6133135,'343576','\'there is always the chance of an unexpected result that will shake the world\'','entanglement_thumb.JPG',130, 93,1,'photo_6133135.html');
												thumbnails[6177307] = new thumbnail(6177307,'343576','a proposal for small reversals in the arrow of time','proposal1_thumb.JPG',130, 98,1,'photo_6177307.html');
												thumbnails[7100232] = new thumbnail(7100232,'343576','calculating in the space beyond \'reality\'','calculating_beyond_reality_thumb.JPG',130, 83,1,'photo_7100232.html');
												thumbnails[7265603] = new thumbnail(7265603,'343576','the things with which we concern ourselves in science.....','the_things_we_concern_ourselves_with_in_science1_thumb.JPG',130, 102,1,'photo_7265603.html');
												thumbnails[7627940] = new thumbnail(7627940,'343576','do we live at a special time?','do_we_live_at_a_special_time1_thumb.jpg',130, 193,1,'photo_7627940.html');
												thumbnails[7490674] = new thumbnail(7490674,'343576','man in the machine','man_in_the_machine1_thumb.jpg',130, 176,1,'photo_7490674.html');
												thumbnails[7627913] = new thumbnail(7627913,'343576','Professor Richard Feynman','feynman1_thumb.jpg',130, 81,1,'photo_7627913.html');
												thumbnails[7424976] = new thumbnail(7424976,'343576','physicist ii','physicist2_thumb.JPG',130, 206,1,'photo_7424976.html');
												thumbnails[7919002] = new thumbnail(7919002,'343576','man talking about plasma','plasma_drawing_thumb.jpg',130, 86,1,'photo_7919002.html');
												thumbnails[3442792] = new thumbnail(3442792,'252122','Duality','black_hole_in_milky_way_thumb.JPG',130, 132,1,'photo_3442792.html');
												thumbnails[3567209] = new thumbnail(3567209,'252122','uncertain outcome','uncertain_outcome_i1_thumb.JPG',130, 136,1,'photo_3567209.html');
												thumbnails[3763988] = new thumbnail(3763988,'252122','Man Reaching for the Sun','man_reaching_i_thumb.JPG',130, 173,1,'photo_3763988.html');
												thumbnails[3806936] = new thumbnail(3806936,'252122','Taste of Mango','juicy_mango_eater_thumb.JPG',130, 183,1,'photo_3806936.html');
												thumbnails[4078881] = new thumbnail(4078881,'252122','latitude','woman_contemplating_thumb.JPG',130, 182,1,'photo_4078881.html');
												thumbnails[4140188] = new thumbnail(4140188,'252122','Writer and Painter','poet_and_painter_thumb.JPG',130, 121,1,'photo_4140188.html');
												thumbnails[4629607] = new thumbnail(4629607,'252122','Poet and Painter','poet_and_painter_small_thumb.jpg',130, 130,1,'photo_4629607.html');
												thumbnails[4708309] = new thumbnail(4708309,'252122','Upside Down Woman (2nd version)','upsidedownwoman_thumb.JPG',130, 406,1,'photo_4708309.html');
												thumbnails[4708344] = new thumbnail(4708344,'252122','thought experiment ','thought_experiment_colour_thumb.JPG',130, 139,1,'photo_4708344.html');
												thumbnails[4796777] = new thumbnail(4796777,'252122','Butterfly Collector','lepidopteristyellow_thumb.JPG',130, 143,1,'photo_4796777.html');
												thumbnails[4863144] = new thumbnail(4863144,'252122','The Butterfly Collectors','butterfly_collectors_thumb.JPG',130, 105,1,'photo_4863144.html');
												thumbnails[5193344] = new thumbnail(5193344,'252122','Flying Machine','yellow_flying_machine_thumb.JPG',130, 184,1,'photo_5193344.html');
												thumbnails[5252696] = new thumbnail(5252696,'252122','Her Garden','her_garden_21_thumb.JPG',130, 104,1,'photo_5252696.html');
												thumbnails[5317218] = new thumbnail(5317218,'252122','flying machine','flying_machine5_thumb.JPG',130, 168,1,'photo_5317218.html');
												thumbnails[5414762] = new thumbnail(5414762,'252122','Construction Drawing','construction_thumb.JPG',130, 139,1,'photo_5414762.html');
												thumbnails[5463304] = new thumbnail(5463304,'252122','men listening to the start of the universe','cosmic_background_radiation_thumb.JPG',130, 166,1,'photo_5463304.html');
												thumbnails[5540959] = new thumbnail(5540959,'252122','equation for the beginning','Equation_for_the_Beginning_1_thumb.JPG',130, 110,1,'photo_5540959.html');
												thumbnails[5566234] = new thumbnail(5566234,'252122','desert','desert2_thumb.JPG',130, 91,1,'photo_5566234.html');
												thumbnails[5569304] = new thumbnail(5569304,'252122','The Breath of an Idea','themeeting2_thumb.JPG',130, 141,1,'photo_5569304.html');
												thumbnails[362532] = new thumbnail(362532,'29730','Bathers','bathers_thumb.JPG',130, 104,1,'photo_362532.html');
												thumbnails[362533] = new thumbnail(362533,'29730','Friends','friends_thumb.JPG',130, 218,1,'photo_362533.html');
												thumbnails[362534] = new thumbnail(362534,'29730','Liverpool Street','liverpoolstreet_thumb.JPG',130, 102,1,'photo_362534.html');
												thumbnails[362536] = new thumbnail(362536,'29730','Lollipop Boy','lollipop_thumb.JPG',130, 104,1,'photo_362536.html');
												thumbnails[362538] = new thumbnail(362538,'29730','Monsoon','monsoon_thumb.JPG',130, 164,1,'photo_362538.html');
												thumbnails[362539] = new thumbnail(362539,'29730','Pink Coat','platform_thumb.JPG',130, 161,1,'photo_362539.html');
												thumbnails[362540] = new thumbnail(362540,'29730','Room 21','room21_thumb.JPG',130, 92,1,'photo_362540.html');
												thumbnails[362542] = new thumbnail(362542,'29730','Scribblers','scribblers_thumb.JPG',130, 105,1,'photo_362542.html');
												thumbnails[362544] = new thumbnail(362544,'29730','Cigarette Break','smoker_thumb.JPG',130, 98,1,'photo_362544.html');
												thumbnails[362546] = new thumbnail(362546,'29730','The Story','thestory_thumb.JPG',130, 104,1,'photo_362546.html');
												thumbnails[362548] = new thumbnail(362548,'29730','Viewing Point','viewingpoint_thumb.JPG',130, 99,1,'photo_362548.html');
												thumbnails[362556] = new thumbnail(362556,'29730','Anaesthesia','anaesthesia_thumb.JPG',130, 162,1,'photo_362556.html');
												thumbnails[362561] = new thumbnail(362561,'29730','Day Trippers','daytrippers_thumb.JPG',130, 152,1,'photo_362561.html');
												thumbnails[362572] = new thumbnail(362572,'29730','Strange Dancer','strange dancer_thumb.JPG',130, 178,1,'photo_362572.html');
												thumbnails[374848] = new thumbnail(374848,'29730','My Adulterous Wife, Drawing','adulterous wife drawing_thumb.JPG',130, 170,1,'photo_374848.html');
												thumbnails[637919] = new thumbnail(637919,'29731','Small Self','small self_thumb.JPG',130, 185,1,'photo_637919.html');
												thumbnails[692858] = new thumbnail(692858,'29731','Blue Carousel','blue roundabout_thumb.JPG',130, 184,1,'photo_692858.html');
												thumbnails[692866] = new thumbnail(692866,'29731','Anesthesia','anesthesia 2_thumb.JPG',130, 191,1,'photo_692866.html');
												thumbnails[692868] = new thumbnail(692868,'29731','Camouflage','camouflage 2_thumb.JPG',130, 100,1,'photo_692868.html');
												thumbnails[692871] = new thumbnail(692871,'29731','Camouflage II','canouflage_thumb.JPG',130, 92,1,'photo_692871.html');
												thumbnails[5074585] = new thumbnail(5074585,'54564','Upside Down Woman - version 1','upside_down_woman_-_cardboard_thumb.JPG',130, 358,1,'photo_5074585.html');
												thumbnails[1969745] = new thumbnail(1969745,'121542','God on our side','Men Fighting 2_thumb.JPG',130, 86,1,'photo_1969745.html');
												thumbnails[2235511] = new thumbnail(2235511,'121542','Vacuum energy','waiting_thumb.JPG',130, 140,1,'photo_2235511.html');
												thumbnails[2046558] = new thumbnail(2046558,'121542','The go-between','go-between_thumb.JPG',130, 88,1,'photo_2046558.html');
												thumbnails[2306025] = new thumbnail(2306025,'121542','First test of the new theory','limelight_thumb.JPG',130, 202,1,'photo_2306025.html');
												thumbnails[1635414] = new thumbnail(1635414,'121542','All Winners','all winners_thumb.JPG',130, 93,1,'photo_1635414.html');
												thumbnails[2666673] = new thumbnail(2666673,'121542','The fragile reversal of entropy','wisdom II1_thumb.JPG',130, 159,1,'photo_2666673.html');
												thumbnails[2666674] = new thumbnail(2666674,'121542','Standing on the shoulders of giants','Wisdom I_thumb.JPG',130, 142,1,'photo_2666674.html');
												thumbnails[3457910] = new thumbnail(3457910,'121542','Hope','hope painting_thumb.JPG',130, 163,1,'photo_3457910.html');
												thumbnails[3143644] = new thumbnail(3143644,'121542','Archimedes and the golden crown','archimedes_thumb.JPG',130, 125,1,'photo_3143644.html');
												thumbnails[2794005] = new thumbnail(2794005,'121542','The equation of everything','equation_of_everything_2_thumb.JPG',130, 98,1,'photo_2794005.html');
												thumbnails[2832807] = new thumbnail(2832807,'121542','Circular constant','Woman By Pool Ptg1_thumb.JPG',130, 93,1,'photo_2832807.html');
												thumbnails[3187394] = new thumbnail(3187394,'121542','It must be beautiful','her garden_thumb.JPG',130, 103,1,'photo_3187394.html');
												thumbnails[1807683] = new thumbnail(1807683,'121542','Men Fighting With Broomsticks About Ladders','broomsticks2_thumb.JPG',130, 179,1,'photo_1807683.html');
												thumbnails[1888704] = new thumbnail(1888704,'121542','Face With A View (II)','Face With A View small_thumb.JPG',130, 155,1,'photo_1888704.html');
												thumbnails[1843086] = new thumbnail(1843086,'121542','Gasping Woman ','Gasping Woman_thumb.JPG',130, 184,1,'photo_1843086.html');
												thumbnails[698138] = new thumbnail(698138,'29731','\'Happy Folly\'  after Goya','happy folly_thumb.JPG',130, 86,1,'photo_698138.html');
												thumbnails[2177045] = new thumbnail(2177045,'121542','Time','man by canal1_thumb.JPG',130, 191,1,'photo_2177045.html');
												thumbnails[2264098] = new thumbnail(2264098,'121542','Woman by Pool','woman by pool_thumb.JPG',130, 92,1,'photo_2264098.html');
												thumbnails[1807684] = new thumbnail(1807684,'121542','Hope ','hope 3_thumb.JPG',130, 171,1,'photo_1807684.html');
												thumbnails[1874217] = new thumbnail(1874217,'121542','Cafe','cafe_thumb.JPG',130, 112,1,'photo_1874217.html');
												thumbnails[550614] = new thumbnail(550614,'29731','Red Carousel','roundabout22_thumb.JPG',130, 185,1,'photo_550614.html');
												thumbnails[550615] = new thumbnail(550615,'29731','Self at Night','self_thumb.JPG',130, 188,1,'photo_550615.html');
												thumbnails[1612670] = new thumbnail(1612670,'54564','Fishing Stories','alpha and beta_thumb.JPG',130, 103,1,'photo_1612670.html');
												thumbnails[361619] = new thumbnail(361619,'29731','Vulnerable Body','pins_thumb.JPG',130, 173,1,'photo_361619.html');
												thumbnails[361592] = new thumbnail(361592,'29731','Contender','contender_thumb.JPG',130, 197,1,'photo_361592.html');
												thumbnails[366778] = new thumbnail(366778,'29731','Dandelion','dandelion21_thumb.JPG',130, 191,1,'photo_366778.html');
												thumbnails[1612688] = new thumbnail(1612688,'54564','Night Journey','city_thumb.JPG',130, 97,1,'photo_1612688.html');
												thumbnails[361606] = new thumbnail(361606,'29731','Day Trippers','daytrippers1_thumb.JPG',130, 157,1,'photo_361606.html');
												thumbnails[1661817] = new thumbnail(1661817,'54564','All Winners','all winners 2_thumb.JPG',130, 92,1,'photo_1661817.html');
												thumbnails[364013] = new thumbnail(364013,'29731','Hack','hack2_thumb.JPG',130, 99,1,'photo_364013.html');
												thumbnails[1266816] = new thumbnail(1266816,'54564','Princess','princess_thumb.JPG',130, 102,1,'photo_1266816.html');
												thumbnails[1557699] = new thumbnail(1557699,'54564','Face With A View','face with view_thumb.JPG',130, 182,1,'photo_1557699.html');
												thumbnails[1509013] = new thumbnail(1509013,'54564','Mute','mute_thumb.JPG',130, 89,1,'photo_1509013.html');
												thumbnails[1557701] = new thumbnail(1557701,'54564','Petrol Night','petrol drawing_thumb.JPG',130, 227,1,'photo_1557701.html');
												thumbnails[474455] = new thumbnail(474455,'29731','Patriot','patriot1_thumb.JPG',130, 120,1,'photo_474455.html');
												thumbnails[362568] = new thumbnail(362568,'29730','Monkey','monkey_thumb.JPG',130, 178,1,'photo_362568.html');
												thumbnails[364012] = new thumbnail(364012,'29731','Black Roundabout','roundabout11_thumb.JPG',130, 209,1,'photo_364012.html');
												thumbnails[504562] = new thumbnail(504562,'29730','Crisps','crisps and coffee cup_thumb.jpg',130, 92,1,'photo_504562.html');
												thumbnails[806222] = new thumbnail(806222,'29731','Small Talk','smalltalk5_thumb.JPG',130, 162,1,'photo_806222.html');
												thumbnails[845038] = new thumbnail(845038,'29731','Mirror','mirror_thumb.JPG',130, 130,1,'photo_845038.html');
												thumbnails[845037] = new thumbnail(845037,'29731','Spring','back garden_thumb.JPG',130, 178,1,'photo_845037.html');
												thumbnails[845036] = new thumbnail(845036,'54564','Captains 3','trail_thumb.JPG',130, 92,1,'photo_845036.html');
												thumbnails[964997] = new thumbnail(964997,'54564','Outsider','outsider_thumb.JPG',130, 189,1,'photo_964997.html');
												thumbnails[964996] = new thumbnail(964996,'54564','Anesthesia','anesthesia drawing_thumb.JPG',130, 185,1,'photo_964996.html');
												thumbnails[932795] = new thumbnail(932795,'54564','Velvet Lounge','Velvet Lounge_thumb.JPG',130, 96,1,'photo_932795.html');
												thumbnails[932792] = new thumbnail(932792,'54564','Flag','Flag_thumb.JPG',130, 189,1,'photo_932792.html');
												thumbnails[932708] = new thumbnail(932708,'54564','Private View','Drift_thumb.JPG',130, 175,1,'photo_932708.html');
												thumbnails[932722] = new thumbnail(932722,'54564','Underneath','underneath3_thumb.JPG',130, 174,1,'photo_932722.html');
												thumbnails[932717] = new thumbnail(932717,'54564','Spilt','Spilt_thumb.JPG',130, 95,1,'photo_932717.html');
												thumbnails[932715] = new thumbnail(932715,'54564','Rain','Rain_thumb.JPG',130, 174,1,'photo_932715.html');
												thumbnails[764325] = new thumbnail(764325,'54564','Patriot','patriot3_thumb.JPG',130, 178,1,'photo_764325.html');
												thumbnails[932713] = new thumbnail(932713,'54564','Monkey','Moonlight Carousel_thumb.JPG',130, 190,1,'photo_932713.html');
												thumbnails[932706] = new thumbnail(932706,'54564','Click Here','Click Here1_thumb.JPG',130, 194,1,'photo_932706.html');
												thumbnails[692873] = new thumbnail(692873,'54564','Contender II','contender 2_thumb.JPG',130, 204,1,'photo_692873.html');
												thumbnails[710370] = new thumbnail(710370,'54564','Badges','badges drawing_thumb.JPG',130, 85,1,'photo_710370.html');
												thumbnails[761496] = new thumbnail(761496,'54564','Bombs','Bombs_thumb.JPG',130, 99,1,'photo_761496.html');
												thumbnails[3749425] = new thumbnail(3749425,'121542','Seer','seer_small_1_thumb.jpg',130, 174,1,'photo_3749425.html');
												thumbnails[735204] = new thumbnail(735204,'54564','Red Night Junction','night junction red_thumb.JPG',130, 240,1,'photo_735204.html');
												thumbnails[2072758] = new thumbnail(2072758,'121542','The Man Who Fell Over Laughing','man_who_fell_thumb.JPG',130, 68,1,'photo_2072758.html');
												thumbnails[1874226] = new thumbnail(1874226,'121542','Figure Going to War','figure going to war1_thumb.JPG',130, 250,1,'photo_1874226.html');
												thumbnails[838940] = new thumbnail(838940,'54564','Captains','lounge 1_thumb.JPG',130, 94,1,'photo_838940.html');
												thumbnails[838959] = new thumbnail(838959,'54564','Captains 2','lounge 2_thumb.JPG',130, 92,1,'photo_838959.html');
												thumbnails[703869] = new thumbnail(703869,'54564','Black Carousel','black carousel_thumb.JPG',130, 188,1,'photo_703869.html');
												thumbnails[838988] = new thumbnail(838988,'54564','Ronan\'s Chalet','ronan\'s chalet_thumb.JPG',130, 183,1,'photo_838988.html');
												thumbnails[838987] = new thumbnail(838987,'54564','Bavaria in Spring 2','bavaria2_thumb.JPG',130, 94,1,'photo_838987.html');
												thumbnails[838985] = new thumbnail(838985,'54564','Bavaria in Spring','bavaria_thumb.JPG',130, 98,1,'photo_838985.html');
												thumbnails[1114245] = new thumbnail(1114245,'54564','Allotment','allotment_thumb.JPG',130, 92,1,'photo_1114245.html');
												thumbnails[1530292] = new thumbnail(1530292,'54564','Donegal One','donegal1_thumb.JPG',130, 94,1,'photo_1530292.html');
												thumbnails[1530293] = new thumbnail(1530293,'54564','Donegal 2','donegal2_thumb.JPG',130, 97,1,'photo_1530293.html');
												thumbnails[1530294] = new thumbnail(1530294,'54564','Donegal 3','donegal3_thumb.JPG',130, 95,1,'photo_1530294.html');
												thumbnails[735200] = new thumbnail(735200,'54564','Me and Van Gogh','on the road_thumb.JPG',130, 169,1,'photo_735200.html');
												thumbnails[2037673] = new thumbnail(2037673,'121542','Figure With Nails','figure_with_nails_thumb.JPG',130, 157,1,'photo_2037673.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[343576] = new gallery(343576,'7919002,7912432,7627940,7627913,7490674,7452574,7448289,7424976,7265603,7185780','Current','section410513',[6133124,6133128,6133133,6301044,6529364,6862718,6989492,7185780,7448289,7452574,7912432,6133135,6177307,7100232,7265603,7627940,7490674,7627913,7424976,7919002],0, 0, '', 'section410513.html',0,1);
				  					galleries[252122] = new gallery(252122,'4629607','Recent','section300250',[3442792,3567209,3763988,3806936,4078881,4140188,4629607,4708309,4708344,4796777,4863144,5193344,5252696,5317218,5414762,5463304,5540959,5566234,5569304],0, 0, '', 'section300250.html',0,1);
				  					galleries[121542] = new gallery(121542,'3749425,3457910,3187394,3143644,2832807,2794005,2666674,2666673,2306025,2264098','2008','gallery',[1969745,2235511,2046558,2306025,1635414,2666673,2666674,3457910,3143644,2794005,2832807,3187394,1807683,1888704,1843086,2177045,2264098,1807684,1874217,3749425,2072758,1874226,2037673],0, 0, '', 'gallery_121542.html',0,0);
				  					galleries[54564] = new gallery(54564,'5074585,1661817,1612688,1612670,1557701,1557699,1530294,1530293,1530292,1509013','2007','gallery',[5074585,1612670,1612688,1661817,1266816,1557699,1509013,1557701,845036,964997,964996,932795,932792,932708,932722,932717,932715,764325,932713,932706,692873,710370,761496,735204,838940,838959,703869,838988,838987,838985,1114245,1530292,1530293,1530294,735200],0, 0, '', 'gallery_54564.html',0,0);
				  					galleries[29731] = new gallery(29731,'845038,845037,806222,698138,692871,692868,692866,692858,637919,550615','2006','gallery',[637919,692858,692866,692868,692871,698138,550614,550615,361619,361592,366778,361606,364013,474455,364012,806222,845038,845037],0, 0, '', 'gallery_29731.html',0,0);
				  					galleries[29730] = new gallery(29730,'504562,374848,362572,362568,362561,362556,362548,362546,362544,362542','2004/05','gallery',[362532,362533,362534,362536,362538,362539,362540,362542,362544,362546,362548,362556,362561,362572,374848,362568,504562],0, 0, '', 'gallery_29730.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6529364';
imageSets[2] = '4629607,1051583';
imageSets[3] = '5540959';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/geraldinec/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/geraldinec/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 += 'section410513.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 && 'section410513' != '') {
					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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Geraldine Cox: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object' || array == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>note: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

