window.thumbnails = {};
															thumbnails[5307291] = clik.newPhoto({"id":5307291,"src":"00110_thumb.jpg","galleries_id":298155,"server_id":5,"link":"photo_5307291.html","width":130,"caption":"Pelican Chester Zoo Wildlife","height":235});
															thumbnails[5307294] = clik.newPhoto({"id":5307294,"src":"00210_thumb.jpg","galleries_id":298409,"server_id":5,"link":"photo_5307294.html","width":130,"caption":"Mayrhofen Austria Shaddow","height":202});
															thumbnails[5307297] = clik.newPhoto({"id":5307297,"src":"0031_thumb.jpg","galleries_id":298409,"server_id":5,"link":"photo_5307297.html","width":130,"caption":"Guggenheim Museum Bilbao Basque Country","height":182});
															thumbnails[5307299] = clik.newPhoto({"id":5307299,"src":"0041_thumb.jpg","galleries_id":298409,"server_id":5,"link":"photo_5307299.html","width":130,"caption":"Church Door Gothic Hinges Wrought Iron","height":193});
															thumbnails[5307302] = clik.newPhoto({"id":5307302,"src":"0051_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5307302.html","width":130,"caption":"Firwork Display","height":128});
															thumbnails[5307304] = clik.newPhoto({"id":5307304,"src":"0061_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5307304.html","width":130,"caption":"Aberdovey Wharf","height":195});
															thumbnails[5307305] = clik.newPhoto({"id":5307305,"src":"0071_thumb.jpg","galleries_id":298592,"server_id":5,"link":"photo_5307305.html","width":130,"caption":"Hayley Westenra Dudley West Midlands","height":195});
															thumbnails[5307307] = clik.newPhoto({"id":5307307,"src":"0081_thumb.jpg","galleries_id":298592,"server_id":5,"link":"photo_5307307.html","width":130,"caption":"Hayley Westenra Gentlemen Songsters Dudley","height":195});
															thumbnails[5307308] = clik.newPhoto({"id":5307308,"src":"0091_thumb.jpg","galleries_id":298592,"server_id":5,"link":"photo_5307308.html","width":130,"caption":"Hayley Westenra Gentlemen Songsters Dudley","height":134});
															thumbnails[5307309] = clik.newPhoto({"id":5307309,"src":"0101_thumb.jpg","galleries_id":298592,"server_id":5,"link":"photo_5307309.html","width":130,"caption":"Gentlemen Songsters Dudley West Midlands","height":87});
															thumbnails[5307311] = clik.newPhoto({"id":5307311,"src":"0112_thumb.jpg","galleries_id":298592,"server_id":5,"link":"photo_5307311.html","width":130,"caption":"Gentlemen Songsters Dudley West Midlands","height":87});
															thumbnails[5307313] = clik.newPhoto({"id":5307313,"src":"0121_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5307313.html","width":130,"caption":"Speedway Buxton Derbyshire","height":57});
															thumbnails[5307315] = clik.newPhoto({"id":5307315,"src":"0131_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5307315.html","width":130,"caption":"Lake Garda Itally Landscape Mist","height":92});
															thumbnails[5307316] = clik.newPhoto({"id":5307316,"src":"0141_thumb.jpg","galleries_id":298155,"server_id":5,"link":"photo_5307316.html","width":130,"caption":"Horse Eye Close up Black and White","height":154});
															thumbnails[5307317] = clik.newPhoto({"id":5307317,"src":"0151_thumb.jpg","galleries_id":298409,"server_id":5,"link":"photo_5307317.html","width":130,"caption":"Stone Cottage Barmouth Wales","height":100});
															thumbnails[5307318] = clik.newPhoto({"id":5307318,"src":"0161_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5307318.html","width":130,"caption":"Aberdovey Sunset Wales","height":92});
															thumbnails[5307320] = clik.newPhoto({"id":5307320,"src":"0171_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5307320.html","width":130,"caption":"Aberdovey Sunset wales","height":92});
															thumbnails[5307322] = clik.newPhoto({"id":5307322,"src":"0181_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5307322.html","width":130,"caption":"Speedway Buxton Derbyshire","height":89});
															thumbnails[5307323] = clik.newPhoto({"id":5307323,"src":"0191_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5307323.html","width":130,"caption":"Fireworks Aberdovey Wales","height":195});
															thumbnails[5307324] = clik.newPhoto({"id":5307324,"src":"0202_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5307324.html","width":130,"caption":"Fireworks Guy Fawkes Night","height":133});
															thumbnails[5307326] = clik.newPhoto({"id":5307326,"src":"0211_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5307326.html","width":130,"caption":"Ice Racing Assen","height":95});
															thumbnails[5307328] = clik.newPhoto({"id":5307328,"src":"0221_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5307328.html","width":130,"caption":"Ice Racing Assen","height":87});
															thumbnails[5307329] = clik.newPhoto({"id":5307329,"src":"0231_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5307329.html","width":130,"caption":"Ice Speedway Assen","height":87});
															thumbnails[5307330] = clik.newPhoto({"id":5307330,"src":"0241_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5307330.html","width":130,"caption":"Ice Speedway Assen","height":99});
															thumbnails[5307331] = clik.newPhoto({"id":5307331,"src":"0251_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5307331.html","width":130,"caption":"Teasle Autumn Seeds","height":137});
															thumbnails[5307332] = clik.newPhoto({"id":5307332,"src":"0261_thumb.jpg","galleries_id":298409,"server_id":5,"link":"photo_5307332.html","width":130,"caption":"Rattenburg Austria Steps Menu","height":195});
															thumbnails[5307333] = clik.newPhoto({"id":5307333,"src":"0271_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5307333.html","width":130,"caption":"Mayrhofen Austria Mountains Landscape","height":75});
															thumbnails[5307335] = clik.newPhoto({"id":5307335,"src":"0285_thumb.jpg","galleries_id":298409,"server_id":5,"link":"photo_5307335.html","width":130,"caption":"Church Door Gothic Hinges Wrought Iron","height":192});
															thumbnails[5307351] = clik.newPhoto({"id":5307351,"src":"00051_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307351.html","width":130,"caption":"Bride flowers bouquet wedding car","height":195});
															thumbnails[5307352] = clik.newPhoto({"id":5307352,"src":"00061_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307352.html","width":130,"caption":"Civil service Bewdley Signing register","height":87});
															thumbnails[5307353] = clik.newPhoto({"id":5307353,"src":"00071_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307353.html","width":130,"caption":"Bride Groom Ralph Mason","height":174});
															thumbnails[5307354] = clik.newPhoto({"id":5307354,"src":"00081_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307354.html","width":130,"caption":"Wedding car bouquet Champagne","height":87});
															thumbnails[5307357] = clik.newPhoto({"id":5307357,"src":"00101_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307357.html","width":130,"caption":"Bride Bouquet candid photo","height":195});
															thumbnails[5307358] = clik.newPhoto({"id":5307358,"src":"00111_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307358.html","width":130,"caption":"Bride Dress Flowers Bouquet","height":195});
															thumbnails[5307361] = clik.newPhoto({"id":5307361,"src":"00131_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307361.html","width":130,"caption":"Bride Groom Black and White Photography","height":195});
															thumbnails[5307362] = clik.newPhoto({"id":5307362,"src":"00141_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307362.html","width":130,"caption":"Black and White Photography Bewdley","height":195});
															thumbnails[5307364] = clik.newPhoto({"id":5307364,"src":"00161_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307364.html","width":130,"caption":"Bride Black and White ","height":195});
															thumbnails[5307367] = clik.newPhoto({"id":5307367,"src":"00171_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307367.html","width":130,"caption":"Bride and Groom first dance","height":178});
															thumbnails[5307368] = clik.newPhoto({"id":5307368,"src":"00181_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307368.html","width":130,"caption":"Wedding Ramada Hotel","height":195});
															thumbnails[5307371] = clik.newPhoto({"id":5307371,"src":"00191_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5307371.html","width":130,"caption":"Happy couple wedding Ramada","height":195});
															thumbnails[5307372] = clik.newPhoto({"id":5307372,"src":"00011_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307372.html","width":130,"caption":"Father of the Bride ","height":195});
															thumbnails[5307373] = clik.newPhoto({"id":5307373,"src":"00021_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307373.html","width":130,"caption":"Wedding Outfit","height":87});
															thumbnails[5307374] = clik.newPhoto({"id":5307374,"src":"00031_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307374.html","width":130,"caption":"Wedding Flowers","height":195});
															thumbnails[5307375] = clik.newPhoto({"id":5307375,"src":"00041_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307375.html","width":130,"caption":"Wedding Cars Bouquet West Midlands","height":115});
															thumbnails[5307377] = clik.newPhoto({"id":5307377,"src":"00091_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307377.html","width":130,"caption":"Group photos Bewdley Wyre Forest","height":87});
															thumbnails[5307378] = clik.newPhoto({"id":5307378,"src":"00122_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307378.html","width":130,"caption":"Wedding Guests Bewdley","height":87});
															thumbnails[5307379] = clik.newPhoto({"id":5307379,"src":"00151_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307379.html","width":130,"caption":"Bride Father Stourbridge ","height":195});
															thumbnails[5307381] = clik.newPhoto({"id":5307381,"src":"00201_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307381.html","width":130,"caption":"Page Boy Himley Hall Dudley","height":195});
															thumbnails[5307383] = clik.newPhoto({"id":5307383,"src":"00211_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307383.html","width":130,"caption":"Wedding flowers","height":195});
															thumbnails[5307384] = clik.newPhoto({"id":5307384,"src":"00221_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307384.html","width":130,"caption":"Bridesmaids Himley Hall","height":183});
															thumbnails[5307386] = clik.newPhoto({"id":5307386,"src":"00231_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307386.html","width":130,"caption":"Wedding flowers bouquet","height":195});
															thumbnails[5307387] = clik.newPhoto({"id":5307387,"src":"00241_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307387.html","width":130,"caption":"Bridesmaids Himley Hall","height":178});
															thumbnails[5307388] = clik.newPhoto({"id":5307388,"src":"00251_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307388.html","width":130,"caption":"Pageboy Stone Stafordshire","height":213});
															thumbnails[5307389] = clik.newPhoto({"id":5307389,"src":"00261_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307389.html","width":130,"caption":"Bridesmaids Himley Hall","height":195});
															thumbnails[5307391] = clik.newPhoto({"id":5307391,"src":"00271_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307391.html","width":130,"caption":"Pageboy Stone Stafordshire","height":195});
															thumbnails[5307392] = clik.newPhoto({"id":5307392,"src":"00281_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307392.html","width":130,"caption":"Wedding flowers Bridgenorth","height":87});
															thumbnails[5307393] = clik.newPhoto({"id":5307393,"src":"00291_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307393.html","width":130,"caption":"Bridesmaids Pageboy ","height":195});
															thumbnails[5307395] = clik.newPhoto({"id":5307395,"src":"00301_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5307395.html","width":130,"caption":"Bridesmaids Pageboy ","height":195});
															thumbnails[5310497] = clik.newPhoto({"id":5310497,"src":"Calendar-Arrows-copy_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5310497.html","width":130,"caption":"Red Arrows Cosford Air Show","height":89});
															thumbnails[5310502] = clik.newPhoto({"id":5310502,"src":"Calendar-Bridge_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5310502.html","width":130,"caption":"","height":56});
															thumbnails[5310505] = clik.newPhoto({"id":5310505,"src":"Calendar-Carcassonne_thumb.jpg","galleries_id":298409,"server_id":5,"link":"photo_5310505.html","width":130,"caption":"Carcassonne France ","height":195});
															thumbnails[5310510] = clik.newPhoto({"id":5310510,"src":"Calendar-Cat_thumb.jpg","galleries_id":298155,"server_id":5,"link":"photo_5310510.html","width":130,"caption":"Jaguar Chester Zoo","height":157});
															thumbnails[5310511] = clik.newPhoto({"id":5310511,"src":"Calendar-Guggenheim_thumb.jpg","galleries_id":298409,"server_id":5,"link":"photo_5310511.html","width":130,"caption":"Guggenheim Museum Bilbao Basque Country","height":93});
															thumbnails[5310514] = clik.newPhoto({"id":5310514,"src":"Calendar-Lighthouse_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5310514.html","width":130,"caption":"Penmom Point Lighthouse Anglesey","height":195});
															thumbnails[5310517] = clik.newPhoto({"id":5310517,"src":"Frosted-Trees_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5310517.html","width":130,"caption":"Frost Trees Winter Landscape","height":85});
															thumbnails[5311068] = clik.newPhoto({"id":5311068,"src":"029_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5311068.html","width":130,"caption":"Speedawy Stoke Stafordshire","height":77});
															thumbnails[5311069] = clik.newPhoto({"id":5311069,"src":"030_thumb.jpg","galleries_id":298155,"server_id":5,"link":"photo_5311069.html","width":130,"caption":"Herring Gull Anglesey Wales","height":195});
															thumbnails[5311070] = clik.newPhoto({"id":5311070,"src":"031_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5311070.html","width":130,"caption":"Speedway Wolverhampton West Midlands","height":97});
															thumbnails[5311071] = clik.newPhoto({"id":5311071,"src":"032_thumb.jpg","galleries_id":298152,"server_id":5,"link":"photo_5311071.html","width":130,"caption":"Speedway Birmingham West Midlands","height":48});
															thumbnails[5313115] = clik.newPhoto({"id":5313115,"src":"040F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5313115.html","width":130,"caption":"Wedding family Guest","height":87});
															thumbnails[5313116] = clik.newPhoto({"id":5313116,"src":"041F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5313116.html","width":130,"caption":"Candid Reportage Photography","height":195});
															thumbnails[5313118] = clik.newPhoto({"id":5313118,"src":"042F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5313118.html","width":130,"caption":"Candid Reportage Photography","height":195});
															thumbnails[5313119] = clik.newPhoto({"id":5313119,"src":"043F_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313119.html","width":130,"caption":"Bride Bouquet Photography","height":195});
															thumbnails[5313120] = clik.newPhoto({"id":5313120,"src":"044B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313120.html","width":130,"caption":"Civil service Wedding Bouquet","height":195});
															thumbnails[5313139] = clik.newPhoto({"id":5313139,"src":"045F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5313139.html","width":130,"caption":"Page boy Birmingham","height":87});
															thumbnails[5313149] = clik.newPhoto({"id":5313149,"src":"046B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313149.html","width":130,"caption":"Brides dress photo Birmingham","height":195});
															thumbnails[5313150] = clik.newPhoto({"id":5313150,"src":"047B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313150.html","width":130,"caption":"Bride Dress Buxton Peak District","height":161});
															thumbnails[5313151] = clik.newPhoto({"id":5313151,"src":"048B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313151.html","width":130,"caption":"Groom informal photography Ralph Mason","height":175});
															thumbnails[5313152] = clik.newPhoto({"id":5313152,"src":"049B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313152.html","width":130,"caption":"Black and White Photography Buxton ","height":195});
															thumbnails[5313155] = clik.newPhoto({"id":5313155,"src":"050B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313155.html","width":130,"caption":"Ralph Mason Wedding Photography","height":195});
															thumbnails[5313157] = clik.newPhoto({"id":5313157,"src":"051B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313157.html","width":130,"caption":"Informal photography Ralph Mason","height":195});
															thumbnails[5313160] = clik.newPhoto({"id":5313160,"src":"052B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313160.html","width":130,"caption":"Groom informal photography","height":195});
															thumbnails[5313161] = clik.newPhoto({"id":5313161,"src":"053B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313161.html","width":130,"caption":"Reportage Photography Ralph Mason","height":195});
															thumbnails[5313163] = clik.newPhoto({"id":5313163,"src":"054B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313163.html","width":130,"caption":"Black and White Wedding Photography","height":195});
															thumbnails[5313165] = clik.newPhoto({"id":5313165,"src":"055B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313165.html","width":130,"caption":"Elegant relaxed photography","height":195});
															thumbnails[5313171] = clik.newPhoto({"id":5313171,"src":"056B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313171.html","width":130,"caption":"Wedding Photography Derbyshire","height":195});
															thumbnails[5313173] = clik.newPhoto({"id":5313173,"src":"058B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313173.html","width":130,"caption":"Wedding Photography Ralph Mason","height":195});
															thumbnails[5313178] = clik.newPhoto({"id":5313178,"src":"059B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5313178.html","width":130,"caption":"Black and White Wedding Photography","height":195});
															thumbnails[5317986] = clik.newPhoto({"id":5317986,"src":"061B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5317986.html","width":130,"caption":"Bride Bouquet Dudley","height":195});
															thumbnails[5317989] = clik.newPhoto({"id":5317989,"src":"062F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5317989.html","width":130,"caption":"Wedding Photography Shropshire","height":195});
															thumbnails[5317991] = clik.newPhoto({"id":5317991,"src":"063F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5317991.html","width":130,"caption":"Candid Reportage Photography Shropshire","height":195});
															thumbnails[5317995] = clik.newPhoto({"id":5317995,"src":"064F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5317995.html","width":130,"caption":"Candid Reportage Black and White Photography","height":195});
															thumbnails[5317997] = clik.newPhoto({"id":5317997,"src":"065F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5317997.html","width":130,"caption":"Dudley Registra Office","height":195});
															thumbnails[5317999] = clik.newPhoto({"id":5317999,"src":"066F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5317999.html","width":130,"caption":"Black and White Wedding Photography","height":195});
															thumbnails[5318001] = clik.newPhoto({"id":5318001,"src":"067F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5318001.html","width":130,"caption":"Wedding Guests","height":195});
															thumbnails[5318003] = clik.newPhoto({"id":5318003,"src":"069B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5318003.html","width":130,"caption":"Wedding car Dudley Castle","height":87});
															thumbnails[5318005] = clik.newPhoto({"id":5318005,"src":"070B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5318005.html","width":130,"caption":"Bride Wedding Car Himley Hall","height":195});
															thumbnails[5318006] = clik.newPhoto({"id":5318006,"src":"071B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5318006.html","width":130,"caption":"Bride Groom Church Birmingham","height":195});
															thumbnails[5318008] = clik.newPhoto({"id":5318008,"src":"072F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5318008.html","width":130,"caption":"Candid Reportage Wedding Photography","height":195});
															thumbnails[5318012] = clik.newPhoto({"id":5318012,"src":"073B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5318012.html","width":130,"caption":"Church Wedding Birmingham","height":195});
															thumbnails[5318013] = clik.newPhoto({"id":5318013,"src":"074F_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5318013.html","width":130,"caption":"Bridesmaids Candid Reportage Birmingham","height":195});
															thumbnails[5357541] = clik.newPhoto({"id":5357541,"src":"077B_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5357541.html","width":130,"caption":"Bride flowers bouquet","height":195});
															thumbnails[5551451] = clik.newPhoto({"id":5551451,"src":"0024_thumb.jpg","galleries_id":298592,"server_id":5,"link":"photo_5551451.html","width":130,"caption":"Gentlemen Songsters Dudley West Midlands","height":195});
															thumbnails[5551455] = clik.newPhoto({"id":5551455,"src":"0025_thumb.jpg","galleries_id":298592,"server_id":5,"link":"photo_5551455.html","width":130,"caption":"Gentlemen Songsters Dudley West Midlands","height":195});
															thumbnails[5551456] = clik.newPhoto({"id":5551456,"src":"0030_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5551456.html","width":130,"caption":"Gentlemen Songsters Charity","height":99});
															thumbnails[5551459] = clik.newPhoto({"id":5551459,"src":"089A_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5551459.html","width":130,"caption":"Ceroc Dancing Stoke on Trent","height":172});
															thumbnails[5551461] = clik.newPhoto({"id":5551461,"src":"093C_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5551461.html","width":130,"caption":"Ceroc Dancing Stoke on Trent","height":195});
															thumbnails[5551463] = clik.newPhoto({"id":5551463,"src":"139a_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5551463.html","width":130,"caption":"Jive Dancing West Midlands","height":156});
															thumbnails[5551464] = clik.newPhoto({"id":5551464,"src":"372A_thumb.jpg","galleries_id":298153,"server_id":5,"link":"photo_5551464.html","width":130,"caption":"Jive Dancing West Midlands","height":195});
															thumbnails[5551467] = clik.newPhoto({"id":5551467,"src":"Fairbourne-to-Barmouth-Coast-copy-2_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5551467.html","width":130,"caption":"Barmouth Wales","height":70});
															thumbnails[5551469] = clik.newPhoto({"id":5551469,"src":"IMG_1625-Fairbourne-Beach-Women_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5551469.html","width":130,"caption":"Fairbourne Wales","height":278});
															thumbnails[5551471] = clik.newPhoto({"id":5551471,"src":"IMG_1728-Edit_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5551471.html","width":130,"caption":"Wedding rings","height":143});
															thumbnails[5551490] = clik.newPhoto({"id":5551490,"src":"DSCF0545A_thumb.jpg","galleries_id":298155,"server_id":5,"link":"photo_5551490.html","width":130,"caption":"Sleeping Dog Mayrhofen Austria Flowers","height":98});
															thumbnails[5551546] = clik.newPhoto({"id":5551546,"src":"IMG_1738-Edit_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5551546.html","width":130,"caption":"Bride Mother Bridesmaid","height":109});
															thumbnails[5551575] = clik.newPhoto({"id":5551575,"src":"IMG_1756-Edit_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5551575.html","width":130,"caption":"Church Wedding Candid Photography","height":195});
															thumbnails[5551576] = clik.newPhoto({"id":5551576,"src":"IMG_1760-Edit_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5551576.html","width":130,"caption":"Bride Groom Church Vicar","height":201});
															thumbnails[5551612] = clik.newPhoto({"id":5551612,"src":"IMG_1762-Edit_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5551612.html","width":130,"caption":"Wedding Dress Church Photo","height":198});
															thumbnails[5551640] = clik.newPhoto({"id":5551640,"src":"IMG_1773-Edit_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5551640.html","width":130,"caption":"Bride Groom mother Church","height":199});
															thumbnails[5551641] = clik.newPhoto({"id":5551641,"src":"IMG_1785-Edit_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5551641.html","width":130,"caption":"Bride Groom Married Church","height":195});
															thumbnails[5551642] = clik.newPhoto({"id":5551642,"src":"IMG_1793-Edit_thumb.jpg","galleries_id":298059,"server_id":5,"link":"photo_5551642.html","width":130,"caption":"Happy couple kiss Wolverhampton","height":198});
															thumbnails[5551645] = clik.newPhoto({"id":5551645,"src":"IMG_1809-Edit_thumb.jpg","galleries_id":298272,"server_id":5,"link":"photo_5551645.html","width":130,"caption":"Church Wedding Family Guests","height":77});
															thumbnails[5551647] = clik.newPhoto({"id":5551647,"src":"IMG_1896-Autumn-Waterfall-3_thumb.jpg","galleries_id":298060,"server_id":5,"link":"photo_5551647.html","width":130,"caption":"Waterfall Wales","height":87});
															thumbnails[6061388] = clik.newPhoto({"id":6061388,"src":"Duo_thumb.jpg","galleries_id":340317,"server_id":5,"link":"photo_6061388.html","width":130,"caption":"Photo Restoration West Midlands","height":207});
															thumbnails[6061614] = clik.newPhoto({"id":6061614,"src":"Untitled-1_thumb.jpg","galleries_id":340317,"server_id":5,"link":"photo_6061614.html","width":130,"caption":"Photo Restoration West Midlands","height":160});
															thumbnails[6061617] = clik.newPhoto({"id":6061617,"src":"Untitled-2_thumb.jpg","galleries_id":340317,"server_id":5,"link":"photo_6061617.html","width":130,"caption":"Photo Restoration West Midlands","height":168});
															thumbnails[6061620] = clik.newPhoto({"id":6061620,"src":"Untitled-3_thumb.jpg","galleries_id":340317,"server_id":5,"link":"photo_6061620.html","width":130,"caption":"Photo Restoration West Midlands","height":266});
															thumbnails[6061623] = clik.newPhoto({"id":6061623,"src":"Untitled-4_thumb.jpg","galleries_id":340317,"server_id":5,"link":"photo_6061623.html","width":130,"caption":"Photo Restoration West Midlands","height":354});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[298059] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bride & Groom","link":"gallery_298059.html","maxRecords":0.0,"photoIDs":[5307351.0,5307352.0,5307353.0,5307354.0,5307357.0,5307358.0,5307361.0,5307362.0,5307364.0,5307367.0,5307368.0,5307371.0,5313119.0,5313120.0,5313149.0,5313150.0,5313151.0,5313152.0,5313155.0,5313157.0,5313160.0,5313161.0,5313163.0,5313165.0,5313171.0,5313173.0,5313178.0,5317986.0,5318003.0,5318005.0,5318006.0,5318012.0,5357541.0,5551471.0,5551546.0,5551576.0,5551612.0,5551640.0,5551641.0,5551642.0],"skipIndex":0,"section_code":"gallery","featured_images":"5551642,5551641,5551640,5551612,5551576,5551546,5551471,5357541,5318012,5318006","id":298059,"singleSection":false});				  						galleries[298272] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Family & Guests","link":"gallery_298272.html","maxRecords":0.0,"photoIDs":[5307372.0,5307373.0,5307374.0,5307375.0,5307377.0,5307378.0,5307379.0,5307381.0,5307383.0,5307384.0,5307386.0,5307387.0,5307388.0,5307389.0,5307391.0,5307392.0,5307393.0,5307395.0,5313115.0,5313116.0,5313118.0,5313139.0,5317989.0,5317991.0,5317995.0,5317997.0,5317999.0,5318001.0,5318008.0,5318013.0,5551575.0,5551645.0],"skipIndex":0,"section_code":"gallery","featured_images":"5551645,5551575,5318013,5318008,5318001,5317999,5317997,5317995,5317991,5317989","id":298272,"singleSection":false});				  						galleries[298153] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_298153.html","maxRecords":0.0,"photoIDs":[5307302.0,5307323.0,5307324.0,5310497.0,5551456.0,5551459.0,5551461.0,5551463.0,5551464.0],"skipIndex":0,"section_code":"gallery","featured_images":"5551464,5551463,5551461,5551459,5551456,5310497,5307324,5307323,5307302","id":298153,"singleSection":false});				  						galleries[340317] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Restored Photos.","link":"gallery_340317.html","maxRecords":0.0,"photoIDs":[6061388.0,6061614.0,6061617.0,6061620.0,6061623.0],"skipIndex":0,"section_code":"gallery","featured_images":"6061623,6061620,6061617,6061614,6061388","id":340317,"singleSection":false});				  						galleries[298152] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sport","link":"gallery_298152.html","maxRecords":0.0,"photoIDs":[5307313.0,5307322.0,5307326.0,5307328.0,5307329.0,5307330.0,5311068.0,5311070.0,5311071.0],"skipIndex":0,"section_code":"gallery","featured_images":"5311071,5311070,5311068,5307330,5307329,5307328,5307326,5307322,5307313","id":298152,"singleSection":false});				  						galleries[298592] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Music Events","link":"gallery_298592.html","maxRecords":0.0,"photoIDs":[5307305.0,5307307.0,5307308.0,5307309.0,5307311.0,5551451.0,5551455.0],"skipIndex":0,"section_code":"gallery","featured_images":"5551455,5551451,5307311,5307309,5307308,5307307,5307305","id":298592,"singleSection":false});				  						galleries[298060] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_298060.html","maxRecords":0.0,"photoIDs":[5307304.0,5307315.0,5307318.0,5307320.0,5307331.0,5307333.0,5310502.0,5310514.0,5310517.0,5551467.0,5551469.0,5551647.0],"skipIndex":0,"section_code":"gallery","featured_images":"5551647,5551469,5551467,5310517,5310514,5310502,5307333,5307331,5307320,5307318","id":298060,"singleSection":false});				  						galleries[298409] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture","link":"gallery_298409.html","maxRecords":0.0,"photoIDs":[5307294.0,5307297.0,5307299.0,5307317.0,5307332.0,5307335.0,5310505.0,5310511.0],"skipIndex":0,"section_code":"gallery","featured_images":"5310511,5310505,5307335,5307332,5307317,5307299,5307297,5307294","id":298409,"singleSection":false});				  						galleries[298155] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_298155.html","maxRecords":0.0,"photoIDs":[5307291.0,5307316.0,5310510.0,5311069.0,5551490.0],"skipIndex":0,"section_code":"gallery","featured_images":"5551490,5311069,5310510,5307316,5307291","id":298155,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5317986,5313178,5313173,5313165,5313163,5313160,5313149,5313119,5307371,5307362,5307351';
imageSets[3] = '6061623,6061620,6061617,6061614,6061388,5551647,5551645,5551642,5551641,5551640,5551612,5551576,5551575,5551546,5551490,5551471,5551469,5551467,5551464,5551463,5551461,5551459,5551456,5551455,5551451,5357541,5318013,5318012,5318008,5318006,5318005,5318003,5318001,5317999,5317997,5317995,5317991,5317989,5317986,5313178,5313173,5313171,5313165,5313163,5313161,5313160,5313157,5313155,5313152,5313151';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ralphmason/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ralphmason/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 = 'Ralph Mason Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="mason261@aol.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					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="mason261@aol.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;
	}
}

			

