window.thumbnails = {};
															thumbnails[5182085] = clik.newPhoto({"id":5182085,"src":"ribbons_1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":37});
															thumbnails[5182086] = clik.newPhoto({"id":5182086,"src":"ribbons_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":37});
															thumbnails[6425735] = clik.newPhoto({"id":6425735,"src":"frontpage076_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425796] = clik.newPhoto({"id":6425796,"src":"Invitation-Selection_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":67});
															thumbnails[6426409] = clik.newPhoto({"id":6426409,"src":"Table-Stationery_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6436694] = clik.newPhoto({"id":6436694,"src":"Pocketfold_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437326] = clik.newPhoto({"id":6437326,"src":"FlatPocket_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437327] = clik.newPhoto({"id":6437327,"src":"Postcards_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437328] = clik.newPhoto({"id":6437328,"src":"Mounted_Postcard_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437330] = clik.newPhoto({"id":6437330,"src":"Wallets_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437332] = clik.newPhoto({"id":6437332,"src":"Cardstyle_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437359] = clik.newPhoto({"id":6437359,"src":"savethedate_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437375] = clik.newPhoto({"id":6437375,"src":"OderofService_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437379] = clik.newPhoto({"id":6437379,"src":"Menus_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":63});
															thumbnails[6437385] = clik.newPhoto({"id":6437385,"src":"NameCards_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437386] = clik.newPhoto({"id":6437386,"src":"Table_numbers_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437433] = clik.newPhoto({"id":6437433,"src":"Tableplan_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6437657] = clik.newPhoto({"id":6437657,"src":"ThankYou01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6441697] = clik.newPhoto({"id":6441697,"src":"Favour_box_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6441708] = clik.newPhoto({"id":6441708,"src":"frames_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":43});
															thumbnails[6441725] = clik.newPhoto({"id":6441725,"src":"MemoryPrint_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6441880] = clik.newPhoto({"id":6441880,"src":"RSVP_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6441922] = clik.newPhoto({"id":6441922,"src":"InfoCard_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6457012] = clik.newPhoto({"id":6457012,"src":"Pocketfold_invitation_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6458262] = clik.newPhoto({"id":6458262,"src":"Flat_pocket_invitation_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":100});
															thumbnails[6458325] = clik.newPhoto({"id":6458325,"src":"Card_style_invitation_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6458383] = clik.newPhoto({"id":6458383,"src":"Postcard_invitation_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6458469] = clik.newPhoto({"id":6458469,"src":"Mounted_postcard_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6458523] = clik.newPhoto({"id":6458523,"src":"Wallet_invitation_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6459737] = clik.newPhoto({"id":6459737,"src":"Menus_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6459747] = clik.newPhoto({"id":6459747,"src":"PlaceCards_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6459772] = clik.newPhoto({"id":6459772,"src":"TableNumbers_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6459805] = clik.newPhoto({"id":6459805,"src":"TablePlans_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6459829] = clik.newPhoto({"id":6459829,"src":"FavourBoxes_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":22});
															thumbnails[6460136] = clik.newPhoto({"id":6460136,"src":"Personalise01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6633678] = clik.newPhoto({"id":6633678,"src":"Wallet_Invitation_C367B8EC-1D09-001F-999ED76FBDBC5A34_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wallet Invitation","height":87});
															thumbnails[6633691] = clik.newPhoto({"id":6633691,"src":"Flat-Pocket-Invitation_2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Flat Pocket Invitation","height":87});
															thumbnails[6635765] = clik.newPhoto({"id":6635765,"src":"line_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":1});
															thumbnails[6644435] = clik.newPhoto({"id":6644435,"src":"Frontpage_row1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":29});
															thumbnails[6644505] = clik.newPhoto({"id":6644505,"src":"Frontpage_row2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":29});
															thumbnails[6650798] = clik.newPhoto({"id":6650798,"src":"Frontpage_row3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":29});
															thumbnails[6651238] = clik.newPhoto({"id":6651238,"src":"FrontpageA_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":33});
															thumbnails[6651439] = clik.newPhoto({"id":6651439,"src":"FrontpageB_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":33});
															thumbnails[6651440] = clik.newPhoto({"id":6651440,"src":"FrontpageB1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":33});
															thumbnails[6651445] = clik.newPhoto({"id":6651445,"src":"FrontpageC_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":33});
															thumbnails[6715385] = clik.newPhoto({"id":6715385,"src":"Double_Sidedt_Tape_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"50 metre Roll of 12mm Finger Lift Double Sided Tape","height":130});
															thumbnails[6717669] = clik.newPhoto({"id":6717669,"src":"DIY_Instructions_Mounted_Po_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6717675] = clik.newPhoto({"id":6717675,"src":"DIY_Instructions_Pocketfold_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":104});
															thumbnails[6717679] = clik.newPhoto({"id":6717679,"src":"DIY_Instructions_Square_Fla_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":52});
															thumbnails[6717685] = clik.newPhoto({"id":6717685,"src":"DIY_Instructions_Wallet_Inv_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6722324] = clik.newPhoto({"id":6722324,"src":"DIY_Kit_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":33});
															thumbnails[6722396] = clik.newPhoto({"id":6722396,"src":"DIY_Assemble_Invitations_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":33});
															thumbnails[6722572] = clik.newPhoto({"id":6722572,"src":"Page-Setup_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":48});
															thumbnails[6722581] = clik.newPhoto({"id":6722581,"src":"Page-Setup2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[6724196] = clik.newPhoto({"id":6724196,"src":"DIY_eg_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[6724339] = clik.newPhoto({"id":6724339,"src":"DIY_eg2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[6736634] = clik.newPhoto({"id":6736634,"src":"Commissioned_Selection_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":53});
															thumbnails[6737726] = clik.newPhoto({"id":6737726,"src":"Pocketfold_02_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":42});
															thumbnails[6737776] = clik.newPhoto({"id":6737776,"src":"Pocketfold_inserts_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":68});
															thumbnails[6752000] = clik.newPhoto({"id":6752000,"src":"Tableplans1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":88});
															thumbnails[8044752] = clik.newPhoto({"id":8044752,"src":"Lottery_envelope_01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[8044849] = clik.newPhoto({"id":8044849,"src":"Postcard-Invitation-01_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":65});
															thumbnails[6425720] = clik.newPhoto({"id":6425720,"src":"frontpage030_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425737] = clik.newPhoto({"id":6425737,"src":"frontpage092_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6431494] = clik.newPhoto({"id":6431494,"src":"frontpage035_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425738] = clik.newPhoto({"id":6425738,"src":"frontpage100_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425723] = clik.newPhoto({"id":6425723,"src":"frontpage045_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425734] = clik.newPhoto({"id":6425734,"src":"frontpage074_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425736] = clik.newPhoto({"id":6425736,"src":"frontpage080_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425719] = clik.newPhoto({"id":6425719,"src":"frontpage020_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Mounted Postcard","height":87});
															thumbnails[6431500] = clik.newPhoto({"id":6431500,"src":"frontpage085_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425722] = clik.newPhoto({"id":6425722,"src":"frontpage040_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6431496] = clik.newPhoto({"id":6431496,"src":"frontpage055_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425739] = clik.newPhoto({"id":6425739,"src":"frontpage110_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425741] = clik.newPhoto({"id":6425741,"src":"frontpage135_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425726] = clik.newPhoto({"id":6425726,"src":"frontpage050_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6431503] = clik.newPhoto({"id":6431503,"src":"frontpage115_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425728] = clik.newPhoto({"id":6425728,"src":"frontpage060_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6425718] = clik.newPhoto({"id":6425718,"src":"frontpage010_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[4822294] = clik.newPhoto({"id":4822294,"src":"homepage1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6715241] = clik.newPhoto({"id":6715241,"src":"GalleryHeader3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[6389248] = clik.newPhoto({"id":6389248,"src":"Agapanthus_III_3_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6389248.html","width":130,"caption":"Agapanthus III.3","height":130});
															thumbnails[6396751] = clik.newPhoto({"id":6396751,"src":"Gerbera_V_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396751.html","width":130,"caption":"Gerbera V.4","height":130});
															thumbnails[6396777] = clik.newPhoto({"id":6396777,"src":"Lily_VI_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396777.html","width":130,"caption":"Lily VI.1","height":130});
															thumbnails[6396796] = clik.newPhoto({"id":6396796,"src":"Mono_Butterfly_I_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396796.html","width":130,"caption":"Mono Butterfly I","height":130});
															thumbnails[6396829] = clik.newPhoto({"id":6396829,"src":"Mono_Text_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396829.html","width":130,"caption":"Mono Text I","height":130});
															thumbnails[6396861] = clik.newPhoto({"id":6396861,"src":"PEONY_V_3_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396861.html","width":130,"caption":"Peony V.3","height":130});
															thumbnails[6396935] = clik.newPhoto({"id":6396935,"src":"VINTAGE_FLORAL_I_1_range_we_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396935.html","width":130,"caption":"Vintage Floral I.1","height":130});
															thumbnails[6396762] = clik.newPhoto({"id":6396762,"src":"Hyacinth-_II_4_rANGE_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396762.html","width":130,"caption":"Hyacinth II.4","height":130});
															thumbnails[6396802] = clik.newPhoto({"id":6396802,"src":"Mono_Floral_I_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396802.html","width":130,"caption":"Mono Floral I","height":130});
															thumbnails[6396913] = clik.newPhoto({"id":6396913,"src":"Roses-IV_17_range-_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396913.html","width":130,"caption":"Roses IV.17","height":130});
															thumbnails[6389289] = clik.newPhoto({"id":6389289,"src":"Agapanthus_IV_2_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6389289.html","width":130,"caption":"Agapanthus IV.2","height":130});
															thumbnails[6396900] = clik.newPhoto({"id":6396900,"src":"Roses-IV_16_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396900.html","width":130,"caption":"Roses IV.16","height":130});
															thumbnails[6396776] = clik.newPhoto({"id":6396776,"src":"Lily_V_5_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396776.html","width":130,"caption":"Lily V.5","height":130});
															thumbnails[6396821] = clik.newPhoto({"id":6396821,"src":"Mono_Floral_V_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396821.html","width":130,"caption":"Mono Floral V","height":130});
															thumbnails[6396808] = clik.newPhoto({"id":6396808,"src":"Mono_Floral_II_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396808.html","width":130,"caption":"Mono Floral II","height":130});
															thumbnails[6396881] = clik.newPhoto({"id":6396881,"src":"Roses_VII_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396881.html","width":130,"caption":"Roses VII.4","height":130});
															thumbnails[6389359] = clik.newPhoto({"id":6389359,"src":"Agapanthus_IV_3_Range-_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6389359.html","width":130,"caption":"Agapanthus IV.3","height":130});
															thumbnails[6396815] = clik.newPhoto({"id":6396815,"src":"Mono_Floral_IV_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396815.html","width":130,"caption":"Mono Floral IV","height":130});
															thumbnails[6396763] = clik.newPhoto({"id":6396763,"src":"Hydrangea_III_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396763.html","width":130,"caption":"Hydrangea III.4","height":130});
															thumbnails[6396754] = clik.newPhoto({"id":6396754,"src":"Hyacinth_II_5_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396754.html","width":130,"caption":"Hyacinth II.5","height":130});
															thumbnails[6396785] = clik.newPhoto({"id":6396785,"src":"Lily-IV_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396785.html","width":130,"caption":"Lily IV.1","height":130});
															thumbnails[6396811] = clik.newPhoto({"id":6396811,"src":"Mono_Floral_III_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396811.html","width":130,"caption":"Mono Floral III","height":130});
															thumbnails[6396850] = clik.newPhoto({"id":6396850,"src":"Peony_Rose_II_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396850.html","width":130,"caption":"Peony Rose II.4","height":130});
															thumbnails[6396946] = clik.newPhoto({"id":6396946,"src":"VINTAGE_FLORAL_I_3_range_we_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396946.html","width":130,"caption":"Vintage Floral I.3","height":130});
															thumbnails[6396888] = clik.newPhoto({"id":6396888,"src":"Roses-IV_11_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396888.html","width":130,"caption":"Roses IV.11","height":130});
															thumbnails[6389362] = clik.newPhoto({"id":6389362,"src":"Alstroemeria-II_1_Range-_we_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6389362.html","width":130,"caption":"Alstroemeria II.1","height":130});
															thumbnails[6396307] = clik.newPhoto({"id":6396307,"src":"Chrysanthemum-III_2_Range_w_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396307.html","width":130,"caption":"Chrysanthemum III.2","height":130});
															thumbnails[6396528] = clik.newPhoto({"id":6396528,"src":"Gerbera_IV_2_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396528.html","width":130,"caption":"Gerbera IV.2","height":130});
															thumbnails[6396769] = clik.newPhoto({"id":6396769,"src":"Hydrangea-IV_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396769.html","width":130,"caption":"Hydrangea IV.4","height":130});
															thumbnails[6396240] = clik.newPhoto({"id":6396240,"src":"Butterfly_I_3_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396240.html","width":130,"caption":"Butterfly I.3","height":130});
															thumbnails[6396758] = clik.newPhoto({"id":6396758,"src":"Hyacinth-_II_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396758.html","width":130,"caption":"Hyacinth II.1","height":130});
															thumbnails[6396792] = clik.newPhoto({"id":6396792,"src":"Lisianthus-I_5_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396792.html","width":130,"caption":"Lisianthus I.5","height":130});
															thumbnails[6396923] = clik.newPhoto({"id":6396923,"src":"Text_I_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396923.html","width":130,"caption":"Text I.1","height":130});
															thumbnails[6389253] = clik.newPhoto({"id":6389253,"src":"Agapanthus_IV_1_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6389253.html","width":130,"caption":"Agapanthus IV.1","height":130});
															thumbnails[6396244] = clik.newPhoto({"id":6396244,"src":"Butterfly_I_4_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396244.html","width":130,"caption":"Butterfly I.4","height":130});
															thumbnails[6396350] = clik.newPhoto({"id":6396350,"src":"COUNTRY_GARDEN_V_1_Range_we_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396350.html","width":130,"caption":"Country Garden V.1","height":130});
															thumbnails[6396764] = clik.newPhoto({"id":6396764,"src":"Hydrangea-III_1_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396764.html","width":130,"caption":"Hydrangea III.1","height":130});
															thumbnails[6396937] = clik.newPhoto({"id":6396937,"src":"VINTAGE_FLORAL_I_2_range_we_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396937.html","width":130,"caption":"Vintage Floral I.2","height":130});
															thumbnails[6396897] = clik.newPhoto({"id":6396897,"src":"Roses-IV_14_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396897.html","width":130,"caption":"Roses IV.14","height":130});
															thumbnails[6396768] = clik.newPhoto({"id":6396768,"src":"Hydrangea-IV_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396768.html","width":130,"caption":"Hydrangea IV.1","height":130});
															thumbnails[6389068] = clik.newPhoto({"id":6389068,"src":"Agapanthus_III_1_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6389068.html","width":130,"caption":"Agapanthus III.1","height":130});
															thumbnails[6396338] = clik.newPhoto({"id":6396338,"src":"Country_Garden_II_6_Range_w_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396338.html","width":130,"caption":"Country Garden II.6","height":130});
															thumbnails[6396950] = clik.newPhoto({"id":6396950,"src":"VINTAGE_FLORAL_I_5_range_we_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396950.html","width":130,"caption":"Vintage Floral I.5","height":130});
															thumbnails[6389244] = clik.newPhoto({"id":6389244,"src":"Agapanthus_III_2_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6389244.html","width":130,"caption":"Agapanthus III.2","height":130});
															thumbnails[6396756] = clik.newPhoto({"id":6396756,"src":"Hyacinth_II_9_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396756.html","width":130,"caption":"Hyacinth II.9","height":130});
															thumbnails[6396346] = clik.newPhoto({"id":6396346,"src":"COUNTRY_GARDEN_V1_1_Range_w_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396346.html","width":130,"caption":"Country Garden VI.1","height":130});
															thumbnails[6396234] = clik.newPhoto({"id":6396234,"src":"Amaryllis-II_3_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396234.html","width":130,"caption":"Amaryllis II.3","height":130});
															thumbnails[6396778] = clik.newPhoto({"id":6396778,"src":"Lily_VI_2_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396778.html","width":130,"caption":"Lily VI.2","height":130});
															thumbnails[6396851] = clik.newPhoto({"id":6396851,"src":"Peony_Rose_II_5_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396851.html","width":130,"caption":"Peony Rose II.5","height":130});
															thumbnails[6396238] = clik.newPhoto({"id":6396238,"src":"Butterfly_I_1_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396238.html","width":130,"caption":"Butterfly I.1","height":130});
															thumbnails[6396248] = clik.newPhoto({"id":6396248,"src":"Butterfly_III_1_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396248.html","width":130,"caption":"Butterfly III.1","height":130});
															thumbnails[6396791] = clik.newPhoto({"id":6396791,"src":"Lisianthus-I_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396791.html","width":130,"caption":"Lisianthus I.4","height":130});
															thumbnails[6396884] = clik.newPhoto({"id":6396884,"src":"Roses-IV_5_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396884.html","width":130,"caption":"Roses IV.5","height":130});
															thumbnails[6396770] = clik.newPhoto({"id":6396770,"src":"Hydrangea-IV_6_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396770.html","width":130,"caption":"Hydrangea IV.6","height":130});
															thumbnails[6396860] = clik.newPhoto({"id":6396860,"src":"PEONY_V_2_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396860.html","width":130,"caption":"Peony V.2","height":130});
															thumbnails[6396216] = clik.newPhoto({"id":6396216,"src":"Amaryllis-II_1_Range-_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396216.html","width":130,"caption":"Amaryllis II.1","height":130});
															thumbnails[6396772] = clik.newPhoto({"id":6396772,"src":"Lily_V_3_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396772.html","width":130,"caption":"Lily V.3","height":130});
															thumbnails[6396308] = clik.newPhoto({"id":6396308,"src":"Chrysanthemum-III_1_Range_w_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396308.html","width":130,"caption":"Chrysanthemum III.1","height":130});
															thumbnails[6396336] = clik.newPhoto({"id":6396336,"src":"Country_Garden_II_5_Range_w_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396336.html","width":130,"caption":"Country Garden II.5","height":130});
															thumbnails[6396765] = clik.newPhoto({"id":6396765,"src":"Hydrangea-III_6_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396765.html","width":130,"caption":"Hydrangea III.6","height":130});
															thumbnails[6396774] = clik.newPhoto({"id":6396774,"src":"Lily_V_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396774.html","width":130,"caption":"Lily V.4","height":130});
															thumbnails[6396789] = clik.newPhoto({"id":6396789,"src":"Lisianthus-I_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396789.html","width":130,"caption":"Lisianthus I.1","height":130});
															thumbnails[6396845] = clik.newPhoto({"id":6396845,"src":"Peony_Rose_I_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396845.html","width":130,"caption":"Peony Rose I.1","height":130});
															thumbnails[6396848] = clik.newPhoto({"id":6396848,"src":"Peony_Rose_II_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396848.html","width":130,"caption":"Peony Rose II.1","height":130});
															thumbnails[6396862] = clik.newPhoto({"id":6396862,"src":"PEONY_V_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396862.html","width":130,"caption":"Peony V.4","height":130});
															thumbnails[6396892] = clik.newPhoto({"id":6396892,"src":"Roses-IV_13_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396892.html","width":130,"caption":"Roses IV.13","height":130});
															thumbnails[6396929] = clik.newPhoto({"id":6396929,"src":"Tulip_V_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396929.html","width":130,"caption":"Tulip V.1","height":130});
															thumbnails[6396213] = clik.newPhoto({"id":6396213,"src":"Alstroemeria-II_2_Range-_we_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396213.html","width":130,"caption":"Alstroemeria II.2","height":130});
															thumbnails[6396743] = clik.newPhoto({"id":6396743,"src":"Gerbera_V_1_RANGE_WEB_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396743.html","width":130,"caption":"Gerbera V.1","height":130});
															thumbnails[6396874] = clik.newPhoto({"id":6396874,"src":"Roses_VII_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396874.html","width":130,"caption":"Roses VII.1","height":130});
															thumbnails[6396840] = clik.newPhoto({"id":6396840,"src":"Orchid-III_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396840.html","width":130,"caption":"Orchid III.1","height":130});
															thumbnails[6396859] = clik.newPhoto({"id":6396859,"src":"PEONY_V_1_range_web1_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396859.html","width":130,"caption":"Peony V.1","height":130});
															thumbnails[6396374] = clik.newPhoto({"id":6396374,"src":"COUNTRY_GARDEN_V_2_Range_we_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396374.html","width":130,"caption":"Country Garden V.2","height":130});
															thumbnails[6396395] = clik.newPhoto({"id":6396395,"src":"Gerbera_IV_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396395.html","width":130,"caption":"Gerbera IV.1","height":130});
															thumbnails[6396910] = clik.newPhoto({"id":6396910,"src":"Roses-IV_15_range_web1_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396910.html","width":130,"caption":"Roses IV.15","height":130});
															thumbnails[6396250] = clik.newPhoto({"id":6396250,"src":"Butterfly_III_2_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396250.html","width":130,"caption":"Butterfly III.2","height":130});
															thumbnails[6396842] = clik.newPhoto({"id":6396842,"src":"Orchid-IV_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396842.html","width":130,"caption":"Orchid IV.1","height":130});
															thumbnails[6396332] = clik.newPhoto({"id":6396332,"src":"Country_Garden_II_1_Range_w_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396332.html","width":130,"caption":"Country Garden II.1","height":130});
															thumbnails[6396869] = clik.newPhoto({"id":6396869,"src":"Roses_VI_2_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396869.html","width":130,"caption":"Roses VI.2","height":130});
															thumbnails[6396876] = clik.newPhoto({"id":6396876,"src":"Roses_VII_2_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396876.html","width":130,"caption":"Roses VII.2","height":130});
															thumbnails[6396750] = clik.newPhoto({"id":6396750,"src":"Gerbera_V_2_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396750.html","width":130,"caption":"Gerbera V.2","height":130});
															thumbnails[6456772] = clik.newPhoto({"id":6456772,"src":"Roses-IV_6_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6456772.html","width":130,"caption":"Roses IV.6","height":130});
															thumbnails[6396219] = clik.newPhoto({"id":6396219,"src":"Amaryllis-II_2_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396219.html","width":130,"caption":"Amaryllis II.2","height":130});
															thumbnails[6396866] = clik.newPhoto({"id":6396866,"src":"Roses_VI_1_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396866.html","width":130,"caption":"Roses VI.1","height":130});
															thumbnails[6456769] = clik.newPhoto({"id":6456769,"src":"Roses-IV_18_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6456769.html","width":130,"caption":"Roses IV.18","height":130});
															thumbnails[6396583] = clik.newPhoto({"id":6396583,"src":"Gerbera_IV_3_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396583.html","width":130,"caption":"Gerbera IV.3","height":130});
															thumbnails[6396847] = clik.newPhoto({"id":6396847,"src":"Peony_Rose_I_2_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396847.html","width":130,"caption":"Peony Rose I.2","height":130});
															thumbnails[6396879] = clik.newPhoto({"id":6396879,"src":"Roses_VII_3_postcard_range__thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396879.html","width":130,"caption":"Roses VII.3","height":130});
															thumbnails[6396932] = clik.newPhoto({"id":6396932,"src":"Tulip_V_2_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396932.html","width":130,"caption":"Tulip V.2","height":130});
															thumbnails[6396239] = clik.newPhoto({"id":6396239,"src":"Butterfly_I_2_Range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396239.html","width":130,"caption":"Butterfly I.2","height":130});
															thumbnails[6396780] = clik.newPhoto({"id":6396780,"src":"Lily_VI_3_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396780.html","width":130,"caption":"Lily VI.3","height":130});
															thumbnails[6396341] = clik.newPhoto({"id":6396341,"src":"Country_Garden_II_7_Range_w_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396341.html","width":130,"caption":"Country Garden II.7","height":130});
															thumbnails[6396683] = clik.newPhoto({"id":6396683,"src":"Gerbera_IV_4_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396683.html","width":130,"caption":"Gerbera IV.4","height":130});
															thumbnails[6396746] = clik.newPhoto({"id":6396746,"src":"Gerbera_V_3_range_web_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6396746.html","width":130,"caption":"Gerbera V.3","height":130});
															thumbnails[6715155] = clik.newPhoto({"id":6715155,"src":"Design_Icon_thumb.jpg","galleries_id":353264,"server_id":18,"link":"photo_6715155.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[353264] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"View Bespoke Designs","link":"gallery.html","maxRecords":0.0,"photoIDs":[6389248.0,6396751.0,6396777.0,6396796.0,6396829.0,6396861.0,6396935.0,6396762.0,6396802.0,6396913.0,6389289.0,6396900.0,6396776.0,6396821.0,6396808.0,6396881.0,6389359.0,6396815.0,6396763.0,6396754.0,6396785.0,6396811.0,6396850.0,6396946.0,6396888.0,6389362.0,6396307.0,6396528.0,6396769.0,6396240.0,6396758.0,6396792.0,6396923.0,6389253.0,6396244.0,6396350.0,6396764.0,6396937.0,6396897.0,6396768.0,6389068.0,6396338.0,6396950.0,6389244.0,6396756.0,6396346.0,6396234.0,6396778.0,6396851.0,6396238.0,6396248.0,6396791.0,6396884.0,6396770.0,6396860.0,6396216.0,6396772.0,6396308.0,6396336.0,6396765.0,6396774.0,6396789.0,6396845.0,6396848.0,6396862.0,6396892.0,6396929.0,6396213.0,6396743.0,6396874.0,6396840.0,6396859.0,6396374.0,6396395.0,6396910.0,6396250.0,6396842.0,6396332.0,6396869.0,6396876.0,6396750.0,6456772.0,6396219.0,6396866.0,6456769.0,6396583.0,6396847.0,6396879.0,6396932.0,6396239.0,6396780.0,6396341.0,6396683.0,6396746.0,6715155.0],"skipIndex":0,"section_code":"gallery","featured_images":6715155.0,"id":353264,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6651445,6651440,6651238';
imageSets[2] = '6715241,6715155';
imageSets[3] = '8044849,8044752,6752000,6737776,6737726,6736634,6724339,6724196,6722581,6722572,6722396,6722324,6717685,6717679,6717675,6717669,6715385,6715241,6715155,6651445,6651440,6651439,6651238,6650798,6644505,6644435,6635765,6633691,6633678,6460136,6459829,6459805,6459772,6459747,6459737,6458523,6458469,6458383,6458325,6458262,6457012,6456772,6456769,6441922,6441880,6441725,6441708,6441697,6437657,6437433';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sallys/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sallys/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sallys/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sallys/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sallys/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sallys/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sallys/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:'',$detailContainer:'',
                    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 (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Floral Wedding Invitations, Luxury Invitations: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			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', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Add to shopping cart:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="SALLYS">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* 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 += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

