window.thumbnails = new Object();
												thumbnails[4951784] = new thumbnail(4951784,'281691','','FBC1_thumb.jpg',100, 100,18,'photo_4951784.html');
												thumbnails[4951786] = new thumbnail(4951786,'281691','','FBC2_thumb.jpg',100, 100,18,'photo_4951786.html');
												thumbnails[4951832] = new thumbnail(4951832,'281691','','FBC3_thumb.jpg',100, 100,18,'photo_4951832.html');
												thumbnails[4951833] = new thumbnail(4951833,'281691','','FBC4_thumb.jpg',100, 100,18,'photo_4951833.html');
												thumbnails[4951835] = new thumbnail(4951835,'281691','','FBC5_thumb.jpg',100, 100,18,'photo_4951835.html');
												thumbnails[4951838] = new thumbnail(4951838,'281691','','FBC6_thumb.jpg',100, 100,18,'photo_4951838.html');
												thumbnails[4952374] = new thumbnail(4952374,'281278','','_TF18922_thumb.jpg',100, 100,18,'photo_4952374.html');
												thumbnails[4952370] = new thumbnail(4952370,'281278','','_TF18802_thumb.jpg',100, 100,18,'photo_4952370.html');
												thumbnails[7852756] = new thumbnail(7852756,'423759','','DSC_2191_copy_1_thumb.jpg',100, 100,18,'photo_7852756.html');
												thumbnails[7852826] = new thumbnail(7852826,'423761','','DSC_3676_copy_thumb.jpg',100, 100,18,'photo_7852826.html');
												thumbnails[7852879] = new thumbnail(7852879,'423762','','DSC_6303_copy_thumb.jpg',100, 100,18,'photo_7852879.html');
												thumbnails[7853081] = new thumbnail(7853081,'423760','','nd-0416_copy_thumb.jpg',100, 100,18,'photo_7853081.html');
												thumbnails[4934770] = new thumbnail(4934770,'280837','','NASS_1_sm1_thumb.jpg',100, 100,18,'photo_4934770.html');
												thumbnails[4944387] = new thumbnail(4944387,'280838','','_TF110191_thumb.jpg',100, 100,18,'photo_4944387.html');
												thumbnails[4945081] = new thumbnail(4945081,'281278','','_PDP3447_thumb.jpg',100, 100,18,'photo_4945081.html');
												thumbnails[4948044] = new thumbnail(4948044,'281454','','INC1_copy1_thumb.jpg',100, 100,18,'photo_4948044.html');
												thumbnails[4954647] = new thumbnail(4954647,'281811','','DSC_2491_thumb.JPG',100, 100,18,'photo_4954647.html');
												thumbnails[4965386] = new thumbnail(4965386,'282211','','6x6_Group_Shot_All_Body_Scrubs_RGB_copy12_thumb.JPG',100, 100,18,'photo_4965386.html');
												thumbnails[4966344] = new thumbnail(4966344,'282308','','TWENTY84_1_-_Liam_Sinnott_thumb.jpg',100, 100,18,'photo_4966344.html');
												thumbnails[4966605] = new thumbnail(4966605,'282311','','dark_1_thumb.jpg',100, 100,18,'photo_4966605.html');
												thumbnails[5659780] = new thumbnail(5659780,'320591','','Celine_thumb.jpg',100, 100,18,'photo_5659780.html');
												thumbnails[7852759] = new thumbnail(7852759,'423759','','DSC_2195_copy_thumb.jpg',100, 100,18,'photo_7852759.html');
												thumbnails[7852827] = new thumbnail(7852827,'423761','','DSC_3723_copy_thumb.jpg',100, 100,18,'photo_7852827.html');
												thumbnails[7852937] = new thumbnail(7852937,'423762','','DSC_6305_copy_thumb.jpg',99, 100,18,'photo_7852937.html');
												thumbnails[7853082] = new thumbnail(7853082,'423760','','nd-0484_copy_thumb.jpg',100, 100,18,'photo_7853082.html');
												thumbnails[7852761] = new thumbnail(7852761,'423759','','DSC_2200_copy_thumb.jpg',100, 100,18,'photo_7852761.html');
												thumbnails[7852829] = new thumbnail(7852829,'423761','','DSC_3731_copy_thumb.jpg',100, 100,18,'photo_7852829.html');
												thumbnails[7852959] = new thumbnail(7852959,'423762','','DSC_6337_copy_thumb.jpg',99, 100,18,'photo_7852959.html');
												thumbnails[7853084] = new thumbnail(7853084,'423760','','nd-0532_copy_1_thumb.jpg',100, 100,18,'photo_7853084.html');
												thumbnails[4934772] = new thumbnail(4934772,'280837','','NASS_2_sm1_thumb.jpg',100, 100,18,'photo_4934772.html');
												thumbnails[4944464] = new thumbnail(4944464,'280838','','_TF11022_thumb.jpg',100, 100,18,'photo_4944464.html');
												thumbnails[4947940] = new thumbnail(4947940,'281454','','INC2_copy_thumb.jpg',100, 100,18,'photo_4947940.html');
												thumbnails[4954649] = new thumbnail(4954649,'281811','','DSC_2502_thumb.JPG',100, 100,18,'photo_4954649.html');
												thumbnails[4965390] = new thumbnail(4965390,'282211','','6x6_WSB201_Duo_RGB_copy_thumb.jpg',100, 100,18,'photo_4965390.html');
												thumbnails[4966349] = new thumbnail(4966349,'282308','','TWENTY84_2_-_Liam_Sinnott_thumb.jpg',100, 100,18,'photo_4966349.html');
												thumbnails[4966607] = new thumbnail(4966607,'282311','','dark_2_thumb.jpg',100, 100,18,'photo_4966607.html');
												thumbnails[5659840] = new thumbnail(5659840,'320591','','OwenSuit_thumb.jpg',100, 100,18,'photo_5659840.html');
												thumbnails[7852763] = new thumbnail(7852763,'423759','','DSC_2206_copy_thumb.jpg',100, 100,18,'photo_7852763.html');
												thumbnails[7852830] = new thumbnail(7852830,'423761','','DSC_3751_copy_thumb.jpg',100, 100,18,'photo_7852830.html');
												thumbnails[7852970] = new thumbnail(7852970,'423762','','DSC_6344_copy_thumb.jpg',100, 100,18,'photo_7852970.html');
												thumbnails[7853086] = new thumbnail(7853086,'423760','','nd-0592_copy_thumb.jpg',100, 100,18,'photo_7853086.html');
												thumbnails[4954651] = new thumbnail(4954651,'281811','','TF1_0653_thumb.jpg',100, 100,18,'photo_4954651.html');
												thumbnails[7852764] = new thumbnail(7852764,'423759','','DSC_2240_copy_thumb.jpg',100, 100,18,'photo_7852764.html');
												thumbnails[7852766] = new thumbnail(7852766,'423759','','DSC_2368_copy_thumb.jpg',100, 100,18,'photo_7852766.html');
												thumbnails[7852831] = new thumbnail(7852831,'423761','','DSC_3925_copy_thumb.jpg',100, 100,18,'photo_7852831.html');
												thumbnails[7852977] = new thumbnail(7852977,'423762','','DSC_6362_copy_thumb.jpg',100, 100,18,'photo_7852977.html');
												thumbnails[7853087] = new thumbnail(7853087,'423760','','nd-0598_copy_thumb.jpg',100, 100,18,'photo_7853087.html');
												thumbnails[7853088] = new thumbnail(7853088,'423760','','nd-0600_copy_thumb.jpg',100, 100,18,'photo_7853088.html');
												thumbnails[4934776] = new thumbnail(4934776,'280837','','NASS_3_sm1_thumb.jpg',100, 100,18,'photo_4934776.html');
												thumbnails[4945100] = new thumbnail(4945100,'281278','','_TF18854_thumb.jpg',100, 100,18,'photo_4945100.html');
												thumbnails[4948046] = new thumbnail(4948046,'281454','','INC3_copy1_thumb.jpg',100, 100,18,'photo_4948046.html');
												thumbnails[4965394] = new thumbnail(4965394,'282211','','6x6_Fresh_Packed_Delivery_RGB_copy_thumb.jpg',100, 100,18,'photo_4965394.html');
												thumbnails[4966352] = new thumbnail(4966352,'282308','','TWENTY84_3_-_Liam_Sinnott_thumb.jpg',100, 100,18,'photo_4966352.html');
												thumbnails[4966610] = new thumbnail(4966610,'282311','','dark_3_thumb.jpg',100, 100,18,'photo_4966610.html');
												thumbnails[5659842] = new thumbnail(5659842,'320591','','JasonBradbury_thumb.jpeg',100, 100,18,'photo_5659842.html');
												thumbnails[7852767] = new thumbnail(7852767,'423759','','DSC_2372_copy_thumb.jpg',100, 100,18,'photo_7852767.html');
												thumbnails[7852832] = new thumbnail(7852832,'423761','','DSC_3951_copy_thumb.jpg',100, 100,18,'photo_7852832.html');
												thumbnails[7852834] = new thumbnail(7852834,'423761','','DSC_3991_copy_thumb.jpg',100, 100,18,'photo_7852834.html');
												thumbnails[7853052] = new thumbnail(7853052,'423762','','DSC_6374_copy_thumb.jpg',100, 100,18,'photo_7853052.html');
												thumbnails[7853089] = new thumbnail(7853089,'423760','','nd-0633_copy_thumb.jpg',100, 100,18,'photo_7853089.html');
												thumbnails[4967801] = new thumbnail(4967801,'281278','','_TF18871_bw_thumb.jpg',100, 100,18,'photo_4967801.html');
												thumbnails[4952386] = new thumbnail(4952386,'281278','','_TF18928_thumb.jpg',100, 100,18,'photo_4952386.html');
												thumbnails[4945098] = new thumbnail(4945098,'281278','','_PDP3589_thumb.jpg',100, 100,18,'photo_4945098.html');
												thumbnails[7852768] = new thumbnail(7852768,'423759','','DSC_2453_copy_thumb.jpg',100, 100,18,'photo_7852768.html');
												thumbnails[7852835] = new thumbnail(7852835,'423761','','DSC_4051_copy_thumb.jpg',100, 100,18,'photo_7852835.html');
												thumbnails[7853054] = new thumbnail(7853054,'423762','','DSC_6392_copy_thumb.jpg',100, 100,18,'photo_7853054.html');
												thumbnails[7853091] = new thumbnail(7853091,'423760','','nd-0668_copy_thumb.jpg',99, 100,18,'photo_7853091.html');
												thumbnails[4952368] = new thumbnail(4952368,'281278','','_PDP3653_thumb.jpg',100, 100,18,'photo_4952368.html');
												thumbnails[4952366] = new thumbnail(4952366,'281278','','_PDP3603_thumb.jpg',100, 100,18,'photo_4952366.html');
												thumbnails[4952377] = new thumbnail(4952377,'281278','','_TF19331_thumb.jpg',100, 100,18,'photo_4952377.html');
												thumbnails[4952379] = new thumbnail(4952379,'281278','','_TF19512_thumb.jpg',100, 100,18,'photo_4952379.html');
												thumbnails[4934831] = new thumbnail(4934831,'280837','','NASS_6_sm1_thumb.jpg',100, 100,18,'photo_4934831.html');
												thumbnails[4944510] = new thumbnail(4944510,'280838','','_TF11025_thumb.jpg',100, 100,18,'photo_4944510.html');
												thumbnails[4947947] = new thumbnail(4947947,'281454','','INC4_copy_thumb.jpg',100, 100,18,'photo_4947947.html');
												thumbnails[4954652] = new thumbnail(4954652,'281811','','DSC_2635_thumb.JPG',100, 100,18,'photo_4954652.html');
												thumbnails[4965401] = new thumbnail(4965401,'282211','','6x6_Group_Shot_All_Gift_Boxes_RGB_copy_thumb.jpg',100, 100,18,'photo_4965401.html');
												thumbnails[4966354] = new thumbnail(4966354,'282308','','TWENTY84_4_-_Liam_Sinnott_thumb.jpg',100, 100,18,'photo_4966354.html');
												thumbnails[4966616] = new thumbnail(4966616,'282311','','dark_412_thumb.jpg',100, 100,18,'photo_4966616.html');
												thumbnails[5659845] = new thumbnail(5659845,'320591','','Chivaz_thumb.jpg',100, 100,18,'photo_5659845.html');
												thumbnails[7852769] = new thumbnail(7852769,'423759','','DSC_2467_1_copy_thumb.jpg',100, 100,18,'photo_7852769.html');
												thumbnails[7852837] = new thumbnail(7852837,'423761','','DSC_4064_copy_thumb.jpg',100, 100,18,'photo_7852837.html');
												thumbnails[7853055] = new thumbnail(7853055,'423762','','DSC_6470_copy_thumb.jpg',100, 100,18,'photo_7853055.html');
												thumbnails[7853092] = new thumbnail(7853092,'423760','','nd-0709_copy_thumb.jpg',100, 100,18,'photo_7853092.html');
												thumbnails[4952381] = new thumbnail(4952381,'281278','','_TF19524_thumb.jpg',100, 100,18,'photo_4952381.html');
												thumbnails[7852838] = new thumbnail(7852838,'423761','','DSC_4069_copy_thumb.jpg',100, 100,18,'photo_7852838.html');
												thumbnails[4952384] = new thumbnail(4952384,'281278','','_TF19379_thumb.jpg',100, 100,18,'photo_4952384.html');
												thumbnails[4945102] = new thumbnail(4945102,'281278','','_TF19625_thumb.jpg',100, 100,18,'photo_4945102.html');
												thumbnails[7852770] = new thumbnail(7852770,'423759','','DSC_2507_1_copy_thumb.jpg',100, 100,18,'photo_7852770.html');
												thumbnails[7853094] = new thumbnail(7853094,'423760','','nd-0762_copy_thumb.jpg',100, 100,18,'photo_7853094.html');
												thumbnails[4934837] = new thumbnail(4934837,'280837','','NASS_9_sm12_thumb.jpg',100, 100,18,'photo_4934837.html');
												thumbnails[4934835] = new thumbnail(4934835,'280837','','NASS_5_sm123_thumb.jpg',100, 100,18,'photo_4934835.html');
												thumbnails[4944540] = new thumbnail(4944540,'280838','','_TF110551_thumb.jpg',100, 100,18,'photo_4944540.html');
												thumbnails[4947949] = new thumbnail(4947949,'281454','','INC5_copy_thumb.jpg',100, 100,18,'photo_4947949.html');
												thumbnails[4952376] = new thumbnail(4952376,'281278','','_TF19154_thumb.jpg',100, 100,18,'photo_4952376.html');
												thumbnails[4954655] = new thumbnail(4954655,'281811','','DSC_2628_thumb.JPG',100, 100,18,'photo_4954655.html');
												thumbnails[4965409] = new thumbnail(4965409,'282211','','Marie_Claire_Promo_thumb.jpg',100, 100,18,'photo_4965409.html');
												thumbnails[4966358] = new thumbnail(4966358,'282308','','TWENTY84_5_-_Liam_Sinnott_thumb.jpg',100, 100,18,'photo_4966358.html');
												thumbnails[4966620] = new thumbnail(4966620,'282311','','dark_5_thumb.jpg',100, 100,18,'photo_4966620.html');
												thumbnails[5659851] = new thumbnail(5659851,'320591','','Darran_thumb.jpg',100, 100,18,'photo_5659851.html');
												thumbnails[7852771] = new thumbnail(7852771,'423759','','DSC_2512_1_copy_thumb.jpg',100, 100,18,'photo_7852771.html');
												thumbnails[7852839] = new thumbnail(7852839,'423761','','DSC_4081_copy_thumb.jpg',100, 100,18,'photo_7852839.html');
												thumbnails[7853056] = new thumbnail(7853056,'423762','','DSC_6542_copy_thumb.jpg',100, 100,18,'photo_7853056.html');
												thumbnails[7853095] = new thumbnail(7853095,'423760','','nd-0769_copy_thumb.jpg',100, 100,18,'photo_7853095.html');
												thumbnails[7852772] = new thumbnail(7852772,'423759','','DSC_2649_1_copy_thumb.jpg',100, 100,18,'photo_7852772.html');
												thumbnails[7852841] = new thumbnail(7852841,'423761','','DSC_4134_copy_thumb.jpg',100, 100,18,'photo_7852841.html');
												thumbnails[7853058] = new thumbnail(7853058,'423762','','DSC_6669_copy_thumb.jpg',100, 100,18,'photo_7853058.html');
												thumbnails[7853097] = new thumbnail(7853097,'423760','','nd-0852_copy_thumb.jpg',99, 100,18,'photo_7853097.html');
												thumbnails[4944528] = new thumbnail(4944528,'280838','','_TF11045_thumb.jpg',100, 100,18,'photo_4944528.html');
												thumbnails[4947952] = new thumbnail(4947952,'281454','','INC6_copy_thumb.jpg',100, 100,18,'photo_4947952.html');
												thumbnails[4954656] = new thumbnail(4954656,'281811','','TF1_0744_thumb.jpg',100, 100,18,'photo_4954656.html');
												thumbnails[4965414] = new thumbnail(4965414,'282211','','Marie_Claire_Promo_2_thumb.jpg',100, 100,18,'photo_4965414.html');
												thumbnails[4966622] = new thumbnail(4966622,'282311','','dark_6_thumb.jpg',100, 100,18,'photo_4966622.html');
												thumbnails[5659856] = new thumbnail(5659856,'320591','','AdamCracked_thumb.jpeg',100, 100,18,'photo_5659856.html');
												thumbnails[7852773] = new thumbnail(7852773,'423759','','DSC_2653_copy_thumb.jpg',100, 100,18,'photo_7852773.html');
												thumbnails[7852774] = new thumbnail(7852774,'423759','','DSC_2695_copy_thumb.jpg',100, 100,18,'photo_7852774.html');
												thumbnails[7853059] = new thumbnail(7853059,'423762','','DSC_6720_copy_thumb.jpg',100, 100,18,'photo_7853059.html');
												thumbnails[7853098] = new thumbnail(7853098,'423760','','nd-0974_copy_thumb.jpg',100, 100,18,'photo_7853098.html');
												thumbnails[7852842] = new thumbnail(7852842,'423761','','DSC_4140_copy_thumb.jpg',100, 100,18,'photo_7852842.html');
												thumbnails[7852845] = new thumbnail(7852845,'423761','','DSC_4206_copy_thumb.jpg',100, 100,18,'photo_7852845.html');
												thumbnails[7853060] = new thumbnail(7853060,'423762','','DSC_7019_copy_thumb.jpg',100, 100,18,'photo_7853060.html');
												thumbnails[7853099] = new thumbnail(7853099,'423760','','nd-0980_copy_thumb.jpg',100, 100,18,'photo_7853099.html');
												thumbnails[7852808] = new thumbnail(7852808,'423759','','DSC_2778_copy_thumb.jpg',100, 100,18,'photo_7852808.html');
												thumbnails[7852798] = new thumbnail(7852798,'423759','','DSC_2755_copy_1_thumb.jpg',100, 100,18,'photo_7852798.html');
												thumbnails[4954661] = new thumbnail(4954661,'281811','','TF1_1305_copy_thumb.jpg',100, 100,18,'photo_4954661.html');
												thumbnails[4944549] = new thumbnail(4944549,'280838','','_TF11056_thumb.jpg',100, 100,18,'photo_4944549.html');
												thumbnails[4948049] = new thumbnail(4948049,'281454','','INC7_copy12_thumb.jpg',100, 100,18,'photo_4948049.html');
												thumbnails[4954657] = new thumbnail(4954657,'281811','','TF1_0878_copy_thumb.JPG',100, 100,18,'photo_4954657.html');
												thumbnails[5659869] = new thumbnail(5659869,'320591','','TimTree_thumb.jpg',100, 100,18,'photo_5659869.html');
												thumbnails[7852809] = new thumbnail(7852809,'423759','','DSC_2787_copy_thumb.jpg',100, 100,18,'photo_7852809.html');
												thumbnails[7852846] = new thumbnail(7852846,'423761','','DSC_4242_copy_thumb.jpg',100, 100,18,'photo_7852846.html');
												thumbnails[7853061] = new thumbnail(7853061,'423762','','DSC_7036_copy_thumb.jpg',99, 100,18,'photo_7853061.html');
												thumbnails[7853100] = new thumbnail(7853100,'423760','','nd-1127_copy_1_thumb.jpg',99, 100,18,'photo_7853100.html');
												thumbnails[7852848] = new thumbnail(7852848,'423761','','DSC_4297_copy_thumb.jpg',100, 100,18,'photo_7852848.html');
												thumbnails[7852810] = new thumbnail(7852810,'423759','','DSC_2876_1_copy_thumb.jpg',100, 100,18,'photo_7852810.html');
												thumbnails[7852811] = new thumbnail(7852811,'423759','','DSC_2908_copy_thumb.jpg',100, 100,18,'photo_7852811.html');
												thumbnails[7852850] = new thumbnail(7852850,'423761','','DSC_4315_copy_thumb.jpg',100, 100,18,'photo_7852850.html');
												thumbnails[7853063] = new thumbnail(7853063,'423762','','DSC_7078_copy_thumb.jpg',100, 100,18,'photo_7853063.html');
												thumbnails[7853101] = new thumbnail(7853101,'423760','','nd-1152_copy_thumb.jpg',100, 100,18,'photo_7853101.html');
												thumbnails[7852813] = new thumbnail(7852813,'423759','','DSC_2934_copy_thumb.jpg',100, 100,18,'photo_7852813.html');
												thumbnails[4944521] = new thumbnail(4944521,'280838','','_TF110311_thumb.jpg',100, 100,18,'photo_4944521.html');
												thumbnails[4947958] = new thumbnail(4947958,'281454','','INC8_copy_thumb.JPG',100, 100,18,'photo_4947958.html');
												thumbnails[4954659] = new thumbnail(4954659,'281811','','DSC_2216_copy_thumb.jpg',100, 100,18,'photo_4954659.html');
												thumbnails[5659864] = new thumbnail(5659864,'320591','','Dominick_thumb.jpg',100, 100,18,'photo_5659864.html');
												thumbnails[7852816] = new thumbnail(7852816,'423759','','DSC_2989_copy_thumb.jpg',100, 100,18,'photo_7852816.html');
												thumbnails[7852853] = new thumbnail(7852853,'423761','','DSC_4367_copy_thumb.jpg',100, 100,18,'photo_7852853.html');
												thumbnails[7852855] = new thumbnail(7852855,'423761','','DSC_4407_copy_thumb.jpg',100, 100,18,'photo_7852855.html');
												thumbnails[7853065] = new thumbnail(7853065,'423762','','DSC_7123_copy_thumb.jpg',100, 100,18,'photo_7853065.html');
												thumbnails[7853104] = new thumbnail(7853104,'423760','','nd-1213_copy_thumb.jpg',100, 100,18,'photo_7853104.html');
												thumbnails[7852817] = new thumbnail(7852817,'423759','','DSC_3031_copy_thumb.jpg',100, 100,18,'photo_7852817.html');
												thumbnails[7852857] = new thumbnail(7852857,'423761','','DSC_4486_copy_thumb.jpg',100, 100,18,'photo_7852857.html');
												thumbnails[7853068] = new thumbnail(7853068,'423762','','DSC_7132_copy_thumb.jpg',99, 100,18,'photo_7853068.html');
												thumbnails[7853105] = new thumbnail(7853105,'423760','','nd-1278_copy_thumb.jpg',99, 100,18,'photo_7853105.html');
												thumbnails[4944557] = new thumbnail(4944557,'280838','','_TF11071_thumb.jpg',100, 100,18,'photo_4944557.html');
												thumbnails[4947960] = new thumbnail(4947960,'281454','','INC9_copy_thumb.JPG',100, 100,18,'photo_4947960.html');
												thumbnails[7852818] = new thumbnail(7852818,'423759','','DSC_3036_copy_thumb.jpg',100, 100,18,'photo_7852818.html');
												thumbnails[7852819] = new thumbnail(7852819,'423759','','DSC_3048_copy_thumb.jpg',100, 100,18,'photo_7852819.html');
												thumbnails[7852861] = new thumbnail(7852861,'423761','','DSC_4564_copy_thumb.jpg',100, 100,18,'photo_7852861.html');
												thumbnails[7853069] = new thumbnail(7853069,'423762','','DSC_7148_copy_thumb.jpg',99, 100,18,'photo_7853069.html');
												thumbnails[7853107] = new thumbnail(7853107,'423760','','nd-1384_copy_thumb.jpg',99, 100,18,'photo_7853107.html');
												thumbnails[4946866] = new thumbnail(4946866,'280838','','Dephect_Poster_copy_copy_thumb.jpg',100, 100,18,'photo_4946866.html');
												thumbnails[5659857] = new thumbnail(5659857,'320591','','Owen_thumb.jpeg',100, 100,18,'photo_5659857.html');
												thumbnails[7852821] = new thumbnail(7852821,'423759','','DSC_3178_copy_thumb.jpg',100, 100,18,'photo_7852821.html');
												thumbnails[7853072] = new thumbnail(7853072,'423762','','DSC_7314_copy_thumb.jpg',99, 100,18,'photo_7853072.html');
												thumbnails[7853109] = new thumbnail(7853109,'423760','','nd-1397_copy_thumb.jpg',100, 100,18,'photo_7853109.html');
												thumbnails[7852863] = new thumbnail(7852863,'423761','','DSC_4712_copy_thumb.jpg',100, 100,18,'photo_7852863.html');
												thumbnails[7852822] = new thumbnail(7852822,'423759','','DSC_3180_copy_thumb.jpg',100, 100,18,'photo_7852822.html');
												thumbnails[7852867] = new thumbnail(7852867,'423761','','DSC_4720_copy_thumb.jpg',100, 100,18,'photo_7852867.html');
												thumbnails[7853073] = new thumbnail(7853073,'423762','','DSC_7375_copy_thumb.jpg',100, 100,18,'photo_7853073.html');
												thumbnails[7853110] = new thumbnail(7853110,'423760','','nd-1417_copy_thumb.jpg',100, 100,18,'photo_7853110.html');
												thumbnails[7852869] = new thumbnail(7852869,'423761','','DSC_4778_copy_thumb.jpg',100, 100,18,'photo_7852869.html');
												thumbnails[7853075] = new thumbnail(7853075,'423762','','DSC_7485_copy_thumb.jpg',100, 100,18,'photo_7853075.html');
												thumbnails[7852872] = new thumbnail(7852872,'423761','','DSC_4816_copy_thumb.jpg',100, 100,18,'photo_7852872.html');
												thumbnails[7853076] = new thumbnail(7853076,'423762','','DSC_7535_copy_thumb.jpg',100, 100,18,'photo_7853076.html');
												thumbnails[7852823] = new thumbnail(7852823,'423759','','DSC_3205_copy_thumb.jpg',100, 100,18,'photo_7852823.html');
												thumbnails[7852876] = new thumbnail(7852876,'423761','','DSC_4882_copy_thumb.jpg',100, 100,18,'photo_7852876.html');
												thumbnails[7853077] = new thumbnail(7853077,'423762','','DSC_7565_copy_thumb.jpg',100, 100,18,'photo_7853077.html');
												thumbnails[7852878] = new thumbnail(7852878,'423761','','DSC_5021_copy_thumb.jpg',100, 100,18,'photo_7852878.html');
												thumbnails[7853079] = new thumbnail(7853079,'423762','','DSC_7577_copy_thumb.jpg',100, 100,18,'photo_7853079.html');
												thumbnails[7853080] = new thumbnail(7853080,'423762','','DSC_7638_copy_thumb.jpg',100, 100,18,'photo_7853080.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[281278] = new gallery(281278,'4952376','J&S Wedding','gallery',[4952374,4952370,4945081,4945100,4967801,4952386,4945098,4952368,4952366,4952377,4952379,4952381,4952384,4945102,4952376],0, 1, '280839', 'gallery_281278.html',0,0);
				  					galleries[320591] = new gallery(320591,'5659780','Portraits','gallery',[5659780,5659840,5659842,5659845,5659851,5659856,5659869,5659864,5659857],0, 1, '280407', 'gallery_320591.html',0,0);
				  					galleries[423759] = new gallery(423759,'7852823,7852822,7852821,7852819,7852818,7852817,7852816,7852813,7852811,7852810','C&S Wedding','gallery',[7852756,7852759,7852761,7852763,7852764,7852766,7852767,7852768,7852769,7852770,7852771,7852772,7852773,7852774,7852808,7852798,7852809,7852810,7852811,7852813,7852816,7852817,7852818,7852819,7852821,7852822,7852823],0, 1, '280839', 'gallery_423759.html',0,0);
				  					galleries[280407] = new gallery(280407,'5659780,4965390,4954651,4951838,4948044,4946866,4934831','Commissions','gallery',[],0, 1, '', 'gallery_280407.html',0,0);
				  					galleries[280837] = new gallery(280837,'4934831','Relentless','gallery',[4934770,4934772,4934776,4934831,4934837,4934835],0, 1, '280407', 'gallery_280837.html',0,0);
				  					galleries[282308] = new gallery(282308,'4966352','TWENTY84','gallery',[4966344,4966349,4966352,4966354,4966358],0, 1, '280408', 'gallery_282308.html',0,0);
				  					galleries[282311] = new gallery(282311,'4966616','Dark Side','gallery',[4966605,4966607,4966610,4966616,4966620,4966622],0, 1, '280408', 'gallery_282311.html',0,0);
				  					galleries[423762] = new gallery(423762,'7853080,7853079,7853077,7853076,7853075,7853073,7853072,7853069,7853068,7853065','S&J Wedding','gallery',[7852879,7852937,7852959,7852970,7852977,7853052,7853054,7853055,7853056,7853058,7853059,7853060,7853061,7853063,7853065,7853068,7853069,7853072,7853073,7853075,7853076,7853077,7853079,7853080],0, 1, '280839', 'gallery_423762.html',0,0);
				  					galleries[423760] = new gallery(423760,'7853110,7853109,7853107,7853105,7853104,7853101,7853100,7853099,7853098,7853097','D&N Wedding','gallery',[7853081,7853082,7853084,7853086,7853087,7853088,7853089,7853091,7853092,7853094,7853095,7853097,7853098,7853099,7853100,7853101,7853104,7853105,7853107,7853109,7853110],0, 1, '280839', 'gallery_423760.html',0,0);
				  					galleries[280838] = new gallery(280838,'4946866','Dephect','gallery',[4944387,4944464,4944510,4944540,4944528,4944549,4944521,4944557,4946866],0, 1, '280407', 'gallery_280838.html',0,0);
				  					galleries[280839] = new gallery(280839,'4952376','Events','gallery',[],0, 1, '', 'gallery_280839.html',0,0);
				  					galleries[281454] = new gallery(281454,'4948044','I.N.C Space','gallery',[4948044,4947940,4948046,4947947,4947949,4947952,4948049,4947958,4947960],0, 1, '280407', 'gallery_281454.html',0,0);
				  					galleries[423761] = new gallery(423761,'7852878,7852876,7852872,7852869,7852867,7852863,7852861,7852857,7852855,7852853','M&G Wedding','gallery',[7852826,7852827,7852829,7852830,7852831,7852832,7852834,7852835,7852837,7852838,7852839,7852841,7852842,7852845,7852846,7852848,7852850,7852853,7852855,7852857,7852861,7852863,7852867,7852869,7852872,7852876,7852878],0, 1, '280839', 'gallery_423761.html',0,0);
				  					galleries[280408] = new gallery(280408,'4966616,4966352','Projects','gallery',[],0, 1, '', 'gallery_280408.html',0,0);
				  					galleries[281691] = new gallery(281691,'4951838','FBC','gallery',[4951784,4951786,4951832,4951833,4951835,4951838],0, 1, '280407', 'gallery_281691.html',0,0);
				  					galleries[281811] = new gallery(281811,'4954651','Bovis Lend Lease','gallery',[4954647,4954649,4954651,4954652,4954655,4954656,4954661,4954657,4954659],0, 1, '280407', 'gallery_281811.html',0,0);
				  					galleries[282211] = new gallery(282211,'4965390','Ruby Red','gallery',[4965386,4965390,4965394,4965401,4965409,4965414],0, 1, '280407', 'gallery_282211.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '5659869,5659864,5659857,5659842,5659780,4966610,4948044,4934831,4934770';
imageSets[2] = '5659780,4966616,4966352,4965390,4954651,4952376,4951838,4948044,4946866,4934831';
imageSets[3] = '7853110,7853109,7853107,7853105,7853104,7853101,7853100,7853099,7853098,7853097,7853095,7853094,7853092,7853091,7853089,7853088,7853087,7853086,7853084,7853082,7853081,7853080,7853079,7853077,7853076,7853075,7853073,7853072,7853069,7853068,7853065,7853063,7853061,7853060,7853059,7853058,7853056,7853055,7853054,7853052,7852977,7852970,7852959,7852937,7852879,7852878,7852876,7852872,7852869,7852867';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lsinnott/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lsinnott/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 = 'Liam Sinnott 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));      $('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 = 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 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 + '<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="lamsnott@gmail.com">';
	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="lamsnott@gmail.com">';
	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;
	}
}

			

