window.thumbnails = new Object();
												thumbnails[3939640] = new thumbnail(3939640,'','','montage_x_102_thumb.jpg',130, 62,15,'#');
												thumbnails[6724619] = new thumbnail(6724619,'','','tribute_to_edward_weston_nude_0B705AEB-1D09-001F-990A36DB6D524768_thumb.jpg',130, 146,15,'#');
												thumbnails[4203574] = new thumbnail(4203574,'238071','','tribute_to_edward_weston_nude_thumb.jpg',130, 146,15,'photo_4203574.html');
												thumbnails[8101661] = new thumbnail(8101661,'237446','','family47_thumb.jpg',130, 100,15,'photo_8101661.html');
												thumbnails[3929472] = new thumbnail(3929472,'237446','','families22_500_thumb.jpg',130, 107,15,'photo_3929472.html');
												thumbnails[3934652] = new thumbnail(3934652,'237445','','pregnant_demi_moore_style_thumb.jpg',130, 193,15,'photo_3934652.html');
												thumbnails[3934949] = new thumbnail(3934949,'237444','','Motherbaby1_thumb.jpg',130, 159,15,'photo_3934949.html');
												thumbnails[3936375] = new thumbnail(3936375,'238699','','Kathryn5_thumb.jpg',130, 101,15,'photo_3936375.html');
												thumbnails[3936387] = new thumbnail(3936387,'238703','','Simone2_thumb.jpg',130, 181,15,'photo_3936387.html');
												thumbnails[3936474] = new thumbnail(3936474,'238700','','gothic8_thumb.jpg',130, 199,15,'photo_3936474.html');
												thumbnails[3939000] = new thumbnail(3939000,'238701','','TN-010_thumb.jpg',130, 180,15,'photo_3939000.html');
												thumbnails[3936470] = new thumbnail(3936470,'238700','','gothic6_thumb.jpg',130, 170,15,'photo_3936470.html');
												thumbnails[8014177] = new thumbnail(8014177,'237444','','baby_with_rabbit_thumb.jpg',130, 163,15,'photo_8014177.html');
												thumbnails[3926142] = new thumbnail(3926142,'236462','','AD_500_thumb.jpg',130, 177,15,'photo_3926142.html');
												thumbnails[3931082] = new thumbnail(3931082,'237446','','four_twins_thumb.jpg',130, 101,15,'photo_3931082.html');
												thumbnails[3934635] = new thumbnail(3934635,'237445','','pregnant4a_thumb.jpg',130, 165,15,'photo_3934635.html');
												thumbnails[3936355] = new thumbnail(3936355,'238699','','Kathryn3_thumb.jpg',130, 136,15,'photo_3936355.html');
												thumbnails[3936397] = new thumbnail(3936397,'238703','','Simone6_thumb.jpg',130, 185,15,'photo_3936397.html');
												thumbnails[3936451] = new thumbnail(3936451,'238700','','gothic1_thumb.jpg',130, 201,15,'photo_3936451.html');
												thumbnails[3939283] = new thumbnail(3939283,'236461','','actress_thumb.jpg',130, 163,15,'photo_3939283.html');
												thumbnails[3926150] = new thumbnail(3926150,'236462','','CC_500_thumb.jpg',130, 103,15,'photo_3926150.html');
												thumbnails[3928623] = new thumbnail(3928623,'237438','','Pile-of-5_500_thumb.jpg',130, 196,15,'photo_3928623.html');
												thumbnails[3934943] = new thumbnail(3934943,'237444','','Fatherbaby2_thumb.jpg',130, 153,15,'photo_3934943.html');
												thumbnails[3939066] = new thumbnail(3939066,'238701','','TN-021a_thumb.jpg',130, 188,15,'photo_3939066.html');
												thumbnails[3934945] = new thumbnail(3934945,'237444','','fatherbaby13_thumb.jpg',130, 179,15,'photo_3934945.html');
												thumbnails[3929476] = new thumbnail(3929476,'237446','','FL-016_thumb.jpg',130, 166,15,'photo_3929476.html');
												thumbnails[3934568] = new thumbnail(3934568,'237445','','babies35_500_thumb.jpg',130, 195,15,'photo_3934568.html');
												thumbnails[3929456] = new thumbnail(3929456,'237446','','families1_500_thumb.jpg',130, 102,15,'photo_3929456.html');
												thumbnails[3926145] = new thumbnail(3926145,'236462','','B-052_500_thumb.jpg',130, 163,15,'photo_3926145.html');
												thumbnails[3929466] = new thumbnail(3929466,'237446','','families20_500_thumb.jpg',130, 98,15,'photo_3929466.html');
												thumbnails[3931100] = new thumbnail(3931100,'236462','','couple2_thumb.jpg',130, 101,15,'photo_3931100.html');
												thumbnails[3934933] = new thumbnail(3934933,'237444','','babies26_500_thumb.jpg',130, 201,15,'photo_3934933.html');
												thumbnails[3936369] = new thumbnail(3936369,'238699','','Kathryn8_thumb.JPG',130, 160,15,'photo_3936369.html');
												thumbnails[3936396] = new thumbnail(3936396,'238703','','Simone5_thumb.jpg',130, 188,15,'photo_3936396.html');
												thumbnails[3936453] = new thumbnail(3936453,'238700','','gothic2_thumb.jpg',130, 201,15,'photo_3936453.html');
												thumbnails[3938426] = new thumbnail(3938426,'237445','','pregnant-shirt2_thumb.jpg',130, 176,15,'photo_3938426.html');
												thumbnails[3934622] = new thumbnail(3934622,'237445','','babies39_500_thumb.jpg',130, 188,15,'photo_3934622.html');
												thumbnails[3936403] = new thumbnail(3936403,'238703','','Simone7_thumb.jpg',130, 176,15,'photo_3936403.html');
												thumbnails[3928629] = new thumbnail(3928629,'237438','','AH-079_500_thumb.jpg',130, 113,15,'photo_3928629.html');
												thumbnails[3934937] = new thumbnail(3934937,'237444','','baby_mother_father_kissing_thumb.jpg',130, 179,15,'photo_3934937.html');
												thumbnails[3936405] = new thumbnail(3936405,'238703','','Simone8_thumb.jpg',130, 173,15,'photo_3936405.html');
												thumbnails[3936463] = new thumbnail(3936463,'238700','','gothic4_thumb.jpg',130, 199,15,'photo_3936463.html');
												thumbnails[3936466] = new thumbnail(3936466,'238700','','gothic5_thumb.jpg',130, 201,15,'photo_3936466.html');
												thumbnails[3938604] = new thumbnail(3938604,'237445','','pregnant_partner_thumb.jpg',130, 99,15,'photo_3938604.html');
												thumbnails[3939012] = new thumbnail(3939012,'238701','','TN-120_thumb.jpg',130, 163,15,'photo_3939012.html');
												thumbnails[3923146] = new thumbnail(3923146,'236461','','theodora11_thumb.jpg',130, 158,15,'photo_3923146.html');
												thumbnails[3926154] = new thumbnail(3926154,'236462','','Couple-12_500_thumb.jpg',130, 169,15,'photo_3926154.html');
												thumbnails[3928619] = new thumbnail(3928619,'237438','','5-in-a-row_500_thumb.jpg',130, 75,15,'photo_3928619.html');
												thumbnails[3934547] = new thumbnail(3934547,'237445','','babies16a_thumb.jpg',130, 172,15,'photo_3934547.html');
												thumbnails[3934867] = new thumbnail(3934867,'237445','','newborn_on_nappies_thumb.jpg',130, 153,15,'photo_3934867.html');
												thumbnails[3936361] = new thumbnail(3936361,'238699','','Kathryn7_thumb.jpg',130, 183,15,'photo_3936361.html');
												thumbnails[3936456] = new thumbnail(3936456,'238700','','gothic3_thumb.jpg',130, 199,15,'photo_3936456.html');
												thumbnails[3939005] = new thumbnail(3939005,'238701','','TN-034_thumb.jpg',130, 163,15,'photo_3939005.html');
												thumbnails[3934637] = new thumbnail(3934637,'237445','','pregnant6a_thumb.jpg',130, 195,15,'photo_3934637.html');
												thumbnails[3939074] = new thumbnail(3939074,'238701','','TN-055_thumb.jpg',130, 195,15,'photo_3939074.html');
												thumbnails[4113314] = new thumbnail(4113314,'237438','','child-with-soft-toy_thumb.jpg',130, 182,15,'photo_4113314.html');
												thumbnails[3934950] = new thumbnail(3934950,'237444','','Motherbaby2_thumb.jpg',130, 103,15,'photo_3934950.html');
												thumbnails[3934932] = new thumbnail(3934932,'237444','','babies25_500_thumb.jpg',130, 203,15,'photo_3934932.html');
												thumbnails[3926610] = new thumbnail(3926610,'237446','','Four-sisters-045_thumb.jpg',130, 72,15,'photo_3926610.html');
												thumbnails[3926689] = new thumbnail(3926689,'236462','','K-bros_500_thumb.jpg',130, 95,15,'photo_3926689.html');
												thumbnails[3929463] = new thumbnail(3929463,'237444','','families16_500_thumb.jpg',130, 182,15,'photo_3929463.html');
												thumbnails[3929474] = new thumbnail(3929474,'237446','','family3a_thumb.jpg',130, 75,15,'photo_3929474.html');
												thumbnails[3934651] = new thumbnail(3934651,'237445','','pregnant10a_thumb.jpg',130, 195,15,'photo_3934651.html');
												thumbnails[3934935] = new thumbnail(3934935,'237444','','babies30_500_thumb.jpg',130, 87,15,'photo_3934935.html');
												thumbnails[3934940] = new thumbnail(3934940,'237444','','baby_on_beanbag_thumb.jpg',130, 106,15,'photo_3934940.html');
												thumbnails[3934990] = new thumbnail(3934990,'237444','','sleeping_baby_thumb.jpg',130, 169,15,'photo_3934990.html');
												thumbnails[3929468] = new thumbnail(3929468,'237446','','families19_500_thumb.jpg',130, 175,15,'photo_3929468.html');
												thumbnails[3934625] = new thumbnail(3934625,'237445','','HW301_thumb.jpg',130, 178,15,'photo_3934625.html');
												thumbnails[3934643] = new thumbnail(3934643,'237445','','pregnant8a_thumb.jpg',130, 163,15,'photo_3934643.html');
												thumbnails[7490745] = new thumbnail(7490745,'237445','','pregnant_with_angel_thumb.jpg',130, 195,15,'photo_7490745.html');
												thumbnails[3931095] = new thumbnail(3931095,'237446','','tall_sisters_thumb.jpg',130, 179,15,'photo_3931095.html');
												thumbnails[3922856] = new thumbnail(3922856,'236461','','KF-23_thumb.jpg',130, 188,15,'photo_3922856.html');
												thumbnails[3926683] = new thumbnail(3926683,'236462','','IM-012_500_thumb.jpg',130, 178,15,'photo_3926683.html');
												thumbnails[3928677] = new thumbnail(3928677,'237438','','FL-019_thumb.jpg',130, 195,15,'photo_3928677.html');
												thumbnails[3929462] = new thumbnail(3929462,'237446','','families13_500_thumb.jpg',130, 129,15,'photo_3929462.html');
												thumbnails[3929470] = new thumbnail(3929470,'237446','','families21_500_thumb.jpg',130, 178,15,'photo_3929470.html');
												thumbnails[3931032] = new thumbnail(3931032,'237438','','3heads_thumb.jpg',130, 164,15,'photo_3931032.html');
												thumbnails[3934551] = new thumbnail(3934551,'237445','','babies28_500_thumb.jpg',130, 195,15,'photo_3934551.html');
												thumbnails[3934554] = new thumbnail(3934554,'237445','','babies29_500_thumb.jpg',130, 199,15,'photo_3934554.html');
												thumbnails[3934620] = new thumbnail(3934620,'237445','','babies37_500_thumb.jpg',130, 195,15,'photo_3934620.html');
												thumbnails[3934931] = new thumbnail(3934931,'237444','','babies14_thumb.jpg',130, 74,15,'photo_3934931.html');
												thumbnails[3934995] = new thumbnail(3934995,'237444','','twins_in_suitcase_thumb.jpg',130, 108,15,'photo_3934995.html');
												thumbnails[3936353] = new thumbnail(3936353,'238699','','Kathryn2_thumb.jpg',130, 172,15,'photo_3936353.html');
												thumbnails[3923148] = new thumbnail(3923148,'236461','','VC-080a1_thumb.jpg',130, 195,15,'photo_3923148.html');
												thumbnails[3926709] = new thumbnail(3926709,'236462','','LaurelHardy_thumb.jpg',130, 102,15,'photo_3926709.html');
												thumbnails[3928658] = new thumbnail(3928658,'237438','','children12_500_thumb.jpg',130, 104,15,'photo_3928658.html');
												thumbnails[3934562] = new thumbnail(3934562,'237445','','babies32_500_thumb.jpg',130, 190,15,'photo_3934562.html');
												thumbnails[3934939] = new thumbnail(3934939,'237444','','baby_on_back11_thumb.jpg',130, 103,15,'photo_3934939.html');
												thumbnails[3934942] = new thumbnail(3934942,'237444','','familybaby_thumb.jpg',130, 88,15,'photo_3934942.html');
												thumbnails[3939058] = new thumbnail(3939058,'238701','','TN-041_thumb.jpg',130, 195,15,'photo_3939058.html');
												thumbnails[7072323] = new thumbnail(7072323,'236461','','Leaping_Lindy_Hopper_thumb.jpg',130, 182,15,'photo_7072323.html');
												thumbnails[3928673] = new thumbnail(3928673,'237438','','Dreaming-angel_500_thumb.jpg',130, 96,15,'photo_3928673.html');
												thumbnails[3934951] = new thumbnail(3934951,'237444','','P-035_500_thumb.jpg',130, 202,15,'photo_3934951.html');
												thumbnails[3922867] = new thumbnail(3922867,'236461','','Wella-competition1_500_thumb.jpg',130, 163,15,'photo_3922867.html');
												thumbnails[3931058] = new thumbnail(3931058,'237438','','sports_boys_thumb.jpg',130, 165,15,'photo_3931058.html');
												thumbnails[3934564] = new thumbnail(3934564,'237445','','babies33_500_thumb.jpg',130, 195,15,'photo_3934564.html');
												thumbnails[3934936] = new thumbnail(3934936,'237444','','baby-11_thumb.jpg',130, 159,15,'photo_3934936.html');
												thumbnails[3934999] = new thumbnail(3934999,'237444','','baby_on_shoulder_thumb.jpg',130, 185,15,'photo_3934999.html');
												thumbnails[3936351] = new thumbnail(3936351,'238699','','Kathryn1_thumb.jpg',130, 175,15,'photo_3936351.html');
												thumbnails[3936359] = new thumbnail(3936359,'238699','','Kathryn6_thumb.jpg',130, 168,15,'photo_3936359.html');
												thumbnails[3936393] = new thumbnail(3936393,'238703','','Simone3_thumb.jpg',130, 182,15,'photo_3936393.html');
												thumbnails[3936472] = new thumbnail(3936472,'238700','','gothic7_thumb.jpg',130, 197,15,'photo_3936472.html');
												thumbnails[3922868] = new thumbnail(3922868,'236461','','Wella-competition2_500_thumb.jpg',130, 195,15,'photo_3922868.html');
												thumbnails[3931040] = new thumbnail(3931040,'237438','','brother_sister_in_frame_thumb.jpg',130, 95,15,'photo_3931040.html');
												thumbnails[3928665] = new thumbnail(3928665,'237438','','children14_500_thumb.jpg',130, 179,15,'photo_3928665.html');
												thumbnails[3934640] = new thumbnail(3934640,'237445','','pregnant7a_thumb.jpg',130, 163,15,'photo_3934640.html');
												thumbnails[3934558] = new thumbnail(3934558,'237445','','babies31_500_thumb.jpg',130, 195,15,'photo_3934558.html');
												thumbnails[3923150] = new thumbnail(3923150,'236461','','FL-0071_thumb.jpg',130, 195,15,'photo_3923150.html');
												thumbnails[3926221] = new thumbnail(3926221,'236462','','DL_500_thumb.jpg',130, 195,15,'photo_3926221.html');
												thumbnails[3928680] = new thumbnail(3928680,'237438','','Harris-3-jumps-combined_thumb.jpg',130, 100,15,'photo_3928680.html');
												thumbnails[3936357] = new thumbnail(3936357,'238699','','Kathryn4_thumb.jpg',130, 148,15,'photo_3936357.html');
												thumbnails[3936381] = new thumbnail(3936381,'238703','','Simone1_thumb.jpg',130, 183,15,'photo_3936381.html');
												thumbnails[3939054] = new thumbnail(3939054,'238701','','TN-074a_thumb.jpg',130, 163,15,'photo_3939054.html');
												thumbnails[3939123] = new thumbnail(3939123,'238701','','TN-065a_thumb.jpg',130, 195,15,'photo_3939123.html');
												thumbnails[3923152] = new thumbnail(3923152,'236461','','FL-0391_thumb.jpg',130, 195,15,'photo_3923152.html');
												thumbnails[3939060] = new thumbnail(3939060,'238701','','TN-036_thumb.jpg',130, 195,15,'photo_3939060.html');
												thumbnails[3923155] = new thumbnail(3923155,'236461','','FL-0511_thumb.jpg',130, 195,15,'photo_3923155.html');
												thumbnails[3928659] = new thumbnail(3928659,'237438','','children13_500_thumb.jpg',130, 171,15,'photo_3928659.html');
												thumbnails[3929459] = new thumbnail(3929459,'237446','','families12_500_thumb.jpg',130, 167,15,'photo_3929459.html');
												thumbnails[3931062] = new thumbnail(3931062,'237438','','grinning_girl_thumb.jpg',130, 175,15,'photo_3931062.html');
												thumbnails[3934565] = new thumbnail(3934565,'237445','','babies34_500_thumb.jpg',130, 195,15,'photo_3934565.html');
												thumbnails[3939001] = new thumbnail(3939001,'238701','','TN-016_thumb.jpg',130, 88,15,'photo_3939001.html');
												thumbnails[3939448] = new thumbnail(3939448,'237444','','motherbaby141_thumb.jpg',130, 180,15,'photo_3939448.html');
												thumbnails[3922804] = new thumbnail(3922804,'236461','','belly-dancer3_thumb.jpg',130, 220,15,'photo_3922804.html');
												thumbnails[3926336] = new thumbnail(3926336,'236462','','fingers_500_thumb.jpg',130, 172,15,'photo_3926336.html');
												thumbnails[3928627] = new thumbnail(3928627,'237438','','AH-013_thumb.jpg',130, 195,15,'photo_3928627.html');
												thumbnails[3928686] = new thumbnail(3928686,'237438','','TC_500_thumb.jpg',130, 103,15,'photo_3928686.html');
												thumbnails[3931068] = new thumbnail(3931068,'237438','','boy_with_girl_on_back_thumb.jpg',130, 112,15,'photo_3931068.html');
												thumbnails[3931085] = new thumbnail(3931085,'237446','','s-family_thumb.jpg',130, 160,15,'photo_3931085.html');
												thumbnails[3934650] = new thumbnail(3934650,'237445','','pregnant9a_thumb.jpg',130, 195,15,'photo_3934650.html');
												thumbnails[3934947] = new thumbnail(3934947,'237444','','GF-099_thumb.jpg',130, 118,15,'photo_3934947.html');
												thumbnails[3936426] = new thumbnail(3936426,'238703','','Simone4_thumb.jpg',130, 94,15,'photo_3936426.html');
												thumbnails[3939011] = new thumbnail(3939011,'238701','','TN-084_thumb.jpg',130, 110,15,'photo_3939011.html');
												thumbnails[3934663] = new thumbnail(3934663,'237445','','newborn1a_thumb.jpg',130, 195,15,'photo_3934663.html');
												thumbnails[3934627] = new thumbnail(3934627,'237445','','KF-035_thumb.jpg',130, 98,15,'photo_3934627.html');
												thumbnails[3934993] = new thumbnail(3934993,'237444','','Twins_065_thumb.jpg',130, 93,15,'photo_3934993.html');
												thumbnails[3938407] = new thumbnail(3938407,'237445','','pregnant-shirt_thumb.jpg',130, 90,15,'photo_3938407.html');
												thumbnails[3939335] = new thumbnail(3939335,'236461','','girl_in_hat2_thumb.jpg',130, 169,15,'photo_3939335.html');
												thumbnails[3922853] = new thumbnail(3922853,'236461','','KF-22_thumb.jpg',130, 182,15,'photo_3922853.html');
												thumbnails[3926628] = new thumbnail(3926628,'236462','','group3sisters_thumb.jpg',130, 98,15,'photo_3926628.html');
												thumbnails[3928635] = new thumbnail(3928635,'237438','','Br011_500_thumb.jpg',130, 173,15,'photo_3928635.html');
												thumbnails[3929464] = new thumbnail(3929464,'237446','','families17_500_thumb.jpg',130, 163,15,'photo_3929464.html');
												thumbnails[3934628] = new thumbnail(3934628,'237445','','newborn_in_hand_thumb.jpg',130, 103,15,'photo_3934628.html');
												thumbnails[3936371] = new thumbnail(3936371,'238699','','Kathryn9_thumb.jpg',130, 165,15,'photo_3936371.html');
												thumbnails[3922862] = new thumbnail(3922862,'236461','','shoes_thumb.jpg',130, 133,15,'photo_3922862.html');
												thumbnails[3934630] = new thumbnail(3934630,'237445','','newborn_on_back_thumb.jpg',130, 103,15,'photo_3934630.html');
												thumbnails[3921974] = new thumbnail(3921974,'236461','','Adrian-Brown_thumb.jpg',130, 182,15,'photo_3921974.html');
												thumbnails[3926609] = new thumbnail(3926609,'236462','','Four-sisters-38_thumb.jpg',130, 170,15,'photo_3926609.html');
												thumbnails[3936372] = new thumbnail(3936372,'238699','','Kathryn10_thumb.JPG',130, 161,15,'photo_3936372.html');
												thumbnails[3921975] = new thumbnail(3921975,'236461','','Alice-McVeigh_thumb.jpg',130, 155,15,'photo_3921975.html');
												thumbnails[3926635] = new thumbnail(3926635,'236462','','groupqueenstyle_thumb.jpg',130, 178,15,'photo_3926635.html');
												thumbnails[3922861] = new thumbnail(3922861,'236461','','NF-24_thumb.jpg',130, 188,15,'photo_3922861.html');
												thumbnails[3926622] = new thumbnail(3926622,'236462','','G-band-500_thumb.jpg',130, 107,15,'photo_3926622.html');
												thumbnails[3934619] = new thumbnail(3934619,'237445','','babies36_500_thumb.jpg',130, 87,15,'photo_3934619.html');
												thumbnails[3922860] = new thumbnail(3922860,'236461','','NC-044a_thumb.jpg',130, 195,15,'photo_3922860.html');
												thumbnails[3926460] = new thumbnail(3926460,'236462','','Five-DJs-012_500_thumb.jpg',130, 157,15,'photo_3926460.html');
												thumbnails[3926687] = new thumbnail(3926687,'236462','','JSBand_500_thumb.jpg',130, 101,15,'photo_3926687.html');
												thumbnails[3923404] = new thumbnail(3923404,'236461','','12-week-challenge_thumb.jpg',130, 92,15,'photo_3923404.html');
												thumbnails[3922812] = new thumbnail(3922812,'236461','','fk_500_thumb.jpg',130, 195,15,'photo_3922812.html');
												thumbnails[3931113] = new thumbnail(3931113,'236462','','laughing_jazz_band_thumb.jpg',130, 100,15,'photo_3931113.html');
												thumbnails[3926680] = new thumbnail(3926680,'236462','','H-band-500_thumb.jpg',130, 83,15,'photo_3926680.html');
												thumbnails[3931105] = new thumbnail(3931105,'236462','','punk_group_thumb.jpg',130, 164,15,'photo_3931105.html');
												thumbnails[3926638] = new thumbnail(3926638,'236462','','H-500_thumb.jpg',130, 82,15,'photo_3926638.html');
												thumbnails[3922806] = new thumbnail(3922806,'236461','','Electric-guitar_thumb.jpg',130, 185,15,'photo_3922806.html');
												thumbnails[3922828] = new thumbnail(3922828,'236461','','horn-player1_thumb.jpg',130, 195,15,'photo_3922828.html');
												thumbnails[3922809] = new thumbnail(3922809,'236461','','electric-violin_thumb.jpg',130, 193,15,'photo_3922809.html');
												thumbnails[3922864] = new thumbnail(3922864,'236461','','tenor-sax_thumb.jpg',130, 190,15,'photo_3922864.html');
												thumbnails[3923178] = new thumbnail(3923178,'236461','','JS-guitarist1_thumb.jpg',130, 195,15,'photo_3923178.html');
												thumbnails[3923164] = new thumbnail(3923164,'236461','','JS-drummer11_thumb.jpg',130, 195,15,'photo_3923164.html');
												thumbnails[3922858] = new thumbnail(3922858,'236461','','leaping-dancer_thumb.jpg',130, 153,15,'photo_3922858.html');
												thumbnails[3922811] = new thumbnail(3922811,'236461','','Eva-Longoria-lookalike_500_thumb.jpg',130, 118,15,'photo_3922811.html');
												thumbnails[5166902] = new thumbnail(5166902,'236461','','TN-0741_thumb.jpg',130, 159,15,'photo_5166902.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[236461] = new gallery(236461,'3922856','individual portraits','gallery',[3939283,3923146,3922856,3923148,7072323,3922867,3922868,3923150,3923152,3923155,3922804,3939335,3922853,3922862,3921974,3921975,3922861,3922860,3923404,3922812,3922806,3922828,3922809,3922864,3923178,3923164,3922858,3922811,5166902],0, 0, '', 'gallery_236461.html',0,0);
				  					galleries[238699] = new gallery(238699,'3936355','talented musician','gallery',[3936375,3936355,3936369,3936361,3936353,3936351,3936359,3936357,3936371,3936372],0, 0, '238070', 'gallery_238699.html',0,0);
				  					galleries[236462] = new gallery(236462,'3926683,3926609,3926142','couples & group portraits','gallery',[3926142,3926150,3926145,3931100,3926154,3926689,3926683,3926709,3926221,3926336,3926628,3926609,3926635,3926622,3926460,3926687,3931113,3926680,3931105,3926638],0, 0, '', 'gallery_236462.html',0,0);
				  					galleries[238701] = new gallery(238701,'3939005','glamour girl','gallery',[3939000,3939066,3939012,3939005,3939074,3939058,3939054,3939123,3939060,3939001,3939011],0, 0, '238070', 'gallery_238701.html',0,0);
				  					galleries[237438] = new gallery(237438,'3928665,3928623','children\'s portraits','gallery',[3928623,3928629,3928619,4113314,3928677,3931032,3928658,3928673,3931058,3931040,3928665,3928680,3928659,3931062,3928627,3928686,3931068,3928635],0, 0, '', 'gallery_237438.html',0,0);
				  					galleries[238703] = new gallery(238703,'3936403','commercial model','gallery',[3936387,3936397,3936396,3936403,3936405,3936393,3936381,3936426],0, 0, '238070', 'gallery_238703.html',0,0);
				  					galleries[237446] = new gallery(237446,'3931085','family portraits','gallery',[8101661,3929472,3931082,3929476,3929456,3929466,3926610,3929474,3929468,3931095,3929462,3929470,3929459,3931085,3929464],0, 0, '', 'gallery_237446.html',0,0);
				  					galleries[238700] = new gallery(238700,'3936474','gothic collection','gallery',[3936474,3936470,3936451,3936453,3936463,3936466,3936456,3936472],0, 0, '238070', 'gallery_238700.html',0,0);
				  					galleries[237444] = new gallery(237444,'3934949','mothers & babies','gallery',[3934949,8014177,3934943,3934945,3934933,3934937,3934950,3934932,3929463,3934935,3934940,3934990,3934931,3934995,3934939,3934942,3934951,3934936,3934999,3939448,3934947,3934993],0, 0, '', 'gallery_237444.html',0,0);
				  					galleries[237445] = new gallery(237445,'3934637,3934627,3934622,3934568,3934558','maternity portraits & newborns','gallery',[3934652,3934635,3934568,3938426,3934622,3938604,3934547,3934867,3934637,3934651,3934625,3934643,7490745,3934551,3934554,3934620,3934562,3934564,3934640,3934558,3934565,3934650,3934663,3934627,3938407,3934628,3934630,3934619],0, 0, '', 'gallery_237445.html',0,0);
				  					galleries[238070] = new gallery(238070,'3939005,3936474,3936403,3936355','portfolios','gallery',[],0, 0, '', 'gallery_238070.html',0,0);
				  					galleries[238071] = new gallery(238071,'4203574','artistic nude portraits','gallery',[4203574],0, 0, '', 'gallery_238071.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '3939640';
imageSets[2] = '3939005,3936474,3936403,3936355,3934949,3934637,3934627,3934622,3934568,3934558,3931085,3928665,3928623,3926683,3926609,3926142,3922856';
imageSets[3] = '8101661,8014177,7490745,7072323,6724619,5166902,4203574,4113314,3939640,3939448,3939335,3939283,3939123,3939074,3939066,3939060,3939058,3939054,3939012,3939011,3939005,3939001,3939000,3938604,3938426,3938407,3936474,3936472,3936470,3936466,3936463,3936456,3936453,3936451,3936426,3936405,3936403,3936397,3936396,3936393,3936387,3936381,3936375,3936372,3936371,3936369,3936361,3936359,3936357,3936355';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/johncarmichael/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/johncarmichael/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 = 'John Carmichael Photography – Bromley, Kent: ' + 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>';
	}
					
				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;
	}
}

			

