window.thumbnails = {};
															thumbnails[7114772] = clik.newPhoto({"id":7114772,"src":"Untitled-1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":92});
															thumbnails[7114746] = clik.newPhoto({"id":7114746,"src":"AdobeBridgeBatchRenameTemp40Susan-&-Eamon_090910_0039_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114746.html","width":130,"caption":"","height":92});
															thumbnails[8853824] = clik.newPhoto({"id":8853824,"src":"AA_20110709_0005_64A11C24-1E4F-37DC-71B1AFFC1ED244F7_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853824.html","width":130,"caption":"","height":92});
															thumbnails[8854112] = clik.newPhoto({"id":8854112,"src":"Sharon__Stuart20110618_0542_65AFBE17-1E4F-37DC-71AB0FFF413CA44B_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8854112.html","width":130,"caption":"","height":184});
															thumbnails[7114747] = clik.newPhoto({"id":7114747,"src":"Brooke-&-David_280810_0778_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114747.html","width":130,"caption":"","height":92});
															thumbnails[7281535] = clik.newPhoto({"id":7281535,"src":"Michelle-&-David_20101202_0580-(2)_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7281535.html","width":130,"caption":"","height":184});
															thumbnails[8853825] = clik.newPhoto({"id":8853825,"src":"AA_20110709_0021_64A18578-1E4F-37DC-71AC30F00C9FD3D9_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853825.html","width":130,"caption":"","height":92});
															thumbnails[8854113] = clik.newPhoto({"id":8854113,"src":"EA20110513_0647_65B0164F-1E4F-37DC-71750A4D32E60F2E_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8854113.html","width":130,"caption":"","height":184});
															thumbnails[7114748] = clik.newPhoto({"id":7114748,"src":"Brooke-&-David_280810_0813_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114748.html","width":130,"caption":"","height":92});
															thumbnails[8853826] = clik.newPhoto({"id":8853826,"src":"AA_20110709_0089_64A1C813-1E4F-37DC-710640CCCEE11331_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853826.html","width":130,"caption":"","height":184});
															thumbnails[8854114] = clik.newPhoto({"id":8854114,"src":"KR_20110805_0243_65B0723F-1E4F-37DC-71882C8327ECB212_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8854114.html","width":130,"caption":"","height":92});
															thumbnails[7114749] = clik.newPhoto({"id":7114749,"src":"Brooke-&-David_280810_1053_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114749.html","width":130,"caption":"","height":184});
															thumbnails[8853827] = clik.newPhoto({"id":8853827,"src":"AA_20110709_0070_64A1FCAA-1E4F-37DC-71755CD674314337_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853827.html","width":130,"caption":"","height":92});
															thumbnails[8854115] = clik.newPhoto({"id":8854115,"src":"KR_20110805_0472_65B0D7F9-1E4F-37DC-71CA2A9C284ACE6C_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8854115.html","width":130,"caption":"","height":184});
															thumbnails[7114750] = clik.newPhoto({"id":7114750,"src":"EMMA-&-DANNY20090418_000146_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114750.html","width":130,"caption":"","height":184});
															thumbnails[8853828] = clik.newPhoto({"id":8853828,"src":"AA_20110709_0159_64A23999-1E4F-37DC-716615E6464B3811_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853828.html","width":130,"caption":"","height":184});
															thumbnails[8854116] = clik.newPhoto({"id":8854116,"src":"AdobeBridgeBatchRenameTemp30Susan__Eamon_090910_0029_65B11788-1E4F-37DC-711EEAC41C9E8EFB_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8854116.html","width":130,"caption":"","height":92});
															thumbnails[7114751] = clik.newPhoto({"id":7114751,"src":"Hannah-&-Phil_20090801_0430_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114751.html","width":130,"caption":"","height":92});
															thumbnails[8853829] = clik.newPhoto({"id":8853829,"src":"AA_20110709_0393_64A27FA1-1E4F-37DC-71D8EAA1983ADCFF_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853829.html","width":130,"caption":"","height":92});
															thumbnails[8854117] = clik.newPhoto({"id":8854117,"src":"AdobeBridgeBatchRenameTemp341Susan__Eamon_090910_0340_65B167BE-1E4F-37DC-7180332B1735CC4E_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8854117.html","width":130,"caption":"","height":184});
															thumbnails[7114752] = clik.newPhoto({"id":7114752,"src":"Hannah-&-Phil_20090801_0638_1_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114752.html","width":130,"caption":"","height":184});
															thumbnails[8853830] = clik.newPhoto({"id":8853830,"src":"AA_20110709_0513_64A2C788-1E4F-37DC-71A751CB79C69B83_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853830.html","width":130,"caption":"","height":92});
															thumbnails[8854119] = clik.newPhoto({"id":8854119,"src":"Susan__Eamon_090910_1614_65B25FBF-1E4F-37DC-71D1D1B1E2709D26_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8854119.html","width":130,"caption":"","height":184});
															thumbnails[7114753] = clik.newPhoto({"id":7114753,"src":"Hannah-&-Phil_20090801_0725_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114753.html","width":130,"caption":"","height":92});
															thumbnails[8853831] = clik.newPhoto({"id":8853831,"src":"AA_20110709_0558_64A31151-1E4F-37DC-71FD961E22E948CD_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853831.html","width":130,"caption":"","height":184});
															thumbnails[8854120] = clik.newPhoto({"id":8854120,"src":"Susan__Eamon_090910_1653_65B2AD26-1E4F-37DC-712D05276D7F699C_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8854120.html","width":130,"caption":"","height":92});
															thumbnails[7114754] = clik.newPhoto({"id":7114754,"src":"Jackie-&-Clint_20091207_0276_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114754.html","width":130,"caption":"","height":184});
															thumbnails[8853832] = clik.newPhoto({"id":8853832,"src":"AA_20110709_0625_64A38CB6-1E4F-37DC-71BBFF62CEC5195F_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853832.html","width":130,"caption":"","height":68});
															thumbnails[7114755] = clik.newPhoto({"id":7114755,"src":"Laura-&-Lars_060810_0300_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114755.html","width":130,"caption":"","height":92});
															thumbnails[8853992] = clik.newPhoto({"id":8853992,"src":"CN_20110909_0287_65278FDC-1E4F-37DC-71C7FD57889CCCBD_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853992.html","width":130,"caption":"","height":184});
															thumbnails[7114756] = clik.newPhoto({"id":7114756,"src":"Laura-&-Lars_060810_1161_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114756.html","width":130,"caption":"","height":184});
															thumbnails[8853993] = clik.newPhoto({"id":8853993,"src":"CN_20110909_0262_6527FAC1-1E4F-37DC-712C59F1D73768CD_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853993.html","width":130,"caption":"","height":92});
															thumbnails[7114757] = clik.newPhoto({"id":7114757,"src":"Laura-&-Lars_060810_1225_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114757.html","width":130,"caption":"","height":184});
															thumbnails[8853995] = clik.newPhoto({"id":8853995,"src":"CN_20110909_0277_65284764-1E4F-37DC-71F0C62D04CE3621_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853995.html","width":130,"caption":"","height":184});
															thumbnails[7114758] = clik.newPhoto({"id":7114758,"src":"Mary-&-Eoghan_20100409_1893-(2)_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114758.html","width":130,"caption":"","height":184});
															thumbnails[8853997] = clik.newPhoto({"id":8853997,"src":"CN_20110909_0430_6528B69D-1E4F-37DC-7176B2E7A8536798_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_8853997.html","width":130,"caption":"","height":184});
															thumbnails[7114759] = clik.newPhoto({"id":7114759,"src":"_MG_2093_thumb.jpg","galleries_id":465073,"server_id":32,"link":"photo_7114759.html","width":130,"caption":"","height":184});
															thumbnails[8842546] = clik.newPhoto({"id":8842546,"src":"IMG_8973_copy_DFDD2573-24E8-5EC4-4F1034A6210524BC_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842546.html","width":130,"caption":"","height":184});
															thumbnails[8842547] = clik.newPhoto({"id":8842547,"src":"IMG_8978_copy_DFDD8F3B-24E8-5EC4-4F0FF151D0316D1D_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842547.html","width":130,"caption":"","height":184});
															thumbnails[8842548] = clik.newPhoto({"id":8842548,"src":"IMG_8993_copy_DFDDE714-24E8-5EC4-4F2AA38AECDF5053_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842548.html","width":130,"caption":"","height":184});
															thumbnails[8842549] = clik.newPhoto({"id":8842549,"src":"IMG_8839_copy_DFDE6CD7-24E8-5EC4-4F567046E906D88E_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842549.html","width":130,"caption":"","height":184});
															thumbnails[8842550] = clik.newPhoto({"id":8842550,"src":"IMG_8845_copy_DFDED02A-24E8-5EC4-4F18124CE080788A_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842550.html","width":130,"caption":"","height":184});
															thumbnails[8842551] = clik.newPhoto({"id":8842551,"src":"IMG_8858_copy_DFDF3E47-24E8-5EC4-4F0D4E9026672A64_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842551.html","width":130,"caption":"","height":184});
															thumbnails[8842552] = clik.newPhoto({"id":8842552,"src":"IMG_8866_copy_DFDFA4FF-24E8-5EC4-4F132619D2F128F7_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842552.html","width":130,"caption":"","height":184});
															thumbnails[8842553] = clik.newPhoto({"id":8842553,"src":"IMG_8881_copy_DFE02C29-24E8-5EC4-4FDE1C5DBABE4236_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842553.html","width":130,"caption":"","height":184});
															thumbnails[8842554] = clik.newPhoto({"id":8842554,"src":"IMG_8902_copy_DFE0B2B0-24E8-5EC4-4FDBFEB1479D587B_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842554.html","width":130,"caption":"","height":184});
															thumbnails[8842555] = clik.newPhoto({"id":8842555,"src":"IMG_8910_copy_DFE12089-24E8-5EC4-4F455ACC11583450_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842555.html","width":130,"caption":"","height":184});
															thumbnails[8842556] = clik.newPhoto({"id":8842556,"src":"IMG_8917_copy_DFE196AF-24E8-5EC4-4FFC0F460AD99765_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842556.html","width":130,"caption":"","height":92});
															thumbnails[8842557] = clik.newPhoto({"id":8842557,"src":"IMG_8926_copy_DFE1F153-24E8-5EC4-4F132FBFA0518C2D_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842557.html","width":130,"caption":"","height":92});
															thumbnails[8842558] = clik.newPhoto({"id":8842558,"src":"IMG_8938_copy_DFE26635-24E8-5EC4-4F897938000F67AA_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842558.html","width":130,"caption":"","height":184});
															thumbnails[8842559] = clik.newPhoto({"id":8842559,"src":"IMG_8944_copy_DFE2E70D-24E8-5EC4-4F5EF3766C205FFE_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842559.html","width":130,"caption":"","height":184});
															thumbnails[8842560] = clik.newPhoto({"id":8842560,"src":"IMG_8957_copy_DFE35F00-24E8-5EC4-4F000D0EC1C9EEF5_thumb.jpg","galleries_id":465075,"server_id":32,"link":"photo_8842560.html","width":130,"caption":"","height":92});
															thumbnails[7108297] = clik.newPhoto({"id":7108297,"src":"IMG_9955_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7108297.html","width":130,"caption":"Trash The Dress","height":184});
															thumbnails[7109222] = clik.newPhoto({"id":7109222,"src":"Rebecca-(3)_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7109222.html","width":130,"caption":"Trash The Dress","height":184});
															thumbnails[7108299] = clik.newPhoto({"id":7108299,"src":"Noelle0086_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7108299.html","width":130,"caption":"Trash the Dress","height":92});
															thumbnails[7109223] = clik.newPhoto({"id":7109223,"src":"Rebecca-(4)_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7109223.html","width":130,"caption":"Trash the Dress","height":184});
															thumbnails[7108300] = clik.newPhoto({"id":7108300,"src":"Noelle0194_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7108300.html","width":130,"caption":"Trash The Dress","height":184});
															thumbnails[7109224] = clik.newPhoto({"id":7109224,"src":"_MG_2524_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7109224.html","width":130,"caption":"Trash The Dress","height":92});
															thumbnails[7108302] = clik.newPhoto({"id":7108302,"src":"Noelle0387a_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7108302.html","width":130,"caption":"Trash The Dress","height":184});
															thumbnails[7109225] = clik.newPhoto({"id":7109225,"src":"_MG_2872_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7109225.html","width":130,"caption":"Trash The Dress","height":184});
															thumbnails[7108304] = clik.newPhoto({"id":7108304,"src":"Noelle0755_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7108304.html","width":130,"caption":"Trash The Dress","height":184});
															thumbnails[7109226] = clik.newPhoto({"id":7109226,"src":"_MG_2889_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7109226.html","width":130,"caption":"Trash The Dress","height":81});
															thumbnails[7108306] = clik.newPhoto({"id":7108306,"src":"Noelle1145_thumb.jpg","galleries_id":384537,"server_id":32,"link":"photo_7108306.html","width":130,"caption":"Trash The Dress","height":81});
															thumbnails[7106481] = clik.newPhoto({"id":7106481,"src":"Lisa0135a_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7106481.html","width":130,"caption":"","height":184});
															thumbnails[7106482] = clik.newPhoto({"id":7106482,"src":"Lisa0427b_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7106482.html","width":130,"caption":"","height":184});
															thumbnails[7107640] = clik.newPhoto({"id":7107640,"src":"LisaC9548_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7107640.html","width":130,"caption":"","height":184});
															thumbnails[7107673] = clik.newPhoto({"id":7107673,"src":"Naomi9083a_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7107673.html","width":130,"caption":"","height":184});
															thumbnails[7106483] = clik.newPhoto({"id":7106483,"src":"Lisa201011210203b_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7106483.html","width":130,"caption":"","height":184});
															thumbnails[7107639] = clik.newPhoto({"id":7107639,"src":"LisaC9545_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7107639.html","width":130,"caption":"","height":80});
															thumbnails[7106525] = clik.newPhoto({"id":7106525,"src":"Kat0796_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7106525.html","width":130,"caption":"","height":184});
															thumbnails[7107672] = clik.newPhoto({"id":7107672,"src":"IMG_9108a_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7107672.html","width":130,"caption":"","height":92});
															thumbnails[7107708] = clik.newPhoto({"id":7107708,"src":"Lisa0296a_thumb.jpg","galleries_id":384448,"server_id":32,"link":"photo_7107708.html","width":130,"caption":"","height":184});
															thumbnails[7108989] = clik.newPhoto({"id":7108989,"src":"Aslan_20090709_0288_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108989.html","width":130,"caption":"","height":80});
															thumbnails[7109304] = clik.newPhoto({"id":7109304,"src":"Aslan_Bulmers-Live_201020100701_0386_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7109304.html","width":130,"caption":"Aslan","height":130});
															thumbnails[8627044] = clik.newPhoto({"id":8627044,"src":"OM_20111014_0013_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8627044.html","width":130,"caption":"Olly Murs","height":184});
															thumbnails[8842561] = clik.newPhoto({"id":8842561,"src":"RE_20111009_0013_E052E443-24E8-5EC4-4FC4483C5F722167_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8842561.html","width":130,"caption":"Red Empire","height":70});
															thumbnails[8854678] = clik.newPhoto({"id":8854678,"src":"The_Undertones_201120110616_0200_674C74EC-1E4F-37DC-71BBB473AE1345BD_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854678.html","width":130,"caption":"The Undertones","height":184});
															thumbnails[8854751] = clik.newPhoto({"id":8854751,"src":"Aslan_BS001_6789E939-1E4F-37DC-7173BC7D3C75DD4D_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854751.html","width":130,"caption":"Aslan","height":80});
															thumbnails[8922585] = clik.newPhoto({"id":8922585,"src":"ASLAN_CRAZY_WORLD_UTØYA_7B96429A-1EC9-DFB6-0923204D6005ED20_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8922585.html","width":130,"caption":"ASLAN CRAZY WORLD UTØYA","height":130});
															thumbnails[7108990] = clik.newPhoto({"id":7108990,"src":"Delorentos_Bulmers-Live_220710_0476_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108990.html","width":130,"caption":"Delorentos","height":184});
															thumbnails[7590450] = clik.newPhoto({"id":7590450,"src":"_MG_0223_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7590450.html","width":130,"caption":"Aslan","height":184});
															thumbnails[8842562] = clik.newPhoto({"id":8842562,"src":"RE_20110728_0005_E0533368-24E8-5EC4-4F1E416C267AE0BF_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8842562.html","width":130,"caption":"Red Empire","height":92});
															thumbnails[8854679] = clik.newPhoto({"id":8854679,"src":"IMG_4349_674CA64F-1E4F-37DC-71848F856A3C0B8D_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854679.html","width":130,"caption":"Horselips","height":184});
															thumbnails[8854752] = clik.newPhoto({"id":8854752,"src":"Aslan_BS003_678A10E0-1E4F-37DC-7137068A6A4C54B7_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854752.html","width":130,"caption":"Aslan","height":92});
															thumbnails[7108991] = clik.newPhoto({"id":7108991,"src":"Delorentos_Bulmers-Live_220710_0641_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108991.html","width":130,"caption":"Delorentos","height":92});
															thumbnails[7704265] = clik.newPhoto({"id":7704265,"src":"web_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7704265.html","width":130,"caption":"Aslan @ Croke Park","height":92});
															thumbnails[8842563] = clik.newPhoto({"id":8842563,"src":"RE_20111009_0010_E0538286-24E8-5EC4-4F8D95792D41269D_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8842563.html","width":130,"caption":"Red Empire","height":130});
															thumbnails[8854680] = clik.newPhoto({"id":8854680,"src":"_MG_0264_674CEBB9-1E4F-37DC-71ED4F8C570B4275_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854680.html","width":130,"caption":"Republic of Loose","height":184});
															thumbnails[8854753] = clik.newPhoto({"id":8854753,"src":"_MG_9642_678B0FA0-1E4F-37DC-71A211D75B390997_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854753.html","width":130,"caption":"Aslan","height":92});
															thumbnails[8145557] = clik.newPhoto({"id":8145557,"src":"_MG_0203bw_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8145557.html","width":130,"caption":"Alabama 3","height":199});
															thumbnails[7108992] = clik.newPhoto({"id":7108992,"src":"Fun-Luvin'-Criminals_20100610_0012_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108992.html","width":130,"caption":"Fun Luvin' Criminals","height":184});
															thumbnails[8842564] = clik.newPhoto({"id":8842564,"src":"RE_20110728_0009_E053CAC5-24E8-5EC4-4FC4C22699F354C2_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8842564.html","width":130,"caption":"Red Empire","height":61});
															thumbnails[8854681] = clik.newPhoto({"id":8854681,"src":"_MG_0081_674D2BAC-1E4F-37DC-715BAD6E6C305AC9_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854681.html","width":130,"caption":"Mick Pyro","height":184});
															thumbnails[8854754] = clik.newPhoto({"id":8854754,"src":"Aslan_Media_6_678C5A08-1E4F-37DC-7194C2D63EBA0D0E_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854754.html","width":130,"caption":"Aslan","height":172});
															thumbnails[7108994] = clik.newPhoto({"id":7108994,"src":"I078_3_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108994.html","width":130,"caption":"Rob Smith","height":80});
															thumbnails[8842565] = clik.newPhoto({"id":8842565,"src":"RE_20111009_0010_E0580CFC-24E8-5EC4-4F3D30B3076A0D13_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8842565.html","width":130,"caption":"Red Empire","height":130});
															thumbnails[8854682] = clik.newPhoto({"id":8854682,"src":"_MG_0909_674D5FB5-1E4F-37DC-7174590753022D1F_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854682.html","width":130,"caption":"The Saw Doctors","height":92});
															thumbnails[7108995] = clik.newPhoto({"id":7108995,"src":"_MG_3632_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108995.html","width":130,"caption":"Alabama 3","height":184});
															thumbnails[8842566] = clik.newPhoto({"id":8842566,"src":"RE_20110728_0009_E05856AA-24E8-5EC4-4F7A84EB6CBB360B_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8842566.html","width":130,"caption":"Red Empire","height":61});
															thumbnails[8854685] = clik.newPhoto({"id":8854685,"src":"Director_674DB0CD-1E4F-37DC-71981278202E3912_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854685.html","width":130,"caption":"Eoin Ahearn","height":92});
															thumbnails[7108996] = clik.newPhoto({"id":7108996,"src":"_MG_3747_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108996.html","width":130,"caption":"Alabama 3","height":184});
															thumbnails[8842567] = clik.newPhoto({"id":8842567,"src":"RE_20110728_0005_E058A5BE-24E8-5EC4-4FF5FB55B3277488_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8842567.html","width":130,"caption":"Red Empire","height":92});
															thumbnails[8854686] = clik.newPhoto({"id":8854686,"src":"_MG_0605_674DEF67-1E4F-37DC-71B6CCF2E4D93357_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854686.html","width":130,"caption":"Alan Marshall","height":184});
															thumbnails[7108997] = clik.newPhoto({"id":7108997,"src":"_MG_5584_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108997.html","width":130,"caption":"Shane MacGowen Live","height":184});
															thumbnails[8854687] = clik.newPhoto({"id":8854687,"src":"c5053_674E7CA6-1E4F-37DC-716D65B7932CA21F_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854687.html","width":130,"caption":"Alan Marshall","height":130});
															thumbnails[7108998] = clik.newPhoto({"id":7108998,"src":"_MG_5935_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108998.html","width":130,"caption":"Mundy","height":195});
															thumbnails[7108999] = clik.newPhoto({"id":7108999,"src":"_MG_9038a_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7108999.html","width":130,"caption":"Rob Smith","height":130});
															thumbnails[8854689] = clik.newPhoto({"id":8854689,"src":"Joe_Echo_4_674FCE6C-1E4F-37DC-7102E324EB78F0AA_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_8854689.html","width":130,"caption":"Ciaran Gribbin","height":184});
															thumbnails[7281534] = clik.newPhoto({"id":7281534,"src":"Aslan_Vicar-Street-2010_20101227_0210_thumb.jpg","galleries_id":384551,"server_id":32,"link":"photo_7281534.html","width":130,"caption":"Aslan","height":92});
															thumbnails[7111985] = clik.newPhoto({"id":7111985,"src":"Collins-Travel0004_thumb.jpg","galleries_id":384707,"server_id":32,"link":"photo_7111985.html","width":130,"caption":"","height":81});
															thumbnails[7111986] = clik.newPhoto({"id":7111986,"src":"Collins-Travel_Carton-House100810_0002_thumb.jpg","galleries_id":384707,"server_id":32,"link":"photo_7111986.html","width":130,"caption":"","height":92});
															thumbnails[7111987] = clik.newPhoto({"id":7111987,"src":"IMG_3271_thumb.jpg","galleries_id":384707,"server_id":32,"link":"photo_7111987.html","width":130,"caption":"","height":195});
															thumbnails[7111988] = clik.newPhoto({"id":7111988,"src":"IMG_3290_thumb.jpg","galleries_id":384707,"server_id":32,"link":"photo_7111988.html","width":130,"caption":"","height":87});
															thumbnails[7111989] = clik.newPhoto({"id":7111989,"src":"IMG_9709b_thumb.jpg","galleries_id":384707,"server_id":32,"link":"photo_7111989.html","width":130,"caption":"","height":92});
															thumbnails[7111990] = clik.newPhoto({"id":7111990,"src":"JKimPSNI20090325_00057-8-Bit-RGB_thumb.jpg","galleries_id":384707,"server_id":32,"link":"photo_7111990.html","width":130,"caption":"","height":184});
															thumbnails[7111991] = clik.newPhoto({"id":7111991,"src":"_MG_4671_thumb.jpg","galleries_id":384707,"server_id":32,"link":"photo_7111991.html","width":130,"caption":"","height":81});
															thumbnails[7111992] = clik.newPhoto({"id":7111992,"src":"_MG_7507_thumb.jpg","galleries_id":384707,"server_id":32,"link":"photo_7111992.html","width":130,"caption":"","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[384707] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"commercialphotography.html","maxRecords":0.0,"photoIDs":[7111985.0,7111986.0,7111987.0,7111988.0,7111989.0,7111990.0,7111991.0,7111992.0],"skipIndex":0,"section_code":"commercialphotography","featured_images":"7111992,7111991,7111990,7111989,7111988,7111987,7111986,7111985","id":384707,"singleSection":true});				  						galleries[384448] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Models","link":"modelportfolios.html","maxRecords":0.0,"photoIDs":[7106481.0,7106482.0,7107640.0,7107673.0,7106483.0,7107639.0,7106525.0,7107672.0,7107708.0],"skipIndex":0,"section_code":"modelportfolios","featured_images":7106482.0,"id":384448,"singleSection":true});				  						galleries[384551] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Music","link":"musicphotography.html","maxRecords":0.0,"photoIDs":[7108989.0,7109304.0,8627044.0,8842561.0,8854678.0,8854751.0,8922585.0,7108990.0,7590450.0,8842562.0,8854679.0,8854752.0,7108991.0,7704265.0,8842563.0,8854680.0,8854753.0,8145557.0,7108992.0,8842564.0,8854681.0,8854754.0,7108994.0,8842565.0,8854682.0,7108995.0,8842566.0,8854685.0,7108996.0,8842567.0,8854686.0,7108997.0,8854687.0,7108998.0,7108999.0,8854689.0,7281534.0],"skipIndex":0,"section_code":"musicphotography","featured_images":"8922585,8854754,8854753,8854752,8854751,8854689,8854687,8854686,8854685,8854682","id":384551,"singleSection":true});				  						galleries[465075] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photobooth","link":"section563118.html","maxRecords":0.0,"photoIDs":[8842546.0,8842547.0,8842548.0,8842549.0,8842550.0,8842551.0,8842552.0,8842553.0,8842554.0,8842555.0,8842556.0,8842557.0,8842558.0,8842559.0,8842560.0],"skipIndex":0,"section_code":"section563118","featured_images":"8842560,8842559,8842558,8842557,8842556,8842555,8842554,8842553,8842552,8842551","id":465075,"singleSection":true});				  						galleries[384537] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trash The Dress","link":"trashthedress.html","maxRecords":0.0,"photoIDs":[7108297.0,7109222.0,7108299.0,7109223.0,7108300.0,7109224.0,7108302.0,7109225.0,7108304.0,7109226.0,7108306.0],"skipIndex":0,"section_code":"trashthedress","featured_images":"7109226,7109225,7109224,7109223,7109222,7108306,7108304,7108302,7108300,7108299","id":384537,"singleSection":true});				  						galleries[465073] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"section563117.html","maxRecords":0.0,"photoIDs":[7114746.0,8853824.0,8854112.0,7114747.0,7281535.0,8853825.0,8854113.0,7114748.0,8853826.0,8854114.0,7114749.0,8853827.0,8854115.0,7114750.0,8853828.0,8854116.0,7114751.0,8853829.0,8854117.0,7114752.0,8853830.0,8854119.0,7114753.0,8853831.0,8854120.0,7114754.0,8853832.0,7114755.0,8853992.0,7114756.0,8853993.0,7114757.0,8853995.0,7114758.0,8853997.0,7114759.0],"skipIndex":0,"section_code":"section563117","featured_images":"8854120,8854119,8854117,8854116,8854115,8854114,8854113,8854112,8853997,8853995","id":465073,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8627044,7281535,7114747,7704265,7114748,7108300,7114751,7114753,7114756,7114759';
imageSets[2] = '7106482';
imageSets[3] = '8922585,8854754,8854753,8854752,8854751,8854689,8854687,8854686,8854685,8854682,8854681,8854680,8854679,8854678,8854120,8854119,8854117,8854116,8854115,8854114,8854113,8854112,8853997,8853995,8853993,8853992,8853832,8853831,8853830,8853829,8853828,8853827,8853826,8853825,8853824,8842567,8842566,8842565,8842564,8842563,8842562,8842561,8842560,8842559,8842558,8842557,8842556,8842555,8842554,8842553';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/pandrews2000/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/pandrews2000/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 || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section563117.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 && 'section563117' != '') {
					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 = 'Paul Andrews Photography: ' + 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>';
	}
				
				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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &euro;' + (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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			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 += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="pandrews2000@gmail.com">';
					temp += '<input type="hidden" name="currency_code" value="EUR">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="pandrews2000@gmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

