window.thumbnails = {};
thumbnails[8915578] = clik.newPhoto({"link":"#","caption":"","height":107,"id":8915578,"server_id":21,"src":"snuggly_hats_thumb.jpg","galleries_id":"","width":160});
thumbnails[8996652] = clik.newPhoto({"link":"#","caption":"","height":81,"id":8996652,"server_id":21,"src":"Paypal_Logo_thumb.jpg","galleries_id":"","width":93});
thumbnails[9035276] = clik.newPhoto({"link":"#","caption":"","height":67,"id":9035276,"server_id":21,"src":"start_shopping_thumb.jpg","galleries_id":"","width":160});
thumbnails[9058939] = clik.newPhoto({"link":"#","caption":"","height":107,"id":9058939,"server_id":21,"src":"small_headband_thumb.jpg","galleries_id":"","width":160});
thumbnails[9058947] = clik.newPhoto({"link":"#","caption":"","height":107,"id":9058947,"server_id":21,"src":"small_hat_thumb.jpg","galleries_id":"","width":160});
thumbnails[9054564] = clik.newPhoto({"link":"photo_9054564.html","caption":"Ivory Flower Headband","height":200,"id":9054564,"server_id":21,"src":"22January_12_051_ADF381E1-1EC9-DFB6-09ABC02548755E36_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054712] = clik.newPhoto({"link":"photo_9054712.html","caption":"Button Non Slip clip.","height":128,"id":9054712,"server_id":21,"src":"22January_12_001_AE5046A5-1EC9-DFB6-0921E5E725F007AA_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054713] = clik.newPhoto({"link":"photo_9054713.html","caption":"Burgundy Flower SWAROVSKI Crystal non slip clip.","height":128,"id":9054713,"server_id":21,"src":"22January_12_002_AE50C33A-1EC9-DFB6-099734FF014D9C94_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054860] = clik.newPhoto({"link":"photo_9054860.html","caption":"Burgundy Chiffon Rose SWAROVSKi Non Slip Clip.","height":128,"id":9054860,"server_id":21,"src":"22January_12_004_AF3B7BC6-1EC9-DFB6-0985717D9B16807E_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054861] = clik.newPhoto({"link":"photo_9054861.html","caption":"White Chiffon Flower SWAROVSKI Crystal Non Slip Clip.","height":128,"id":9054861,"server_id":21,"src":"22January_12_005_AF3BD1EE-1EC9-DFB6-0942EAC424541EBF_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054862] = clik.newPhoto({"link":"photo_9054862.html","caption":"Pastel Button Non Slip Clip.","height":128,"id":9054862,"server_id":21,"src":"22January_12_006_AF3C182F-1EC9-DFB6-09F33E09FCC0D85B_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054863] = clik.newPhoto({"link":"photo_9054863.html","caption":"Multi Ribbon Button Non slip Clip.","height":128,"id":9054863,"server_id":21,"src":"22January_12_007_AF3C6935-1EC9-DFB6-093D0D2E1FC70BFF_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054864] = clik.newPhoto({"link":"photo_9054864.html","caption":"Black Satin Flower SWAROVSKI non slip clip.","height":128,"id":9054864,"server_id":21,"src":"22January_12_008_AF3CBD9A-1EC9-DFB6-0978E27E7EBD1755_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054865] = clik.newPhoto({"link":"photo_9054865.html","caption":"Rose Pink Flower SWAROVSKI Non slip clip.","height":128,"id":9054865,"server_id":21,"src":"22January_12_009_AF3D11DC-1EC9-DFB6-0937670DA20C6CBB_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054866] = clik.newPhoto({"link":"photo_9054866.html","caption":"Cream Satin flower SWAROVSKI Non Slip Clip","height":128,"id":9054866,"server_id":21,"src":"22January_12_010_AF3D5F77-1EC9-DFB6-0920507C624EE618_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054868] = clik.newPhoto({"link":"photo_9054868.html","caption":"Navy Satin Flower SWAROVSKI Non Slip Clip","height":128,"id":9054868,"server_id":21,"src":"22January_12_011_AF3DB632-1EC9-DFB6-096593EFD0931629_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054869] = clik.newPhoto({"link":"photo_9054869.html","caption":"Cream Satin Bow SWAROVSKI Clip Set","height":128,"id":9054869,"server_id":21,"src":"22January_12_012_AF3E0503-1EC9-DFB6-0911B8A42C2952CE_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054872] = clik.newPhoto({"link":"photo_9054872.html","caption":"White Chiffon Rose SWAROVSKI Clip.","height":128,"id":9054872,"server_id":21,"src":"22January_12_014_AF40BAF4-1EC9-DFB6-09B781B4D910B037_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054873] = clik.newPhoto({"link":"photo_9054873.html","caption":"Lilac and Lemon Button Non Slip Clip.","height":128,"id":9054873,"server_id":21,"src":"22January_12_015_AF41029A-1EC9-DFB6-0944784811DFBA5E_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054874] = clik.newPhoto({"link":"photo_9054874.html","caption":"Pink Rose SWAROVSKI non Slip Clip.","height":128,"id":9054874,"server_id":21,"src":"22January_12_016_AF414B41-1EC9-DFB6-09E090358C253AEA_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054875] = clik.newPhoto({"link":"photo_9054875.html","caption":"Pink Polka Dot Button Non slip Clip.","height":107,"id":9054875,"server_id":21,"src":"22January_12_017_AF4193B4-1EC9-DFB6-09BD7AD99C4F6579_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054876] = clik.newPhoto({"link":"photo_9054876.html","caption":"White Chiffon Bow SWAROVSKI Clip Set","height":107,"id":9054876,"server_id":21,"src":"22January_12_018_AF41E3B4-1EC9-DFB6-093D25D52954ACAA_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054877] = clik.newPhoto({"link":"photo_9054877.html","caption":"Polka Dots Non Slip Clip.","height":107,"id":9054877,"server_id":21,"src":"22January_12_019_AF423324-1EC9-DFB6-09F2BA98D51D2BB4_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054878] = clik.newPhoto({"link":"photo_9054878.html","caption":"Cream Chiffon Rose SWAROVSKI Non Slip Clip.","height":107,"id":9054878,"server_id":21,"src":"22January_12_020_AF427CEC-1EC9-DFB6-09E121B1570616ED_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054879] = clik.newPhoto({"link":"photo_9054879.html","caption":"Frog Non Slip Clip.","height":107,"id":9054879,"server_id":21,"src":"22January_12_021_AF42D57B-1EC9-DFB6-09ED3FAF58F04F03_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054880] = clik.newPhoto({"link":"photo_9054880.html","caption":"Black and Red Non Slip Clip","height":107,"id":9054880,"server_id":21,"src":"22January_12_022_AF431D55-1EC9-DFB6-09193BFD79A84DA6_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054881] = clik.newPhoto({"link":"photo_9054881.html","caption":"Pink Butterfly Non Slip Clip.","height":107,"id":9054881,"server_id":21,"src":"22January_12_023_AF436DFB-1EC9-DFB6-095CD9322EBE8397_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054883] = clik.newPhoto({"link":"photo_9054883.html","caption":"Orange and Pink Button Non Slip Clip.","height":107,"id":9054883,"server_id":21,"src":"22January_12_025_AF43FE03-1EC9-DFB6-0913926CF6273BC6_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054884] = clik.newPhoto({"link":"photo_9054884.html","caption":"Pink and Blue Button Non Slip Clip.","height":107,"id":9054884,"server_id":21,"src":"22January_12_026_AF444F4B-1EC9-DFB6-096A1F2679FFDB17_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054887] = clik.newPhoto({"link":"photo_9054887.html","caption":"Pink Strawberry Clip Set","height":107,"id":9054887,"server_id":21,"src":"22January_12_029_AF451774-1EC9-DFB6-095FA5C7F70B8ADA_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054890] = clik.newPhoto({"link":"photo_9054890.html","caption":"Black Satin Bow clip Set","height":107,"id":9054890,"server_id":21,"src":"22January_12_032_AF4614AD-1EC9-DFB6-0960DFB98231B193_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054891] = clik.newPhoto({"link":"photo_9054891.html","caption":"Spotty Heart snap Clip.","height":107,"id":9054891,"server_id":21,"src":"22January_12_033_AF469D11-1EC9-DFB6-091B25EC549F3190_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054894] = clik.newPhoto({"link":"photo_9054894.html","caption":"Ivory bow Clip Set","height":107,"id":9054894,"server_id":21,"src":"22January_12_034_AF471C4A-1EC9-DFB6-096456CC541CE107_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054895] = clik.newPhoto({"link":"photo_9054895.html","caption":"Pink Heart snap Clip.","height":107,"id":9054895,"server_id":21,"src":"22January_12_036_AF479651-1EC9-DFB6-09753292D4E99A6A_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[9054547] = clik.newPhoto({"link":"photo_9054547.html","caption":"Blue Shabby Chic Headband","height":200,"id":9054547,"server_id":21,"src":"22January_12_044_ADEEC18A-1EC9-DFB6-091457DE26957CE1_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054549] = clik.newPhoto({"link":"photo_9054549.html","caption":"Pink and Mocha Flower Headband","height":200,"id":9054549,"server_id":21,"src":"22January_12_045_ADEF4157-1EC9-DFB6-09282F9BF7F4FBF9_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054552] = clik.newPhoto({"link":"photo_9054552.html","caption":"Red Swirl Flower Headband","height":200,"id":9054552,"server_id":21,"src":"22January_12_046_ADEFF7FA-1EC9-DFB6-09136DB0CD132F67_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054553] = clik.newPhoto({"link":"photo_9054553.html","caption":"Vanilla Bow Headband","height":200,"id":9054553,"server_id":21,"src":"22January_12_047_ADF06CFC-1EC9-DFB6-09B8EE260BFA3CD0_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054556] = clik.newPhoto({"link":"photo_9054556.html","caption":"Pink Sequin Butterfly SWAROVSKI Headband","height":200,"id":9054556,"server_id":21,"src":"22January_12_048_ADF12085-1EC9-DFB6-09B38CE38B900540_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054558] = clik.newPhoto({"link":"photo_9054558.html","caption":"Red and Black bow Headband","height":200,"id":9054558,"server_id":21,"src":"22January_12_049_ADF1CC52-1EC9-DFB6-09780DEB9C487A75_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054562] = clik.newPhoto({"link":"photo_9054562.html","caption":"Burgundy flower SWAROVSKI Headband","height":200,"id":9054562,"server_id":21,"src":"22January_12_050_ADF30025-1EC9-DFB6-090C6DE724EAF52E_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054566] = clik.newPhoto({"link":"photo_9054566.html","caption":"Cerise Pink and Silver Flower Headband","height":200,"id":9054566,"server_id":21,"src":"22January_12_052_ADF4039F-1EC9-DFB6-090C0E20A3190E98_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054567] = clik.newPhoto({"link":"photo_9054567.html","caption":"Butterfly Hearts Headband","height":200,"id":9054567,"server_id":21,"src":"22January_12_053_ADF47D55-1EC9-DFB6-0980FC240298767E_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054568] = clik.newPhoto({"link":"photo_9054568.html","caption":"Black and White SWAROVSKI Crystal flower Headband","height":200,"id":9054568,"server_id":21,"src":"22January_12_054_ADF4E108-1EC9-DFB6-096F9A22B393EBCF_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054569] = clik.newPhoto({"link":"photo_9054569.html","caption":"Lavender flower SWAROVSKI Headband","height":200,"id":9054569,"server_id":21,"src":"22January_12_055_ADF551E7-1EC9-DFB6-092ACF1E2ED47B31_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054572] = clik.newPhoto({"link":"photo_9054572.html","caption":"Checked Flower Headband","height":240,"id":9054572,"server_id":21,"src":"22January_12_056_ADF5D26B-1EC9-DFB6-09E8F3E248D51412_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054575] = clik.newPhoto({"link":"photo_9054575.html","caption":"Pink Butterfly Hearts Headband","height":240,"id":9054575,"server_id":21,"src":"22January_12_057_ADF66804-1EC9-DFB6-09A0261016DE69FC_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054577] = clik.newPhoto({"link":"photo_9054577.html","caption":"22January 12 058","height":240,"id":9054577,"server_id":21,"src":"22January_12_058_ADF6EE84-1EC9-DFB6-09AFE1044AB596AB_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054579] = clik.newPhoto({"link":"photo_9054579.html","caption":"Black and Ivory SWAROVSKI Flower Headband","height":240,"id":9054579,"server_id":21,"src":"22January_12_059_ADF76C20-1EC9-DFB6-099953F9A5887EEA_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054580] = clik.newPhoto({"link":"photo_9054580.html","caption":"Paisley Style Butterfly Headband","height":240,"id":9054580,"server_id":21,"src":"22January_12_060_ADF7FC65-1EC9-DFB6-09B3B3617798F486_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054581] = clik.newPhoto({"link":"photo_9054581.html","caption":"Pink Check bow Headband","height":240,"id":9054581,"server_id":21,"src":"22January_12_061_ADF88EEE-1EC9-DFB6-09578DBE9C806048_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054582] = clik.newPhoto({"link":"photo_9054582.html","caption":"Pink Stars Headband","height":240,"id":9054582,"server_id":21,"src":"22January_12_062_ADF91086-1EC9-DFB6-095A8782EFDC5C23_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054583] = clik.newPhoto({"link":"photo_9054583.html","caption":"Crochet flower Headband","height":240,"id":9054583,"server_id":21,"src":"22January_12_063_ADF99687-1EC9-DFB6-096BA14A1E675FD1_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054584] = clik.newPhoto({"link":"photo_9054584.html","caption":"Purple Swirl Headband","height":240,"id":9054584,"server_id":21,"src":"22January_12_064_ADFA288F-1EC9-DFB6-0958C377D8C94CA7_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054585] = clik.newPhoto({"link":"photo_9054585.html","caption":"Ivory bow Headband","height":240,"id":9054585,"server_id":21,"src":"22January_12_065_ADFAA6A6-1EC9-DFB6-09C2268FFDE1315B_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054587] = clik.newPhoto({"link":"photo_9054587.html","caption":"Ivory Flower Lace Headband","height":240,"id":9054587,"server_id":21,"src":"22January_12_067_ADFB8F36-1EC9-DFB6-094FDAAFDCCDF5F5_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054590] = clik.newPhoto({"link":"photo_9054590.html","caption":"Pink Shabby Chic Headband","height":240,"id":9054590,"server_id":21,"src":"22January_12_068_ADFC1704-1EC9-DFB6-092520916D52A229_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054591] = clik.newPhoto({"link":"photo_9054591.html","caption":"Black and Ivory Headband","height":240,"id":9054591,"server_id":21,"src":"22January_12_069_ADFC8DFA-1EC9-DFB6-09D9D7396D382E7A_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054593] = clik.newPhoto({"link":"photo_9054593.html","caption":"Leopard flower Headband","height":240,"id":9054593,"server_id":21,"src":"22January_12_070_ADFD0D66-1EC9-DFB6-091E39912C11261E_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054594] = clik.newPhoto({"link":"photo_9054594.html","caption":"Polka Dot Butterfly Headband","height":240,"id":9054594,"server_id":21,"src":"22January_12_071_ADFD97FA-1EC9-DFB6-091E4CF881848C8E_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[9054596] = clik.newPhoto({"link":"photo_9054596.html","caption":"White SWAROVSKI Flower Headband.","height":240,"id":9054596,"server_id":21,"src":"22January_12_072_ADFE106A-1EC9-DFB6-09B5F911025C9A59_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[9054597] = clik.newPhoto({"link":"photo_9054597.html","caption":"Ivory bow Headband","height":240,"id":9054597,"server_id":21,"src":"22January_12_073_ADFE9B1F-1EC9-DFB6-092952985C170F66_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[8906674] = clik.newPhoto({"link":"photo_8906674.html","caption":"Frog Princess Non slip Clip","height":107,"id":8906674,"server_id":21,"src":"Dec_15_2011_023_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906547] = clik.newPhoto({"link":"photo_8906547.html","caption":"Pink Snowflake Snap Clip","height":107,"id":8906547,"server_id":21,"src":"Dec_15_2011_009_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906540] = clik.newPhoto({"link":"photo_8906540.html","caption":"Blue\/Lemon Mini Snowflake Snap Clip","height":107,"id":8906540,"server_id":21,"src":"Dec_15_2011_008_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906593] = clik.newPhoto({"link":"photo_8906593.html","caption":"Pink Satin Beaded Flower Non Slip Clip","height":107,"id":8906593,"server_id":21,"src":"Dec_15_2011_015_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906605] = clik.newPhoto({"link":"photo_8906605.html","caption":"Sliver Butterfly Non Slip Clip","height":107,"id":8906605,"server_id":21,"src":"Dec_15_2011_016_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906682] = clik.newPhoto({"link":"photo_8906682.html","caption":"'Happy Birthday' Rose Pink Non slip Clip","height":107,"id":8906682,"server_id":21,"src":"Dec_15_2011_025_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906685] = clik.newPhoto({"link":"photo_8906685.html","caption":"Red\/Blue 'Happy Birthday' Non Slip Clip.","height":107,"id":8906685,"server_id":21,"src":"Dec_15_2011_026_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906689] = clik.newPhoto({"link":"photo_8906689.html","caption":"Lilac\/Pink Clip Holder.","height":107,"id":8906689,"server_id":21,"src":"Dec_15_2011_032_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906694] = clik.newPhoto({"link":"photo_8906694.html","caption":"Cerise Pink Ribbon Clip Holder.","height":107,"id":8906694,"server_id":21,"src":"Dec_15_2011_033_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962511] = clik.newPhoto({"link":"photo_8962511.html","caption":"Pink Glitter Flower Non Slip Clip.","height":107,"id":8962511,"server_id":21,"src":"21_Dec_2011_033_413B2A68-1EC9-D45B-1CC5AB07F1972D63_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962513] = clik.newPhoto({"link":"photo_8962513.html","caption":"Cerise Pink Crochet flower Non Slip Clip.","height":107,"id":8962513,"server_id":21,"src":"21_Dec_2011_035_413BF539-1EC9-D45B-1C17D9E21CD53AD9_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906510] = clik.newPhoto({"link":"photo_8906510.html","caption":"Pink heart Polka dot Mini Bobble Set","height":107,"id":8906510,"server_id":21,"src":"Dec_15_2011_003_thumb.JPG","galleries_id":471724,"width":160});
thumbnails[8962494] = clik.newPhoto({"link":"photo_8962494.html","caption":"Little Mouse Hat","height":160,"id":8962494,"server_id":21,"src":"21_Dec_2011_019_40F7A5F6-1EC9-D45B-1C8F049D4F7946BF_thumb.JPG","galleries_id":468273,"width":160});
thumbnails[8906523] = clik.newPhoto({"link":"photo_8906523.html","caption":"Lilac Snowflake Mini Bobbles","height":107,"id":8906523,"server_id":21,"src":"Dec_15_2011_006_thumb.JPG","galleries_id":471724,"width":160});
thumbnails[8906647] = clik.newPhoto({"link":"photo_8906647.html","caption":"Cupcake Non Slip Clip","height":107,"id":8906647,"server_id":21,"src":"Dec_15_2011_021_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962487] = clik.newPhoto({"link":"photo_8962487.html","caption":"Daisy Mouse Crochet hat","height":160,"id":8962487,"server_id":21,"src":"21_Dec_2011_010_40F54044-1EC9-D45B-1C2388DACA6D3066_thumb.JPG","galleries_id":468273,"width":160});
thumbnails[8962514] = clik.newPhoto({"link":"photo_8962514.html","caption":"Pink Crochet Flower non Slip Clip.","height":107,"id":8962514,"server_id":21,"src":"21_Dec_2011_036_413C5CCF-1EC9-D45B-1CBE576312C0520E_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962510] = clik.newPhoto({"link":"photo_8962510.html","caption":"Swarovski Blue Butterfly Snap Clip","height":107,"id":8962510,"server_id":21,"src":"21_Dec_2011_032_413AC7FE-1EC9-D45B-1C04F7FE6FFA536D_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[8906616] = clik.newPhoto({"link":"photo_8906616.html","caption":"Ballet Shoes Non Slip Clip.","height":107,"id":8906616,"server_id":21,"src":"Dec_15_2011_017_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962507] = clik.newPhoto({"link":"photo_8962507.html","caption":"Shabby Chic Headband","height":107,"id":8962507,"server_id":21,"src":"21_Dec_2011_027_4139622F-1EC9-D45B-1C5907A983121C36_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[8906516] = clik.newPhoto({"link":"photo_8906516.html","caption":"Pink Snowflake Mini Bobble Set","height":107,"id":8906516,"server_id":21,"src":"Dec_15_2011_005_thumb.JPG","galleries_id":471724,"width":160});
thumbnails[8962485] = clik.newPhoto({"link":"photo_8962485.html","caption":"Large Pom Pom Hat","height":160,"id":8962485,"server_id":21,"src":"21_Dec_2011_008_40F42E16-1EC9-D45B-1C767EC4772E3B46_thumb.JPG","galleries_id":468273,"width":160});
thumbnails[8962512] = clik.newPhoto({"link":"photo_8962512.html","caption":"Pale Pink Glitter Flower Non Slip Clip.","height":107,"id":8962512,"server_id":21,"src":"21_Dec_2011_034_413B8A48-1EC9-D45B-1C2056E00F18B5A4_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962516] = clik.newPhoto({"link":"photo_8962516.html","caption":"Butterfly Non slip Clip","height":107,"id":8962516,"server_id":21,"src":"21_Dec_2011_038_413D2A3D-1EC9-D45B-1C757CA8DFEC76D9_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962517] = clik.newPhoto({"link":"photo_8962517.html","caption":"Red Butterfly Non slip Clip","height":107,"id":8962517,"server_id":21,"src":"21_Dec_2011_039_413D9068-1EC9-D45B-1CBB25F3FBCCF420_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906580] = clik.newPhoto({"link":"photo_8906580.html","caption":"'Happy Birthday' non slip clip","height":107,"id":8906580,"server_id":21,"src":"Dec_15_2011_013_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906686] = clik.newPhoto({"link":"photo_8906686.html","caption":"Fairy Non Slip Clip","height":107,"id":8906686,"server_id":21,"src":"Dec_15_2011_027_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962508] = clik.newPhoto({"link":"photo_8962508.html","caption":"Swarovski Crystal Plum and Teal Headband","height":107,"id":8962508,"server_id":21,"src":"21_Dec_2011_030_413A01BD-1EC9-D45B-1C687D00386A2238_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[8906687] = clik.newPhoto({"link":"photo_8906687.html","caption":"Lemon\/Blue Clip Holder.","height":107,"id":8906687,"server_id":21,"src":"Dec_15_2011_031_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962506] = clik.newPhoto({"link":"photo_8962506.html","caption":"Pink Strawberry Crochet Headband","height":107,"id":8962506,"server_id":21,"src":"21_Dec_2011_025_4138D161-1EC9-D45B-1C0F9CBCB951DA0E_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[8906504] = clik.newPhoto({"link":"photo_8906504.html","caption":"Pink Sequin Strawberry Mini Bobble set","height":107,"id":8906504,"server_id":21,"src":"Dec_15_2011_002_thumb.JPG","galleries_id":471724,"width":160});
thumbnails[8962515] = clik.newPhoto({"link":"photo_8962515.html","caption":"Fruits Non Slip Clip.","height":107,"id":8962515,"server_id":21,"src":"21_Dec_2011_037_413CC5D9-1EC9-D45B-1C1B138CF849123A_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962482] = clik.newPhoto({"link":"photo_8962482.html","caption":"Teddy Bear Hat","height":160,"id":8962482,"server_id":21,"src":"21_Dec_2011_006_40F2FC8F-1EC9-D45B-1C11FA712728B9B0_thumb.JPG","galleries_id":468273,"width":160});
thumbnails[8962509] = clik.newPhoto({"link":"photo_8962509.html","caption":"Pink Polka Dot Butterfly non slip Clip","height":107,"id":8962509,"server_id":21,"src":"21_Dec_2011_031_413A6284-1EC9-D45B-1C2167F39E161359_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906654] = clik.newPhoto({"link":"photo_8906654.html","caption":"Swarovski Pink Heart Non slip Clip","height":107,"id":8906654,"server_id":21,"src":"Dec_15_2011_020_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[8906564] = clik.newPhoto({"link":"photo_8906564.html","caption":"Pink sequin Strawberry Mini Snap Clip.","height":107,"id":8906564,"server_id":21,"src":"Dec_15_2011_012_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906663] = clik.newPhoto({"link":"photo_8906663.html","caption":"Pink Satin Beaded Flower Bobble Set","height":107,"id":8906663,"server_id":21,"src":"Dec_15_2011_019_thumb.JPG","galleries_id":471724,"width":160});
thumbnails[8962499] = clik.newPhoto({"link":"photo_8962499.html","caption":"Dusky Pink and Cream Crochet Headband.","height":107,"id":8962499,"server_id":21,"src":"21_Dec_2011_024_40FA5CEF-1EC9-D45B-1C8972862893106D_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[8962480] = clik.newPhoto({"link":"photo_8962480.html","caption":"Crochet Flower Pom pom hat","height":160,"id":8962480,"server_id":21,"src":"21_Dec_2011_004_40F1FB6D-1EC9-D45B-1CF530FED444C6FE_thumb.JPG","galleries_id":468273,"width":160});
thumbnails[8906559] = clik.newPhoto({"link":"photo_8906559.html","caption":"Lilac\/Cream Snowflake Mini Snap Clip.","height":107,"id":8906559,"server_id":21,"src":"Dec_15_2011_011_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8906586] = clik.newPhoto({"link":"photo_8906586.html","caption":"Red Swarovski Butterfly Non slip clip","height":107,"id":8906586,"server_id":21,"src":"Dec_15_2011_014_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[8906534] = clik.newPhoto({"link":"photo_8906534.html","caption":"Blue\/Lemon Snowflake Mini Bobble Set","height":107,"id":8906534,"server_id":21,"src":"Dec_15_2011_007_thumb.JPG","galleries_id":471724,"width":160});
thumbnails[8906668] = clik.newPhoto({"link":"photo_8906668.html","caption":"Pink Puppy Swarovski Non Slip Clip","height":107,"id":8906668,"server_id":21,"src":"Dec_15_2011_022_thumb.JPG","galleries_id":468272,"width":160});
thumbnails[8962498] = clik.newPhoto({"link":"photo_8962498.html","caption":"Brown and Cream Crochet Headband","height":107,"id":8962498,"server_id":21,"src":"21_Dec_2011_023_40F9B702-1EC9-D45B-1C5B4A6839479CC3_thumb.JPG","galleries_id":467822,"width":160});
thumbnails[8915760] = clik.newPhoto({"link":"photo_8915760.html","caption":"Brown Bear Beanie Hat","height":160,"id":8915760,"server_id":21,"src":"Bear_Hat2_thumb.jpg","galleries_id":468273,"width":160});
thumbnails[8906553] = clik.newPhoto({"link":"photo_8906553.html","caption":"Cream\/Pink Snowflake Mini Snap Clip","height":107,"id":8906553,"server_id":21,"src":"Dec_15_2011_010_thumb.JPG","galleries_id":467823,"width":160});
thumbnails[8962495] = clik.newPhoto({"link":"photo_8962495.html","caption":"Pink Hand knitted Headband","height":107,"id":8962495,"server_id":21,"src":"21_Dec_2011_020_40F82437-1EC9-D45B-1C5B4C19A3B1B484_thumb.JPG","galleries_id":467822,"width":160});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[467822] = clik.newGallery({"photoIDs":[9054547,9054549,9054552,9054553,9054558,9054566,9054567,9054572,9054575,9054580,9054581,9054582,9054583,9054584,9054585,9054587,9054590,9054591,9054593,9054594,9054597,8962507,8962506,8962499,8962498,8962495],"link":"gallery_467822.html","skipIndex":0,"section_code":"gallery","id":467822,"parentGallery":"","featured_images":9058939,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"Headbands"});galleries[467823] = clik.newGallery({"photoIDs":[9054712,9054862,9054863,9054873,9054875,9054877,9054879,9054880,9054881,9054883,9054884,9054887,9054890,9054891,9054894,9054895,8906674,8906547,8906540,8906593,8906605,8906682,8906685,8906689,8906694,8962511,8962513,8906647,8962514,8906616,8962512,8962516,8962517,8906580,8906686,8906687,8962515,8962509,8906564,8906559,8906553],"link":"gallery_467823.html","skipIndex":0,"section_code":"gallery","id":467823,"parentGallery":"","featured_images":9054877,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"Clips"});galleries[468272] = clik.newGallery({"photoIDs":[9054564,9054713,9054860,9054861,9054864,9054865,9054866,9054868,9054869,9054872,9054874,9054876,9054878,9054556,9054562,9054568,9054569,9054577,9054579,9054596,8962510,8962508,8906654,8906586,8906668],"link":"gallery_468272.html","skipIndex":0,"section_code":"gallery","id":468272,"parentGallery":"","featured_images":8906668,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"Swarovski"});galleries[468273] = clik.newGallery({"photoIDs":[8962494,8962487,8962485,8962482,8962480,8915760],"link":"gallery_468273.html","skipIndex":0,"section_code":"gallery","id":468273,"parentGallery":"","featured_images":9058947,"maxRecords":0,"usePopups":true,"singleSection":false,"title":"Hats"});galleries[471724] = clik.newGallery({"photoIDs":[8906510,8906523,8906516,8906504,8906663,8906534],"link":"gallery_471724.html","skipIndex":0,"section_code":"gallery","id":471724,"parentGallery":"","featured_images":"8906663,8906534,8906523,8906516,8906510,8906504","maxRecords":0,"usePopups":true,"singleSection":false,"title":"Bobbles"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '9058947,9058939,9054895,9054894,9054891,9054890,9054887,9054884,9054883,9054881,9054880,9054879,9054878,9054877,9054876,9054875,9054874,9054873,9054872,9054869,9054868,9054866,9054865,9054864,9054863,9054862,9054861,9054860,9054713,9054712,9054597,9054596,9054594,9054593,9054591,9054590,9054587,9054585,9054584,9054583,9054582,9054581,9054580,9054579,9054577,9054575,9054572,9054569,9054568,9054567';
imageSets[1] = '8915578,8906605,8906668';
imageSets[247326] = '8906674,8962487,8906668,8906534';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/GooseberryBush/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/GooseberryBush/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
				  document.title = 'Gooseberry Bush Babywear: ' + 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 !== '') {
					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="GOOSEBERRYBUSH">';
			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;
	}
}

		

