window.thumbnails = {};
															thumbnails[5255761] = clik.newPhoto({"id":5255761,"src":"Dorothy_Clive__Garden_NGS__dc047_rc_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5255761.html","width":130,"caption":"Dorothy Clive  Garden (NGS)  dc047 rc","height":87});
															thumbnails[5256258] = clik.newPhoto({"id":5256258,"src":"Dorothy_Clive__Garden_NGS_dc297_gpl_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5256258.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc297 gpl","height":87});
															thumbnails[5257301] = clik.newPhoto({"id":5257301,"src":"Dorothy_Clive__Garden_NGS_dc1035_GPL_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257301.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1035 GPL","height":88});
															thumbnails[5257876] = clik.newPhoto({"id":5257876,"src":"Dorothy_Clive__Garden_NGS_dc1102_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257876.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1102","height":87});
															thumbnails[5257895] = clik.newPhoto({"id":5257895,"src":"Dorothy_Clive__Garden_NGS_dc1169_GPL_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257895.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1169 GPL","height":195});
															thumbnails[5257903] = clik.newPhoto({"id":5257903,"src":"Dorothy_Clive__Garden_NGS_dc1216_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257903.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1216","height":87});
															thumbnails[5261115] = clik.newPhoto({"id":5261115,"src":"Lilac_Cottage__lc0015gpl_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261115.html","width":130,"caption":"Lilac Cottage  lc0015gpl","height":87});
															thumbnails[5261120] = clik.newPhoto({"id":5261120,"src":"Lilac_Cottage__lc0063_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261120.html","width":130,"caption":"Lilac Cottage  lc0063","height":195});
															thumbnails[5261135] = clik.newPhoto({"id":5261135,"src":"Lilac_Cottage__lc3506_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261135.html","width":130,"caption":"Lilac Cottage  lc3506","height":81});
															thumbnails[5263903] = clik.newPhoto({"id":5263903,"src":"Dorothy_Clive__Garden_NGS_dc1205_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5263903.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1205","height":87});
															thumbnails[7249529] = clik.newPhoto({"id":7249529,"src":"cc1370 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249529.html","width":130,"caption":"cc1370 October","height":129});
															thumbnails[7249575] = clik.newPhoto({"id":7249575,"src":"cc1476 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249575.html","width":130,"caption":"cc1476 October","height":127});
															thumbnails[7249616] = clik.newPhoto({"id":7249616,"src":"cc1530 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249616.html","width":130,"caption":"cc1530 October","height":62});
															thumbnails[7249639] = clik.newPhoto({"id":7249639,"src":"cc1547 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249639.html","width":130,"caption":"cc1547 October","height":97});
															thumbnails[7249709] = clik.newPhoto({"id":7249709,"src":"cc1560 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249709.html","width":130,"caption":"cc1560 October","height":130});
															thumbnails[7249737] = clik.newPhoto({"id":7249737,"src":"cc1609 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249737.html","width":130,"caption":"cc1609 October","height":130});
															thumbnails[7249748] = clik.newPhoto({"id":7249748,"src":"cc1645 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249748.html","width":130,"caption":"cc1645 October","height":63});
															thumbnails[7934528] = clik.newPhoto({"id":7934528,"src":"cc2010_November10_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934528.html","width":130,"caption":"cc2010 November10","height":140});
															thumbnails[7934774] = clik.newPhoto({"id":7934774,"src":"cc0335_December_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934774.html","width":130,"caption":"cc0335 December","height":56});
															thumbnails[7935631] = clik.newPhoto({"id":7935631,"src":"cc0434_Alamy_June_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935631.html","width":130,"caption":"cc0434 Alamy June","height":62});
															thumbnails[5256259] = clik.newPhoto({"id":5256259,"src":"Dorothy_Clive__Garden_NGS_dc317_rc_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5256259.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc317 rc","height":195});
															thumbnails[5257896] = clik.newPhoto({"id":5257896,"src":"Dorothy_Clive__Garden_NGS_dc1177_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257896.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1177","height":91});
															thumbnails[5257904] = clik.newPhoto({"id":5257904,"src":"Dorothy_Clive__Garden_NGS_dc1221_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257904.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1221","height":93});
															thumbnails[5261116] = clik.newPhoto({"id":5261116,"src":"Lilac_Cottage__lc0021gpl_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261116.html","width":130,"caption":"Lilac Cottage  lc0021gpl","height":87});
															thumbnails[5261131] = clik.newPhoto({"id":5261131,"src":"Lilac_Cottage__lc3398_gpl_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261131.html","width":130,"caption":"Lilac Cottage  lc3398 gpl","height":87});
															thumbnails[7249530] = clik.newPhoto({"id":7249530,"src":"cc1372 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249530.html","width":130,"caption":"cc1372 October","height":87});
															thumbnails[7249576] = clik.newPhoto({"id":7249576,"src":"cc1485 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249576.html","width":130,"caption":"cc1485 October","height":130});
															thumbnails[7249617] = clik.newPhoto({"id":7249617,"src":"cc1533 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249617.html","width":130,"caption":"cc1533 October","height":58});
															thumbnails[7249640] = clik.newPhoto({"id":7249640,"src":"cc1548 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249640.html","width":130,"caption":"cc1548 October","height":130});
															thumbnails[7249710] = clik.newPhoto({"id":7249710,"src":"cc1565 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249710.html","width":130,"caption":"cc1565 October","height":87});
															thumbnails[7249738] = clik.newPhoto({"id":7249738,"src":"cc1616 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249738.html","width":130,"caption":"cc1616 October","height":87});
															thumbnails[7249749] = clik.newPhoto({"id":7249749,"src":"cc1652 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249749.html","width":130,"caption":"cc1652 October","height":58});
															thumbnails[7935632] = clik.newPhoto({"id":7935632,"src":"cc1879_November10_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935632.html","width":130,"caption":"cc1879 November10","height":57});
															thumbnails[5255763] = clik.newPhoto({"id":5255763,"src":"Dorothy_Clive__Garden_NGS_dc142_GPL_RC_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5255763.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc142 GPL RC","height":195});
															thumbnails[5256260] = clik.newPhoto({"id":5256260,"src":"Dorothy_Clive__Garden_NGS_dc318_rc_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5256260.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc318 rc","height":163});
															thumbnails[5257303] = clik.newPhoto({"id":5257303,"src":"Dorothy_Clive__Garden_NGS_dc1061_GPL_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257303.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1061 GPL","height":184});
															thumbnails[5257878] = clik.newPhoto({"id":5257878,"src":"Dorothy_Clive__Garden_NGS_dc1109_GAP_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257878.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1109 GAP","height":86});
															thumbnails[5261122] = clik.newPhoto({"id":5261122,"src":"Lilac_Cottage__lc0065gpl_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261122.html","width":130,"caption":"Lilac Cottage  lc0065gpl","height":87});
															thumbnails[5261127] = clik.newPhoto({"id":5261127,"src":"Lilac_Cottage__lc0102_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261127.html","width":130,"caption":"Lilac Cottage  lc0102","height":195});
															thumbnails[5261132] = clik.newPhoto({"id":5261132,"src":"Lilac_Cottage__lc3412_gpl_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261132.html","width":130,"caption":"Lilac Cottage  lc3412 gpl","height":87});
															thumbnails[7249531] = clik.newPhoto({"id":7249531,"src":"cc1410 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249531.html","width":130,"caption":"cc1410 October","height":86});
															thumbnails[7249577] = clik.newPhoto({"id":7249577,"src":"cc1489 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249577.html","width":130,"caption":"cc1489 October","height":87});
															thumbnails[7249618] = clik.newPhoto({"id":7249618,"src":"cc1534 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249618.html","width":130,"caption":"cc1534 October","height":130});
															thumbnails[7249641] = clik.newPhoto({"id":7249641,"src":"cc1549 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249641.html","width":130,"caption":"cc1549 October","height":130});
															thumbnails[7249711] = clik.newPhoto({"id":7249711,"src":"cc1571 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249711.html","width":130,"caption":"cc1571 October","height":100});
															thumbnails[7249739] = clik.newPhoto({"id":7249739,"src":"cc1641 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249739.html","width":130,"caption":"cc1641 October","height":58});
															thumbnails[7249750] = clik.newPhoto({"id":7249750,"src":"cc1662 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249750.html","width":130,"caption":"cc1662 October","height":64});
															thumbnails[7935633] = clik.newPhoto({"id":7935633,"src":"cc1890_November10_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935633.html","width":130,"caption":"cc1890 November10","height":59});
															thumbnails[5255764] = clik.newPhoto({"id":5255764,"src":"Dorothy_Clive__Garden_NGS_dc163_RC_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5255764.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc163 RC","height":195});
															thumbnails[5256261] = clik.newPhoto({"id":5256261,"src":"Dorothy_Clive__Garden_NGS_dc434_rc_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5256261.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc434 rc","height":195});
															thumbnails[5256981] = clik.newPhoto({"id":5256981,"src":"Dorothy_Clive__Garden_NGS_dc839_GAP_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5256981.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc839 GAP","height":87});
															thumbnails[5257304] = clik.newPhoto({"id":5257304,"src":"Dorothy_Clive__Garden_NGS_dc1093_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257304.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1093","height":85});
															thumbnails[5259591] = clik.newPhoto({"id":5259591,"src":"High_Trees_ht0061_GAP_thumb.jpg","galleries_id":296018,"server_id":1,"link":"photo_5259591.html","width":130,"caption":"High Trees ht0061 GAP","height":85});
															thumbnails[5259741] = clik.newPhoto({"id":5259741,"src":"High_Trees_ht0118gpl_thumb.jpg","galleries_id":296018,"server_id":1,"link":"photo_5259741.html","width":130,"caption":"High Trees ht0118gpl","height":90});
															thumbnails[5260124] = clik.newPhoto({"id":5260124,"src":"High_Trees_ht0208_GAP_thumb.jpg","galleries_id":296018,"server_id":1,"link":"photo_5260124.html","width":130,"caption":"High Trees ht0208 GAP","height":184});
															thumbnails[5261118] = clik.newPhoto({"id":5261118,"src":"Lilac_Cottage__lc0060_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261118.html","width":130,"caption":"Lilac Cottage  lc0060","height":87});
															thumbnails[5261123] = clik.newPhoto({"id":5261123,"src":"Lilac_Cottage__lc0066gpl_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261123.html","width":130,"caption":"Lilac Cottage  lc0066gpl","height":191});
															thumbnails[5261128] = clik.newPhoto({"id":5261128,"src":"Lilac_Cottage__lc0105gpl_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261128.html","width":130,"caption":"Lilac Cottage  lc0105gpl","height":189});
															thumbnails[5261133] = clik.newPhoto({"id":5261133,"src":"Lilac_Cottage__lc3438_GAP_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261133.html","width":130,"caption":"Lilac Cottage  lc3438 GAP","height":87});
															thumbnails[7249532] = clik.newPhoto({"id":7249532,"src":"cc1411 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249532.html","width":130,"caption":"cc1411 October","height":73});
															thumbnails[7249578] = clik.newPhoto({"id":7249578,"src":"cc1496 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249578.html","width":130,"caption":"cc1496 October","height":87});
															thumbnails[7249619] = clik.newPhoto({"id":7249619,"src":"cc1534a October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249619.html","width":130,"caption":"cc1534a October","height":91});
															thumbnails[7249642] = clik.newPhoto({"id":7249642,"src":"cc1553 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249642.html","width":130,"caption":"cc1553 October","height":130});
															thumbnails[7249712] = clik.newPhoto({"id":7249712,"src":"cc1582 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249712.html","width":130,"caption":"cc1582 October","height":130});
															thumbnails[7249740] = clik.newPhoto({"id":7249740,"src":"cc1642 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249740.html","width":130,"caption":"cc1642 October","height":130});
															thumbnails[7249751] = clik.newPhoto({"id":7249751,"src":"cc1677 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249751.html","width":130,"caption":"cc1677 October","height":130});
															thumbnails[5255765] = clik.newPhoto({"id":5255765,"src":"Dorothy_Clive__Garden_NGS_dc233_gpl_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5255765.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc233 gpl","height":195});
															thumbnails[5257305] = clik.newPhoto({"id":5257305,"src":"Dorothy_Clive__Garden_NGS_dc958_GAP_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257305.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc958 GAP","height":195});
															thumbnails[5257880] = clik.newPhoto({"id":5257880,"src":"Dorothy_Clive__Garden_NGS_dc1130_thumb.jpg","galleries_id":295896,"server_id":1,"link":"photo_5257880.html","width":130,"caption":"Dorothy Clive  Garden (NGS) dc1130","height":87});
															thumbnails[5259566] = clik.newPhoto({"id":5259566,"src":"High_Trees_ht0027_thumb.jpg","galleries_id":296018,"server_id":1,"link":"photo_5259566.html","width":130,"caption":"High Trees ht0027","height":188});
															thumbnails[5259594] = clik.newPhoto({"id":5259594,"src":"High_Trees_ht0089gpl_thumb.jpg","galleries_id":296018,"server_id":1,"link":"photo_5259594.html","width":130,"caption":"High Trees ht0089gpl","height":182});
															thumbnails[5260112] = clik.newPhoto({"id":5260112,"src":"High_Trees_ht0167_GAP_thumb.jpg","galleries_id":296018,"server_id":1,"link":"photo_5260112.html","width":130,"caption":"High Trees ht0167 GAP","height":195});
															thumbnails[5260125] = clik.newPhoto({"id":5260125,"src":"High_Trees_ht0226_thumb.jpg","galleries_id":296018,"server_id":1,"link":"photo_5260125.html","width":130,"caption":"High Trees ht0226","height":87});
															thumbnails[5261119] = clik.newPhoto({"id":5261119,"src":"Lilac_Cottage__lc0062_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261119.html","width":130,"caption":"Lilac Cottage  lc0062","height":193});
															thumbnails[5261124] = clik.newPhoto({"id":5261124,"src":"Lilac_Cottage__lc0067_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261124.html","width":130,"caption":"Lilac Cottage  lc0067","height":91});
															thumbnails[5261129] = clik.newPhoto({"id":5261129,"src":"Lilac_Cottage__lc0106_GAP_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261129.html","width":130,"caption":"Lilac Cottage  lc0106 GAP","height":195});
															thumbnails[5261134] = clik.newPhoto({"id":5261134,"src":"Lilac_Cottage__lc3492_GAP_thumb.jpg","galleries_id":295995,"server_id":1,"link":"photo_5261134.html","width":130,"caption":"Lilac Cottage  lc3492 GAP","height":89});
															thumbnails[7249533] = clik.newPhoto({"id":7249533,"src":"cc1444 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249533.html","width":130,"caption":"cc1444 October","height":80});
															thumbnails[7249579] = clik.newPhoto({"id":7249579,"src":"cc1521 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249579.html","width":130,"caption":"cc1521 October","height":77});
															thumbnails[7249620] = clik.newPhoto({"id":7249620,"src":"cc1537 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249620.html","width":130,"caption":"cc1537 October","height":115});
															thumbnails[7249643] = clik.newPhoto({"id":7249643,"src":"cc1559 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249643.html","width":130,"caption":"cc1559 October","height":85});
															thumbnails[7249714] = clik.newPhoto({"id":7249714,"src":"cc1605 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249714.html","width":130,"caption":"cc1605 October","height":130});
															thumbnails[7249741] = clik.newPhoto({"id":7249741,"src":"cc1643 October_thumb.jpg","galleries_id":392060,"server_id":1,"link":"photo_7249741.html","width":130,"caption":"cc1643 October","height":87});
															thumbnails[7934778] = clik.newPhoto({"id":7934778,"src":"cc2141_December_10_GAP_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934778.html","width":130,"caption":"cc2141 December 10 GAP","height":58});
															thumbnails[7935635] = clik.newPhoto({"id":7935635,"src":"cc1914_November10_GPL_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935635.html","width":130,"caption":"cc1914 November10 GPL","height":58});
															thumbnails[7935636] = clik.newPhoto({"id":7935636,"src":"cc1919_November10_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935636.html","width":130,"caption":"cc1919 November10","height":58});
															thumbnails[7934782] = clik.newPhoto({"id":7934782,"src":"cc2400_December_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934782.html","width":130,"caption":"cc2400 December","height":58});
															thumbnails[7935639] = clik.newPhoto({"id":7935639,"src":"cc2000_November10_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935639.html","width":130,"caption":"cc2000 November10","height":56});
															thumbnails[7934783] = clik.newPhoto({"id":7934783,"src":"cc2401_December_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934783.html","width":130,"caption":"cc2401 December","height":70});
															thumbnails[7934785] = clik.newPhoto({"id":7934785,"src":"cc2435_Jan11_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934785.html","width":130,"caption":"cc2435 Jan11","height":58});
															thumbnails[7935642] = clik.newPhoto({"id":7935642,"src":"cc2092_November_10_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935642.html","width":130,"caption":"cc2092 November 10","height":61});
															thumbnails[7935643] = clik.newPhoto({"id":7935643,"src":"cc2638_March_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935643.html","width":130,"caption":"cc2638 March","height":58});
															thumbnails[7935644] = clik.newPhoto({"id":7935644,"src":"cc2639_March_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7935644.html","width":130,"caption":"cc2639 March","height":58});
															thumbnails[7934788] = clik.newPhoto({"id":7934788,"src":"cc2448_Jan11_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934788.html","width":130,"caption":"cc2448 Jan11","height":60});
															thumbnails[7934789] = clik.newPhoto({"id":7934789,"src":"cc2451_PHL_Jan11_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934789.html","width":130,"caption":"cc2451 PHL Jan11","height":62});
															thumbnails[7934790] = clik.newPhoto({"id":7934790,"src":"cc2469_Jan11_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934790.html","width":130,"caption":"cc2469 Jan11","height":61});
															thumbnails[7934791] = clik.newPhoto({"id":7934791,"src":"cc2470_Jan11_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934791.html","width":130,"caption":"cc2470 Jan11","height":58});
															thumbnails[7934793] = clik.newPhoto({"id":7934793,"src":"cc2491_Jan11_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934793.html","width":130,"caption":"cc2491 Jan11","height":58});
															thumbnails[7934797] = clik.newPhoto({"id":7934797,"src":"cc2770_April_2011_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934797.html","width":130,"caption":"cc2770 April 2011","height":58});
															thumbnails[7934798] = clik.newPhoto({"id":7934798,"src":"cc2771_April_2011_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934798.html","width":130,"caption":"cc2771 April 2011","height":58});
															thumbnails[7934799] = clik.newPhoto({"id":7934799,"src":"cc2772_April_2011_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934799.html","width":130,"caption":"cc2772 April 2011","height":58});
															thumbnails[7934803] = clik.newPhoto({"id":7934803,"src":"cc2894_April_2011_75F06E00-1D09-001F-99297CCAB33BFDB4_thumb.jpg","galleries_id":427540,"server_id":1,"link":"photo_7934803.html","width":130,"caption":"cc2894 April 2011","height":60});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[465396] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"00 NEW Cannock Chase AONB November 2011","link":"gallery_465396.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":465396,"singleSection":false});				  						galleries[459136] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"00 NEW Cannock Chase AONB October 2011","link":"gallery_459136.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":459136,"singleSection":false});				  						galleries[398929] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"01 Canncok Chase AONB January 2011","link":"gallery_398929.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":398929,"singleSection":false});				  						galleries[403984] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"02 Cannock Chase AONB February 2011 ","link":"gallery_403984.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":403984,"singleSection":false});				  						galleries[410927] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"03 Cannock Chase AONB March 2011 ","link":"gallery_410927.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":410927,"singleSection":false});				  						galleries[421813] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"04 Cannock Chase AONB April 2011","link":"gallery_421813.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":421813,"singleSection":false});				  						galleries[427029] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"05 Cannock Chase AONB May 2011","link":"gallery_427029.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":427029,"singleSection":false});				  						galleries[430699] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"06 Cannock Chase AONB June 2011","link":"gallery_430699.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":430699,"singleSection":false});				  						galleries[436361] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"07 Cannock Chase AONB July 2011","link":"gallery_436361.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":436361,"singleSection":false});				  						galleries[444596] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"08 Cannock Chase AONB August 2011","link":"gallery_444596.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":444596,"singleSection":false});				  						galleries[455213] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"09 Cannock Chase AONB September 2011","link":"gallery_455213.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":455213,"singleSection":false});				  						galleries[195491] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"13 Cannock Chase AONB Autumn","link":"gallery_195491.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":195491,"singleSection":false});				  						galleries[206722] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"13 Cannock Chase AONB Winter","link":"gallery_206722.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":206722,"singleSection":false});				  						galleries[396232] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"13 Infrared Images","link":"gallery_396232.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":396232,"singleSection":false});				  						galleries[300351] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"15 Peak District Winter ","link":"gallery_300351.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":300351,"singleSection":false});				  						galleries[296034] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"17 Wilkins Pleck (NGS) Autumn","link":"gallery_296034.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":296034,"singleSection":false});				  						galleries[296018] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"18 High Trees (NGS)","link":"gallery_296018.html","maxRecords":0.0,"photoIDs":[5259591.0,5259741.0,5260124.0,5259566.0,5259594.0,5260112.0,5260125.0],"skipIndex":0,"section_code":"gallery","featured_images":5259566.0,"id":296018,"singleSection":false});				  						galleries[295995] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"20 Lilac Cottage (NGS)","link":"gallery_295995.html","maxRecords":0.0,"photoIDs":[5261115.0,5261120.0,5261135.0,5261116.0,5261131.0,5261122.0,5261127.0,5261132.0,5261118.0,5261123.0,5261128.0,5261133.0,5261119.0,5261124.0,5261129.0,5261134.0],"skipIndex":0,"section_code":"gallery","featured_images":5261120.0,"id":295995,"singleSection":false});				  						galleries[295896] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"27 Dorothy Clive Garden (NGS)","link":"gallery_295896.html","maxRecords":0.0,"photoIDs":[5255761.0,5256258.0,5257301.0,5257876.0,5257895.0,5257903.0,5263903.0,5256259.0,5257896.0,5257904.0,5255763.0,5256260.0,5257303.0,5257878.0,5255764.0,5256261.0,5256981.0,5257304.0,5255765.0,5257305.0,5257880.0],"skipIndex":0,"section_code":"gallery","featured_images":"5263903,5257895,5257880","id":295896,"singleSection":false});				  						galleries[427540] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"29 NEW FINE ART IMAGES 2","link":"gallery_427540.html","maxRecords":0.0,"photoIDs":[7934528.0,7934774.0,7935631.0,7935632.0,7935633.0,7934778.0,7935635.0,7935636.0,7934782.0,7935639.0,7934783.0,7934785.0,7935642.0,7935643.0,7935644.0,7934788.0,7934789.0,7934790.0,7934791.0,7934793.0,7934797.0,7934798.0,7934799.0,7934803.0],"skipIndex":0,"section_code":"gallery","featured_images":"7935644,7935643,7935642,7935639,7935636,7935635,7935633,7935632,7935631,7934803","id":427540,"singleSection":false});				  						galleries[452177] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"29 Photos Snow White and the Huntsman","link":"gallery_452177.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":452177,"singleSection":false});				  						galleries[392060] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cannock Chase AONB October 2010","link":"gallery_392060.html","maxRecords":0.0,"photoIDs":[7249529.0,7249575.0,7249616.0,7249639.0,7249709.0,7249737.0,7249748.0,7249530.0,7249576.0,7249617.0,7249640.0,7249710.0,7249738.0,7249749.0,7249531.0,7249577.0,7249618.0,7249641.0,7249711.0,7249739.0,7249750.0,7249532.0,7249578.0,7249619.0,7249642.0,7249712.0,7249740.0,7249751.0,7249533.0,7249579.0,7249620.0,7249643.0,7249714.0,7249741.0],"skipIndex":0,"section_code":"gallery","featured_images":"7249751,7249750,7249749,7249748,7249741,7249740,7249739,7249738,7249737,7249714","id":392060,"singleSection":false});				  						galleries[406815] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greetings Cards","link":"gallery_406815.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":406815,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7935644,7935643,7935642,7935639,7935636,7935635,7935633,7935632,7935631,7934803,7934799,7934798,7934797,7934793,7934791,7934790,7934789,7934788,7934785,7934783,7934782,7934778,7934774,7934528,7249751,7249750,7249749,7249748,7249741,7249740,7249739,7249738,7249737,7249714,7249712,7249711,7249710,7249709,7249643,7249642,7249641,7249640,7249639,7249620,7249619,7249618,7249617,7249616,7249579,7249578';
imageSets[2] = '5263903,5261120,5257895,5259566,5257880';
imageSets[3] = '7935644,7935643,7935642,7935639,7935636,7935635,7935633,7935632,7935631,7934803,7934799,7934798,7934797,7934793,7934791,7934790,7934789,7934788,7934785,7934783,7934782,7934778,7934774,7934528,7249751,7249750,7249749,7249748,7249741,7249740,7249739,7249738,7249737,7249714,7249712,7249711,7249710,7249709,7249643,7249642,7249641,7249640,7249639,7249620,7249619,7249618,7249617,7249616,7249579,7249578';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ronaldo/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ronaldo/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 = 'Cannock Chase AONB Photography by Ron Evans : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="RONALDO">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

