window.thumbnails = {};
															thumbnails[7497257] = clik.newPhoto({"id":7497257,"src":"_DSC8391_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497257.html","width":130,"caption":"","height":65});
															thumbnails[7497258] = clik.newPhoto({"id":7497258,"src":"_DSC8466_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497258.html","width":130,"caption":"","height":87});
															thumbnails[7497261] = clik.newPhoto({"id":7497261,"src":"_ND38772_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497261.html","width":130,"caption":"","height":87});
															thumbnails[7497263] = clik.newPhoto({"id":7497263,"src":"_ND38928_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497263.html","width":130,"caption":"","height":87});
															thumbnails[7497264] = clik.newPhoto({"id":7497264,"src":"_ND38932_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497264.html","width":130,"caption":"","height":195});
															thumbnails[7497265] = clik.newPhoto({"id":7497265,"src":"_ND38942_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497265.html","width":130,"caption":"","height":87});
															thumbnails[7497266] = clik.newPhoto({"id":7497266,"src":"_ND38958_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497266.html","width":130,"caption":"","height":87});
															thumbnails[7497328] = clik.newPhoto({"id":7497328,"src":"_ND38975_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497328.html","width":130,"caption":"","height":87});
															thumbnails[7497331] = clik.newPhoto({"id":7497331,"src":"_ND38963_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497331.html","width":130,"caption":"","height":87});
															thumbnails[7497333] = clik.newPhoto({"id":7497333,"src":"_ND38978_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497333.html","width":130,"caption":"","height":87});
															thumbnails[7497334] = clik.newPhoto({"id":7497334,"src":"_ND38988_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497334.html","width":130,"caption":"","height":87});
															thumbnails[7497360] = clik.newPhoto({"id":7497360,"src":"_ND39028_thumb.jpg","galleries_id":406487,"server_id":1,"link":"photo_7497360.html","width":130,"caption":"","height":87});
															thumbnails[7497577] = clik.newPhoto({"id":7497577,"src":"_ND35708_thumb.jpg","galleries_id":289423,"server_id":1,"link":"photo_7497577.html","width":130,"caption":"","height":184});
															thumbnails[7497582] = clik.newPhoto({"id":7497582,"src":"_ND35732_thumb.jpg","galleries_id":289423,"server_id":1,"link":"photo_7497582.html","width":130,"caption":"","height":92});
															thumbnails[7497583] = clik.newPhoto({"id":7497583,"src":"_ND35784_thumb.jpg","galleries_id":289423,"server_id":1,"link":"photo_7497583.html","width":130,"caption":"","height":65});
															thumbnails[7497585] = clik.newPhoto({"id":7497585,"src":"_ND35796_thumb.jpg","galleries_id":289423,"server_id":1,"link":"photo_7497585.html","width":130,"caption":"","height":195});
															thumbnails[7497587] = clik.newPhoto({"id":7497587,"src":"_ND35804_thumb.jpg","galleries_id":289423,"server_id":1,"link":"photo_7497587.html","width":130,"caption":"","height":184});
															thumbnails[7497589] = clik.newPhoto({"id":7497589,"src":"_ND35815_thumb.jpg","galleries_id":289423,"server_id":1,"link":"photo_7497589.html","width":130,"caption":"","height":92});
															thumbnails[7497599] = clik.newPhoto({"id":7497599,"src":"_ND35826_thumb.jpg","galleries_id":289423,"server_id":1,"link":"photo_7497599.html","width":130,"caption":"","height":98});
															thumbnails[7497670] = clik.newPhoto({"id":7497670,"src":"_DSC3170_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497670.html","width":130,"caption":"","height":98});
															thumbnails[7497683] = clik.newPhoto({"id":7497683,"src":"_DSC3537_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497683.html","width":130,"caption":"","height":195});
															thumbnails[7497684] = clik.newPhoto({"id":7497684,"src":"_DSC3165_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497684.html","width":130,"caption":"","height":98});
															thumbnails[7497695] = clik.newPhoto({"id":7497695,"src":"_ND36814_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497695.html","width":130,"caption":"","height":195});
															thumbnails[7497700] = clik.newPhoto({"id":7497700,"src":"_ND36808_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497700.html","width":130,"caption":"","height":87});
															thumbnails[7497732] = clik.newPhoto({"id":7497732,"src":"_DSC3119_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497732.html","width":130,"caption":"","height":173});
															thumbnails[7497744] = clik.newPhoto({"id":7497744,"src":"_DSC3511_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497744.html","width":130,"caption":"","height":195});
															thumbnails[7497745] = clik.newPhoto({"id":7497745,"src":"_ND36804_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497745.html","width":130,"caption":"","height":87});
															thumbnails[7497748] = clik.newPhoto({"id":7497748,"src":"_DSC3480_thumb.jpg","galleries_id":406498,"server_id":1,"link":"photo_7497748.html","width":130,"caption":"","height":173});
															thumbnails[7501079] = clik.newPhoto({"id":7501079,"src":"_DSC8988_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501079.html","width":130,"caption":"","height":195});
															thumbnails[7501084] = clik.newPhoto({"id":7501084,"src":"_DSC9042_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501084.html","width":130,"caption":"","height":173});
															thumbnails[7501089] = clik.newPhoto({"id":7501089,"src":"_ND39082_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501089.html","width":130,"caption":"","height":87});
															thumbnails[7501093] = clik.newPhoto({"id":7501093,"src":"_ND39108_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501093.html","width":130,"caption":"","height":87});
															thumbnails[7501095] = clik.newPhoto({"id":7501095,"src":"_ND39168_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501095.html","width":130,"caption":"","height":87});
															thumbnails[7501100] = clik.newPhoto({"id":7501100,"src":"_ND39189_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501100.html","width":130,"caption":"","height":98});
															thumbnails[7501102] = clik.newPhoto({"id":7501102,"src":"_ND39211_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501102.html","width":130,"caption":"","height":87});
															thumbnails[7501103] = clik.newPhoto({"id":7501103,"src":"_ND39218_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501103.html","width":130,"caption":"","height":87});
															thumbnails[7501157] = clik.newPhoto({"id":7501157,"src":"_DSC4747_thumb.jpg","galleries_id":406701,"server_id":1,"link":"photo_7501157.html","width":130,"caption":"","height":92});
															thumbnails[7501159] = clik.newPhoto({"id":7501159,"src":"_DSC4836_thumb.jpg","galleries_id":406701,"server_id":1,"link":"photo_7501159.html","width":130,"caption":"","height":173});
															thumbnails[7501165] = clik.newPhoto({"id":7501165,"src":"_DSC4872_thumb.jpg","galleries_id":406701,"server_id":1,"link":"photo_7501165.html","width":130,"caption":"","height":98});
															thumbnails[7501167] = clik.newPhoto({"id":7501167,"src":"_DSC4877_thumb.jpg","galleries_id":406701,"server_id":1,"link":"photo_7501167.html","width":130,"caption":"","height":173});
															thumbnails[7501169] = clik.newPhoto({"id":7501169,"src":"_ND37150_thumb.jpg","galleries_id":406701,"server_id":1,"link":"photo_7501169.html","width":130,"caption":"","height":173});
															thumbnails[7501176] = clik.newPhoto({"id":7501176,"src":"_ND37448_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501176.html","width":130,"caption":"","height":92});
															thumbnails[5193321] = clik.newPhoto({"id":5193321,"src":"_ND31128_516308FE-1D09-001F-991224B54034079F_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193321.html","width":130,"caption":" ","height":88});
															thumbnails[5284130] = clik.newPhoto({"id":5284130,"src":"_7000669_BCBD82A5-1D09-001F-993788965F21CEFB_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284130.html","width":130,"caption":"","height":130});
															thumbnails[5642807] = clik.newPhoto({"id":5642807,"src":"_ND32936_5EC088AF-1D09-001F-995BB349FEC19599_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642807.html","width":130,"caption":"","height":184});
															thumbnails[7501063] = clik.newPhoto({"id":7501063,"src":"_DSC8848_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501063.html","width":130,"caption":"","height":72});
															thumbnails[7501072] = clik.newPhoto({"id":7501072,"src":"_DSC8950_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501072.html","width":130,"caption":"","height":87});
															thumbnails[7501086] = clik.newPhoto({"id":7501086,"src":"_DSC9217_thumb.jpg","galleries_id":340475,"server_id":1,"link":"photo_7501086.html","width":130,"caption":"","height":98});
															thumbnails[5284158] = clik.newPhoto({"id":5284158,"src":"_ND70404_BCBDB2FC-1D09-001F-99AA135A9E090175_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284158.html","width":130,"caption":"","height":94});
															thumbnails[5550998] = clik.newPhoto({"id":5550998,"src":"_ND32400_FCBB752F-1D09-001F-99C77C2B9E4886CD_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5550998.html","width":130,"caption":"","height":130});
															thumbnails[5550996] = clik.newPhoto({"id":5550996,"src":"_ND32305_FCBB7157-1D09-001F-996A31AFB0BDD330_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5550996.html","width":130,"caption":"","height":196});
															thumbnails[5551002] = clik.newPhoto({"id":5551002,"src":"_ND32532_FCBB7CE0-1D09-001F-99DF037F05E948F3_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5551002.html","width":130,"caption":"","height":181});
															thumbnails[5551005] = clik.newPhoto({"id":5551005,"src":"_ND32659_FCBB82AC-1D09-001F-993B363E0BEC2337_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5551005.html","width":130,"caption":"","height":176});
															thumbnails[5642808] = clik.newPhoto({"id":5642808,"src":"_ND32992_5EC08AA3-1D09-001F-993222B90A2A12FA_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642808.html","width":130,"caption":"","height":65});
															thumbnails[5551008] = clik.newPhoto({"id":5551008,"src":"_ND32704_FCBB8879-1D09-001F-9939DC18ACBA3EA0_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5551008.html","width":130,"caption":"","height":87});
															thumbnails[5551010] = clik.newPhoto({"id":5551010,"src":"_ND32825_FCBB8C12-1D09-001F-99CB5E3BAF03FAC3_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5551010.html","width":130,"caption":"","height":172});
															thumbnails[5642809] = clik.newPhoto({"id":5642809,"src":"_ND33062_5EC08C59-1D09-001F-9929C76738A2F992_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642809.html","width":130,"caption":"","height":65});
															thumbnails[5284159] = clik.newPhoto({"id":5284159,"src":"_ND70434_BCBDB4A2-1D09-001F-99BA8AA1EE05BEC1_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284159.html","width":130,"caption":"","height":188});
															thumbnails[5284135] = clik.newPhoto({"id":5284135,"src":"_ND31477_BCBD8BEC-1D09-001F-99924097B7FF43AC_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284135.html","width":130,"caption":"","height":173});
															thumbnails[5193336] = clik.newPhoto({"id":5193336,"src":"_ND79774_5163238B-1D09-001F-992455A595A489B6_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193336.html","width":130,"caption":" ","height":180});
															thumbnails[5193340] = clik.newPhoto({"id":5193340,"src":"_ND79883_51632A90-1D09-001F-9985D2D751FF1299_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193340.html","width":130,"caption":" ","height":189});
															thumbnails[5284136] = clik.newPhoto({"id":5284136,"src":"_ND31490_BCBD8D63-1D09-001F-997F5516AF0A889E_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284136.html","width":130,"caption":"","height":187});
															thumbnails[5642813] = clik.newPhoto({"id":5642813,"src":"_ND33120_5EC0941A-1D09-001F-99F43E7A28C8B07E_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642813.html","width":130,"caption":"","height":65});
															thumbnails[5284137] = clik.newPhoto({"id":5284137,"src":"_ND31511_BCBD8EEA-1D09-001F-99A91A27628FFF6C_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284137.html","width":130,"caption":"","height":130});
															thumbnails[5642815] = clik.newPhoto({"id":5642815,"src":"_ND33132_5EC0964C-1D09-001F-992D0D9D6FD3015B_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642815.html","width":130,"caption":"","height":184});
															thumbnails[5193316] = clik.newPhoto({"id":5193316,"src":"_ND31062_51630092-1D09-001F-99DCD021A10C368A_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193316.html","width":130,"caption":" ","height":180});
															thumbnails[5550990] = clik.newPhoto({"id":5550990,"src":"DSC_2787_FCBB657F-1D09-001F-9983C9A8D45BA972_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5550990.html","width":130,"caption":"","height":177});
															thumbnails[5193317] = clik.newPhoto({"id":5193317,"src":"_ND31065_51630257-1D09-001F-992285E4C7495F40_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193317.html","width":130,"caption":"","height":90});
															thumbnails[5550988] = clik.newPhoto({"id":5550988,"src":"DSC_2753_FCBB61D6-1D09-001F-9955A3B28C8579ED_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5550988.html","width":130,"caption":"","height":130});
															thumbnails[5642818] = clik.newPhoto({"id":5642818,"src":"_ND33194_5EC09C58-1D09-001F-990BE38E9B2AD3E8_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642818.html","width":130,"caption":"","height":84});
															thumbnails[5284141] = clik.newPhoto({"id":5284141,"src":"_ND31623_BCBD95FE-1D09-001F-99694AC5042F0713_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284141.html","width":130,"caption":"","height":182});
															thumbnails[5193320] = clik.newPhoto({"id":5193320,"src":"_ND31103_516307B6-1D09-001F-99FB2EF2424AC6B0_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193320.html","width":130,"caption":" ","height":88});
															thumbnails[5642820] = clik.newPhoto({"id":5642820,"src":"_ND33207_5EC0A05F-1D09-001F-9948EE6CDE5FA3A7_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642820.html","width":130,"caption":"","height":130});
															thumbnails[5284143] = clik.newPhoto({"id":5284143,"src":"_ND31651_BCBD993A-1D09-001F-99F48F6C9B0301BC_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284143.html","width":130,"caption":"","height":163});
															thumbnails[5284145] = clik.newPhoto({"id":5284145,"src":"_ND31663_BCBD9CC4-1D09-001F-995273FB80F41EA0_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284145.html","width":130,"caption":"","height":159});
															thumbnails[5193324] = clik.newPhoto({"id":5193324,"src":"_ND31267_51630E2E-1D09-001F-99DE45AE8215741E_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193324.html","width":130,"caption":" ","height":65});
															thumbnails[5193325] = clik.newPhoto({"id":5193325,"src":"_ND31288_51631022-1D09-001F-9927CFBA9D852519_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193325.html","width":130,"caption":" ","height":181});
															thumbnails[5284147] = clik.newPhoto({"id":5284147,"src":"_ND31678_BCBDA08D-1D09-001F-99BBF82FD78E8FDD_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284147.html","width":130,"caption":"","height":180});
															thumbnails[5642826] = clik.newPhoto({"id":5642826,"src":"_ND33280_5EC0AC56-1D09-001F-99D7B11FB84AE230_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642826.html","width":130,"caption":"","height":92});
															thumbnails[5193327] = clik.newPhoto({"id":5193327,"src":"_ND31368_5163137D-1D09-001F-99D253480C329A04_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193327.html","width":130,"caption":" ","height":191});
															thumbnails[5284149] = clik.newPhoto({"id":5284149,"src":"_ND31689_BCBDA427-1D09-001F-997CCE73D743690D_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284149.html","width":130,"caption":"","height":130});
															thumbnails[5284150] = clik.newPhoto({"id":5284150,"src":"_ND31696_BCBDA5EC-1D09-001F-99D63C97D5AA593E_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284150.html","width":130,"caption":"","height":94});
															thumbnails[5642828] = clik.newPhoto({"id":5642828,"src":"_ND71473_5EC0AFC1-1D09-001F-9949C2F51B1E5F81_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642828.html","width":130,"caption":"","height":184});
															thumbnails[5193329] = clik.newPhoto({"id":5193329,"src":"_ND70070_51631737-1D09-001F-99CDF0CDEDE1C4D7_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193329.html","width":130,"caption":" ","height":65});
															thumbnails[5284151] = clik.newPhoto({"id":5284151,"src":"_ND31701_BCBDA792-1D09-001F-994B5AC5582FF6E6_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284151.html","width":130,"caption":"","height":65});
															thumbnails[5193330] = clik.newPhoto({"id":5193330,"src":"_ND70086_5163191B-1D09-001F-99267D797425FD21_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193330.html","width":130,"caption":" ","height":93});
															thumbnails[5284164] = clik.newPhoto({"id":5284164,"src":"_ND70652_BCBDBD5C-1D09-001F-993B73BC894512F4_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284164.html","width":130,"caption":"","height":88});
															thumbnails[5284165] = clik.newPhoto({"id":5284165,"src":"_ND70721_BCBDBF31-1D09-001F-9950B56F686A3487_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284165.html","width":130,"caption":"","height":85});
															thumbnails[5551011] = clik.newPhoto({"id":5551011,"src":"_ND32864_FCBB8DD8-1D09-001F-99DE3C1AF6AE7C4C_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5551011.html","width":130,"caption":"","height":183});
															thumbnails[5642832] = clik.newPhoto({"id":5642832,"src":"_ND71500_5EC0B60B-1D09-001F-99C9664913D3FC86_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642832.html","width":130,"caption":"","height":184});
															thumbnails[5284154] = clik.newPhoto({"id":5284154,"src":"_ND31738_BCBDACD2-1D09-001F-99A33CE9BB6F4981_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284154.html","width":130,"caption":"","height":160});
															thumbnails[5193333] = clik.newPhoto({"id":5193333,"src":"_ND70215_51631E1C-1D09-001F-997908164CC958DB_thumb.jpg","galleries_id":293269,"server_id":1,"link":"photo_5193333.html","width":130,"caption":" ","height":93});
															thumbnails[5642835] = clik.newPhoto({"id":5642835,"src":"_ND71571_5EC0BD5E-1D09-001F-99243D859F4CED27_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642835.html","width":130,"caption":"","height":201});
															thumbnails[5642836] = clik.newPhoto({"id":5642836,"src":"_ND71585_5EC0BF62-1D09-001F-99AFD0858152BE83_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642836.html","width":130,"caption":"","height":84});
															thumbnails[5551016] = clik.newPhoto({"id":5551016,"src":"_ND71175_FCBB96F0-1D09-001F-990D7C73A02ABAC9_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5551016.html","width":130,"caption":"","height":196});
															thumbnails[5284160] = clik.newPhoto({"id":5284160,"src":"_ND70461_BCBDB677-1D09-001F-99B4127CE9FB5234_thumb.jpg","galleries_id":297200,"server_id":1,"link":"photo_5284160.html","width":130,"caption":"","height":90});
															thumbnails[5642839] = clik.newPhoto({"id":5642839,"src":"_ND71626_5EC0C56D-1D09-001F-99E7BE76E7DB83DD_thumb.jpg","galleries_id":319821,"server_id":1,"link":"photo_5642839.html","width":130,"caption":"","height":65});
															thumbnails[5551017] = clik.newPhoto({"id":5551017,"src":"_ND71256_FCBB98E4-1D09-001F-99F47226154A1893_thumb.jpg","galleries_id":314590,"server_id":1,"link":"photo_5551017.html","width":130,"caption":" ","height":175});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[406487] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery One","link":"section338420_406487.html","maxRecords":0.0,"photoIDs":[7497257.0,7497258.0,7497261.0,7497263.0,7497264.0,7497265.0,7497266.0,7497328.0,7497331.0,7497333.0,7497334.0,7497360.0],"skipIndex":0,"section_code":"section338420","featured_images":7497257.0,"id":406487,"singleSection":false});				  						galleries[293269] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery Two","link":"section338420_293269.html","maxRecords":0.0,"photoIDs":[5193321.0,5193336.0,5193340.0,5193316.0,5193317.0,5193320.0,5193324.0,5193325.0,5193327.0,5193329.0,5193330.0,5193333.0],"skipIndex":0,"section_code":"section338420","featured_images":5193321.0,"id":293269,"singleSection":false});				  						galleries[297200] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery Three","link":"section338420_297200.html","maxRecords":0.0,"photoIDs":[5284130.0,5284158.0,5284159.0,5284135.0,5284136.0,5284137.0,5284141.0,5284143.0,5284145.0,5284147.0,5284149.0,5284150.0,5284151.0,5284164.0,5284165.0,5284154.0,5284160.0],"skipIndex":0,"section_code":"section338420","featured_images":5284160.0,"id":297200,"singleSection":false});				  						galleries[314590] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery Four","link":"section338420_314590.html","maxRecords":0.0,"photoIDs":[5550998.0,5550996.0,5551002.0,5551005.0,5551008.0,5551010.0,5550990.0,5550988.0,5551011.0,5551016.0,5551017.0],"skipIndex":0,"section_code":"section338420","featured_images":5551008.0,"id":314590,"singleSection":false});				  						galleries[319821] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery Five","link":"section338420_319821.html","maxRecords":0.0,"photoIDs":[5642807.0,5642808.0,5642809.0,5642813.0,5642815.0,5642818.0,5642820.0,5642826.0,5642828.0,5642832.0,5642835.0,5642836.0,5642839.0],"skipIndex":0,"section_code":"section338420","featured_images":5642813.0,"id":319821,"singleSection":false});				  						galleries[289423] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery Six","link":"section338420_289423.html","maxRecords":0.0,"photoIDs":[7497577.0,7497582.0,7497583.0,7497585.0,7497587.0,7497589.0,7497599.0],"skipIndex":0,"section_code":"section338420","featured_images":7497583.0,"id":289423,"singleSection":false});				  						galleries[340475] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery Seven","link":"section338420_340475.html","maxRecords":0.0,"photoIDs":[7501079.0,7501084.0,7501089.0,7501093.0,7501095.0,7501100.0,7501102.0,7501103.0,7501176.0,7501063.0,7501072.0,7501086.0],"skipIndex":0,"section_code":"section338420","featured_images":7501095.0,"id":340475,"singleSection":false});				  						galleries[406498] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery Eight","link":"section338420_406498.html","maxRecords":0.0,"photoIDs":[7497670.0,7497683.0,7497684.0,7497695.0,7497700.0,7497732.0,7497744.0,7497745.0,7497748.0],"skipIndex":0,"section_code":"section338420","featured_images":"7497700,7497670","id":406498,"singleSection":false});				  						galleries[406701] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery Nine","link":"section338420_406701.html","maxRecords":0.0,"photoIDs":[7501157.0,7501159.0,7501165.0,7501167.0,7501169.0],"skipIndex":0,"section_code":"section338420","featured_images":7501157.0,"id":406701,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[240969] = '5284164,5193321';
imageSets[1] = '7501103,5284165,5284160';
imageSets[2] = '7501157,7501095,7497700,7497670,7497583,7497257,5642813,5551008,5284160,5193321';
imageSets[3] = '7501176,7501169,7501167,7501165,7501159,7501157,7501103,7501102,7501100,7501095,7501093,7501089,7501086,7501084,7501079,7501072,7501063,7497748,7497745,7497744,7497732,7497700,7497695,7497684,7497683,7497670,7497599,7497589,7497587,7497585,7497583,7497582,7497577,7497360,7497334,7497333,7497331,7497328,7497266,7497265,7497264,7497263,7497261,7497258,7497257,5642839,5642836,5642835,5642832,5642828';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/cdball/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/cdball/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/cdball/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/cdball/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/cdball/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/cdball/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/cdball/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 += 'section338420.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 && 'section338420' != '') {
					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 = 'Craig David Photographic Company: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" 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="craigball96@hotmail.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="craigball96@hotmail.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;
	}
}

			

