window.thumbnails = {};
															thumbnails[7606634] = clik.newPhoto({"id":7606634,"src":"290_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606634.html","width":130,"caption":"Jess","height":195});
															thumbnails[7606637] = clik.newPhoto({"id":7606637,"src":"570_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606637.html","width":130,"caption":"Ella Rose","height":153});
															thumbnails[7606702] = clik.newPhoto({"id":7606702,"src":"200_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606702.html","width":130,"caption":"Sinopa Rin","height":176});
															thumbnails[7606778] = clik.newPhoto({"id":7606778,"src":"1790_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606778.html","width":130,"caption":"NikkiMaria","height":181});
															thumbnails[7606779] = clik.newPhoto({"id":7606779,"src":"1820_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606779.html","width":130,"caption":"NikkiMarie","height":170});
															thumbnails[7606823] = clik.newPhoto({"id":7606823,"src":"2440_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606823.html","width":130,"caption":"Helen","height":200});
															thumbnails[7606825] = clik.newPhoto({"id":7606825,"src":"2460_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606825.html","width":130,"caption":"Helen","height":195});
															thumbnails[7606867] = clik.newPhoto({"id":7606867,"src":"2830_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606867.html","width":130,"caption":"Nikki Marie","height":166});
															thumbnails[7606868] = clik.newPhoto({"id":7606868,"src":"2860_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606868.html","width":130,"caption":"Nikki Marie","height":195});
															thumbnails[7606886] = clik.newPhoto({"id":7606886,"src":"3020_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7606886.html","width":130,"caption":"Sophie","height":182});
															thumbnails[7609022] = clik.newPhoto({"id":7609022,"src":"5260_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7609022.html","width":130,"caption":"Laura May","height":181});
															thumbnails[7609026] = clik.newPhoto({"id":7609026,"src":"5120_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7609026.html","width":130,"caption":"Ella Rose","height":195});
															thumbnails[7609029] = clik.newPhoto({"id":7609029,"src":"3670_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7609029.html","width":130,"caption":"Sophie","height":110});
															thumbnails[7609033] = clik.newPhoto({"id":7609033,"src":"5100_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7609033.html","width":130,"caption":"Ella Rose","height":195});
															thumbnails[7711797] = clik.newPhoto({"id":7711797,"src":"5670_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7711797.html","width":130,"caption":"Harriett","height":173});
															thumbnails[7711801] = clik.newPhoto({"id":7711801,"src":"5680_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_7711801.html","width":130,"caption":"Harriett","height":195});
															thumbnails[2923178] = clik.newPhoto({"id":2923178,"src":"20_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_2923178.html","width":130,"caption":"Punkarella and Just Some Art Kid","height":193});
															thumbnails[2923179] = clik.newPhoto({"id":2923179,"src":"30_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_2923179.html","width":130,"caption":"Punkarella","height":130});
															thumbnails[2923181] = clik.newPhoto({"id":2923181,"src":"40_thumb.jpg","galleries_id":8522,"server_id":18,"link":"photo_2923181.html","width":130,"caption":"Siobhan Abigail","height":179});
															thumbnails[7606622] = clik.newPhoto({"id":7606622,"src":"IMG_2614_thumb.jpg","galleries_id":417543,"server_id":18,"link":"photo_7606622.html","width":130,"caption":"Binky","height":194});
															thumbnails[7606630] = clik.newPhoto({"id":7606630,"src":"5500_thumb.jpg","galleries_id":417542,"server_id":18,"link":"photo_7606630.html","width":130,"caption":"Button","height":198});
															thumbnails[7606639] = clik.newPhoto({"id":7606639,"src":"610_thumb.jpg","galleries_id":417776,"server_id":18,"link":"photo_7606639.html","width":130,"caption":"Monika","height":170});
															thumbnails[7606642] = clik.newPhoto({"id":7606642,"src":"700_thumb.jpg","galleries_id":417768,"server_id":18,"link":"photo_7606642.html","width":130,"caption":"Raphaella","height":174});
															thumbnails[7606699] = clik.newPhoto({"id":7606699,"src":"770_thumb.jpg","galleries_id":417768,"server_id":18,"link":"photo_7606699.html","width":130,"caption":"Raphaella","height":195});
															thumbnails[7606701] = clik.newPhoto({"id":7606701,"src":"660_thumb.jpg","galleries_id":417542,"server_id":18,"link":"photo_7606701.html","width":130,"caption":"Button","height":174});
															thumbnails[7606704] = clik.newPhoto({"id":7606704,"src":"1230_thumb.jpg","galleries_id":417771,"server_id":18,"link":"photo_7606704.html","width":130,"caption":"Leah Axl","height":191});
															thumbnails[7606705] = clik.newPhoto({"id":7606705,"src":"1280_thumb.jpg","galleries_id":417771,"server_id":18,"link":"photo_7606705.html","width":130,"caption":"Leah Axl","height":195});
															thumbnails[7606766] = clik.newPhoto({"id":7606766,"src":"1460_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7606766.html","width":130,"caption":"Emma","height":183});
															thumbnails[7606768] = clik.newPhoto({"id":7606768,"src":"1700_thumb.jpg","galleries_id":417771,"server_id":18,"link":"photo_7606768.html","width":130,"caption":"Leah Axl","height":180});
															thumbnails[7606773] = clik.newPhoto({"id":7606773,"src":"1380_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7606773.html","width":130,"caption":"Emma","height":189});
															thumbnails[7606826] = clik.newPhoto({"id":7606826,"src":"2530_thumb.jpg","galleries_id":417768,"server_id":18,"link":"photo_7606826.html","width":130,"caption":"Raphaella","height":179});
															thumbnails[7606827] = clik.newPhoto({"id":7606827,"src":"2520_thumb.jpg","galleries_id":417768,"server_id":18,"link":"photo_7606827.html","width":130,"caption":"Raphaella","height":134});
															thumbnails[7606828] = clik.newPhoto({"id":7606828,"src":"2550_thumb.jpg","galleries_id":417768,"server_id":18,"link":"photo_7606828.html","width":130,"caption":"Raphaella","height":189});
															thumbnails[7606829] = clik.newPhoto({"id":7606829,"src":"2600_thumb.jpg","galleries_id":417768,"server_id":18,"link":"photo_7606829.html","width":130,"caption":"Rahaella","height":195});
															thumbnails[7606830] = clik.newPhoto({"id":7606830,"src":"2650_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_7606830.html","width":130,"caption":"ERosanne","height":197});
															thumbnails[7606849] = clik.newPhoto({"id":7606849,"src":"2660_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_7606849.html","width":130,"caption":"ERosanne","height":201});
															thumbnails[7606851] = clik.newPhoto({"id":7606851,"src":"2670_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_7606851.html","width":130,"caption":"ERosanne","height":85});
															thumbnails[7606860] = clik.newPhoto({"id":7606860,"src":"2720_thumb.jpg","galleries_id":417771,"server_id":18,"link":"photo_7606860.html","width":130,"caption":"Leah Axl","height":193});
															thumbnails[7606872] = clik.newPhoto({"id":7606872,"src":"2930_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_7606872.html","width":130,"caption":"ERosanne","height":181});
															thumbnails[7606887] = clik.newPhoto({"id":7606887,"src":"3100_thumb.jpg","galleries_id":417542,"server_id":18,"link":"photo_7606887.html","width":130,"caption":"Button","height":159});
															thumbnails[7609007] = clik.newPhoto({"id":7609007,"src":"5560_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_7609007.html","width":130,"caption":"ERosanne","height":139});
															thumbnails[7609010] = clik.newPhoto({"id":7609010,"src":"5340_thumb.jpg","galleries_id":417545,"server_id":18,"link":"photo_7609010.html","width":130,"caption":"Charlotte Barnes","height":87});
															thumbnails[7609012] = clik.newPhoto({"id":7609012,"src":"5410_thumb.jpg","galleries_id":417545,"server_id":18,"link":"photo_7609012.html","width":130,"caption":"Charlotte Barnes","height":172});
															thumbnails[7609019] = clik.newPhoto({"id":7609019,"src":"4990a_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_7609019.html","width":130,"caption":"Cheryl Elizabeth","height":179});
															thumbnails[7715379] = clik.newPhoto({"id":7715379,"src":"IMG_4870_thumb.jpg","galleries_id":417545,"server_id":18,"link":"photo_7715379.html","width":130,"caption":"Charlotte Barnes","height":181});
															thumbnails[7715381] = clik.newPhoto({"id":7715381,"src":"IMG_4948_thumb.jpg","galleries_id":417545,"server_id":18,"link":"photo_7715381.html","width":130,"caption":"Charlotte Barnes","height":160});
															thumbnails[7734784] = clik.newPhoto({"id":7734784,"src":"5690_thumb.jpg","galleries_id":417768,"server_id":18,"link":"photo_7734784.html","width":130,"caption":"Raphaella","height":183});
															thumbnails[7774165] = clik.newPhoto({"id":7774165,"src":"5860_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7774165.html","width":130,"caption":"Emma Jane","height":177});
															thumbnails[7774256] = clik.newPhoto({"id":7774256,"src":"5870_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7774256.html","width":130,"caption":"Emma Jane","height":87});
															thumbnails[7775479] = clik.newPhoto({"id":7775479,"src":"5810_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7775479.html","width":130,"caption":"Emma Jane","height":161});
															thumbnails[7779876] = clik.newPhoto({"id":7779876,"src":"5880_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7779876.html","width":130,"caption":"Emma Jane","height":167});
															thumbnails[7779923] = clik.newPhoto({"id":7779923,"src":"5890_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7779923.html","width":130,"caption":"Emma Jane","height":195});
															thumbnails[7780906] = clik.newPhoto({"id":7780906,"src":"5900_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7780906.html","width":130,"caption":"Emma Jane","height":87});
															thumbnails[7780910] = clik.newPhoto({"id":7780910,"src":"5910_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7780910.html","width":130,"caption":"Emma Jane","height":87});
															thumbnails[7785189] = clik.newPhoto({"id":7785189,"src":"5920_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7785189.html","width":130,"caption":"Emma Jane","height":195});
															thumbnails[7785265] = clik.newPhoto({"id":7785265,"src":"5930_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7785265.html","width":130,"caption":"Emma Jane","height":169});
															thumbnails[7785266] = clik.newPhoto({"id":7785266,"src":"5830_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7785266.html","width":130,"caption":"Emma Jane","height":195});
															thumbnails[7785270] = clik.newPhoto({"id":7785270,"src":"5750_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7785270.html","width":130,"caption":"Emma Jane","height":188});
															thumbnails[7814297] = clik.newPhoto({"id":7814297,"src":"5960_thumb.jpeg","galleries_id":420091,"server_id":18,"link":"photo_7814297.html","width":130,"caption":"Emma Jane","height":195});
															thumbnails[7814801] = clik.newPhoto({"id":7814801,"src":"5980_thumb.jpg","galleries_id":420091,"server_id":18,"link":"photo_7814801.html","width":130,"caption":"Emma Jane","height":70});
															thumbnails[7839285] = clik.newPhoto({"id":7839285,"src":"6030_thumb.jpg","galleries_id":423070,"server_id":18,"link":"photo_7839285.html","width":130,"caption":"Joceline","height":85});
															thumbnails[7839289] = clik.newPhoto({"id":7839289,"src":"6040_thumb.jpg","galleries_id":423070,"server_id":18,"link":"photo_7839289.html","width":130,"caption":"Joceline","height":195});
															thumbnails[7839292] = clik.newPhoto({"id":7839292,"src":"6050_thumb.jpg","galleries_id":423070,"server_id":18,"link":"photo_7839292.html","width":130,"caption":"Joceline","height":87});
															thumbnails[7839296] = clik.newPhoto({"id":7839296,"src":"6060_thumb.jpg","galleries_id":423070,"server_id":18,"link":"photo_7839296.html","width":130,"caption":"Joceline","height":177});
															thumbnails[7839298] = clik.newPhoto({"id":7839298,"src":"6070_thumb.jpg","galleries_id":423070,"server_id":18,"link":"photo_7839298.html","width":130,"caption":"Joceline","height":195});
															thumbnails[7839301] = clik.newPhoto({"id":7839301,"src":"6080_thumb.jpg","galleries_id":423070,"server_id":18,"link":"photo_7839301.html","width":130,"caption":"Joceline","height":165});
															thumbnails[7839303] = clik.newPhoto({"id":7839303,"src":"6090_thumb.jpg","galleries_id":423070,"server_id":18,"link":"photo_7839303.html","width":130,"caption":"Joceline","height":195});
															thumbnails[7847190] = clik.newPhoto({"id":7847190,"src":"61003_thumb.jpg","galleries_id":423070,"server_id":18,"link":"photo_7847190.html","width":130,"caption":"Joceline","height":195});
															thumbnails[7874464] = clik.newPhoto({"id":7874464,"src":"6120_thumb.jpg","galleries_id":425078,"server_id":18,"link":"photo_7874464.html","width":130,"caption":"Charlotte Fayers","height":183});
															thumbnails[7874466] = clik.newPhoto({"id":7874466,"src":"6110_thumb.jpg","galleries_id":425078,"server_id":18,"link":"photo_7874466.html","width":130,"caption":"Charlotte Fayers","height":212});
															thumbnails[7874468] = clik.newPhoto({"id":7874468,"src":"6130_thumb.jpg","galleries_id":425078,"server_id":18,"link":"photo_7874468.html","width":130,"caption":"Charlotte Fayers","height":182});
															thumbnails[7994272] = clik.newPhoto({"id":7994272,"src":"IMG_7104web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_7994272.html","width":130,"caption":"Cheryl Elizabeth","height":154});
															thumbnails[7994273] = clik.newPhoto({"id":7994273,"src":"IMG_7156web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_7994273.html","width":130,"caption":"Cheryl Elizabeth","height":197});
															thumbnails[7994277] = clik.newPhoto({"id":7994277,"src":"IMG_7158web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_7994277.html","width":130,"caption":"Cheryl Elizabeth","height":184});
															thumbnails[7994459] = clik.newPhoto({"id":7994459,"src":"IMG_7609web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_7994459.html","width":130,"caption":"Cheryl Elizabeth","height":204});
															thumbnails[8000960] = clik.newPhoto({"id":8000960,"src":"IMG_7787web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8000960.html","width":130,"caption":"Cheryl Elizabeth","height":190});
															thumbnails[8000981] = clik.newPhoto({"id":8000981,"src":"IMG_7767web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8000981.html","width":130,"caption":"Cheryl Elizabeth","height":168});
															thumbnails[8000986] = clik.newPhoto({"id":8000986,"src":"IMG_7726web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8000986.html","width":130,"caption":"Cheryl Elizabeth","height":171});
															thumbnails[8013982] = clik.newPhoto({"id":8013982,"src":"IMG_7502web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8013982.html","width":130,"caption":"Cheryl Elizabeth","height":114});
															thumbnails[8013984] = clik.newPhoto({"id":8013984,"src":"IMG_7509web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8013984.html","width":130,"caption":"Cheryl Elizabeth","height":164});
															thumbnails[8013989] = clik.newPhoto({"id":8013989,"src":"IMG_7510web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8013989.html","width":130,"caption":"","height":161});
															thumbnails[8013990] = clik.newPhoto({"id":8013990,"src":"IMG_7511web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8013990.html","width":130,"caption":"Cheryl Elizabeth","height":161});
															thumbnails[8013993] = clik.newPhoto({"id":8013993,"src":"IMG_7517web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8013993.html","width":130,"caption":"Cheryl Elizabeth","height":136});
															thumbnails[8013994] = clik.newPhoto({"id":8013994,"src":"IMG_7523web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8013994.html","width":130,"caption":"Cheryl Elizabeth","height":111});
															thumbnails[8014604] = clik.newPhoto({"id":8014604,"src":"IMG_7683web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8014604.html","width":130,"caption":"Cheryl Elizabeth","height":172});
															thumbnails[8023799] = clik.newPhoto({"id":8023799,"src":"IMG_7649web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8023799.html","width":130,"caption":"Cheryl Elizabeth","height":190});
															thumbnails[8023800] = clik.newPhoto({"id":8023800,"src":"IMG_7654web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8023800.html","width":130,"caption":"Cheryl Elizabeth","height":195});
															thumbnails[8023801] = clik.newPhoto({"id":8023801,"src":"IMG_7630web_thumb.jpg","galleries_id":429757,"server_id":18,"link":"photo_8023801.html","width":130,"caption":"Cheryl Elizabeth","height":195});
															thumbnails[8028103] = clik.newPhoto({"id":8028103,"src":"6470_thumb.jpg","galleries_id":431084,"server_id":18,"link":"photo_8028103.html","width":130,"caption":"Miss Pixie","height":195});
															thumbnails[8028104] = clik.newPhoto({"id":8028104,"src":"6450_thumb.jpg","galleries_id":431084,"server_id":18,"link":"photo_8028104.html","width":130,"caption":"Miss Pixie","height":163});
															thumbnails[8028105] = clik.newPhoto({"id":8028105,"src":"6440_thumb.jpg","galleries_id":431084,"server_id":18,"link":"photo_8028105.html","width":130,"caption":"Miss Pixie","height":163});
															thumbnails[8069696] = clik.newPhoto({"id":8069696,"src":"6530_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8069696.html","width":130,"caption":"Cassie Jade ","height":175});
															thumbnails[8070817] = clik.newPhoto({"id":8070817,"src":"6540_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8070817.html","width":130,"caption":"Cassie Jade ","height":172});
															thumbnails[8071868] = clik.newPhoto({"id":8071868,"src":"6570_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8071868.html","width":130,"caption":"Cassie Jade ","height":195});
															thumbnails[8072057] = clik.newPhoto({"id":8072057,"src":"6600_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8072057.html","width":130,"caption":"Cassie Jade ","height":77});
															thumbnails[8073005] = clik.newPhoto({"id":8073005,"src":"6610_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8073005.html","width":130,"caption":"Cassie Jade ","height":83});
															thumbnails[8074297] = clik.newPhoto({"id":8074297,"src":"6630_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8074297.html","width":130,"caption":"Cassie Jade ","height":195});
															thumbnails[8074299] = clik.newPhoto({"id":8074299,"src":"6620_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8074299.html","width":130,"caption":"Casie Jade","height":171});
															thumbnails[8088749] = clik.newPhoto({"id":8088749,"src":"6650_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8088749.html","width":130,"caption":"Cassie Jade ","height":190});
															thumbnails[8193037] = clik.newPhoto({"id":8193037,"src":"6830_thumb.jpg","galleries_id":437310,"server_id":18,"link":"photo_8193037.html","width":130,"caption":"Nadine","height":178});
															thumbnails[8193038] = clik.newPhoto({"id":8193038,"src":"6820_thumb.jpg","galleries_id":437310,"server_id":18,"link":"photo_8193038.html","width":130,"caption":"Nadine","height":201});
															thumbnails[8214772] = clik.newPhoto({"id":8214772,"src":"6920_thumb.jpg","galleries_id":437310,"server_id":18,"link":"photo_8214772.html","width":130,"caption":"Nadine","height":195});
															thumbnails[8214775] = clik.newPhoto({"id":8214775,"src":"6910_thumb.jpg","galleries_id":437310,"server_id":18,"link":"photo_8214775.html","width":130,"caption":"Nadine","height":195});
															thumbnails[8217025] = clik.newPhoto({"id":8217025,"src":"6960_thumb.jpg","galleries_id":437310,"server_id":18,"link":"photo_8217025.html","width":130,"caption":"Nadine","height":195});
															thumbnails[8217078] = clik.newPhoto({"id":8217078,"src":"6600_7269E85D-1EC9-D45B-1C0C92943E11DE4E_thumb.jpg","galleries_id":432469,"server_id":18,"link":"photo_8217078.html","width":130,"caption":"whosthatgirl","height":77});
															thumbnails[8270220] = clik.newPhoto({"id":8270220,"src":"7170_thumb.jpg","galleries_id":440407,"server_id":18,"link":"photo_8270220.html","width":130,"caption":"Karen","height":178});
															thumbnails[8270223] = clik.newPhoto({"id":8270223,"src":"7160_thumb.jpg","galleries_id":440407,"server_id":18,"link":"photo_8270223.html","width":130,"caption":"Karen","height":164});
															thumbnails[8270227] = clik.newPhoto({"id":8270227,"src":"7120_thumb.jpg","galleries_id":440407,"server_id":18,"link":"photo_8270227.html","width":130,"caption":"Karen","height":185});
															thumbnails[8270231] = clik.newPhoto({"id":8270231,"src":"7110_thumb.jpg","galleries_id":440407,"server_id":18,"link":"photo_8270231.html","width":130,"caption":"Karen","height":167});
															thumbnails[8270234] = clik.newPhoto({"id":8270234,"src":"7100_thumb.jpg","galleries_id":440407,"server_id":18,"link":"photo_8270234.html","width":130,"caption":"Karen","height":195});
															thumbnails[8270239] = clik.newPhoto({"id":8270239,"src":"7090_thumb.jpg","galleries_id":440407,"server_id":18,"link":"photo_8270239.html","width":130,"caption":"Karen","height":195});
															thumbnails[8270242] = clik.newPhoto({"id":8270242,"src":"7080_thumb.jpg","galleries_id":440407,"server_id":18,"link":"photo_8270242.html","width":130,"caption":"Karen","height":182});
															thumbnails[8270248] = clik.newPhoto({"id":8270248,"src":"7140_thumb.jpg","galleries_id":440407,"server_id":18,"link":"photo_8270248.html","width":130,"caption":"Karen","height":172});
															thumbnails[8782302] = clik.newPhoto({"id":8782302,"src":"IMG_5318web_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8782302.html","width":130,"caption":"Winter Baby","height":195});
															thumbnails[8783784] = clik.newPhoto({"id":8783784,"src":"IMG_5361bwWeb_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8783784.html","width":130,"caption":"","height":195});
															thumbnails[8783788] = clik.newPhoto({"id":8783788,"src":"IMG_5354bwWeb_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8783788.html","width":130,"caption":"","height":87});
															thumbnails[8783789] = clik.newPhoto({"id":8783789,"src":"IMG_5240bwWeb_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8783789.html","width":130,"caption":"","height":133});
															thumbnails[8786850] = clik.newPhoto({"id":8786850,"src":"IMG_5216bwWeb_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8786850.html","width":130,"caption":"","height":137});
															thumbnails[8786854] = clik.newPhoto({"id":8786854,"src":"IMG_5240bwWeb_9BA66C57-24E8-5EC4-4F516204C94A325E_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8786854.html","width":130,"caption":"","height":133});
															thumbnails[8786857] = clik.newPhoto({"id":8786857,"src":"IMG_5264bwWeb_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8786857.html","width":130,"caption":"","height":175});
															thumbnails[8786859] = clik.newPhoto({"id":8786859,"src":"IMG_5272bwWeb_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8786859.html","width":130,"caption":"","height":195});
															thumbnails[8786863] = clik.newPhoto({"id":8786863,"src":"IMG_5274bwWeb_thumb.jpg","galleries_id":417773,"server_id":18,"link":"photo_8786863.html","width":130,"caption":"","height":195});
															thumbnails[8825546] = clik.newPhoto({"id":8825546,"src":"IMG_5554web_thumb.jpg","galleries_id":425078,"server_id":18,"link":"photo_8825546.html","width":130,"caption":"","height":120});
															thumbnails[2926098] = clik.newPhoto({"id":2926098,"src":"120_thumb.jpg","galleries_id":417543,"server_id":18,"link":"photo_2926098.html","width":130,"caption":"Binky","height":185});
															thumbnails[2926137] = clik.newPhoto({"id":2926137,"src":"130_thumb.jpg","galleries_id":417543,"server_id":18,"link":"photo_2926137.html","width":130,"caption":"Binky","height":194});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[417543] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Binky","link":"section500236_417543.html","maxRecords":0.0,"photoIDs":[7606622.0,2926098.0,2926137.0],"skipIndex":0,"section_code":"section500236","featured_images":7606622.0,"id":417543,"singleSection":false});				  						galleries[417542] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Button","link":"section500236_417542.html","maxRecords":0.0,"photoIDs":[7606630.0,7606701.0,7606887.0],"skipIndex":0,"section_code":"section500236","featured_images":"7606887,7606701,7606630","id":417542,"singleSection":false});				  						galleries[432469] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cassie Jade","link":"section500236_432469.html","maxRecords":0.0,"photoIDs":[8069696.0,8070817.0,8071868.0,8072057.0,8073005.0,8074297.0,8074299.0,8088749.0,8217078.0],"skipIndex":0,"section_code":"section500236","featured_images":"8217078,8088749,8074299,8074297,8073005,8072057,8071868,8070817,8069696","id":432469,"singleSection":false});				  						galleries[417545] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Charlotte Barnes","link":"section500236_417545.html","maxRecords":0.0,"photoIDs":[7609010.0,7609012.0,7715379.0,7715381.0],"skipIndex":0,"section_code":"section500236","featured_images":"7715381,7715379,7609012,7609010","id":417545,"singleSection":false});				  						galleries[425078] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Charlotte Fayers","link":"section500236_425078.html","maxRecords":0.0,"photoIDs":[7874464.0,7874466.0,7874468.0,8825546.0],"skipIndex":0,"section_code":"section500236","featured_images":"8825546,7874468,7874466,7874464","id":425078,"singleSection":false});				  						galleries[429757] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cheryl Elizabeth","link":"section500236_429757.html","maxRecords":0.0,"photoIDs":[7609019.0,7994272.0,7994273.0,7994277.0,7994459.0,8000960.0,8000981.0,8000986.0,8013982.0,8013984.0,8013989.0,8013990.0,8013993.0,8013994.0,8014604.0,8023799.0,8023800.0,8023801.0],"skipIndex":0,"section_code":"section500236","featured_images":"8023801,8023800,8023799,8014604,8013994,8013993,8013990,8013989,8013984,8013982","id":429757,"singleSection":false});				  						galleries[420091] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Emma Jane","link":"section500236_420091.html","maxRecords":0.0,"photoIDs":[7606766.0,7606773.0,7774165.0,7774256.0,7775479.0,7779876.0,7779923.0,7780906.0,7780910.0,7785189.0,7785265.0,7785266.0,7785270.0,7814297.0,7814801.0],"skipIndex":0,"section_code":"section500236","featured_images":"7814801,7814297,7785270,7785266,7785265,7785189,7780910,7780906,7779923,7779876","id":420091,"singleSection":false});				  						galleries[440407] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Enaud","link":"section500236_440407.html","maxRecords":0.0,"photoIDs":[8270220.0,8270223.0,8270227.0,8270231.0,8270234.0,8270239.0,8270242.0,8270248.0],"skipIndex":0,"section_code":"section500236","featured_images":"8270248,8270242,8270239,8270234,8270231,8270227,8270223,8270220","id":440407,"singleSection":false});				  						galleries[417773] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ERosanne","link":"section500236_417773.html","maxRecords":0.0,"photoIDs":[7606830.0,7606849.0,7606851.0,7606872.0,7609007.0,8782302.0,8783784.0,8783788.0,8783789.0,8786850.0,8786854.0,8786857.0,8786859.0,8786863.0],"skipIndex":0,"section_code":"section500236","featured_images":"8786863,8786859,8786857,8786854,8786850,8783789,8783788,8783784,8782302,7609007","id":417773,"singleSection":false});				  						galleries[423070] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Joceline","link":"section500236_423070.html","maxRecords":0.0,"photoIDs":[7839285.0,7839289.0,7839292.0,7839296.0,7839298.0,7839301.0,7839303.0,7847190.0],"skipIndex":0,"section_code":"section500236","featured_images":"7847190,7839303,7839301,7839298,7839296,7839292,7839289,7839285","id":423070,"singleSection":false});				  						galleries[417771] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Leah Axl","link":"section500236_417771.html","maxRecords":0.0,"photoIDs":[7606704.0,7606705.0,7606768.0,7606860.0],"skipIndex":0,"section_code":"section500236","featured_images":"7606860,7606768,7606705,7606704","id":417771,"singleSection":false});				  						galleries[431084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miss Pixie","link":"section500236_431084.html","maxRecords":0.0,"photoIDs":[8028103.0,8028104.0,8028105.0],"skipIndex":0,"section_code":"section500236","featured_images":"8028105,8028104,8028103","id":431084,"singleSection":false});				  						galleries[417776] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Monika","link":"section500236_417776.html","maxRecords":0.0,"photoIDs":[7606639.0],"skipIndex":0,"section_code":"section500236","featured_images":7606639.0,"id":417776,"singleSection":false});				  						galleries[437310] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nadine","link":"section500236_437310.html","maxRecords":0.0,"photoIDs":[8193037.0,8193038.0,8214772.0,8214775.0,8217025.0],"skipIndex":0,"section_code":"section500236","featured_images":"8217025,8214775,8214772,8193038,8193037","id":437310,"singleSection":false});				  						galleries[417768] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Raphaella","link":"section500236_417768.html","maxRecords":0.0,"photoIDs":[7606642.0,7606699.0,7606826.0,7606827.0,7606828.0,7606829.0,7734784.0],"skipIndex":0,"section_code":"section500236","featured_images":"7734784,7606829,7606828,7606827,7606826,7606699,7606642","id":417768,"singleSection":false});				  						galleries[8522] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio","link":"gallery.html","maxRecords":0.0,"photoIDs":[7606634.0,7606637.0,7606702.0,7606778.0,7606779.0,7606823.0,7606825.0,7606867.0,7606868.0,7606886.0,7609022.0,7609026.0,7609029.0,7609033.0,7711797.0,7711801.0,2923178.0,2923179.0,2923181.0],"skipIndex":0,"section_code":"gallery","featured_images":"7711801,7711797,7609033,7609029,7609026,7609022,7606886,7606868,7606867,7606825","id":8522,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7606701,7606630';
imageSets[2] = '7606622';
imageSets[3] = '7606634';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/richardl21/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/richardl21/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/richardl21/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/richardl21/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/richardl21/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/richardl21/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/richardl21/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 = 'lundfoto.co.uk: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="richardlund@btinternet.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="richardlund@btinternet.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;
	}
}

			

