window.thumbnails = {};
															thumbnails[7974788] = clik.newPhoto({"id":7974788,"src":"loughgur2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1516443] = clik.newPhoto({"id":1516443,"src":"photobook examples_thumb.jpg","galleries_id":15199,"server_id":1,"link":"photo_1516443.html","width":130,"caption":"","height":84});
															thumbnails[5473557] = clik.newPhoto({"id":5473557,"src":"r_emma_blk_thumb.jpg","galleries_id":15199,"server_id":1,"link":"photo_5473557.html","width":130,"caption":"","height":88});
															thumbnails[5473559] = clik.newPhoto({"id":5473559,"src":"r_emma_chmp_thumb.jpg","galleries_id":15199,"server_id":1,"link":"photo_5473559.html","width":130,"caption":"","height":88});
															thumbnails[8966600] = clik.newPhoto({"id":8966600,"src":"keltic_black-600_thumb.jpg","galleries_id":15199,"server_id":1,"link":"photo_8966600.html","width":130,"caption":"","height":87});
															thumbnails[8966602] = clik.newPhoto({"id":8966602,"src":"keltic_ivory-600_thumb.jpg","galleries_id":15199,"server_id":1,"link":"photo_8966602.html","width":130,"caption":"","height":87});
															thumbnails[8966603] = clik.newPhoto({"id":8966603,"src":"keltic_brown-600_thumb.jpg","galleries_id":15199,"server_id":1,"link":"photo_8966603.html","width":130,"caption":"","height":87});
															thumbnails[7978598] = clik.newPhoto({"id":7978598,"src":"Picture-860ab_thumb.jpg","galleries_id":429079,"server_id":1,"link":"photo_7978598.html","width":130,"caption":"","height":87});
															thumbnails[7978732] = clik.newPhoto({"id":7978732,"src":"Picture-677abw_thumb.jpg","galleries_id":429079,"server_id":1,"link":"photo_7978732.html","width":130,"caption":"","height":87});
															thumbnails[7982938] = clik.newPhoto({"id":7982938,"src":"Picture-804ab_thumb.jpg","galleries_id":429079,"server_id":1,"link":"photo_7982938.html","width":130,"caption":"","height":87});
															thumbnails[7982992] = clik.newPhoto({"id":7982992,"src":"Picture-804abwa1_thumb.jpg","galleries_id":429079,"server_id":1,"link":"photo_7982992.html","width":130,"caption":"","height":87});
															thumbnails[7983000] = clik.newPhoto({"id":7983000,"src":"Picture-1066aa_thumb.jpg","galleries_id":429079,"server_id":1,"link":"photo_7983000.html","width":130,"caption":"","height":87});
															thumbnails[5556135] = clik.newPhoto({"id":5556135,"src":"nonno-before1_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_5556135.html","width":130,"caption":"","height":173});
															thumbnails[5556136] = clik.newPhoto({"id":5556136,"src":"nonno-after1_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_5556136.html","width":130,"caption":"","height":173});
															thumbnails[134525] = clik.newPhoto({"id":134525,"src":"a5_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_134525.html","width":130,"caption":"","height":91});
															thumbnails[134526] = clik.newPhoto({"id":134526,"src":"b5_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_134526.html","width":130,"caption":"","height":90});
															thumbnails[134528] = clik.newPhoto({"id":134528,"src":"c5_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_134528.html","width":130,"caption":"","height":93});
															thumbnails[134530] = clik.newPhoto({"id":134530,"src":"d5_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_134530.html","width":130,"caption":"","height":93});
															thumbnails[238664] = clik.newPhoto({"id":238664,"src":"Karen Scanold_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_238664.html","width":130,"caption":"","height":98});
															thumbnails[238667] = clik.newPhoto({"id":238667,"src":"Karen Scancolnew_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_238667.html","width":130,"caption":"","height":98});
															thumbnails[134558] = clik.newPhoto({"id":134558,"src":"e5_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_134558.html","width":130,"caption":"","height":172});
															thumbnails[134560] = clik.newPhoto({"id":134560,"src":"f5_thumb.jpg","galleries_id":12349,"server_id":1,"link":"photo_134560.html","width":130,"caption":"","height":172});
															thumbnails[1440976] = clik.newPhoto({"id":1440976,"src":"Picture-183abc-450_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1440976.html","width":130,"caption":"","height":195});
															thumbnails[1494373] = clik.newPhoto({"id":1494373,"src":"Picture-167a_thumb.jpg","galleries_id":102812,"server_id":1,"link":"photo_1494373.html","width":130,"caption":"","height":87});
															thumbnails[1561426] = clik.newPhoto({"id":1561426,"src":"ciara13_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561426.html","width":130,"caption":"","height":87});
															thumbnails[1657891] = clik.newPhoto({"id":1657891,"src":"miriam1_thumb.jpg","galleries_id":109021,"server_id":1,"link":"photo_1657891.html","width":130,"caption":"","height":195});
															thumbnails[2435384] = clik.newPhoto({"id":2435384,"src":"Picture-392ab_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2435384.html","width":130,"caption":"","height":87});
															thumbnails[2480428] = clik.newPhoto({"id":2480428,"src":"Picture-311a_thumb.jpg","galleries_id":159312,"server_id":1,"link":"photo_2480428.html","width":130,"caption":"","height":87});
															thumbnails[1435566] = clik.newPhoto({"id":1435566,"src":"Picture-167ab-600_thumb.jpg","galleries_id":102812,"server_id":1,"link":"photo_1435566.html","width":130,"caption":"","height":87});
															thumbnails[1440977] = clik.newPhoto({"id":1440977,"src":"Picture-280abcd-450_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1440977.html","width":130,"caption":"","height":195});
															thumbnails[1561428] = clik.newPhoto({"id":1561428,"src":"ciara21_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561428.html","width":130,"caption":"","height":87});
															thumbnails[1657892] = clik.newPhoto({"id":1657892,"src":"miriam2_thumb.jpg","galleries_id":109021,"server_id":1,"link":"photo_1657892.html","width":130,"caption":"","height":87});
															thumbnails[2480480] = clik.newPhoto({"id":2480480,"src":"Picture-103abcdef_thumb.jpg","galleries_id":159312,"server_id":1,"link":"photo_2480480.html","width":130,"caption":"","height":87});
															thumbnails[1440978] = clik.newPhoto({"id":1440978,"src":"Picture-290abc-450_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1440978.html","width":130,"caption":"","height":195});
															thumbnails[1494374] = clik.newPhoto({"id":1494374,"src":"Picture-214abc-600_thumb.jpg","galleries_id":102812,"server_id":1,"link":"photo_1494374.html","width":130,"caption":"","height":87});
															thumbnails[1561429] = clik.newPhoto({"id":1561429,"src":"ciara31_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561429.html","width":130,"caption":"","height":87});
															thumbnails[2435474] = clik.newPhoto({"id":2435474,"src":"Picture-392abcd1_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2435474.html","width":130,"caption":"","height":87});
															thumbnails[2435475] = clik.newPhoto({"id":2435475,"src":"Picture-392abcdefg1_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2435475.html","width":130,"caption":"","height":87});
															thumbnails[2480521] = clik.newPhoto({"id":2480521,"src":"Picture-264a_thumb.jpg","galleries_id":159312,"server_id":1,"link":"photo_2480521.html","width":130,"caption":"","height":87});
															thumbnails[1440980] = clik.newPhoto({"id":1440980,"src":"Picture-332ab-6001_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1440980.html","width":130,"caption":"","height":87});
															thumbnails[1561430] = clik.newPhoto({"id":1561430,"src":"ciara41_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561430.html","width":130,"caption":"","height":195});
															thumbnails[1671341] = clik.newPhoto({"id":1671341,"src":"franie31_thumb.jpg","galleries_id":102812,"server_id":1,"link":"photo_1671341.html","width":130,"caption":"","height":87});
															thumbnails[2479232] = clik.newPhoto({"id":2479232,"src":"Picture-113bbb_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2479232.html","width":130,"caption":"","height":87});
															thumbnails[2480519] = clik.newPhoto({"id":2480519,"src":"Picture-142a_thumb.jpg","galleries_id":159312,"server_id":1,"link":"photo_2480519.html","width":130,"caption":"","height":87});
															thumbnails[1440982] = clik.newPhoto({"id":1440982,"src":"Picture-181abcdef-600_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1440982.html","width":130,"caption":"","height":87});
															thumbnails[1561431] = clik.newPhoto({"id":1561431,"src":"ciara51_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561431.html","width":130,"caption":"","height":195});
															thumbnails[2479233] = clik.newPhoto({"id":2479233,"src":"Picture-113bbbb_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2479233.html","width":130,"caption":"","height":87});
															thumbnails[3103679] = clik.newPhoto({"id":3103679,"src":"Picture-170_thumb.jpg","galleries_id":159312,"server_id":1,"link":"photo_3103679.html","width":130,"caption":"","height":87});
															thumbnails[1440996] = clik.newPhoto({"id":1440996,"src":"Picture-241abc-600_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1440996.html","width":130,"caption":"","height":87});
															thumbnails[1561432] = clik.newPhoto({"id":1561432,"src":"ciara61_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561432.html","width":130,"caption":"","height":195});
															thumbnails[2479236] = clik.newPhoto({"id":2479236,"src":"Picture-198aa_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2479236.html","width":130,"caption":"","height":87});
															thumbnails[3103681] = clik.newPhoto({"id":3103681,"src":"Picture-142aa_thumb.jpg","galleries_id":159312,"server_id":1,"link":"photo_3103681.html","width":130,"caption":"","height":87});
															thumbnails[1448959] = clik.newPhoto({"id":1448959,"src":"Picture-253abcdefgh_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1448959.html","width":130,"caption":"","height":195});
															thumbnails[1561433] = clik.newPhoto({"id":1561433,"src":"ciara71_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561433.html","width":130,"caption":"","height":87});
															thumbnails[2759187] = clik.newPhoto({"id":2759187,"src":"Picture-545a_ppab_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2759187.html","width":130,"caption":"","height":87});
															thumbnails[1448960] = clik.newPhoto({"id":1448960,"src":"Picture-323ab_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1448960.html","width":130,"caption":"","height":195});
															thumbnails[1561434] = clik.newPhoto({"id":1561434,"src":"ciara81_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561434.html","width":130,"caption":"","height":87});
															thumbnails[2759188] = clik.newPhoto({"id":2759188,"src":"Picture-545a_ppa_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2759188.html","width":130,"caption":"","height":87});
															thumbnails[1448961] = clik.newPhoto({"id":1448961,"src":"Picture-329abc-450_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1448961.html","width":130,"caption":"","height":195});
															thumbnails[1561435] = clik.newPhoto({"id":1561435,"src":"ciara91_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561435.html","width":130,"caption":"","height":87});
															thumbnails[2759190] = clik.newPhoto({"id":2759190,"src":"Picture-373_ppabc_thumb.jpg","galleries_id":157218,"server_id":1,"link":"photo_2759190.html","width":130,"caption":"","height":87});
															thumbnails[1494370] = clik.newPhoto({"id":1494370,"src":"Picture-323abc_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1494370.html","width":130,"caption":"","height":87});
															thumbnails[1561436] = clik.newPhoto({"id":1561436,"src":"ciara10_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561436.html","width":130,"caption":"","height":87});
															thumbnails[1494371] = clik.newPhoto({"id":1494371,"src":"Picture-290abc-600_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1494371.html","width":130,"caption":"","height":87});
															thumbnails[1561437] = clik.newPhoto({"id":1561437,"src":"ciara111_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561437.html","width":130,"caption":"","height":87});
															thumbnails[1494372] = clik.newPhoto({"id":1494372,"src":"Picture-181abcdefg1_thumb.jpg","galleries_id":102809,"server_id":1,"link":"photo_1494372.html","width":130,"caption":"","height":87});
															thumbnails[1561438] = clik.newPhoto({"id":1561438,"src":"ciara121_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561438.html","width":130,"caption":"","height":87});
															thumbnails[1561439] = clik.newPhoto({"id":1561439,"src":"ciara131_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561439.html","width":130,"caption":"","height":87});
															thumbnails[1561440] = clik.newPhoto({"id":1561440,"src":"ciara14_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561440.html","width":130,"caption":"","height":87});
															thumbnails[1561441] = clik.newPhoto({"id":1561441,"src":"ciara15_thumb.jpg","galleries_id":106434,"server_id":1,"link":"photo_1561441.html","width":130,"caption":"","height":87});
															thumbnails[2777426] = clik.newPhoto({"id":2777426,"src":"oct07a_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777426.html","width":130,"caption":"","height":87});
															thumbnails[2777633] = clik.newPhoto({"id":2777633,"src":"apr-1_thumb.jpg","galleries_id":174062,"server_id":1,"link":"photo_2777633.html","width":130,"caption":"","height":87});
															thumbnails[2777462] = clik.newPhoto({"id":2777462,"src":"oct07b_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777462.html","width":130,"caption":"","height":87});
															thumbnails[2777472] = clik.newPhoto({"id":2777472,"src":"oct07c_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777472.html","width":130,"caption":"","height":87});
															thumbnails[2777538] = clik.newPhoto({"id":2777538,"src":"oct07d_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777538.html","width":130,"caption":"","height":87});
															thumbnails[2777551] = clik.newPhoto({"id":2777551,"src":"oct07e_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777551.html","width":130,"caption":"","height":87});
															thumbnails[2777554] = clik.newPhoto({"id":2777554,"src":"oct07f_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777554.html","width":130,"caption":"","height":87});
															thumbnails[2777557] = clik.newPhoto({"id":2777557,"src":"oct07g_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777557.html","width":130,"caption":"","height":87});
															thumbnails[2777560] = clik.newPhoto({"id":2777560,"src":"oct07h_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777560.html","width":130,"caption":"","height":87});
															thumbnails[2777562] = clik.newPhoto({"id":2777562,"src":"oct07i_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777562.html","width":130,"caption":"","height":87});
															thumbnails[2777567] = clik.newPhoto({"id":2777567,"src":"oct07j_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777567.html","width":130,"caption":"","height":87});
															thumbnails[2777570] = clik.newPhoto({"id":2777570,"src":"oct07k_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777570.html","width":130,"caption":"","height":87});
															thumbnails[2777573] = clik.newPhoto({"id":2777573,"src":"oct07l_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777573.html","width":130,"caption":"","height":87});
															thumbnails[2777576] = clik.newPhoto({"id":2777576,"src":"oct07m_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777576.html","width":130,"caption":"","height":87});
															thumbnails[2777579] = clik.newPhoto({"id":2777579,"src":"oct07n_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777579.html","width":130,"caption":"","height":87});
															thumbnails[2777582] = clik.newPhoto({"id":2777582,"src":"oct07o_thumb.jpg","galleries_id":174058,"server_id":1,"link":"photo_2777582.html","width":130,"caption":"","height":87});
															thumbnails[1527508] = clik.newPhoto({"id":1527508,"src":"Acrylic11_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1527508.html","width":130,"caption":"Acrylic","height":87});
															thumbnails[1528688] = clik.newPhoto({"id":1528688,"src":"acrylic2_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1528688.html","width":130,"caption":"acrylic","height":87});
															thumbnails[1527520] = clik.newPhoto({"id":1527520,"src":"photographicpaper1_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1527520.html","width":130,"caption":"Photographic Paper","height":87});
															thumbnails[1528819] = clik.newPhoto({"id":1528819,"src":"photographicpaper2_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1528819.html","width":130,"caption":"photographic paper","height":87});
															thumbnails[1527524] = clik.newPhoto({"id":1527524,"src":"silverfinish1_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1527524.html","width":130,"caption":"Silver Finish","height":87});
															thumbnails[1528823] = clik.newPhoto({"id":1528823,"src":"silverfinish2_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1528823.html","width":130,"caption":"silver finish","height":87});
															thumbnails[1527527] = clik.newPhoto({"id":1527527,"src":"texturedpaper1_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1527527.html","width":130,"caption":"Textured Art Paper","height":87});
															thumbnails[1528838] = clik.newPhoto({"id":1528838,"src":"texturedpaper2_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1528838.html","width":130,"caption":"textured art paper","height":87});
															thumbnails[1527515] = clik.newPhoto({"id":1527515,"src":"clearfilm1_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1527515.html","width":130,"caption":"Clear Film","height":87});
															thumbnails[1528849] = clik.newPhoto({"id":1528849,"src":"clearfilm2_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1528849.html","width":130,"caption":"clear film","height":87});
															thumbnails[1527514] = clik.newPhoto({"id":1527514,"src":"canvas1_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1527514.html","width":130,"caption":"Stretched Canvas","height":87});
															thumbnails[1528857] = clik.newPhoto({"id":1528857,"src":"canvas2_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1528857.html","width":130,"caption":"stretched canvas","height":87});
															thumbnails[1527519] = clik.newPhoto({"id":1527519,"src":"imageblock1_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1527519.html","width":130,"caption":"Image Block","height":87});
															thumbnails[1528861] = clik.newPhoto({"id":1528861,"src":"imageblock2_thumb.jpg","galleries_id":104050,"server_id":1,"link":"photo_1528861.html","width":130,"caption":"image block","height":87});
															thumbnails[5438041] = clik.newPhoto({"id":5438041,"src":"Picture-004a_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5438041.html","width":130,"caption":"","height":87});
															thumbnails[5438043] = clik.newPhoto({"id":5438043,"src":"Picture-047a_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5438043.html","width":130,"caption":"","height":87});
															thumbnails[5438044] = clik.newPhoto({"id":5438044,"src":"Picture-176ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5438044.html","width":130,"caption":"","height":87});
															thumbnails[5438045] = clik.newPhoto({"id":5438045,"src":"Picture-227ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5438045.html","width":130,"caption":"","height":87});
															thumbnails[5438046] = clik.newPhoto({"id":5438046,"src":"Picture-358a_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5438046.html","width":130,"caption":"","height":87});
															thumbnails[5442181] = clik.newPhoto({"id":5442181,"src":"Picture-255a_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5442181.html","width":130,"caption":"","height":87});
															thumbnails[5442183] = clik.newPhoto({"id":5442183,"src":"Picture-323ab_862D0578-2219-B5B5-4CEE0CC8ECE72F07_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5442183.html","width":130,"caption":"","height":87});
															thumbnails[5442184] = clik.newPhoto({"id":5442184,"src":"Picture-008ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5442184.html","width":130,"caption":"","height":87});
															thumbnails[5442187] = clik.newPhoto({"id":5442187,"src":"Picture-130abc_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5442187.html","width":130,"caption":"","height":87});
															thumbnails[5442188] = clik.newPhoto({"id":5442188,"src":"Picture-298a_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5442188.html","width":130,"caption":"","height":87});
															thumbnails[5457462] = clik.newPhoto({"id":5457462,"src":"Picture-048a_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457462.html","width":130,"caption":"","height":87});
															thumbnails[5457464] = clik.newPhoto({"id":5457464,"src":"Picture-268ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457464.html","width":130,"caption":"","height":87});
															thumbnails[5457465] = clik.newPhoto({"id":5457465,"src":"Picture-223ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457465.html","width":130,"caption":"","height":87});
															thumbnails[5457468] = clik.newPhoto({"id":5457468,"src":"Picture-024ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457468.html","width":130,"caption":"","height":87});
															thumbnails[5457469] = clik.newPhoto({"id":5457469,"src":"Picture-350a_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457469.html","width":130,"caption":"","height":87});
															thumbnails[5457523] = clik.newPhoto({"id":5457523,"src":"Picture-131ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457523.html","width":130,"caption":"","height":87});
															thumbnails[5457525] = clik.newPhoto({"id":5457525,"src":"Picture-104a_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457525.html","width":130,"caption":"","height":87});
															thumbnails[5457526] = clik.newPhoto({"id":5457526,"src":"Picture-184_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457526.html","width":130,"caption":"","height":87});
															thumbnails[5457527] = clik.newPhoto({"id":5457527,"src":"Picture-087ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457527.html","width":130,"caption":"","height":87});
															thumbnails[5457528] = clik.newPhoto({"id":5457528,"src":"Picture-133ab_thumb.jpg","galleries_id":471957,"server_id":1,"link":"photo_5457528.html","width":130,"caption":"","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[471957] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby Portraits","link":"section371106.html","maxRecords":0.0,"photoIDs":[5438041.0,5438043.0,5438044.0,5438045.0,5438046.0,5442181.0,5442183.0,5442184.0,5442187.0,5442188.0,5457462.0,5457464.0,5457465.0,5457468.0,5457469.0,5457523.0,5457525.0,5457526.0,5457527.0,5457528.0],"skipIndex":0,"section_code":"section371106","featured_images":"5457528,5457527,5457526,5457525,5457523,5457469,5457468,5457465,5457464,5457462","id":471957,"singleSection":true});				  						galleries[313657] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Engagement Portraits","link":"section371123.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section371123","featured_images":"","id":313657,"singleSection":true});				  						galleries[174062] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio","link":"section217230_174062.html","maxRecords":0.0,"photoIDs":[2777633.0],"skipIndex":0,"section_code":"section217230","featured_images":2777633.0,"id":174062,"singleSection":false});				  						galleries[174058] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"South Africa","link":"section217230_174058.html","maxRecords":0.0,"photoIDs":[2777426.0,2777462.0,2777472.0,2777538.0,2777551.0,2777554.0,2777557.0,2777560.0,2777562.0,2777567.0,2777570.0,2777573.0,2777576.0,2777579.0,2777582.0],"skipIndex":0,"section_code":"section217230","featured_images":2777472.0,"id":174058,"singleSection":false});				  						galleries[429079] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding A","link":"gallery.html","maxRecords":0.0,"photoIDs":[7978598.0,7978732.0,7982938.0,7982992.0,7983000.0],"skipIndex":0,"section_code":"gallery","featured_images":"7983000,7982992,7982938,7978598","id":429079,"singleSection":true});				  						galleries[15199] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Albums","link":"gallery_15199.html","maxRecords":0.0,"photoIDs":[1516443.0,5473557.0,5473559.0,8966600.0,8966602.0,8966603.0],"skipIndex":0,"section_code":"gallery","featured_images":"8966603,8966602,8966600,5473559,5473557,1516443","id":15199,"singleSection":true});				  						galleries[102809] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Michelle","link":"section133485_102809.html","maxRecords":0.0,"photoIDs":[1440976.0,1440977.0,1440978.0,1440980.0,1440982.0,1440996.0,1448959.0,1448960.0,1448961.0,1494370.0,1494371.0,1494372.0],"skipIndex":0,"section_code":"section133485","featured_images":1440980.0,"id":102809,"singleSection":false});				  						galleries[104050] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Prints","link":"section139333.html","maxRecords":0.0,"photoIDs":[1527508.0,1528688.0,1527520.0,1528819.0,1527524.0,1528823.0,1527527.0,1528838.0,1527515.0,1528849.0,1527514.0,1528857.0,1527519.0,1528861.0],"skipIndex":0,"section_code":"section139333","featured_images":"1528861,1528857,1528849,1528838,1528823,1528819,1528688,1527527,1527524,1527520","id":104050,"singleSection":true});				  						galleries[102812] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Franie","link":"section133485_102812.html","maxRecords":0.0,"photoIDs":[1494373.0,1435566.0,1494374.0,1671341.0],"skipIndex":0,"section_code":"section133485","featured_images":1435566.0,"id":102812,"singleSection":false});				  						galleries[106434] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ciara","link":"section133485_106434.html","maxRecords":0.0,"photoIDs":[1561426.0,1561428.0,1561429.0,1561430.0,1561431.0,1561432.0,1561433.0,1561434.0,1561435.0,1561436.0,1561437.0,1561438.0,1561439.0,1561440.0,1561441.0],"skipIndex":0,"section_code":"section133485","featured_images":1561435.0,"id":106434,"singleSection":false});				  						galleries[109021] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miriam","link":"section133485_109021.html","maxRecords":0.0,"photoIDs":[1657891.0,1657892.0],"skipIndex":0,"section_code":"section133485","featured_images":1657892.0,"id":109021,"singleSection":false});				  						galleries[157218] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"AnneMarie","link":"section133485_157218.html","maxRecords":0.0,"photoIDs":[2435384.0,2435474.0,2435475.0,2479232.0,2479233.0,2479236.0,2759187.0,2759188.0,2759190.0],"skipIndex":0,"section_code":"section133485","featured_images":"2759190,2759188,2759187,2479236,2479233,2479232,2435475,2435474,2435384","id":157218,"singleSection":false});				  						galleries[159312] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jane","link":"section133485_159312.html","maxRecords":0.0,"photoIDs":[2480428.0,2480480.0,2480521.0,2480519.0,3103679.0,3103681.0],"skipIndex":0,"section_code":"section133485","featured_images":2480428.0,"id":159312,"singleSection":false});				  						galleries[12349] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Restoration","link":"section43992.html","maxRecords":0.0,"photoIDs":[5556135.0,5556136.0,134525.0,134526.0,134528.0,134530.0,238664.0,238667.0,134558.0,134560.0],"skipIndex":0,"section_code":"section43992","featured_images":134530.0,"id":12349,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7974788';
imageSets[2] = '7978598,2777633,2480428,1657892,1435566,7982938,2777472,7982992,1440980,134530,7983000,1561435';
imageSets[3] = '7983000,7982992,7982938,7978732,7978598,7974788,5556136,5556135,5457528,5457527,5457526,5457525,5457523,5457469,5457468,5457465,5457464,5457462,5442188,5442187,5442184,5442183,5442181,5438046,5438045,5438044,5438043,5438041,3103681,3103679,2777633,2777582,2777579,2777576,2777573,2777570,2777567,2777562,2777560,2777557,2777554,2777551,2777538,2777472,2777462,2777426,2759190,2759188,2759187,2480521';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rdcpro/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/rdcpro/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 += '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 = 'Richard Chadwick 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>';
	}
				
	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> &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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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" 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="rdcproductions@inbox.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="rdcproductions@inbox.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;
	}
}

			

