window.thumbnails = new Object();
												thumbnails[463263] = new thumbnail(463263,'','Amy, Aged 14','Amyportrait21_thumb.JPG',130, 105,1,'#');
												thumbnails[463345] = new thumbnail(463345,'','Alice in Wonderland','Alice in Wonderland_thumb.JPG',130, 173,1,'#');
												thumbnails[467334] = new thumbnail(467334,'','Amy, DETAIL','Amy_thumb.JPG',130, 173,1,'#');
												thumbnails[1808780] = new thumbnail(1808780,'','Jenn','jenn portrait_thumb.jpg',130, 165,1,'#');
												thumbnails[6392096] = new thumbnail(6392096,'','Blacked Out Art Exhibition ARCH 897 19-26th August 2010','blacked_out_information_copy_72_thumb.jpg',130, 184,1,'#');
												thumbnails[467325] = new thumbnail(467325,'','Doilie Dolly','Doillie Dolly2_thumb.JPG',130, 177,1,'#');
												thumbnails[1865648] = new thumbnail(1865648,'','Back to Front','lace back right size1_thumb.jpg',130, 173,1,'#');
												thumbnails[910998] = new thumbnail(910998,'','Example of Back of Postcard','Postcard_back_thumb.JPG',130, 164,1,'#');
												thumbnails[467287] = new thumbnail(467287,'','Untitled Woman 2','Untitled Woman_thumb.JPG',130, 173,1,'#');
												thumbnails[467211] = new thumbnail(467211,'','Silly Little Girl','silly little girl new 2_thumb.jpg',130, 187,1,'#');
												thumbnails[463323] = new thumbnail(463323,'36623','Enlaced','Enlaced3_thumb.JPG',130, 174,1,'photo_463323.html');
												thumbnails[1860480] = new thumbnail(1860480,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_3_thumb.jpg',130, 178,1,'photo_1860480.html');
												thumbnails[3295255] = new thumbnail(3295255,'200878','Pensive Girl','Pensive_girl_600b2_thumb.jpg',130, 183,1,'photo_3295255.html');
												thumbnails[4198011] = new thumbnail(4198011,'36615','Sassi','Sassi6001_thumb.jpg',130, 162,1,'photo_4198011.html');
												thumbnails[5119515] = new thumbnail(5119515,'289258','Dolly Bird','Dolly_Bird_thumb.jpg',130, 173,1,'photo_5119515.html');
												thumbnails[6581934] = new thumbnail(6581934,'360920','Convulsion Compulsion I','compulsion_convulsion_1web_Sally_Butcher_thumb.jpg',130, 173,1,'photo_6581934.html');
												thumbnails[6582062] = new thumbnail(6582062,'298154','Beauty','Beauty_web_Sally_Butcher7_thumb.jpg',130, 177,1,'photo_6582062.html');
												thumbnails[910687] = new thumbnail(910687,'36623','Entwined','Entwined_thumb.JPG',130, 175,1,'photo_910687.html');
												thumbnails[1860489] = new thumbnail(1860489,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_7_thumb.jpg',130, 184,1,'photo_1860489.html');
												thumbnails[1865706] = new thumbnail(1865706,'36615','Fabrication','Fabrication 2_thumb.jpg',130, 168,1,'photo_1865706.html');
												thumbnails[3295004] = new thumbnail(3295004,'200878','Spinning Girl','Spinning _girl_600b_thumb.jpg',130, 185,1,'photo_3295004.html');
												thumbnails[5119534] = new thumbnail(5119534,'289258','Dolly Bird Fluttering','Dolly_Bird_Web_thumb.jpg',130, 173,1,'photo_5119534.html');
												thumbnails[6581953] = new thumbnail(6581953,'360920','Convulsion Compulsion II','compulsion_convulsion_2web_Sally_Butcher_thumb.jpg',130, 173,1,'photo_6581953.html');
												thumbnails[6582227] = new thumbnail(6582227,'298154','Pose','Pose_web_Sally_Butcher1_thumb.jpg',130, 172,1,'photo_6582227.html');
												thumbnails[1860498] = new thumbnail(1860498,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_8_thumb.jpg',130, 179,1,'photo_1860498.html');
												thumbnails[1865707] = new thumbnail(1865707,'36615','Fabricision','Fabricision 2_thumb.jpg',130, 168,1,'photo_1865707.html');
												thumbnails[3295090] = new thumbnail(3295090,'200878','Shawl Woman','Shawl_Woman_600b_thumb.jpg',130, 186,1,'photo_3295090.html');
												thumbnails[3295209] = new thumbnail(3295209,'200878','Squeeze Girl','Squeeze_Girl_600b_thumb.jpg',130, 182,1,'photo_3295209.html');
												thumbnails[5119521] = new thumbnail(5119521,'289258','Dolly Bird Chewing','Dolly_Bird_Chewing_thumb.jpg',130, 173,1,'photo_5119521.html');
												thumbnails[6581981] = new thumbnail(6581981,'360920','Convulsion Compulsion III','compulsion_convulsion_3web_Sally_Butcher_thumb.jpg',130, 173,1,'photo_6581981.html');
												thumbnails[6582045] = new thumbnail(6582045,'298154','Who\'s The Fairest of Them All?','Whos_The_Fariest_of_them_All_web_Sally_Butcher12_thumb.jpg',130, 171,1,'photo_6582045.html');
												thumbnails[687714] = new thumbnail(687714,'36623','The Lace Look','The Lace Look2_thumb.JPG',130, 172,1,'photo_687714.html');
												thumbnails[1860526] = new thumbnail(1860526,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_15_thumb.jpg',130, 168,1,'photo_1860526.html');
												thumbnails[1865647] = new thumbnail(1865647,'36615','Insides Out','insides sharp2_thumb.jpg',130, 176,1,'photo_1865647.html');
												thumbnails[3295251] = new thumbnail(3295251,'200878','Beret Girl','Beret_girl_600b1_thumb.jpg',130, 184,1,'photo_3295251.html');
												thumbnails[5119545] = new thumbnail(5119545,'289258','Bleeding Beauty','Beauty_Bleeding_thumb.jpg',130, 173,1,'photo_5119545.html');
												thumbnails[6581984] = new thumbnail(6581984,'360920','Convulsion Compulsion IV','compulsion_convulsion_4web_Sally_Butcher_thumb.jpg',130, 173,1,'photo_6581984.html');
												thumbnails[6582034] = new thumbnail(6582034,'298154','Alien Adaptation','Alien_Adaptation_web_Sally_Butcher_thumb.jpg',130, 170,1,'photo_6582034.html');
												thumbnails[467199] = new thumbnail(467199,'36623','Skin Deep','Skin_Deep33_thumb.jpg',130, 182,1,'photo_467199.html');
												thumbnails[1860538] = new thumbnail(1860538,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_9_thumb.jpg',130, 182,1,'photo_1860538.html');
												thumbnails[5119437] = new thumbnail(5119437,'289258','Sirens','Sirens_thumb.jpg',130, 98,1,'photo_5119437.html');
												thumbnails[5489464] = new thumbnail(5489464,'36615','No Frills','No_Frills_Website_B9EE586B-1EC9-D45B-1CA5A4A693A492B5_thumb.jpg',130, 134,1,'photo_5489464.html');
												thumbnails[6581992] = new thumbnail(6581992,'360920','Convulsion Compulsion V','compulsion_convulsion_5web_Sally_Butcher_thumb.jpg',130, 175,1,'photo_6581992.html');
												thumbnails[6582188] = new thumbnail(6582188,'298154','Contortionist','Contortionist_web_Sally_Butcher3_thumb.jpg',130, 181,1,'photo_6582188.html');
												thumbnails[1807210] = new thumbnail(1807210,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_20_thumb.jpg',130, 182,1,'photo_1807210.html');
												thumbnails[5489471] = new thumbnail(5489471,'36615','Rigging','Rigging_Website_B9F0E435-1EC9-D45B-1C95CE70E75D6CBC_thumb.jpg',130, 129,1,'photo_5489471.html');
												thumbnails[6582055] = new thumbnail(6582055,'298154','All Things Bright & Backless','All_Things_Bright__Backless_web_Sally_Butcher_thumb.jpg',130, 181,1,'photo_6582055.html');
												thumbnails[1860609] = new thumbnail(1860609,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_16_thumb.jpg',130, 187,1,'photo_1860609.html');
												thumbnails[5489495] = new thumbnail(5489495,'36615','Screened','Screened_Website_B9F32366-1EC9-D45B-1CD5BAC428F06184_thumb.jpg',130, 130,1,'photo_5489495.html');
												thumbnails[6586116] = new thumbnail(6586116,'298154','Sting in her Tail','Sting_in_her_tail_web_Sally_Butcher4_thumb.jpg',130, 185,1,'photo_6586116.html');
												thumbnails[1860576] = new thumbnail(1860576,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_111_thumb.jpg',130, 182,1,'photo_1860576.html');
												thumbnails[5489501] = new thumbnail(5489501,'36615','Top Notch','Top_Notch_Website_thumb.jpg',130, 131,1,'photo_5489501.html');
												thumbnails[6393832] = new thumbnail(6393832,'298154','Bouquet','bouquet_sally_butcher_web41_thumb.jpg',130, 198,1,'photo_6393832.html');
												thumbnails[1803309] = new thumbnail(1803309,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_5_thumb.jpg',130, 185,1,'photo_1803309.html');
												thumbnails[5300613] = new thumbnail(5300613,'298154','Transformation','transformation_sally_butcher_web2_thumb.jpg',130, 167,1,'photo_5300613.html');
												thumbnails[467322] = new thumbnail(467322,'36621','Seated Nude','Seated_Nude_web_Sally_Butcher_thumb.jpg',130, 181,1,'photo_467322.html');
												thumbnails[507237] = new thumbnail(507237,'36619','\'Monstrosity\'','corset4_thumb.JPG',130, 172,1,'photo_507237.html');
												thumbnails[876750] = new thumbnail(876750,'36615','<I>Caught Series</I>','caught5fixed2_thumb.JPG',130, 133,1,'photo_876750.html');
												thumbnails[1806153] = new thumbnail(1806153,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_11_thumb.jpg',130, 181,1,'photo_1806153.html');
												thumbnails[3881472] = new thumbnail(3881472,'200878','Blushing Girl','Blushing__girl_600b_thumb.jpg',130, 184,1,'photo_3881472.html');
												thumbnails[5300557] = new thumbnail(5300557,'298154','Doll Face','doll_face_sally_butcher_thumb.jpg',130, 173,1,'photo_5300557.html');
												thumbnails[5300609] = new thumbnail(5300609,'298154','Tied Shut','tied_shut__web_sally_butcher_thumb.jpg',130, 175,1,'photo_5300609.html');
												thumbnails[1860603] = new thumbnail(1860603,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_10_thumb.jpg',130, 186,1,'photo_1860603.html');
												thumbnails[1860629] = new thumbnail(1860629,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_21_thumb.jpg',130, 194,1,'photo_1860629.html');
												thumbnails[3881483] = new thumbnail(3881483,'200878','Shocked Girl','Shocked_girl_600b_thumb.jpg',130, 181,1,'photo_3881483.html');
												thumbnails[1860586] = new thumbnail(1860586,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_14_thumb.jpg',130, 178,1,'photo_1860586.html');
												thumbnails[1860595] = new thumbnail(1860595,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_18_thumb.jpg',130, 181,1,'photo_1860595.html');
												thumbnails[1860620] = new thumbnail(1860620,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_4_thumb.jpg',130, 181,1,'photo_1860620.html');
												thumbnails[1860543] = new thumbnail(1860543,'36622','Dirty Pretty Faces','Dirty_Pretty_Faces_12_thumb.jpg',130, 184,1,'photo_1860543.html');
												thumbnails[507224] = new thumbnail(507224,'36619','\'Monstrosity\'','monstrosity_thumb.JPG',130, 176,1,'photo_507224.html');
												thumbnails[715570] = new thumbnail(715570,'36615','<I>Caught Series</I>','Caught3a_thumb.JPG',130, 133,1,'photo_715570.html');
												thumbnails[6586136] = new thumbnail(6586136,'298154','Apparel','Apparel_web_Sally_Butcher_thumb.jpg',130, 177,1,'photo_6586136.html');
												thumbnails[463332] = new thumbnail(463332,'36621','Reclining Nude','Reclining Nude_thumb.JPG',130, 98,1,'photo_463332.html');
												thumbnails[552269] = new thumbnail(552269,'36619','\'Monstrosity\' DETAIL','monstrosity detail_thumb.JPG',130, 122,1,'photo_552269.html');
												thumbnails[717071] = new thumbnail(717071,'36615','<I>Caught Series </I>','Caught5a_thumb.JPG',130, 134,1,'photo_717071.html');
												thumbnails[507219] = new thumbnail(507219,'36619','\'You Should Be More Curvy\'','You should be more curvy_thumb.JPG',130, 157,1,'photo_507219.html');
												thumbnails[552267] = new thumbnail(552267,'36619','\'You Should Be More Curvy\' DETAIL','Curvy detail_thumb.JPG',130, 86,1,'photo_552267.html');
												thumbnails[715534] = new thumbnail(715534,'36615','<I>Caught Series</I>','Caught2aa_thumb.JPG',130, 133,1,'photo_715534.html');
												thumbnails[463297] = new thumbnail(463297,'36615','Body Beautiful','Body Beautiful_thumb.JPG',130, 173,1,'photo_463297.html');
												thumbnails[876807] = new thumbnail(876807,'36621','Pastel Nude','nude4_thumb.JPG',130, 96,1,'photo_876807.html');
												thumbnails[507233] = new thumbnail(507233,'36619','\'Tying, Binding, Growing, Flowing\'','Tying_thumb.JPG',130, 172,1,'photo_507233.html');
												thumbnails[715639] = new thumbnail(715639,'36615','Strapping','Strapping3_thumb.JPG',130, 170,1,'photo_715639.html');
												thumbnails[552266] = new thumbnail(552266,'36619','\'Tying, Binding, Growing, Flowing\' DETAIL','Tying detail_thumb.JPG',130, 196,1,'photo_552266.html');
												thumbnails[876706] = new thumbnail(876706,'36615','Enfolded','Enfolded_thumb.JPG',130, 174,1,'photo_876706.html');
												thumbnails[463330] = new thumbnail(463330,'36619','Little Princess','little princess_thumb.JPG',130, 167,1,'photo_463330.html');
												thumbnails[928169] = new thumbnail(928169,'36615','Angel','Angelfixed_thumb.JPG',130, 173,1,'photo_928169.html');
												thumbnails[552268] = new thumbnail(552268,'36619','\'Little Princess\' DETAIL','little princess detail_thumb.JPG',130, 196,1,'photo_552268.html');
												thumbnails[715513] = new thumbnail(715513,'36615','<I>Caught Series</I>','Caught1aa_thumb.JPG',130, 134,1,'photo_715513.html');
												thumbnails[467343] = new thumbnail(467343,'36615','Tied<BR>','Tied21_thumb.jpg',130, 134,1,'photo_467343.html');
												thumbnails[1865652] = new thumbnail(1865652,'36615','Lace Base','lace1_thumb.jpg',130, 177,1,'photo_1865652.html');
												thumbnails[492955] = new thumbnail(492955,'36615','Woman','Woman3_thumb.JPG',130, 186,1,'photo_492955.html');
												thumbnails[492967] = new thumbnail(492967,'36615','Untitled Woman','Untitled Woman 3_thumb.JPG',130, 173,1,'photo_492967.html');
												thumbnails[715225] = new thumbnail(715225,'36615','Sweet Rose','Sweet Rose1_thumb.JPG',130, 188,1,'photo_715225.html');
												thumbnails[467219] = new thumbnail(467219,'36615','Butterfly','butterfly_thumb.JPG',130, 174,1,'photo_467219.html');
												thumbnails[467332] = new thumbnail(467332,'36615','Petal','Petal_thumb.JPG',130, 174,1,'photo_467332.html');
												thumbnails[467284] = new thumbnail(467284,'36615','Stolen Screams','Stolen Screams_thumb.JPG',130, 173,1,'photo_467284.html');
												thumbnails[910850] = new thumbnail(910850,'69440','\'Enlaced\' Postcard','Postcard_enlaced_thumb.JPG',130, 161,1,'photo_910850.html');
												thumbnails[911002] = new thumbnail(911002,'69440','\'Entwined\' Postcard','Postcard_entwined_thumb.JPG',130, 161,1,'photo_911002.html');
												thumbnails[928210] = new thumbnail(928210,'69440','\'Skin Deep\' Postcard','Postcard_skin_deep_thumb.JPG',130, 164,1,'photo_928210.html');
												thumbnails[911007] = new thumbnail(911007,'69440','\'Sweet Rose\' Postcard','Postcard_sweet_rose_thumb.JPG',130, 161,1,'photo_911007.html');
												thumbnails[911010] = new thumbnail(911010,'69440','\'Little Princess\' Postcard','Postcard_little_princess_thumb.JPG',130, 159,1,'photo_911010.html');
												thumbnails[928217] = new thumbnail(928217,'69440','\'Strapping\' Postcard','Postcard_strapping_thumb.JPG',130, 163,1,'photo_928217.html');
												thumbnails[928221] = new thumbnail(928221,'69440','\'Body Beautiful\' Postcard','Postcard_body_beautiful_thumb.JPG',130, 161,1,'photo_928221.html');
												thumbnails[928215] = new thumbnail(928215,'69440','\'Tied\' Postcard','Postcard_tied_thumb.JPG',130, 161,1,'photo_928215.html');
												thumbnails[1866635] = new thumbnail(1866635,'69440','Postcard 1 \'Dirty Pretty Faces\' ','Dirty_Pretty_Faces 1 postcard_thumb.jpg',130, 161,1,'photo_1866635.html');
												thumbnails[1866795] = new thumbnail(1866795,'69440','Postcard 2 \'Dirty Pretty Faces\'','Dirty Pretty Faces 2 postcard_thumb.jpg',130, 161,1,'photo_1866795.html');
												thumbnails[1866805] = new thumbnail(1866805,'69440','\'Fabrication\' Postcard','Fabrication postcard_thumb.jpg',130, 161,1,'photo_1866805.html');
												thumbnails[1866801] = new thumbnail(1866801,'69440','\'Fabricision\' Postcard','Fabricision postcard_thumb.jpg',130, 161,1,'photo_1866801.html');
												thumbnails[1866784] = new thumbnail(1866784,'69440','Magnet 1 \'Dirty Pretty Faces\'','Dirty Pretty Faces 6 Magnet framed2_thumb.jpg',130, 223,1,'photo_1866784.html');
												thumbnails[1866709] = new thumbnail(1866709,'69440','Magnet 2 \'Dirty Pretty Faces\'','Dirty Pretty Faces 3b magnet framed 2_thumb.jpg',130, 223,1,'photo_1866709.html');
												thumbnails[1866764] = new thumbnail(1866764,'69440','Magnet 3 \'Dirty Pretty Faces\'','Dirty Pretty Faces 7 Magnetb framed 4_thumb.jpg',130, 223,1,'photo_1866764.html');
												thumbnails[1866788] = new thumbnail(1866788,'69440','Magnet 4 \'Dirty Pretty Faces\'','Dirty Pretty Faces 4b magnet framed 2_thumb.jpg',130, 223,1,'photo_1866788.html');
												thumbnails[1582698] = new thumbnail(1582698,'108139','No Frills','No_Frills_Website_thumb.jpg',130, 134,1,'photo_1582698.html');
												thumbnails[1582702] = new thumbnail(1582702,'108139','Rigging','Rigging_Website_thumb.jpg',130, 129,1,'photo_1582702.html');
												thumbnails[1582703] = new thumbnail(1582703,'108139','Screened','Screened_Website_thumb.jpg',130, 130,1,'photo_1582703.html');
												thumbnails[1582704] = new thumbnail(1582704,'108139','Top Notch','Top Notch_Website_thumb.jpg',130, 131,1,'photo_1582704.html');
												thumbnails[1582953] = new thumbnail(1582953,'108139','Strapping','Strapping_Website_thumb.jpg',130, 130,1,'photo_1582953.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[360920] = new gallery(360920,'6581953','Photographs','gallery',[6581934,6581953,6581981,6581984,6581992],0, 0, '', 'gallery_360920.html',0,0);
				  					galleries[298154] = new gallery(298154,'6582188','Transfer Print Drawings','gallery',[6582062,6582227,6582045,6582034,6582188,6582055,6586116,6393832,5300613,5300557,5300609,6586136],0, 0, '', 'gallery_298154.html',0,0);
				  					galleries[36615] = new gallery(36615,'463297','Drawings','gallery',[4198011,1865706,1865707,1865647,5489464,5489471,5489495,5489501,876750,715570,717071,715534,463297,715639,876706,928169,715513,467343,1865652,492955,492967,715225,467219,467332,467284],0, 0, '', 'gallery_36615.html',0,0);
				  					galleries[289258] = new gallery(289258,'5119521','Line Drawings','gallery',[5119515,5119534,5119521,5119545,5119437],0, 0, '', 'gallery_289258.html',0,0);
				  					galleries[36623] = new gallery(36623,'467199','Lace Work','gallery',[463323,910687,687714,467199],0, 0, '', 'gallery_36623.html',0,0);
				  					galleries[36622] = new gallery(36622,'1803309','Dirty Pretty Faces','gallery',[1860480,1860489,1860498,1860526,1860538,1807210,1860609,1860576,1803309,1806153,1860603,1860629,1860586,1860595,1860620,1860543],0, 0, '', 'gallery_36622.html',0,0);
				  					galleries[200878] = new gallery(200878,'3295255','Monoprints','gallery',[3295255,3295004,3295090,3295209,3295251,3881472,3881483],0, 0, '', 'gallery_200878.html',0,0);
				  					galleries[36621] = new gallery(36621,'467322','Nudes','gallery',[467322,463332,876807],0, 0, '', 'gallery_36621.html',0,0);
				  					galleries[36619] = new gallery(36619,'463330','All Things Considered','gallery',[507237,507224,552269,507219,552267,507233,552266,463330,552268],0, 0, '', 'gallery_36619.html',0,0);
				  					galleries[69440] = new gallery(69440,'910850','postcards & magnets to buy','section164365',[910850,911002,928210,911007,911010,928217,928221,928215,1866635,1866795,1866805,1866801,1866784,1866709,1866764,1866788],0, 0, '', 'section164365.html',0,1);
				  					galleries[108139] = new gallery(108139,'1582702','Art & Wine','section346509',[1582698,1582702,1582703,1582704,1582953],0, 0, '', 'section346509.html',0,1);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6586116,6582227,6582188,6582062,6582055,6582045,6582034,6581992,6581984,6581981,6581953,6581934,5300613,5300609,5300557,5119545,5119534,5119521,5119515,5119437,4198011,3295255,3295090,1865707,1865706,1865652,1865647,1860629,1860620,1860609,1860603,1860595,1860586,1860576,1860543,1860538,1860526,1860498,1860489,1860480,1807210,1806153,1803309,1582953,1582704,1582703,1582702,1582698,928169,910687,876750,876706,715639,715570,715225,687714,552269,552268,552267,552266,507237,507233,507224,507219,492967,492955,467343,467332,467284,467219,467199,463330,463323,463297';
imageSets[2] = '6582188,6581953,5119521,3295255,1803309,1582702,910850,467334,467322,467199,463345,463330,463297';
imageSets[3] = '5119545,5119534,5119521';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sallyb/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sallyb/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sallyb/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sallyb/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sallyb/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sallyb/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));		  $('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 = 'Sally Butcher Fine Art: ' + 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>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>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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 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 + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="item_name" value="'+item_name+'">';
								ref = '';
				if(this.photo_ref != ''){
					ref = this.photo_ref+' - '+this.caption;
				}
				else{
					ref = this.id+' - '+this.caption;
				}
				price = amount;					temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="info@sallybutcher.co.uk">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="info@sallybutcher.co.uk">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							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;
	}
}

			

