window.thumbnails = {};
															thumbnails[3293834] = clik.newPhoto({"id":3293834,"src":"smallest_creative_grace_thumb.jpeg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":32});
															thumbnails[3298979] = clik.newPhoto({"id":3298979,"src":"Exhibition II_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":215});
															thumbnails[3298981] = clik.newPhoto({"id":3298981,"src":"Exhibition I_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":203});
															thumbnails[3319390] = clik.newPhoto({"id":3319390,"src":"40_thumb. Joseph.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":171});
															thumbnails[6102230] = clik.newPhoto({"id":6102230,"src":"Jenny_daisy_red2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":73});
															thumbnails[3278494] = clik.newPhoto({"id":3278494,"src":"SS15_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3278494.html","width":130,"caption":"\"Gloria\"","height":91});
															thumbnails[3278522] = clik.newPhoto({"id":3278522,"src":"SS16_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3278522.html","width":130,"caption":"Archangel","height":337});
															thumbnails[3280736] = clik.newPhoto({"id":3280736,"src":"SS14_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280736.html","width":130,"caption":"Redeemer","height":352});
															thumbnails[3280762] = clik.newPhoto({"id":3280762,"src":"SS611_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280762.html","width":130,"caption":"World in His Hands","height":49});
															thumbnails[3280766] = clik.newPhoto({"id":3280766,"src":"SS41_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280766.html","width":130,"caption":"Gabriel","height":188});
															thumbnails[3280778] = clik.newPhoto({"id":3280778,"src":"SS52_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280778.html","width":130,"caption":"God's Good Earth","height":101});
															thumbnails[3280782] = clik.newPhoto({"id":3280782,"src":"SS121_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280782.html","width":130,"caption":"The Cross","height":168});
															thumbnails[3280787] = clik.newPhoto({"id":3280787,"src":"SS11_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280787.html","width":130,"caption":"Over the Waters","height":39});
															thumbnails[3280793] = clik.newPhoto({"id":3280793,"src":"SS511_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280793.html","width":130,"caption":"The Joy of falling!","height":131});
															thumbnails[3280810] = clik.newPhoto({"id":3280810,"src":"14_thumb.pilgrims.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280810.html","width":130,"caption":"Pilgrim Way","height":172});
															thumbnails[3280818] = clik.newPhoto({"id":3280818,"src":"16_thumb.worshipping.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280818.html","width":130,"caption":"Worshipping","height":94});
															thumbnails[3280825] = clik.newPhoto({"id":3280825,"src":"SS82_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280825.html","width":130,"caption":"\"Grace\"","height":209});
															thumbnails[3280832] = clik.newPhoto({"id":3280832,"src":"SS9_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280832.html","width":130,"caption":"Triumph","height":197});
															thumbnails[3280838] = clik.newPhoto({"id":3280838,"src":"SS7_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280838.html","width":130,"caption":"Jehovah-Raphe,God is my Righteousness.","height":175});
															thumbnails[3280840] = clik.newPhoto({"id":3280840,"src":"SS61_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280840.html","width":130,"caption":"\"Mercy\"","height":92});
															thumbnails[3280843] = clik.newPhoto({"id":3280843,"src":"23_thumb.prayer_flags.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280843.html","width":130,"caption":"Prayer Flags","height":145});
															thumbnails[3280844] = clik.newPhoto({"id":3280844,"src":"SS51_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280844.html","width":130,"caption":"Out of the fire.","height":86});
															thumbnails[3319539] = clik.newPhoto({"id":3319539,"src":"40_thumb. Joseph1.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319539.html","width":130,"caption":"Joseph","height":171});
															thumbnails[3319548] = clik.newPhoto({"id":3319548,"src":"41_thumb. Joseph's Dream.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319548.html","width":130,"caption":"Joseph's Dream","height":174});
															thumbnails[3319554] = clik.newPhoto({"id":3319554,"src":"42_thumb. Joseph's Coat.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319554.html","width":130,"caption":"Josephs coat.","height":167});
															thumbnails[3319564] = clik.newPhoto({"id":3319564,"src":"43_thumb. Prodigal Returns.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319564.html","width":130,"caption":"The Prodigal returns.","height":178});
															thumbnails[3319568] = clik.newPhoto({"id":3319568,"src":"44_thumb. Dawn.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319568.html","width":130,"caption":"Dawn.","height":91});
															thumbnails[3319570] = clik.newPhoto({"id":3319570,"src":"45_thumb. Going Home.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319570.html","width":130,"caption":"Going Home.","height":89});
															thumbnails[3319576] = clik.newPhoto({"id":3319576,"src":"45_thumb. Winter Walk.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319576.html","width":130,"caption":"Winter Walk","height":96});
															thumbnails[3319578] = clik.newPhoto({"id":3319578,"src":"47_thumb. Rainy Day.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319578.html","width":130,"caption":"Rainy Day.","height":93});
															thumbnails[3319587] = clik.newPhoto({"id":3319587,"src":"48_thumb. Tanglewood.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319587.html","width":130,"caption":"Tanglewood","height":91});
															thumbnails[3319595] = clik.newPhoto({"id":3319595,"src":"49_thumb. Bethlehem.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319595.html","width":130,"caption":"Bethlehem.","height":93});
															thumbnails[3319600] = clik.newPhoto({"id":3319600,"src":"50_thumb. St Peters.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319600.html","width":130,"caption":"St Peters, Rome.","height":91});
															thumbnails[3319603] = clik.newPhoto({"id":3319603,"src":"51_thumb. Autumn Leaves.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319603.html","width":130,"caption":"Autumn Leaves.","height":131});
															thumbnails[3319609] = clik.newPhoto({"id":3319609,"src":"52_thumb. Snowy Day.jpg","galleries_id":201595,"server_id":15,"link":"photo_3319609.html","width":130,"caption":"Snowy Day.","height":128});
															thumbnails[3319614] = clik.newPhoto({"id":3319614,"src":"SS56_thumb.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319614.html","width":130,"caption":"Reflections.","height":162});
															thumbnails[3319618] = clik.newPhoto({"id":3319618,"src":"101_thumb. Memories.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319618.html","width":130,"caption":"Memories.","height":88});
															thumbnails[3319621] = clik.newPhoto({"id":3319621,"src":"102_thumb. The Beach.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319621.html","width":130,"caption":"The Beach.","height":93});
															thumbnails[3319625] = clik.newPhoto({"id":3319625,"src":"103_thumb. Early Morning.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319625.html","width":130,"caption":"Early Morning","height":132});
															thumbnails[3319627] = clik.newPhoto({"id":3319627,"src":"104_thumb. Umbrellas.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319627.html","width":130,"caption":"Umbrellas.","height":90});
															thumbnails[3319660] = clik.newPhoto({"id":3319660,"src":"105_thumb. In the Sun.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319660.html","width":130,"caption":"In the Sun.","height":99});
															thumbnails[3319664] = clik.newPhoto({"id":3319664,"src":"106_thumb. Sienna.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319664.html","width":130,"caption":"Sienna","height":171});
															thumbnails[3319670] = clik.newPhoto({"id":3319670,"src":"107_thumb. Sienna Sun.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319670.html","width":130,"caption":"Sienna Sun.","height":100});
															thumbnails[3319924] = clik.newPhoto({"id":3319924,"src":"108_thumb. Safe Harbour.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319924.html","width":130,"caption":"Safe Harbour","height":90});
															thumbnails[3319925] = clik.newPhoto({"id":3319925,"src":"109_thumb. Mooring.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319925.html","width":130,"caption":"Mooring.","height":88});
															thumbnails[3319930] = clik.newPhoto({"id":3319930,"src":"111_thumb. Jessie.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319930.html","width":130,"caption":"Jessie.","height":164});
															thumbnails[3319933] = clik.newPhoto({"id":3319933,"src":"112_thumb. Claudie.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319933.html","width":130,"caption":"Claudie.","height":145});
															thumbnails[3319936] = clik.newPhoto({"id":3319936,"src":"115_thumb. Friends.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319936.html","width":130,"caption":"Friends.","height":101});
															thumbnails[3319945] = clik.newPhoto({"id":3319945,"src":"116_thumb. Lillies.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319945.html","width":130,"caption":"Lilies.","height":130});
															thumbnails[3319949] = clik.newPhoto({"id":3319949,"src":"117_thumb. Lillies II.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319949.html","width":130,"caption":"Lilies 2.","height":90});
															thumbnails[3319955] = clik.newPhoto({"id":3319955,"src":"119_thumb. Spring Tulips.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319955.html","width":130,"caption":"Spring Tulips.","height":101});
															thumbnails[3319959] = clik.newPhoto({"id":3319959,"src":"120_thumb. Masts.jpg","galleries_id":199645,"server_id":15,"link":"photo_3319959.html","width":130,"caption":"Masts","height":102});
															thumbnails[3920668] = clik.newPhoto({"id":3920668,"src":"painting_252_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3920668.html","width":130,"caption":"Coming Home","height":186});
															thumbnails[3920673] = clik.newPhoto({"id":3920673,"src":"painting_253_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3920673.html","width":130,"caption":"Galilee","height":97});
															thumbnails[3920757] = clik.newPhoto({"id":3920757,"src":"painting_2561_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3920757.html","width":130,"caption":"Pinks","height":95});
															thumbnails[3920762] = clik.newPhoto({"id":3920762,"src":"painting_257_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3920762.html","width":130,"caption":"Blue splash","height":96});
															thumbnails[3920780] = clik.newPhoto({"id":3920780,"src":"painting_261_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3920780.html","width":130,"caption":"LIlac haze","height":105});
															thumbnails[3920791] = clik.newPhoto({"id":3920791,"src":"painting_262_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3920791.html","width":130,"caption":"The temple","height":88});
															thumbnails[3923224] = clik.newPhoto({"id":3923224,"src":"painting_263_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3923224.html","width":130,"caption":"oasis","height":102});
															thumbnails[3923233] = clik.newPhoto({"id":3923233,"src":"painting_266_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3923233.html","width":130,"caption":"The return.","height":101});
															thumbnails[3923244] = clik.newPhoto({"id":3923244,"src":"painting_268_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3923244.html","width":130,"caption":"Venice","height":102});
															thumbnails[3923263] = clik.newPhoto({"id":3923263,"src":"painting_274_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3923263.html","width":130,"caption":"Ducks","height":90});
															thumbnails[3923272] = clik.newPhoto({"id":3923272,"src":"painting_2721_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_3923272.html","width":130,"caption":"Flower Market","height":86});
															thumbnails[4719096] = clik.newPhoto({"id":4719096,"src":"a083_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719096.html","width":130,"caption":"Worshippers.","height":167});
															thumbnails[4719119] = clik.newPhoto({"id":4719119,"src":"a084_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719119.html","width":130,"caption":"The Jetty","height":167});
															thumbnails[4719124] = clik.newPhoto({"id":4719124,"src":"a085_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719124.html","width":130,"caption":"Going to worship.","height":101});
															thumbnails[4719127] = clik.newPhoto({"id":4719127,"src":"a086_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719127.html","width":130,"caption":"Spirit of the Lord hovers over the Deep.","height":101});
															thumbnails[4719133] = clik.newPhoto({"id":4719133,"src":"a087_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719133.html","width":130,"caption":"Waterfall.","height":167});
															thumbnails[4719141] = clik.newPhoto({"id":4719141,"src":"a088_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719141.html","width":130,"caption":"Creation.","height":101});
															thumbnails[4719143] = clik.newPhoto({"id":4719143,"src":"a089_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719143.html","width":130,"caption":"Creation. Water.","height":101});
															thumbnails[4719334] = clik.newPhoto({"id":4719334,"src":"a090_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719334.html","width":130,"caption":"The Music of Creation.","height":101});
															thumbnails[4719394] = clik.newPhoto({"id":4719394,"src":"a091_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4719394.html","width":130,"caption":"The Kings' Crown.","height":101});
															thumbnails[4946610] = clik.newPhoto({"id":4946610,"src":"SS6_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4946610.html","width":130,"caption":"Mercy.","height":92});
															thumbnails[4946655] = clik.newPhoto({"id":4946655,"src":"SS5_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_4946655.html","width":130,"caption":"Out of the Fire.","height":86});
															thumbnails[5973911] = clik.newPhoto({"id":5973911,"src":"IMG_6834_thumb.JPG","galleries_id":199644,"server_id":15,"link":"photo_5973911.html","width":130,"caption":"The Menorah","height":98});
															thumbnails[5973973] = clik.newPhoto({"id":5973973,"src":"IMG_68301_thumb.JPG","galleries_id":199644,"server_id":15,"link":"photo_5973973.html","width":130,"caption":"Freedom","height":98});
															thumbnails[5973982] = clik.newPhoto({"id":5973982,"src":"IMG_6828_thumb.JPG","galleries_id":199644,"server_id":15,"link":"photo_5973982.html","width":130,"caption":"Hosts of Heaven.","height":173});
															thumbnails[5973995] = clik.newPhoto({"id":5973995,"src":"IMG_6825_thumb.JPG","galleries_id":199644,"server_id":15,"link":"photo_5973995.html","width":130,"caption":"Celebration.","height":173});
															thumbnails[5974106] = clik.newPhoto({"id":5974106,"src":"IMG_68321_thumb.JPG","galleries_id":199644,"server_id":15,"link":"photo_5974106.html","width":130,"caption":"The Communion Cup","height":98});
															thumbnails[5974153] = clik.newPhoto({"id":5974153,"src":"IMG_6838_thumb.JPG","galleries_id":336871,"server_id":15,"link":"photo_5974153.html","width":130,"caption":"He is with us.","height":149});
															thumbnails[5974158] = clik.newPhoto({"id":5974158,"src":"IMG_6839_thumb.JPG","galleries_id":336871,"server_id":15,"link":"photo_5974158.html","width":130,"caption":"Journey","height":130});
															thumbnails[5974196] = clik.newPhoto({"id":5974196,"src":"IMG_6845_thumb.JPG","galleries_id":336871,"server_id":15,"link":"photo_5974196.html","width":130,"caption":"Strong Tower.","height":149});
															thumbnails[5974201] = clik.newPhoto({"id":5974201,"src":"IMG_68411_thumb.JPG","galleries_id":336871,"server_id":15,"link":"photo_5974201.html","width":130,"caption":"Sheep of His Pasture","height":98});
															thumbnails[5974203] = clik.newPhoto({"id":5974203,"src":"IMG_6843_thumb.JPG","galleries_id":199644,"server_id":15,"link":"photo_5974203.html","width":130,"caption":"King of Kings","height":98});
															thumbnails[5974204] = clik.newPhoto({"id":5974204,"src":"IMG_68231_thumb.JPG","galleries_id":199644,"server_id":15,"link":"photo_5974204.html","width":130,"caption":"The Chalice","height":173});
															thumbnails[7749722] = clik.newPhoto({"id":7749722,"src":"SS4_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_7749722.html","width":130,"caption":"","height":188});
															thumbnails[7749975] = clik.newPhoto({"id":7749975,"src":"SS19_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_7749975.html","width":130,"caption":"An English breeze","height":93});
															thumbnails[7750013] = clik.newPhoto({"id":7750013,"src":"SS22_thumb.jpg","galleries_id":201595,"server_id":15,"link":"photo_7750013.html","width":130,"caption":"Oasis.","height":98});
															thumbnails[7752522] = clik.newPhoto({"id":7752522,"src":"SS34_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7752522.html","width":130,"caption":"All Creation Sings!","height":105});
															thumbnails[7752529] = clik.newPhoto({"id":7752529,"src":"SS341_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7752529.html","width":130,"caption":"All Creation Sings!","height":105});
															thumbnails[7752553] = clik.newPhoto({"id":7752553,"src":"SS36_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7752553.html","width":130,"caption":"The Journey.","height":166});
															thumbnails[7752509] = clik.newPhoto({"id":7752509,"src":"SS32_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7752509.html","width":130,"caption":"Liberate","height":172});
															thumbnails[7752548] = clik.newPhoto({"id":7752548,"src":"SS321_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7752548.html","width":130,"caption":"Liberate","height":172});
															thumbnails[7752491] = clik.newPhoto({"id":7752491,"src":"SS31_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7752491.html","width":130,"caption":"Mother and child.","height":83});
															thumbnails[7752540] = clik.newPhoto({"id":7752540,"src":"SS311_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7752540.html","width":130,"caption":"Mother and Child.","height":83});
															thumbnails[7752517] = clik.newPhoto({"id":7752517,"src":"SS33_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7752517.html","width":130,"caption":"Exile","height":92});
															thumbnails[7752551] = clik.newPhoto({"id":7752551,"src":"SS331_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7752551.html","width":130,"caption":"Exile.","height":92});
															thumbnails[7753551] = clik.newPhoto({"id":7753551,"src":"SS42_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7753551.html","width":130,"caption":"Shield of Faith.","height":206});
															thumbnails[7753579] = clik.newPhoto({"id":7753579,"src":"SS421_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7753579.html","width":130,"caption":"Shield of Faith.","height":206});
															thumbnails[3280739] = clik.newPhoto({"id":3280739,"src":"SS60_thumb.jpg","galleries_id":199644,"server_id":15,"link":"photo_3280739.html","width":130,"caption":"Visitation","height":182});
															thumbnails[5973842] = clik.newPhoto({"id":5973842,"src":"IMG_6823_thumb.JPG","galleries_id":267026,"server_id":15,"link":"photo_5973842.html","width":130,"caption":"The Chalice","height":173});
															thumbnails[7749967] = clik.newPhoto({"id":7749967,"src":"SS13_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7749967.html","width":130,"caption":"The Taj Mahal","height":93});
															thumbnails[7753548] = clik.newPhoto({"id":7753548,"src":"SS411_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7753548.html","width":130,"caption":"At the feet of Jesus.","height":94});
															thumbnails[7753581] = clik.newPhoto({"id":7753581,"src":"SS412_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7753581.html","width":130,"caption":"","height":94});
															thumbnails[7753606] = clik.newPhoto({"id":7753606,"src":"SS601_thumb.jpg","galleries_id":267026,"server_id":15,"link":"photo_7753606.html","width":130,"caption":"Annunciation.","height":182});
															thumbnails[5973967] = clik.newPhoto({"id":5973967,"src":"IMG_6830_thumb.JPG","galleries_id":267026,"server_id":15,"link":"photo_5973967.html","width":130,"caption":"Freedom.","height":98});
															thumbnails[7750023] = clik.newPhoto({"id":7750023,"src":"SS231_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7750023.html","width":130,"caption":"Elephant Ride.","height":94});
															thumbnails[5974072] = clik.newPhoto({"id":5974072,"src":"IMG_68251_thumb.JPG","galleries_id":267026,"server_id":15,"link":"photo_5974072.html","width":130,"caption":"Celebration","height":173});
															thumbnails[7750032] = clik.newPhoto({"id":7750032,"src":"SS241_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7750032.html","width":130,"caption":"Indian Palace","height":70});
															thumbnails[5974102] = clik.newPhoto({"id":5974102,"src":"IMG_6832_thumb.JPG","galleries_id":267026,"server_id":15,"link":"photo_5974102.html","width":130,"caption":"The Communion Cup.","height":98});
															thumbnails[7749943] = clik.newPhoto({"id":7749943,"src":"SS18_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7749943.html","width":130,"caption":"The Burning Bush","height":97});
															thumbnails[7749949] = clik.newPhoto({"id":7749949,"src":"SS181_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7749949.html","width":130,"caption":"Burning Bush","height":97});
															thumbnails[7750038] = clik.newPhoto({"id":7750038,"src":"SS25_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7750038.html","width":130,"caption":"Indian scene.","height":95});
															thumbnails[5973987] = clik.newPhoto({"id":5973987,"src":"IMG_68281_thumb.JPG","galleries_id":267026,"server_id":15,"link":"photo_5973987.html","width":130,"caption":"Hosts of Heaven","height":173});
															thumbnails[7749984] = clik.newPhoto({"id":7749984,"src":"SS20_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7749984.html","width":130,"caption":"\"This is Holy Ground\"","height":87});
															thumbnails[5974199] = clik.newPhoto({"id":5974199,"src":"IMG_6841_thumb.JPG","galleries_id":267026,"server_id":15,"link":"photo_5974199.html","width":130,"caption":"Sheep of His Pasture.","height":98});
															thumbnails[7750101] = clik.newPhoto({"id":7750101,"src":"SS301_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7750101.html","width":130,"caption":"Indian Doorway.","height":175});
															thumbnails[7752569] = clik.newPhoto({"id":7752569,"src":"SS37_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7752569.html","width":130,"caption":"Bluebells.","height":74});
															thumbnails[7752577] = clik.newPhoto({"id":7752577,"src":"SS371_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7752577.html","width":130,"caption":"Bluebell Wood.","height":74});
															thumbnails[7752586] = clik.newPhoto({"id":7752586,"src":"SS38_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7752586.html","width":130,"caption":"'Thinking of you.'","height":175});
															thumbnails[7752593] = clik.newPhoto({"id":7752593,"src":"SS381_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7752593.html","width":130,"caption":"\"Thinking of you\"","height":175});
															thumbnails[7749932] = clik.newPhoto({"id":7749932,"src":"SS2_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7749932.html","width":130,"caption":"A Quiet Corner.","height":187});
															thumbnails[7749955] = clik.newPhoto({"id":7749955,"src":"SS21_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7749955.html","width":130,"caption":"A quiet Corner.","height":187});
															thumbnails[7750077] = clik.newPhoto({"id":7750077,"src":"SS271_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7750077.html","width":130,"caption":"Patience.","height":202});
															thumbnails[7750095] = clik.newPhoto({"id":7750095,"src":"SS30_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7750095.html","width":130,"caption":"Indian Doorway.","height":175});
															thumbnails[7750070] = clik.newPhoto({"id":7750070,"src":"SS261_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7750070.html","width":130,"caption":"Mountain Range, Nepal.","height":92});
															thumbnails[7750074] = clik.newPhoto({"id":7750074,"src":"SS27_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7750074.html","width":130,"caption":"Waiting.","height":202});
															thumbnails[7750084] = clik.newPhoto({"id":7750084,"src":"SS28_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7750084.html","width":130,"caption":"Serenity.","height":173});
															thumbnails[7750089] = clik.newPhoto({"id":7750089,"src":"SS29_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7750089.html","width":130,"caption":"Asleep.","height":113});
															thumbnails[7749938] = clik.newPhoto({"id":7749938,"src":"SS40_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7749938.html","width":130,"caption":"Freedom.","height":214});
															thumbnails[7750066] = clik.newPhoto({"id":7750066,"src":"SS26_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7750066.html","width":130,"caption":"Mountain range, Nepal.","height":92});
															thumbnails[7750028] = clik.newPhoto({"id":7750028,"src":"SS24_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7750028.html","width":130,"caption":"An Indian Palace","height":70});
															thumbnails[7750043] = clik.newPhoto({"id":7750043,"src":"SS251_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7750043.html","width":130,"caption":"Indian Scene.","height":95});
															thumbnails[7750019] = clik.newPhoto({"id":7750019,"src":"SS23_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7750019.html","width":130,"caption":"Elephant ride.","height":94});
															thumbnails[7759408] = clik.newPhoto({"id":7759408,"src":"SS43_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7759408.html","width":130,"caption":"Jacobs struggle with the Angel.","height":199});
															thumbnails[7749666] = clik.newPhoto({"id":7749666,"src":"SS1_thumb.jpg","galleries_id":336871,"server_id":15,"link":"photo_7749666.html","width":130,"caption":"Taj Mahal","height":93});
															thumbnails[7754282] = clik.newPhoto({"id":7754282,"src":"SS512_thumb.jpg","galleries_id":336870,"server_id":15,"link":"photo_7754282.html","width":130,"caption":"the joy of falling!","height":131});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[336870] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1. New paintings for sale May 2011","link":"gallery_336870.html","maxRecords":0.0,"photoIDs":[7752529.0,7752548.0,7752540.0,7752551.0,7753579.0,7749967.0,7753548.0,7750023.0,7750032.0,7749949.0,7750038.0,7750101.0,7752577.0,7752593.0,7749955.0,7750077.0,7750070.0,7754282.0],"skipIndex":0,"section_code":"gallery","featured_images":"7754282,7753579,7753548,7752593,7752577,7752551,7752548,7752540,7752529,7750101","id":336870,"singleSection":false});				  						galleries[336871] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2. New cards for sale May 2011","link":"gallery_336871.html","maxRecords":0.0,"photoIDs":[5974153.0,5974158.0,5974196.0,5974201.0,7752522.0,7752553.0,7752509.0,7752491.0,7752517.0,7753551.0,7753581.0,7749943.0,7749984.0,7752569.0,7752586.0,7749932.0,7750095.0,7750074.0,7750084.0,7750089.0,7749938.0,7750066.0,7750028.0,7750043.0,7750019.0,7759408.0,7749666.0],"skipIndex":0,"section_code":"gallery","featured_images":"7759408,7753581,7753551,7752586,7752569,7752553,7752522,7752517,7752509,7752491","id":336871,"singleSection":false});				  						galleries[267026] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"gallery 3. Original Paintings for sale.","link":"gallery_267026.html","maxRecords":0.0,"photoIDs":[4719096.0,4719119.0,4719124.0,4719127.0,4719133.0,4719141.0,4719143.0,4719334.0,4719394.0,4946610.0,4946655.0,5973842.0,7753606.0,5973967.0,5974072.0,5974102.0,5973987.0,5974199.0],"skipIndex":0,"section_code":"gallery","featured_images":"7753606,5974199,5974102,5974072,5973987,5973967,5973842,4946655,4946610,4719394","id":267026,"singleSection":false});				  						galleries[199644] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 4. Spirit Greetings Cards","link":"gallery_199644.html","maxRecords":0.0,"photoIDs":[3278494.0,3278522.0,3280736.0,3280762.0,3280766.0,3280778.0,3280782.0,3280787.0,3280793.0,3280810.0,3280818.0,3280825.0,3280832.0,3280838.0,3280840.0,3280843.0,3280844.0,5973911.0,5973973.0,5973982.0,5973995.0,5974106.0,5974203.0,5974204.0,7749722.0,3280739.0],"skipIndex":0,"section_code":"gallery","featured_images":"7749722,5974204,5974203,5974106,5973995,5973982,5973973,5973911,3280844,3280843","id":199644,"singleSection":false});				  						galleries[199645] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 5. Everyday Greetings Cards","link":"gallery_199645.html","maxRecords":0.0,"photoIDs":[3319614.0,3319618.0,3319621.0,3319625.0,3319627.0,3319660.0,3319664.0,3319670.0,3319924.0,3319925.0,3319930.0,3319933.0,3319936.0,3319945.0,3319949.0,3319955.0,3319959.0],"skipIndex":0,"section_code":"gallery","featured_images":"3319959,3319955,3319945,3319936,3319933,3319930,3319925,3319924,3319670,3319664,3319660,3319627,3319625,3319621,3319618,3319614","id":199645,"singleSection":false});				  						galleries[201595] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 6. Eddie Askew Greetings Cards","link":"gallery_201595.html","maxRecords":0.0,"photoIDs":[3319539.0,3319548.0,3319554.0,3319564.0,3319568.0,3319570.0,3319576.0,3319578.0,3319587.0,3319595.0,3319600.0,3319603.0,3319609.0,3920668.0,3920673.0,3920757.0,3920762.0,3920780.0,3920791.0,3923224.0,3923233.0,3923244.0,3923263.0,3923272.0,7749975.0,7750013.0],"skipIndex":0,"section_code":"gallery","featured_images":"3923272,3923263,3923244,3923233,3920762,3920673,3920668,3319609,3319603,3319600,3319595,3319587,3319578,3319576,3319570,3319568,3319564,3319554,3319548,3319539","id":201595,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3923272,3923263,3923244,3923233,3923224,3920780,3920762,3920757,3920673,3920668,3280843,3280832,3280825,3280818,3280793,3280778,3278522,3278494,6102230';
imageSets[2] = '3923272,3923263,3923244,3923233,3920762,3920673,3920668,3319959,3319955,3319945,3319936,3319933,3319930,3319925,3319924,3319670,3319664,3319660,3319627,3319625,3319621,3319618,3319614,3319609,3319603,3319600,3319595,3319587,3319578,3319576,3319570,3319568,3319564,3319554,3319548,3319539';
imageSets[3] = '7759408,7754282,7753606,7753581,7753579,7753551,7753548,7752593,7752586,7752577,7752569,7752553,7752551,7752548,7752540,7752529,7752522,7752517,7752509,7752491,7750101,7750095,7750089,7750084,7750077,7750074,7750070,7750066,7750043,7750038,7750032,7750028,7750023,7750019,7750013,7749984,7749975,7749967,7749955,7749949,7749943,7749938,7749932,7749722,7749666,6102230,5974204,5974203,5974201,5974199';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jennyaskew/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jennyaskew/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Creative Grace: ' + 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>Artist: </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="JENNYASKEW">';
			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;
	}
}

			

