window.thumbnails = new Object();
												thumbnails[608956] = new thumbnail(608956,'46696','Bruce MacGregor, Blazin Fiddles','Blazin 1 BW 2_thumb.jpg',130, 89,1,'																			photo_608956.html');
												thumbnails[611194] = new thumbnail(611194,'46696','John Smith','John Smith_thumb.jpg',130, 84,1,'																			photo_611194.html');
												thumbnails[611195] = new thumbnail(611195,'46696','King Creosote','King Creosote_thumb.jpg',130, 87,1,'																			photo_611195.html');
												thumbnails[608224] = new thumbnail(608224,'46696','Charlatans live at the Ironworks, Inverness. 21st November 2006','Charlatans 6 Low_thumb.jpg',130, 79,1,'																			photo_608224.html');
												thumbnails[608351] = new thumbnail(608351,'46699','','Ronnie T Old High Dreamer_thumb.jpg',130, 72,1,'																			photo_608351.html');
												thumbnails[621670] = new thumbnail(621670,'46627','Bumble Bee on Fushia','Bee on Fushia_thumb.jpg',130, 90,1,'																			photo_621670.html');
												thumbnails[621673] = new thumbnail(621673,'46699','Paphos Busker','Cyprus 2006 1081_thumb.jpg',130, 86,1,'																			photo_621673.html');
												thumbnails[621679] = new thumbnail(621679,'46627','Aphrodites\' Bath','Cyprus 2006 1151_thumb.jpg',130, 90,1,'																			photo_621679.html');
												thumbnails[621686] = new thumbnail(621686,'46699','Paphos Bathers','Cyprus 2006 1522_thumb.jpg',130, 72,1,'																			photo_621686.html');
												thumbnails[621719] = new thumbnail(621719,'46699','Paphos Bather','Cyprus 2006 1571_thumb.jpg',130, 86,1,'																			photo_621719.html');
												thumbnails[621722] = new thumbnail(621722,'46627','The Loft Bar','Cyprus 2006 2091_thumb.jpg',130, 73,1,'																			photo_621722.html');
												thumbnails[621723] = new thumbnail(621723,'46627','Modern Paphos','Cyprus 2006 2111_thumb.jpg',130, 72,1,'																			photo_621723.html');
												thumbnails[622250] = new thumbnail(622250,'46627','Tomb of the Kings rock','Cyprus Rock2_thumb.jpg',130, 198,1,'																			photo_622250.html');
												thumbnails[622272] = new thumbnail(622272,'46696','Stranglers','Stranglers 0231_thumb.jpg',130, 171,1,'																			photo_622272.html');
												thumbnails[622349] = new thumbnail(622349,'46696','Wonderstuff','Wonder 4_thumb.jpg',130, 171,1,'																			photo_622349.html');
												thumbnails[623743] = new thumbnail(623743,'46699','Amsterdam','Amsterdam 0251_thumb.jpg',130, 76,1,'																			photo_623743.html');
												thumbnails[623747] = new thumbnail(623747,'46627','Cromarty Beach','Cromarty Beach 004_thumb.jpg',130, 88,1,'																			photo_623747.html');
												thumbnails[623763] = new thumbnail(623763,'46627','Declaration of Love','Cyprus 2006 262A1_thumb.jpg',130, 91,1,'																			photo_623763.html');
												thumbnails[623767] = new thumbnail(623767,'46627','Scot\'s respect for the dead','Cyprus 2006 2661_thumb.jpg',130, 192,1,'																			photo_623767.html');
												thumbnails[623770] = new thumbnail(623770,'46699','Tomb of the Kings Rock 2','Cyprus 2006 2711_thumb.jpg',130, 76,1,'																			photo_623770.html');
												thumbnails[623778] = new thumbnail(623778,'46627','Loch Duntelchaig','Loch Rock_thumb.jpg',130, 200,1,'																			photo_623778.html');
												thumbnails[623785] = new thumbnail(623785,'46699','Looking Back','Nairn Beach 013A_thumb.jpg',130, 79,1,'																			photo_623785.html');
												thumbnails[642300] = new thumbnail(642300,'46696','The Jamm @ the Ironworks Inverness','Jamm 018w_thumb.jpg',130, 195,1,'																			photo_642300.html');
												thumbnails[642302] = new thumbnail(642302,'46696','Mark Morris of the Bluetones','Morris 5_thumb.jpg',130, 89,1,'																			photo_642302.html');
												thumbnails[642304] = new thumbnail(642304,'46696','Charlie Harper UK Subs','UK Subs 037_thumb.jpg',130, 92,1,'																			photo_642304.html');
												thumbnails[947205] = new thumbnail(947205,'71671','','Low Tide 2_thumb.jpg',130, 118,1,'																			photo_947205.html');
												thumbnails[947206] = new thumbnail(947206,'71671','','Low Tide 3_thumb.jpg',130, 173,1,'																			photo_947206.html');
												thumbnails[947211] = new thumbnail(947211,'71671','','Low Tide 4 Picture by Paul Campbell_thumb.jpg',130, 187,1,'																			photo_947211.html');
												thumbnails[947216] = new thumbnail(947216,'71672','UFO live in concert at the Ironworks Inverness 2007','UFO 2 by Paul Campbell_thumb.jpg',130, 193,1,'																			photo_947216.html');
												thumbnails[947217] = new thumbnail(947217,'71672','','UFO 4 by Paul Campbell_thumb.jpg',130, 193,1,'																			photo_947217.html');
												thumbnails[947218] = new thumbnail(947218,'71672','','UFO 5 by Paul Campbell_thumb.jpg',130, 193,1,'																			photo_947218.html');
												thumbnails[947219] = new thumbnail(947219,'71672','','UFO 7 by Paul Campbell_thumb.jpg',130, 89,1,'																			photo_947219.html');
												thumbnails[947229] = new thumbnail(947229,'71672','','UFO 15 by Paul Campbell_thumb.jpg',130, 102,1,'																			photo_947229.html');
												thumbnails[947231] = new thumbnail(947231,'71672','','UFO 20 by Paul Campbell_thumb.jpg',130, 90,1,'																			photo_947231.html');
												thumbnails[947243] = new thumbnail(947243,'71678','','Pipette 4_thumb.jpg',130, 183,1,'																			photo_947243.html');
												thumbnails[947262] = new thumbnail(947262,'71678','','Pipette 5_thumb.jpg',130, 175,1,'																			photo_947262.html');
												thumbnails[947269] = new thumbnail(947269,'71678','','Pipette 6_thumb.jpg',130, 191,1,'																			photo_947269.html');
												thumbnails[947270] = new thumbnail(947270,'71678','','Pipette 1_thumb.jpg',130, 90,1,'																			photo_947270.html');
												thumbnails[947271] = new thumbnail(947271,'71678','','Pipette 3_thumb.jpg',130, 88,1,'																			photo_947271.html');
												thumbnails[947276] = new thumbnail(947276,'71681','','Holloways 2 by Paul Campbell_thumb.jpg',130, 67,1,'																			photo_947276.html');
												thumbnails[947277] = new thumbnail(947277,'71681','','Holloways 5 by Paul Campbell_thumb.jpg',130, 90,1,'																			photo_947277.html');
												thumbnails[947278] = new thumbnail(947278,'71681','','Holloways 2_thumb.jpg',130, 192,1,'																			photo_947278.html');
												thumbnails[947279] = new thumbnail(947279,'71681','','Holloways 12 copy_thumb.jpg',130, 191,1,'																			photo_947279.html');
												thumbnails[947385] = new thumbnail(947385,'71683','','Tinariwen 3_thumb.jpg',130, 190,1,'																			photo_947385.html');
												thumbnails[947386] = new thumbnail(947386,'71683','','Tinariwen 11_thumb.jpg',130, 189,1,'																			photo_947386.html');
												thumbnails[947387] = new thumbnail(947387,'71683','','Tinariwen 6_thumb.jpg',130, 178,1,'																			photo_947387.html');
												thumbnails[947388] = new thumbnail(947388,'71683','','Tinariwen 20_thumb.jpg',130, 99,1,'																			photo_947388.html');
												thumbnails[947394] = new thumbnail(947394,'71683','','Tinariwen 9_thumb.jpg',130, 85,1,'																			photo_947394.html');
												thumbnails[947395] = new thumbnail(947395,'71683','','Tinariwen 7_thumb.jpg',130, 67,1,'																			photo_947395.html');
												thumbnails[1749485] = new thumbnail(1749485,'73006','','Lush Rollers 1, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1749485.html');
												thumbnails[1749531] = new thumbnail(1749531,'46699','','Resting 1_thumb.jpg',130, 88,1,'																			photo_1749531.html');
												thumbnails[1749547] = new thumbnail(1749547,'46699','','Resting, picture by Paul Campbell_thumb.jpg',130, 89,1,'																			photo_1749547.html');
												thumbnails[1751922] = new thumbnail(1751922,'46696','','Fergie MacDonald, picture by Paul Campbell_thumb.jpg',130, 189,1,'																			photo_1751922.html');
												thumbnails[1751924] = new thumbnail(1751924,'46696','','Levellers, Rockness 2007, picture by Paul Campbell_thumb.jpg',130, 182,1,'																			photo_1751924.html');
												thumbnails[1874040] = new thumbnail(1874040,'125989','','Snowman Rally 13, picture by Paul Campbell_thumb.jpg',130, 93,1,'																			photo_1874040.html');
												thumbnails[608249] = new thumbnail(608249,'46627','','Loch Duntelchaig Sunset_thumb.jpg',130, 195,1,'																			photo_608249.html');
												thumbnails[608349] = new thumbnail(608349,'46699','','Dave, between acts at the festival 1987_thumb.jpg',130, 201,1,'																			photo_608349.html');
												thumbnails[946626] = new thumbnail(946626,'71658','','Hayseed 11_thumb.jpg',130, 174,1,'																			photo_946626.html');
												thumbnails[947239] = new thumbnail(947239,'71677','','Aberfeldy 5 Picture by Paul Campbell_thumb.jpg',130, 168,1,'																			photo_947239.html');
												thumbnails[962611] = new thumbnail(962611,'72626','','Josh 7_thumb.jpg',130, 190,1,'																			photo_962611.html');
												thumbnails[967870] = new thumbnail(967870,'72826','','Altan 1 picture by Paul Campbell_thumb.jpg',130, 179,1,'																			photo_967870.html');
												thumbnails[970744] = new thumbnail(970744,'73006','','Lush 3_thumb.jpg',130, 91,1,'																			photo_970744.html');
												thumbnails[973346] = new thumbnail(973346,'73157','John Goldie, John Etheridge and Paul Buckley','IMG_3299_thumb.jpg',130, 90,1,'																			photo_973346.html');
												thumbnails[996872] = new thumbnail(996872,'71666','','Rock Ness 11_thumb.jpg',130, 67,1,'																			photo_996872.html');
												thumbnails[996879] = new thumbnail(996879,'74777','','Babyshambles 1_thumb.jpg',130, 88,1,'																			photo_996879.html');
												thumbnails[996963] = new thumbnail(996963,'71679','','Camera 7_thumb.jpg',130, 184,1,'																			photo_996963.html');
												thumbnails[1037969] = new thumbnail(1037969,'77342','','Scream 4_thumb.jpg',130, 90,1,'																			photo_1037969.html');
												thumbnails[1038098] = new thumbnail(1038098,'77344','','Buzzcock 2_thumb.jpg',130, 190,1,'																			photo_1038098.html');
												thumbnails[1038135] = new thumbnail(1038135,'77346','','Happy 13_thumb.jpg',130, 199,1,'																			photo_1038135.html');
												thumbnails[1038266] = new thumbnail(1038266,'77345','','Kasabian 4_thumb.jpg',130, 192,1,'																			photo_1038266.html');
												thumbnails[1038297] = new thumbnail(1038297,'77343','','Levellers 2_thumb.jpg',130, 178,1,'																			photo_1038297.html');
												thumbnails[1041724] = new thumbnail(1041724,'77563','Galypagos','Galypagos_thumb.jpg',130, 92,1,'																			photo_1041724.html');
												thumbnails[1041780] = new thumbnail(1041780,'77564','','Waterboys 1_thumb.jpg',130, 192,1,'																			photo_1041780.html');
												thumbnails[1179609] = new thumbnail(1179609,'84966','','Elton John 1 photograph by Paul Campbell Lo Res_thumb.jpg',130, 87,1,'																			photo_1179609.html');
												thumbnails[1198093] = new thumbnail(1198093,'86046','','Andy Thorburn picture by Paul Campbell Lo Res_thumb.jpg',130, 83,1,'																			photo_1198093.html');
												thumbnails[1830020] = new thumbnail(1830020,'123025','','Clach v Rothes 4, picture by Paul Campbell_thumb.jpg',130, 198,1,'																			photo_1830020.html');
												thumbnails[1830048] = new thumbnail(1830048,'123030','','World Mountain Bike 2007, picture by Paul Campbell_thumb.jpg',130, 187,1,'																			photo_1830048.html');
												thumbnails[1830115] = new thumbnail(1830115,'123027','','Inverness V Skye Camamachd 4, picture by Paul Campbell_thumb.jpg',130, 184,1,'																			photo_1830115.html');
												thumbnails[1830154] = new thumbnail(1830154,'123028','','Husky Race 1, picture by Paul Campbell_thumb.jpg',130, 91,1,'																			photo_1830154.html');
												thumbnails[1873981] = new thumbnail(1873981,'125989','','Snowman Rally 10, picture by Paul Campbell_thumb.jpg',130, 86,1,'																			photo_1873981.html');
												thumbnails[1874099] = new thumbnail(1874099,'125990','','Snowboarding 1, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1874099.html');
												thumbnails[607452] = new thumbnail(607452,'46696','Andy Gunn Live at the Ironworks, Inverness','Andy_Gunn_thumb.jpg',130, 87,1,'																			photo_607452.html');
												thumbnails[946675] = new thumbnail(946675,'71658','','Hayseed 3_thumb.jpg',130, 181,1,'																			photo_946675.html');
												thumbnails[947236] = new thumbnail(947236,'71677','','Aberfeldy 2 Picture by Paul Campbell_thumb.jpg',130, 177,1,'																			photo_947236.html');
												thumbnails[947242] = new thumbnail(947242,'71679','','Camera 1_thumb.jpg',130, 190,1,'																			photo_947242.html');
												thumbnails[962603] = new thumbnail(962603,'72626','','Josh 1_thumb.jpg',130, 184,1,'																			photo_962603.html');
												thumbnails[967881] = new thumbnail(967881,'72826','','Altan 12_thumb.jpg',130, 186,1,'																			photo_967881.html');
												thumbnails[970745] = new thumbnail(970745,'73006','','Lush 4_thumb.jpg',130, 88,1,'																			photo_970745.html');
												thumbnails[973347] = new thumbnail(973347,'73157','','IMG_3316_thumb.jpg',130, 93,1,'																			photo_973347.html');
												thumbnails[996874] = new thumbnail(996874,'71666','','Rock Ness 13_thumb.jpg',130, 72,1,'																			photo_996874.html');
												thumbnails[996883] = new thumbnail(996883,'74777','','Babyshambles 9_thumb.jpg',130, 88,1,'																			photo_996883.html');
												thumbnails[1037977] = new thumbnail(1037977,'77342','','Scream 2_thumb.jpg',130, 90,1,'																			photo_1037977.html');
												thumbnails[1038103] = new thumbnail(1038103,'77344','','Buzzcock 6_thumb.jpg',130, 181,1,'																			photo_1038103.html');
												thumbnails[1038140] = new thumbnail(1038140,'77346','','Happy 4_thumb.jpg',130, 176,1,'																			photo_1038140.html');
												thumbnails[1038264] = new thumbnail(1038264,'77345','','Kasabian 3_thumb.jpg',130, 180,1,'																			photo_1038264.html');
												thumbnails[1038294] = new thumbnail(1038294,'77343','','Levellers 10_thumb.jpg',130, 176,1,'																			photo_1038294.html');
												thumbnails[1041725] = new thumbnail(1041725,'77563','Gethin Pearson','Gethin Pearson_thumb.jpg',130, 105,1,'																			photo_1041725.html');
												thumbnails[1041785] = new thumbnail(1041785,'77564','','Waterboys 2_thumb.jpg',130, 192,1,'																			photo_1041785.html');
												thumbnails[1179611] = new thumbnail(1179611,'84966','','Elton John 5 photograph by Paul Campbell Lo Res_thumb.jpg',130, 86,1,'																			photo_1179611.html');
												thumbnails[1198126] = new thumbnail(1198126,'86046','','Heb Fest Session 2 picture by Paul Campbell_thumb.JPG',130, 82,1,'																			photo_1198126.html');
												thumbnails[1830025] = new thumbnail(1830025,'123025','','Ross County v Queens Park 2, picture by Paul Campbell_thumb.jpg',130, 182,1,'																			photo_1830025.html');
												thumbnails[1830051] = new thumbnail(1830051,'123030','','World Mountain Bike 2007,  2 picture by Paul Campbell_thumb.jpg',130, 180,1,'																			photo_1830051.html');
												thumbnails[1830132] = new thumbnail(1830132,'123027','','Kingussie v Fort William 13 picture by Paul Campbell_thumb.jpg',130, 203,1,'																			photo_1830132.html');
												thumbnails[1830155] = new thumbnail(1830155,'123028','','Husky Race 3, picture by Paul Campbell_thumb.jpg',130, 171,1,'																			photo_1830155.html');
												thumbnails[1874039] = new thumbnail(1874039,'125989','','Snowman Rally 12, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1874039.html');
												thumbnails[1874103] = new thumbnail(1874103,'125990','','Snowboarding 10 Lo, picture by Paul Campbell_thumb.jpg',130, 79,1,'																			photo_1874103.html');
												thumbnails[607648] = new thumbnail(607648,'46699','','Leaving_thumb.jpg',130, 195,1,'																			photo_607648.html');
												thumbnails[946680] = new thumbnail(946680,'71658','','Hayseed 9_thumb.jpg',130, 192,1,'																			photo_946680.html');
												thumbnails[962612] = new thumbnail(962612,'72626','','Josh 9_thumb.jpg',130, 183,1,'																			photo_962612.html');
												thumbnails[967884] = new thumbnail(967884,'72826','','Altan 13_thumb.jpg',130, 190,1,'																			photo_967884.html');
												thumbnails[970747] = new thumbnail(970747,'73006','','Lush 5_thumb.jpg',130, 90,1,'																			photo_970747.html');
												thumbnails[973348] = new thumbnail(973348,'73157','John Smith','IMG_3327_thumb.jpg',130, 73,1,'																			photo_973348.html');
												thumbnails[996873] = new thumbnail(996873,'71666','','Rock Ness 12_thumb.jpg',130, 83,1,'																			photo_996873.html');
												thumbnails[996880] = new thumbnail(996880,'74777','','Babyshambles 3bw_thumb.jpg',130, 92,1,'																			photo_996880.html');
												thumbnails[996958] = new thumbnail(996958,'71679','','Camera 4 copy_thumb.jpg',130, 179,1,'																			photo_996958.html');
												thumbnails[996978] = new thumbnail(996978,'71677','','Aberfeldy 7_thumb.jpg',130, 175,1,'																			photo_996978.html');
												thumbnails[1037986] = new thumbnail(1037986,'77342','','Scream 6_thumb.jpg',130, 91,1,'																			photo_1037986.html');
												thumbnails[1038100] = new thumbnail(1038100,'77344','','Buzzcock 3_thumb.jpg',130, 179,1,'																			photo_1038100.html');
												thumbnails[1038129] = new thumbnail(1038129,'77346','','Happy 1_thumb.jpg',130, 175,1,'																			photo_1038129.html');
												thumbnails[1038268] = new thumbnail(1038268,'77345','','Kasabian 12_thumb.jpg',130, 180,1,'																			photo_1038268.html');
												thumbnails[1038305] = new thumbnail(1038305,'77343','','Levellers 7_thumb.jpg',130, 184,1,'																			photo_1038305.html');
												thumbnails[1041755] = new thumbnail(1041755,'77563','','Ubernoise1_thumb.jpg',130, 75,1,'																			photo_1041755.html');
												thumbnails[1041788] = new thumbnail(1041788,'77564','','Waterboys 8_thumb.jpg',130, 190,1,'																			photo_1041788.html');
												thumbnails[1179612] = new thumbnail(1179612,'84966','','Elton John 7 photograph by Paul Campbell Lo Res_thumb.jpg',130, 84,1,'																			photo_1179612.html');
												thumbnails[1198110] = new thumbnail(1198110,'86046','','Heb Fest Session 1 picture by Paul Campbell Lo Res_thumb.jpg',130, 110,1,'																			photo_1198110.html');
												thumbnails[1830029] = new thumbnail(1830029,'123025','','Ross County v Queens Park 3, picture by Paul Campbell_thumb.jpg',130, 174,1,'																			photo_1830029.html');
												thumbnails[1830056] = new thumbnail(1830056,'123030','','World Mountain Bike 2007,  3 picture by Paul Campbell_thumb.jpg',130, 188,1,'																			photo_1830056.html');
												thumbnails[1830137] = new thumbnail(1830137,'123027','','Lovat v Kingussie 1 picture by Paul Campbell_thumb.jpg',130, 173,1,'																			photo_1830137.html');
												thumbnails[1830157] = new thumbnail(1830157,'123028','','Loch Ness Marathon 1, picture by Paul Campbell_thumb.jpg',130, 176,1,'																			photo_1830157.html');
												thumbnails[1874111] = new thumbnail(1874111,'125990','','Snowboarding 17 Lo, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1874111.html');
												thumbnails[946661] = new thumbnail(946661,'71658','Hayseed 8','Hayseed 8_thumb.jpg',130, 169,1,'																			photo_946661.html');
												thumbnails[947237] = new thumbnail(947237,'71677','','Aberfeldy 3 Picture by Paul Campbell_thumb.jpg',130, 90,1,'																			photo_947237.html');
												thumbnails[947241] = new thumbnail(947241,'71679','','Camera 2_thumb.jpg',130, 86,1,'																			photo_947241.html');
												thumbnails[962614] = new thumbnail(962614,'72626','','Josh Ritter 1_thumb.jpg',130, 84,1,'																			photo_962614.html');
												thumbnails[967886] = new thumbnail(967886,'72826','','Altan 14_thumb.jpg',130, 88,1,'																			photo_967886.html');
												thumbnails[970743] = new thumbnail(970743,'73006','','Lush 2_thumb.jpg',130, 170,1,'																			photo_970743.html');
												thumbnails[973349] = new thumbnail(973349,'73157','Andrew White','IMG_3343_thumb.jpg',130, 161,1,'																			photo_973349.html');
												thumbnails[996875] = new thumbnail(996875,'71666','','Rock Ness 14_thumb.jpg',130, 62,1,'																			photo_996875.html');
												thumbnails[996885] = new thumbnail(996885,'74777','','Babyshambles 25_thumb.jpg',130, 193,1,'																			photo_996885.html');
												thumbnails[1037974] = new thumbnail(1037974,'77342','','Scream 1_thumb.jpg',130, 185,1,'																			photo_1037974.html');
												thumbnails[1038095] = new thumbnail(1038095,'77344','','Buzzcock 1_thumb.jpg',130, 91,1,'																			photo_1038095.html');
												thumbnails[1038173] = new thumbnail(1038173,'77346','','Happy 10_thumb.jpg',130, 91,1,'																			photo_1038173.html');
												thumbnails[1038272] = new thumbnail(1038272,'77345','','Kasabian 13_thumb.jpg',130, 91,1,'																			photo_1038272.html');
												thumbnails[1038295] = new thumbnail(1038295,'77343','','Levellers 11_thumb.jpg',130, 183,1,'																			photo_1038295.html');
												thumbnails[1041746] = new thumbnail(1041746,'77563','','Lucie Treacher_thumb.jpg',130, 83,1,'																			photo_1041746.html');
												thumbnails[1041796] = new thumbnail(1041796,'77564','','Waterboys 5_thumb.jpg',130, 95,1,'																			photo_1041796.html');
												thumbnails[1179618] = new thumbnail(1179618,'84966','','Elton John 2 photograph by Paul Campbell Lo Res_thumb.jpg',130, 195,1,'																			photo_1179618.html');
												thumbnails[1198207] = new thumbnail(1198207,'86046','','Moving Hearts 2 picture by Paul Campbell Lo Res_thumb.jpg',130, 194,1,'																			photo_1198207.html');
												thumbnails[1830031] = new thumbnail(1830031,'123025','','Ross County v Queens Park 5, picture by Paul Campbell_thumb.jpg',130, 183,1,'																			photo_1830031.html');
												thumbnails[1830062] = new thumbnail(1830062,'123030','','World Mountain Bike Down Hill 2007, picture by Paul Campbell_thumb.jpg',130, 186,1,'																			photo_1830062.html');
												thumbnails[1830139] = new thumbnail(1830139,'123027','','Strathdearn Cup Final 2, picture by Paul Campbell_thumb.jpg',130, 182,1,'																			photo_1830139.html');
												thumbnails[1830158] = new thumbnail(1830158,'123028','','Loch Ness Marathon 7, picture by Paul Campbell_thumb.jpg',130, 189,1,'																			photo_1830158.html');
												thumbnails[1874044] = new thumbnail(1874044,'125989','','Snowman Rally 15, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1874044.html');
												thumbnails[1874113] = new thumbnail(1874113,'125990','','Snowboarding 14, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1874113.html');
												thumbnails[946660] = new thumbnail(946660,'71658','','Hayseed 4_thumb.jpg',130, 170,1,'																			photo_946660.html');
												thumbnails[947238] = new thumbnail(947238,'71677','','Aberfeldy 4 Picture by Paul Campbell_thumb.jpg',130, 89,1,'																			photo_947238.html');
												thumbnails[962609] = new thumbnail(962609,'72626','','Josh 6_thumb.jpg',130, 173,1,'																			photo_962609.html');
												thumbnails[967874] = new thumbnail(967874,'72826','','Altan 4 picture by Paul Campbell_thumb.jpg',130, 94,1,'																			photo_967874.html');
												thumbnails[970742] = new thumbnail(970742,'73006','','Lush 1_thumb.jpg',130, 155,1,'																			photo_970742.html');
												thumbnails[973350] = new thumbnail(973350,'73157','Woody Mann ','Woody Mann BW_thumb.jpg',130, 160,1,'																			photo_973350.html');
												thumbnails[996869] = new thumbnail(996869,'71666','','Rock Ness 8_thumb.jpg',130, 76,1,'																			photo_996869.html');
												thumbnails[996886] = new thumbnail(996886,'74777','','Babyshambles 18 copy_thumb.jpg',130, 187,1,'																			photo_996886.html');
												thumbnails[996962] = new thumbnail(996962,'71679','','Camera 6_thumb.jpg',130, 94,1,'																			photo_996962.html');
												thumbnails[1037979] = new thumbnail(1037979,'77342','','Scream 3_thumb.jpg',130, 192,1,'																			photo_1037979.html');
												thumbnails[1038105] = new thumbnail(1038105,'77344','','Buzzcock 7_thumb.jpg',130, 90,1,'																			photo_1038105.html');
												thumbnails[1038192] = new thumbnail(1038192,'77346','','Happy 6_thumb.jpg',130, 90,1,'																			photo_1038192.html');
												thumbnails[1038275] = new thumbnail(1038275,'77345','','Kasabian 14_thumb.jpg',130, 72,1,'																			photo_1038275.html');
												thumbnails[1038304] = new thumbnail(1038304,'77343','','Levellers 4_thumb.jpg',130, 177,1,'																			photo_1038304.html');
												thumbnails[1041759] = new thumbnail(1041759,'77563','','Stereoglo_thumb.jpg',130, 89,1,'																			photo_1041759.html');
												thumbnails[1041799] = new thumbnail(1041799,'77564','','Waterboys 6_thumb.jpg',130, 91,1,'																			photo_1041799.html');
												thumbnails[1179627] = new thumbnail(1179627,'84966','','Elton John 3 photograph by Paul Campbell Lo Res_thumb.jpg',130, 195,1,'																			photo_1179627.html');
												thumbnails[1198237] = new thumbnail(1198237,'86046','','Seth Lakeman 1 picture by Paul Campbell Lo Res_thumb.jpg',130, 191,1,'																			photo_1198237.html');
												thumbnails[1830036] = new thumbnail(1830036,'123025','','Clach v Forres 12, picture by Paul Campbell_thumb.jpg',130, 97,1,'																			photo_1830036.html');
												thumbnails[1830073] = new thumbnail(1830073,'123030','','World Mountain Bike Down Hill 2007, 2 picture by Paul Campbell1_thumb.jpg',130, 88,1,'																			photo_1830073.html');
												thumbnails[1830124] = new thumbnail(1830124,'123027','','Kingussie v Fort William 2 picture by Paul Campbell_thumb.jpg',130, 82,1,'																			photo_1830124.html');
												thumbnails[1830160] = new thumbnail(1830160,'123028','','Loch Ness Marathon 2, picture by Paul Campbell_thumb.jpg',130, 82,1,'																			photo_1830160.html');
												thumbnails[1874045] = new thumbnail(1874045,'125989','','Snowman Rally 17, picture by Paul Campbell_thumb.jpg',130, 86,1,'																			photo_1874045.html');
												thumbnails[1874115] = new thumbnail(1874115,'125990','','Snowboarding 5, picture by Paul Campbell_thumb.jpg',130, 180,1,'																			photo_1874115.html');
												thumbnails[946678] = new thumbnail(946678,'71658','','Hayseed 6_thumb.jpg',130, 160,1,'																			photo_946678.html');
												thumbnails[962604] = new thumbnail(962604,'72626','','Josh 4_thumb.jpg',130, 90,1,'																			photo_962604.html');
												thumbnails[967887] = new thumbnail(967887,'72826','','Altan 5 picture by Paul Campbell1_thumb.jpg',130, 90,1,'																			photo_967887.html');
												thumbnails[970748] = new thumbnail(970748,'73006','','Lush 6_thumb.jpg',130, 167,1,'																			photo_970748.html');
												thumbnails[973366] = new thumbnail(973366,'73157','','IMG_3310_thumb.jpg',130, 173,1,'																			photo_973366.html');
												thumbnails[996862] = new thumbnail(996862,'71666','','Rock Ness 2_thumb.jpg',130, 90,1,'																			photo_996862.html');
												thumbnails[996895] = new thumbnail(996895,'74777','','Babyshambles 21_thumb.jpg',130, 192,1,'																			photo_996895.html');
												thumbnails[996959] = new thumbnail(996959,'71679','','Camera 5_thumb.jpg',130, 94,1,'																			photo_996959.html');
												thumbnails[996976] = new thumbnail(996976,'71677','','Aberfeldy 6_thumb.jpg',130, 90,1,'																			photo_996976.html');
												thumbnails[1038001] = new thumbnail(1038001,'77342','','Scream 13_thumb.jpg',130, 182,1,'																			photo_1038001.html');
												thumbnails[1038102] = new thumbnail(1038102,'77344','','Buzzcock 5_thumb.jpg',130, 90,1,'																			photo_1038102.html');
												thumbnails[1038171] = new thumbnail(1038171,'77346','','Happy 5_thumb.jpg',130, 94,1,'																			photo_1038171.html');
												thumbnails[1038280] = new thumbnail(1038280,'77345','','Kasabian 10_thumb.jpg',130, 94,1,'																			photo_1038280.html');
												thumbnails[1038308] = new thumbnail(1038308,'77343','','Levellers 8_thumb.jpg',130, 167,1,'																			photo_1038308.html');
												thumbnails[1041762] = new thumbnail(1041762,'77563','','Strong Like Ox_thumb.jpg',130, 94,1,'																			photo_1041762.html');
												thumbnails[1041802] = new thumbnail(1041802,'77564','','Waterboys 7_thumb.jpg',130, 95,1,'																			photo_1041802.html');
												thumbnails[1179629] = new thumbnail(1179629,'84966','','Elton John 6 photograph by Paul Campbell Lo Res_thumb.jpg',130, 190,1,'																			photo_1179629.html');
												thumbnails[1198238] = new thumbnail(1198238,'86046','','Seth Lakeman 2 picture by Paul Campbell Lo Res_thumb.jpg',130, 133,1,'																			photo_1198238.html');
												thumbnails[1830038] = new thumbnail(1830038,'123025','','Clach v Inverurie 9, picture by Paul Campbell_thumb.jpg',130, 89,1,'																			photo_1830038.html');
												thumbnails[1830065] = new thumbnail(1830065,'123030','','World Mountain Bike Down Hill 2007, 4 picture by Paul Campbell_thumb.jpg',130, 91,1,'																			photo_1830065.html');
												thumbnails[1830143] = new thumbnail(1830143,'123027','','Lovat v Kingussie 2 picture by Paul Campbell_thumb.jpg',130, 90,1,'																			photo_1830143.html');
												thumbnails[1830162] = new thumbnail(1830162,'123028','','Loch Ness Marathon 4 Lo, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1830162.html');
												thumbnails[1874046] = new thumbnail(1874046,'125989','','Snowman Rally 18, picture by Paul Campbell_thumb.jpg',130, 90,1,'																			photo_1874046.html');
												thumbnails[1874118] = new thumbnail(1874118,'125990','','Snowboarding 16 Lo, picture by Paul Campbell_thumb.jpg',130, 181,1,'																			photo_1874118.html');
												thumbnails[946708] = new thumbnail(946708,'71658','','Hayseed 14_thumb.jpg',130, 90,1,'																			photo_946708.html');
												thumbnails[967873] = new thumbnail(967873,'72826','','Altan 2_thumb.jpg',130, 98,1,'																			photo_967873.html');
												thumbnails[970768] = new thumbnail(970768,'73006','','Lush 7_thumb.jpg',130, 177,1,'																			photo_970768.html');
												thumbnails[996864] = new thumbnail(996864,'71666','','Rock Ness 4_thumb.jpg',130, 83,1,'																			photo_996864.html');
												thumbnails[1037994] = new thumbnail(1037994,'77342','','Scream 10_thumb.jpg',130, 91,1,'																			photo_1037994.html');
												thumbnails[1038206] = new thumbnail(1038206,'77346','','Happy 7_thumb.jpg',130, 91,1,'																			photo_1038206.html');
												thumbnails[1038282] = new thumbnail(1038282,'77345','','Kasabian 7_thumb.jpg',130, 90,1,'																			photo_1038282.html');
												thumbnails[1038302] = new thumbnail(1038302,'77343','','Levellers D_thumb.jpg',130, 75,1,'																			photo_1038302.html');
												thumbnails[1198287] = new thumbnail(1198287,'86046','','Peat Bog 2 picture by Paul Campbell Lo Res_thumb.jpg',130, 87,1,'																			photo_1198287.html');
												thumbnails[1830042] = new thumbnail(1830042,'123025','','Ross County v Berwick 7, picture by Paul Campbell_thumb.jpg',130, 87,1,'																			photo_1830042.html');
												thumbnails[1830079] = new thumbnail(1830079,'123030','','World Mountain Bike Down Hill 2007, 5 picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1830079.html');
												thumbnails[1830146] = new thumbnail(1830146,'123027','','Kingussie v Fort William 7 picture by Paul Campbell_thumb.jpg',130, 86,1,'																			photo_1830146.html');
												thumbnails[1830164] = new thumbnail(1830164,'123028','','Ice Hockey, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1830164.html');
												thumbnails[1874050] = new thumbnail(1874050,'125989','','Snowman Rally 2, picture by Paul Campbell_thumb.jpg',130, 77,1,'																			photo_1874050.html');
												thumbnails[1874120] = new thumbnail(1874120,'125990','','Snowboarding 18, picture by Paul Campbell_thumb.jpg',130, 170,1,'																			photo_1874120.html');
												thumbnails[946683] = new thumbnail(946683,'71658','','Hayseed 13_thumb.jpg',130, 84,1,'																			photo_946683.html');
												thumbnails[967888] = new thumbnail(967888,'72826','','Altan 9 picture by Paul Campbell_thumb.jpg',130, 95,1,'																			photo_967888.html');
												thumbnails[970770] = new thumbnail(970770,'73006','','Lush 8_thumb.jpg',130, 190,1,'																			photo_970770.html');
												thumbnails[996863] = new thumbnail(996863,'71666','','Rock Ness 3_thumb.jpg',130, 74,1,'																			photo_996863.html');
												thumbnails[1037998] = new thumbnail(1037998,'77342','','Scream 11_thumb.jpg',130, 84,1,'																			photo_1037998.html');
												thumbnails[1038169] = new thumbnail(1038169,'77346','','Happy 2_thumb.jpg',130, 97,1,'																			photo_1038169.html');
												thumbnails[1038285] = new thumbnail(1038285,'77345','','Kasabian 15_thumb.jpg',130, 91,1,'																			photo_1038285.html');
												thumbnails[1038299] = new thumbnail(1038299,'77343','','Levellers 26_thumb.jpg',130, 91,1,'																			photo_1038299.html');
												thumbnails[1198209] = new thumbnail(1198209,'86046','','Moving Hearts 3 picture by Paul Campbell Lo Res_thumb.jpg',130, 90,1,'																			photo_1198209.html');
												thumbnails[1830045] = new thumbnail(1830045,'123025','','Ross County v Queens Park 1, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1830045.html');
												thumbnails[1830085] = new thumbnail(1830085,'123030','','UCI Trials, picture by Paul Campbell_thumb.jpg',130, 88,1,'																			photo_1830085.html');
												thumbnails[1830149] = new thumbnail(1830149,'123027','','Lovat v Kingussie 3 picture by Paul Campbell_thumb.jpg',130, 86,1,'																			photo_1830149.html');
												thumbnails[1830166] = new thumbnail(1830166,'123028','','Ice Hockey 2, picture by Paul Campbell_thumb.jpg',130, 86,1,'																			photo_1830166.html');
												thumbnails[1874057] = new thumbnail(1874057,'125989','','Snowman Rally 4, picture by Paul Campbell_thumb.jpg',130, 87,1,'																			photo_1874057.html');
												thumbnails[1874123] = new thumbnail(1874123,'125990','','Snowboarding 4, picture by Paul Campbell_thumb.jpg',130, 173,1,'																			photo_1874123.html');
												thumbnails[967880] = new thumbnail(967880,'72826','','Altan 11 picture by Paul Campbell_thumb.jpg',130, 90,1,'																			photo_967880.html');
												thumbnails[996867] = new thumbnail(996867,'71666','','Rock Ness 7_thumb.jpg',130, 84,1,'																			photo_996867.html');
												thumbnails[1037984] = new thumbnail(1037984,'77342','','scream 5_thumb.jpg',130, 91,1,'																			photo_1037984.html');
												thumbnails[1038220] = new thumbnail(1038220,'77346','','Happy 8_thumb.jpg',130, 91,1,'																			photo_1038220.html');
												thumbnails[1038287] = new thumbnail(1038287,'77345','','Kasabian 8_thumb.jpg',130, 89,1,'																			photo_1038287.html');
												thumbnails[1038301] = new thumbnail(1038301,'77343','','Levellers 29_thumb.jpg',130, 86,1,'																			photo_1038301.html');
												thumbnails[1198234] = new thumbnail(1198234,'86046','','Proclaimers 4 picture by Paull Campbell Lo Res_thumb.jpg',130, 87,1,'																			photo_1198234.html');
												thumbnails[1830089] = new thumbnail(1830089,'123030','','UCI Trials 2, picture by Paul Campbell_thumb.jpg',130, 184,1,'																			photo_1830089.html');
												thumbnails[996866] = new thumbnail(996866,'71666','','Rock Ness 6_thumb.jpg',130, 85,1,'																			photo_996866.html');
												thumbnails[1037991] = new thumbnail(1037991,'77342','','Scream 9_thumb.jpg',130, 85,1,'																			photo_1037991.html');
												thumbnails[1198232] = new thumbnail(1198232,'86046','','Proclaimers 3 picture by Paull Campbell Lo Res_thumb.jpg',130, 194,1,'																			photo_1198232.html');
												thumbnails[1830093] = new thumbnail(1830093,'123030','','Mountain Bike 2006, 2 picture by Paul Campbell_thumb.jpg',130, 192,1,'																			photo_1830093.html');
												thumbnails[608336] = new thumbnail(608336,'46627','Viaduct','Viaduct Low Res_thumb.jpg',130, 195,1,'																			photo_608336.html');
												thumbnails[996876] = new thumbnail(996876,'71666','','Rock Ness 15_thumb.jpg',130, 94,1,'																			photo_996876.html');
												thumbnails[1037990] = new thumbnail(1037990,'77342','','Scream 8_thumb.jpg',130, 91,1,'																			photo_1037990.html');
												thumbnails[1198245] = new thumbnail(1198245,'86046','','Oojami 3_thumb.jpg',130, 194,1,'																			photo_1198245.html');
												thumbnails[1830096] = new thumbnail(1830096,'123030','','Mountain Bike 2006, 3 picture by Paul Campbell_thumb.jpg',130, 192,1,'																			photo_1830096.html');
												thumbnails[996871] = new thumbnail(996871,'71666','','Rock Ness 10_thumb.jpg',130, 81,1,'																			photo_996871.html');
												thumbnails[1037988] = new thumbnail(1037988,'77342','','Scream 7_thumb.jpg',130, 91,1,'																			photo_1037988.html');
												thumbnails[1198255] = new thumbnail(1198255,'86046','','Peat Bog 1 picture by Paul Campbell Lo Res_thumb.jpg',130, 186,1,'																			photo_1198255.html');
												thumbnails[1830100] = new thumbnail(1830100,'123030','','Mountain Bike 2006, picture by Paul Campbell_thumb.jpg',130, 194,1,'																			photo_1830100.html');
												thumbnails[996877] = new thumbnail(996877,'71666','','Rock Ness 16_thumb.jpg',130, 77,1,'																			photo_996877.html');
												thumbnails[1198243] = new thumbnail(1198243,'86046','','Oojami 2_thumb.jpg',130, 195,1,'																			photo_1198243.html');
												thumbnails[996870] = new thumbnail(996870,'71666','','Rock Ness 9_thumb.jpg',130, 168,1,'																			photo_996870.html');
												thumbnails[1198331] = new thumbnail(1198331,'86046','','Oojami 3 picture by Paul Campbell Lo Res_thumb.jpg',130, 84,1,'																			photo_1198331.html');
												thumbnails[608245] = new thumbnail(608245,'46627','Cyprus','JOSH M WAS HERE_thumb.jpg',130, 87,1,'																			photo_608245.html');
												thumbnails[607456] = new thumbnail(607456,'46696','Andy Gunn','AndyGunn_thumb.jpg',130, 195,1,'																			photo_607456.html');
												thumbnails[608234] = new thumbnail(608234,'46696','Ana Popovic','Ana Ironworks Inverness 1_thumb.jpg',130, 191,1,'																			photo_608234.html');
												thumbnails[608214] = new thumbnail(608214,'46696','Charlatans live at the Ironworks 21.11.06','Charlatans 5 Low_thumb.jpg',130, 172,1,'																			photo_608214.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[71677] = new gallery(71677,'996978,996976,947239,947238,947237,947236','Aberfeldy','gallery',[947239,947236,996978,947237,947238,996976],0, 0, '71657', '																																																																																																							gallery_71677.html',0,0);
				  					galleries[72826] = new gallery(72826,'967888,967887,967886,967884,967881,967880,967874,967873,967870','Altan','gallery',[967870,967881,967884,967886,967874,967887,967873,967888,967880],0, 0, '71657', '																																																																																																							gallery_72826.html',0,0);
				  					galleries[74777] = new gallery(74777,'996895,996886,996885,996883,996880,996879','Babyshambles','gallery',[996879,996883,996880,996885,996886,996895],0, 0, '71657', '																																																																																																							gallery_74777.html',0,0);
				  					galleries[71679] = new gallery(71679,'996963,996962,996959,996958,947242,947241','Camera Obscura','gallery',[996963,947242,996958,947241,996962,996959],0, 0, '71657', '																																																																																																							gallery_71679.html',0,0);
				  					galleries[123030] = new gallery(123030,'1830065','Cycling','gallery',[1830048,1830051,1830056,1830062,1830073,1830065,1830079,1830085,1830089,1830093,1830096,1830100],0, 0, '123024', '																																																																																																							gallery_123030.html',0,0);
				  					galleries[84966] = new gallery(84966,'1179629,1179627,1179618,1179612,1179611,1179609','Elton John','gallery',[1179609,1179611,1179612,1179618,1179627,1179629],0, 0, '71657', '																																																																																																							gallery_84966.html',0,0);
				  					galleries[123025] = new gallery(123025,'1830045','Football','gallery',[1830020,1830025,1830029,1830031,1830036,1830038,1830042,1830045],0, 0, '123024', '																																																																																																							gallery_123025.html',0,0);
				  					galleries[77563] = new gallery(77563,'1041762,1041759,1041755,1041746,1041725,1041724','Go Hi Festival 2006','gallery',[1041724,1041725,1041755,1041746,1041759,1041762],0, 0, '71657', '																																																																																																							gallery_77563.html',0,0);
				  					galleries[77346] = new gallery(77346,'1038220,1038206,1038192,1038173,1038171,1038169,1038140,1038135,1038129','Happy Mondays','gallery',[1038135,1038140,1038129,1038173,1038192,1038171,1038206,1038169,1038220],0, 0, '71657', '																																																																																																							gallery_77346.html',0,0);
				  					galleries[86046] = new gallery(86046,'1198093','Hebridean Celtic Festival 2007','gallery',[1198093,1198126,1198110,1198207,1198237,1198238,1198287,1198209,1198234,1198232,1198245,1198255,1198243,1198331],0, 0, '71657', '																																																																																																							gallery_86046.html',0,0);
				  					galleries[72626] = new gallery(72626,'962614,962612,962611,962609,962604,962603','Josh Ritter','gallery',[962611,962603,962612,962614,962609,962604],0, 0, '71657', '																																																																																																							gallery_72626.html',0,0);
				  					galleries[77345] = new gallery(77345,'1038287,1038285,1038282,1038280,1038275,1038272,1038268,1038266,1038264','Kasabian','gallery',[1038266,1038264,1038268,1038272,1038275,1038280,1038282,1038285,1038287],0, 0, '71657', '																																																																																																							gallery_77345.html',0,0);
				  					galleries[71671] = new gallery(71671,'947211,947206,947205','Low Tide Revelry','gallery',[947205,947206,947211],0, 0, '71657', '																																																																																																							gallery_71671.html',0,0);
				  					galleries[125989] = new gallery(125989,'1874039','Motor Sport','gallery',[1874040,1873981,1874039,1874044,1874045,1874046,1874050,1874057],0, 0, '123024', '																																																																																																							gallery_125989.html',0,0);
				  					galleries[123028] = new gallery(123028,'1830166','Other','gallery',[1830154,1830155,1830157,1830158,1830160,1830162,1830164,1830166],0, 0, '123024', '																																																																																																							gallery_123028.html',0,0);
				  					galleries[77342] = new gallery(77342,'1038001,1037998,1037994,1037991,1037990,1037988,1037986,1037984,1037979,1037977','Primal Scream','gallery',[1037969,1037977,1037986,1037974,1037979,1038001,1037994,1037998,1037984,1037991,1037990,1037988],0, 0, '71657', '																																																																																																							gallery_77342.html',0,0);
				  					galleries[71666] = new gallery(71666,'996877,996876,996875,996874,996873,996872,996871,996870,996869,996867','Rock Ness 2006','gallery',[996872,996874,996873,996875,996869,996862,996864,996863,996867,996866,996876,996871,996877,996870],0, 0, '71657', '																																																																																																							gallery_71666.html',0,0);
				  					galleries[123027] = new gallery(123027,'1830124','Shinty','gallery',[1830115,1830132,1830137,1830139,1830124,1830143,1830146,1830149],0, 0, '123024', '																																																																																																							gallery_123027.html',0,0);
				  					galleries[125990] = new gallery(125990,'1874099','Snow','gallery',[1874099,1874103,1874111,1874113,1874115,1874118,1874120,1874123],0, 0, '123024', '																																																																																																							gallery_125990.html',0,0);
				  					galleries[123024] = new gallery(123024,'1874099,1874039,1830166,1830124,1830065,1830045','Sport','gallery',[],0, 0, '', '																																																																																																							gallery_123024.html',0,0);
				  					galleries[77344] = new gallery(77344,'1038105,1038103,1038102,1038100,1038098,1038095','The Buzzcocks','gallery',[1038098,1038103,1038100,1038095,1038105,1038102],0, 0, '71657', '																																																																																																							gallery_77344.html',0,0);
				  					galleries[71681] = new gallery(71681,'947279,947278,947277,947276','The Holloways','gallery',[947276,947277,947278,947279],0, 0, '71657', '																																																																																																							gallery_71681.html',0,0);
				  					galleries[77343] = new gallery(77343,'1038308,1038305,1038304,1038302,1038301,1038299,1038297,1038295,1038294','The Levellers','gallery',[1038297,1038294,1038305,1038295,1038304,1038308,1038302,1038299,1038301],0, 0, '71657', '																																																																																																							gallery_77343.html',0,0);
				  					galleries[73006] = new gallery(73006,'1749485,970770,970768,970748,970747,970745,970744,970743,970742','The Lush Rollers','gallery',[1749485,970744,970745,970747,970743,970742,970748,970768,970770],0, 0, '71657', '																																																																																																							gallery_73006.html',0,0);
				  					galleries[71678] = new gallery(71678,'947271,947270,947269,947262,947243','The Pipettes','gallery',[947243,947262,947269,947270,947271],0, 0, '71657', '																																																																																																							gallery_71678.html',0,0);
				  					galleries[77564] = new gallery(77564,'1041802,1041799,1041796,1041788,1041785,1041780','The Waterboys','gallery',[1041780,1041785,1041788,1041796,1041799,1041802],0, 0, '71657', '																																																																																																							gallery_77564.html',0,0);
				  					galleries[71683] = new gallery(71683,'947395,947394,947388,947387,947386,947385','Tinariwen','gallery',[947385,947386,947387,947388,947394,947395],0, 0, '71657', '																																																																																																							gallery_71683.html',0,0);
				  					galleries[71672] = new gallery(71672,'947231,947229,947219,947218,947217,947216','UFO','gallery',[947216,947217,947218,947219,947229,947231],0, 0, '71657', '																																																																																																							gallery_71672.html',0,0);
				  					galleries[73157] = new gallery(73157,'973366,973350,973349,973348,973347,973346','Ullapool Guitar Festival 2006','gallery',[973346,973347,973348,973349,973350,973366],0, 0, '71657', '																																																																																																							gallery_73157.html',0,0);
				  					galleries[71658] = new gallery(71658,'946661','Hayseed Dixie ','gallery',[946626,946675,946680,946661,946660,946678,946708,946683],0, 0, '71657', '																																																																																																							gallery_71658.html',0,0);
				  					galleries[71657] = new gallery(71657,'1198093,946661','Music Galleries','gallery',[],0, 0, '', '																																																																																																							gallery_71657.html',0,0);
				  					galleries[46696] = new gallery(46696,'608214,607456,607452','Random Music ','gallery',[608956,611194,611195,608224,622272,622349,642300,642302,642304,1751922,1751924,607452,607456,608234,608214],0, 0, '', '																																																																																																							gallery_46696.html',0,0);
				  					galleries[46699] = new gallery(46699,'607648','People','gallery',[608351,621673,621686,621719,623743,623770,623785,1749531,1749547,608349,607648],0, 0, '', '																																																																																																							gallery_46699.html',0,0);
				  					galleries[46627] = new gallery(46627,'623778,623767,623763,623747,622250,621723,621722,621679,621670,608336','Places','gallery',[621670,621679,621722,621723,622250,623747,623763,623767,623778,608249,608336,608245],0, 0, '', '																																																																																																							gallery_46627.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '1830160,1830149,1830079,1198331,1198093,1179609,642302';
imageSets[2] = '1874099,1874039,1830166,1830124,1830065,1830045,1198093,946661,608214,607648,607456,607452';
imageSets[3] = '1874123,1874120,1874118,1874115,1874113,1874111,1874103,1874099,1874057,1874050,1874046,1874045,1874044,1874040,1874039,1873981,1830166,1830164,1830162,1830160,1830158,1830157,1830155,1830154,1830149,1830146,1830143,1830139,1830137,1830132,1830124,1830115,1830100,1830096,1830093,1830089,1830085,1830079,1830073,1830065,1830062,1830056,1830051,1830048,1830045,1830042,1830038,1830036,1830031,1830029';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/paulcampbellphotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/paulcampbellphotography/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:'',
                    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));		}, 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 = 'Paul Campbell Photography: ' + 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));    }        
    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 = 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>Ref: </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>paul campbell photography </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;
	}
}

		

