window.thumbnails = {};
															thumbnails[594567] = clik.newPhoto({"id":594567,"src":"84260032_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594567.html","width":130,"caption":"","height":85});
															thumbnails[594568] = clik.newPhoto({"id":594568,"src":"84260031_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594568.html","width":130,"caption":"","height":85});
															thumbnails[594569] = clik.newPhoto({"id":594569,"src":"84260034_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594569.html","width":130,"caption":"","height":85});
															thumbnails[594570] = clik.newPhoto({"id":594570,"src":"84260035_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594570.html","width":130,"caption":"","height":85});
															thumbnails[594571] = clik.newPhoto({"id":594571,"src":"84260054_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594571.html","width":130,"caption":"","height":85});
															thumbnails[594572] = clik.newPhoto({"id":594572,"src":"84260040_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594572.html","width":130,"caption":"","height":85});
															thumbnails[594574] = clik.newPhoto({"id":594574,"src":"84260047_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594574.html","width":130,"caption":"","height":85});
															thumbnails[594575] = clik.newPhoto({"id":594575,"src":"84260014_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594575.html","width":130,"caption":"","height":85});
															thumbnails[594576] = clik.newPhoto({"id":594576,"src":"84260017_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594576.html","width":130,"caption":"","height":85});
															thumbnails[594577] = clik.newPhoto({"id":594577,"src":"84260021_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594577.html","width":130,"caption":"","height":85});
															thumbnails[594578] = clik.newPhoto({"id":594578,"src":"84260024_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594578.html","width":130,"caption":"","height":85});
															thumbnails[594579] = clik.newPhoto({"id":594579,"src":"84260025_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594579.html","width":130,"caption":"","height":85});
															thumbnails[594580] = clik.newPhoto({"id":594580,"src":"84260013_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594580.html","width":130,"caption":"","height":85});
															thumbnails[594581] = clik.newPhoto({"id":594581,"src":"84260029_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594581.html","width":130,"caption":"","height":85});
															thumbnails[594582] = clik.newPhoto({"id":594582,"src":"84260056_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594582.html","width":130,"caption":"","height":85});
															thumbnails[594583] = clik.newPhoto({"id":594583,"src":"84260059_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594583.html","width":130,"caption":"","height":85});
															thumbnails[594584] = clik.newPhoto({"id":594584,"src":"84260041_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594584.html","width":130,"caption":"","height":85});
															thumbnails[594585] = clik.newPhoto({"id":594585,"src":"84260042_thumb.JPG","galleries_id":45570,"server_id":1,"link":"photo_594585.html","width":130,"caption":"","height":85});
															thumbnails[594594] = clik.newPhoto({"id":594594,"src":"Waterfall sm_thumb.jpg","galleries_id":45728,"server_id":1,"link":"photo_594594.html","width":130,"caption":"","height":196});
															thumbnails[594595] = clik.newPhoto({"id":594595,"src":"_DSC0014-5_thumb.jpg","galleries_id":45728,"server_id":1,"link":"photo_594595.html","width":130,"caption":"","height":86});
															thumbnails[594650] = clik.newPhoto({"id":594650,"src":"DIA2_18X24 500_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_594650.html","width":130,"caption":"","height":194});
															thumbnails[594677] = clik.newPhoto({"id":594677,"src":"h1_thumb.jpg","galleries_id":45570,"server_id":1,"link":"photo_594677.html","width":130,"caption":"","height":199});
															thumbnails[594679] = clik.newPhoto({"id":594679,"src":"h2_thumb.jpg","galleries_id":45570,"server_id":1,"link":"photo_594679.html","width":130,"caption":"","height":199});
															thumbnails[594680] = clik.newPhoto({"id":594680,"src":"h3_thumb.jpg","galleries_id":45570,"server_id":1,"link":"photo_594680.html","width":130,"caption":"","height":199});
															thumbnails[607275] = clik.newPhoto({"id":607275,"src":"SC1_thumb.jpg","galleries_id":46611,"server_id":1,"link":"photo_607275.html","width":130,"caption":"","height":173});
															thumbnails[607280] = clik.newPhoto({"id":607280,"src":"SC2_thumb.jpg","galleries_id":46611,"server_id":1,"link":"photo_607280.html","width":130,"caption":"","height":173});
															thumbnails[607282] = clik.newPhoto({"id":607282,"src":"SC3_thumb.jpg","galleries_id":46611,"server_id":1,"link":"photo_607282.html","width":130,"caption":"","height":98});
															thumbnails[619985] = clik.newPhoto({"id":619985,"src":"morocco041_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619985.html","width":130,"caption":"","height":90});
															thumbnails[619986] = clik.newPhoto({"id":619986,"src":"DSC_0039_thumb.JPG","galleries_id":47458,"server_id":1,"link":"photo_619986.html","width":130,"caption":"","height":86});
															thumbnails[619987] = clik.newPhoto({"id":619987,"src":"morocco092_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619987.html","width":130,"caption":"","height":92});
															thumbnails[619988] = clik.newPhoto({"id":619988,"src":"morocco095_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619988.html","width":130,"caption":"","height":90});
															thumbnails[619989] = clik.newPhoto({"id":619989,"src":"morocco132_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619989.html","width":130,"caption":"","height":91});
															thumbnails[619990] = clik.newPhoto({"id":619990,"src":"morocco134_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619990.html","width":130,"caption":"","height":89});
															thumbnails[619991] = clik.newPhoto({"id":619991,"src":"morocco165_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619991.html","width":130,"caption":"","height":90});
															thumbnails[619992] = clik.newPhoto({"id":619992,"src":"morocco188_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619992.html","width":130,"caption":"","height":93});
															thumbnails[619993] = clik.newPhoto({"id":619993,"src":"morocco196_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619993.html","width":130,"caption":"","height":89});
															thumbnails[619994] = clik.newPhoto({"id":619994,"src":"morocco211_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619994.html","width":130,"caption":"","height":89});
															thumbnails[619995] = clik.newPhoto({"id":619995,"src":"morocco2271_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619995.html","width":130,"caption":"","height":89});
															thumbnails[619996] = clik.newPhoto({"id":619996,"src":"morocco228_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619996.html","width":130,"caption":"","height":77});
															thumbnails[619997] = clik.newPhoto({"id":619997,"src":"morocco236_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619997.html","width":130,"caption":"","height":75});
															thumbnails[619998] = clik.newPhoto({"id":619998,"src":"morocco266_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619998.html","width":130,"caption":"","height":88});
															thumbnails[619999] = clik.newPhoto({"id":619999,"src":"morocco279_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_619999.html","width":130,"caption":"","height":90});
															thumbnails[620000] = clik.newPhoto({"id":620000,"src":"morocco324_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620000.html","width":130,"caption":"","height":90});
															thumbnails[620001] = clik.newPhoto({"id":620001,"src":"morocco328_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620001.html","width":130,"caption":"","height":90});
															thumbnails[620002] = clik.newPhoto({"id":620002,"src":"morocco345_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620002.html","width":130,"caption":"","height":90});
															thumbnails[620003] = clik.newPhoto({"id":620003,"src":"morocco352_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620003.html","width":130,"caption":"","height":188});
															thumbnails[620004] = clik.newPhoto({"id":620004,"src":"morocco353_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620004.html","width":130,"caption":"","height":89});
															thumbnails[620005] = clik.newPhoto({"id":620005,"src":"morocco362_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620005.html","width":130,"caption":"","height":93});
															thumbnails[620006] = clik.newPhoto({"id":620006,"src":"morocco365_thumb.JPG","galleries_id":47458,"server_id":1,"link":"photo_620006.html","width":130,"caption":"","height":92});
															thumbnails[620007] = clik.newPhoto({"id":620007,"src":"morocco369_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620007.html","width":130,"caption":"","height":91});
															thumbnails[620008] = clik.newPhoto({"id":620008,"src":"morocco374_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620008.html","width":130,"caption":"","height":181});
															thumbnails[620009] = clik.newPhoto({"id":620009,"src":"morocco380_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620009.html","width":130,"caption":"","height":93});
															thumbnails[620010] = clik.newPhoto({"id":620010,"src":"morocco381_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620010.html","width":130,"caption":"","height":254});
															thumbnails[620011] = clik.newPhoto({"id":620011,"src":"morocco396_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620011.html","width":130,"caption":"","height":92});
															thumbnails[620012] = clik.newPhoto({"id":620012,"src":"morocco397_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620012.html","width":130,"caption":"","height":90});
															thumbnails[620013] = clik.newPhoto({"id":620013,"src":"morocco409_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620013.html","width":130,"caption":"","height":90});
															thumbnails[620015] = clik.newPhoto({"id":620015,"src":"morocco467_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_620015.html","width":130,"caption":"","height":85});
															thumbnails[620016] = clik.newPhoto({"id":620016,"src":"Buda (s)_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_620016.html","width":130,"caption":"","height":82});
															thumbnails[1652393] = clik.newPhoto({"id":1652393,"src":"morocco004_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1652393.html","width":130,"caption":"","height":90});
															thumbnails[1652394] = clik.newPhoto({"id":1652394,"src":"morocco017_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1652394.html","width":130,"caption":"","height":90});
															thumbnails[1652395] = clik.newPhoto({"id":1652395,"src":"morocco020_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1652395.html","width":130,"caption":"","height":90});
															thumbnails[1652398] = clik.newPhoto({"id":1652398,"src":"morocco015_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1652398.html","width":130,"caption":"","height":89});
															thumbnails[1652400] = clik.newPhoto({"id":1652400,"src":"morocco010_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1652400.html","width":130,"caption":"","height":89});
															thumbnails[1652635] = clik.newPhoto({"id":1652635,"src":"FXCD0219_thumb.JPG","galleries_id":45737,"server_id":1,"link":"photo_1652635.html","width":130,"caption":"","height":98});
															thumbnails[1652643] = clik.newPhoto({"id":1652643,"src":"FXCD0220_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1652643.html","width":130,"caption":"","height":98});
															thumbnails[1652656] = clik.newPhoto({"id":1652656,"src":"FXCD0128_thumb.JPG","galleries_id":46611,"server_id":1,"link":"photo_1652656.html","width":130,"caption":"","height":98});
															thumbnails[1652992] = clik.newPhoto({"id":1652992,"src":"KERT_thumb.JPG","galleries_id":45737,"server_id":1,"link":"photo_1652992.html","width":130,"caption":"","height":98});
															thumbnails[1654689] = clik.newPhoto({"id":1654689,"src":"blog dia004  mod s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1654689.html","width":130,"caption":"","height":239});
															thumbnails[1654873] = clik.newPhoto({"id":1654873,"src":"blog dia005 mod s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1654873.html","width":130,"caption":"","height":196});
															thumbnails[1654876] = clik.newPhoto({"id":1654876,"src":"blog dia009 mod s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1654876.html","width":130,"caption":"","height":199});
															thumbnails[1654880] = clik.newPhoto({"id":1654880,"src":"blog dia007 mod s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1654880.html","width":130,"caption":"","height":90});
															thumbnails[1654882] = clik.newPhoto({"id":1654882,"src":"blog dia010 mod s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1654882.html","width":130,"caption":"","height":85});
															thumbnails[1654885] = clik.newPhoto({"id":1654885,"src":"blog dia011 mod s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_1654885.html","width":130,"caption":"","height":85});
															thumbnails[1676308] = clik.newPhoto({"id":1676308,"src":"FXCD0157_thumb.jpg","galleries_id":46611,"server_id":1,"link":"photo_1676308.html","width":130,"caption":"","height":98});
															thumbnails[2538844] = clik.newPhoto({"id":2538844,"src":"Hatar_thumb.jpg","galleries_id":162470,"server_id":1,"link":"photo_2538844.html","width":130,"caption":"","height":89});
															thumbnails[2539239] = clik.newPhoto({"id":2539239,"src":"morning guest_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_2539239.html","width":130,"caption":"","height":98});
															thumbnails[2539283] = clik.newPhoto({"id":2539283,"src":"vacratot s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_2539283.html","width":130,"caption":"","height":199});
															thumbnails[2539902] = clik.newPhoto({"id":2539902,"src":"morocco051_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_2539902.html","width":130,"caption":"","height":190});
															thumbnails[2539906] = clik.newPhoto({"id":2539906,"src":"morocco131_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_2539906.html","width":130,"caption":"","height":119});
															thumbnails[2539909] = clik.newPhoto({"id":2539909,"src":"morocco203_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_2539909.html","width":130,"caption":"","height":90});
															thumbnails[2554287] = clik.newPhoto({"id":2554287,"src":"_DSC0210 s_thumb.jpg","galleries_id":163162,"server_id":1,"link":"photo_2554287.html","width":130,"caption":"","height":86});
															thumbnails[2554324] = clik.newPhoto({"id":2554324,"src":"_DSC0193 s_thumb.jpg","galleries_id":163162,"server_id":1,"link":"photo_2554324.html","width":130,"caption":"","height":86});
															thumbnails[2554433] = clik.newPhoto({"id":2554433,"src":"_DSC0192 s_thumb.jpg","galleries_id":163162,"server_id":1,"link":"photo_2554433.html","width":130,"caption":"","height":86});
															thumbnails[2554436] = clik.newPhoto({"id":2554436,"src":"_DSC0178 s_thumb.jpg","galleries_id":163162,"server_id":1,"link":"photo_2554436.html","width":130,"caption":"","height":86});
															thumbnails[2554476] = clik.newPhoto({"id":2554476,"src":"Styling mod s_thumb.jpg","galleries_id":163162,"server_id":1,"link":"photo_2554476.html","width":130,"caption":"","height":86});
															thumbnails[2578820] = clik.newPhoto({"id":2578820,"src":"rose012_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_2578820.html","width":130,"caption":"","height":89});
															thumbnails[2592835] = clik.newPhoto({"id":2592835,"src":"epson005 s_thumb.jpg","galleries_id":45728,"server_id":1,"link":"photo_2592835.html","width":130,"caption":"","height":92});
															thumbnails[2592837] = clik.newPhoto({"id":2592837,"src":"epson006 s_thumb.jpg","galleries_id":45728,"server_id":1,"link":"photo_2592837.html","width":130,"caption":"","height":92});
															thumbnails[2592840] = clik.newPhoto({"id":2592840,"src":"epson0070001 s_thumb.jpg","galleries_id":45728,"server_id":1,"link":"photo_2592840.html","width":130,"caption":"","height":173});
															thumbnails[2650741] = clik.newPhoto({"id":2650741,"src":"_DSC0446[1]0001_thumb.JPG","galleries_id":167899,"server_id":1,"link":"photo_2650741.html","width":130,"caption":"","height":86});
															thumbnails[2664080] = clik.newPhoto({"id":2664080,"src":"_DSC0447_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_2664080.html","width":130,"caption":"","height":86});
															thumbnails[3541178] = clik.newPhoto({"id":3541178,"src":"CEL0775s_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_3541178.html","width":130,"caption":"","height":86});
															thumbnails[3541179] = clik.newPhoto({"id":3541179,"src":"CEL0765s_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_3541179.html","width":130,"caption":"","height":86});
															thumbnails[3541180] = clik.newPhoto({"id":3541180,"src":"CEL0714s_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_3541180.html","width":130,"caption":"","height":195});
															thumbnails[3541186] = clik.newPhoto({"id":3541186,"src":"CEL0796s_thumb.jpg","galleries_id":46611,"server_id":1,"link":"photo_3541186.html","width":130,"caption":"","height":195});
															thumbnails[3541187] = clik.newPhoto({"id":3541187,"src":"CEL0809s_thumb.jpg","galleries_id":46611,"server_id":1,"link":"photo_3541187.html","width":130,"caption":"","height":167});
															thumbnails[3541348] = clik.newPhoto({"id":3541348,"src":"CEL0798s_thumb.jpg","galleries_id":46611,"server_id":1,"link":"photo_3541348.html","width":130,"caption":"","height":86});
															thumbnails[3985861] = clik.newPhoto({"id":3985861,"src":"Esztergom0848s_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_3985861.html","width":130,"caption":"","height":86});
															thumbnails[4063664] = clik.newPhoto({"id":4063664,"src":"morocco321m_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_4063664.html","width":130,"caption":"","height":56});
															thumbnails[4063709] = clik.newPhoto({"id":4063709,"src":"morocco224_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_4063709.html","width":130,"caption":"","height":90});
															thumbnails[4063722] = clik.newPhoto({"id":4063722,"src":"morocco232_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_4063722.html","width":130,"caption":"","height":91});
															thumbnails[4063729] = clik.newPhoto({"id":4063729,"src":"morocco240_thumb.jpg","galleries_id":47458,"server_id":1,"link":"photo_4063729.html","width":130,"caption":"","height":91});
															thumbnails[5528332] = clik.newPhoto({"id":5528332,"src":"_LEX1073m_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_5528332.html","width":130,"caption":"","height":177});
															thumbnails[5571618] = clik.newPhoto({"id":5571618,"src":"_DSC0272s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_5571618.html","width":130,"caption":"","height":61});
															thumbnails[5571619] = clik.newPhoto({"id":5571619,"src":"_DSC0266s_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_5571619.html","width":130,"caption":"","height":195});
															thumbnails[5681670] = clik.newPhoto({"id":5681670,"src":"84260038m_thumb.jpg","galleries_id":45570,"server_id":1,"link":"photo_5681670.html","width":130,"caption":"","height":85});
															thumbnails[5889115] = clik.newPhoto({"id":5889115,"src":"nepal001_thumb.jpg","galleries_id":45570,"server_id":1,"link":"photo_5889115.html","width":130,"caption":"","height":211});
															thumbnails[5889119] = clik.newPhoto({"id":5889119,"src":"nepal002m2_thumb.jpg","galleries_id":45570,"server_id":1,"link":"photo_5889119.html","width":130,"caption":"","height":116});
															thumbnails[5890094] = clik.newPhoto({"id":5890094,"src":"epreskert001m2_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_5890094.html","width":130,"caption":"","height":82});
															thumbnails[7150900] = clik.newPhoto({"id":7150900,"src":"Scotland_262_thumb.jpg","galleries_id":162470,"server_id":1,"link":"photo_7150900.html","width":130,"caption":"","height":98});
															thumbnails[8717611] = clik.newPhoto({"id":8717611,"src":"_NIK2195m_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_8717611.html","width":130,"caption":"","height":86});
															thumbnails[8717612] = clik.newPhoto({"id":8717612,"src":"_NIK2177m_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_8717612.html","width":130,"caption":"","height":86});
															thumbnails[8717613] = clik.newPhoto({"id":8717613,"src":"_NIK2202m_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_8717613.html","width":130,"caption":"","height":86});
															thumbnails[8717614] = clik.newPhoto({"id":8717614,"src":"_NIK2186m_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_8717614.html","width":130,"caption":"","height":86});
															thumbnails[8717615] = clik.newPhoto({"id":8717615,"src":"_NIK2199m_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_8717615.html","width":130,"caption":"","height":86});
															thumbnails[8717616] = clik.newPhoto({"id":8717616,"src":"_NIK2205m_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_8717616.html","width":130,"caption":"","height":86});
															thumbnails[8717617] = clik.newPhoto({"id":8717617,"src":"_NIK2190m_thumb.jpg","galleries_id":45737,"server_id":1,"link":"photo_8717617.html","width":130,"caption":"","height":86});
															thumbnails[8717618] = clik.newPhoto({"id":8717618,"src":"_NIK2197m_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_8717618.html","width":130,"caption":"","height":86});
															thumbnails[8717619] = clik.newPhoto({"id":8717619,"src":"_NIK2166m_thumb.jpg","galleries_id":47459,"server_id":1,"link":"photo_8717619.html","width":130,"caption":"","height":55});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[167899] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White","link":"gallery_167899.html","maxRecords":0.0,"photoIDs":[2650741.0],"skipIndex":0,"section_code":"gallery","featured_images":2650741.0,"id":167899,"singleSection":false});				  						galleries[47459] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hungary","link":"gallery_47459.html","maxRecords":0.0,"photoIDs":[620016.0,3541178.0,3541179.0,3541180.0,3985861.0,5528332.0,5890094.0,8717618.0,8717619.0],"skipIndex":0,"section_code":"gallery","featured_images":3985861.0,"id":47459,"singleSection":false});				  						galleries[46611] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"In Britain","link":"gallery_46611.html","maxRecords":0.0,"photoIDs":[607275.0,607280.0,607282.0,1652656.0,1676308.0,3541186.0,3541187.0,3541348.0],"skipIndex":0,"section_code":"gallery","featured_images":1676308.0,"id":46611,"singleSection":false});				  						galleries[45728] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Infrared","link":"gallery_45728.html","maxRecords":0.0,"photoIDs":[594594.0,594595.0,2592835.0,2592837.0,2592840.0],"skipIndex":0,"section_code":"gallery","featured_images":594595.0,"id":45728,"singleSection":false});				  						galleries[47458] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Morocco","link":"gallery_47458.html","maxRecords":0.0,"photoIDs":[619985.0,619986.0,619987.0,619988.0,619989.0,619990.0,619991.0,619992.0,619993.0,619994.0,619995.0,619996.0,619997.0,619998.0,619999.0,620000.0,620001.0,620002.0,620003.0,620004.0,620005.0,620006.0,620007.0,620008.0,620009.0,620010.0,620011.0,620012.0,620013.0,620015.0,2539902.0,2539906.0,2539909.0,4063664.0,4063709.0,4063722.0,4063729.0],"skipIndex":0,"section_code":"gallery","featured_images":620004.0,"id":47458,"singleSection":false});				  						galleries[45737] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_45737.html","maxRecords":0.0,"photoIDs":[594650.0,1652393.0,1652394.0,1652395.0,1652398.0,1652400.0,1652635.0,1652643.0,1652992.0,1654689.0,1654873.0,1654876.0,1654880.0,1654882.0,1654885.0,2539239.0,2539283.0,2578820.0,2664080.0,5571618.0,5571619.0,8717611.0,8717612.0,8717613.0,8717614.0,8717615.0,8717616.0,8717617.0],"skipIndex":0,"section_code":"gallery","featured_images":2539239.0,"id":45737,"singleSection":false});				  						galleries[163162] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Oldtimer","link":"gallery_163162.html","maxRecords":0.0,"photoIDs":[2554287.0,2554324.0,2554433.0,2554436.0,2554476.0],"skipIndex":0,"section_code":"gallery","featured_images":2554287.0,"id":163162,"singleSection":false});				  						galleries[162470] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_162470.html","maxRecords":0.0,"photoIDs":[2538844.0,7150900.0],"skipIndex":0,"section_code":"gallery","featured_images":2538844.0,"id":162470,"singleSection":false});				  						galleries[45570] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Himalaya - Nepal","link":"gallery_45570.html","maxRecords":0.0,"photoIDs":[594567.0,594568.0,594569.0,594570.0,594571.0,594572.0,594574.0,594575.0,594576.0,594577.0,594578.0,594579.0,594580.0,594581.0,594582.0,594583.0,594584.0,594585.0,594677.0,594679.0,594680.0,5681670.0,5889115.0,5889119.0],"skipIndex":0,"section_code":"gallery","featured_images":594576.0,"id":45570,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '620011';
imageSets[2] = '3985861,2650741,2554287,2539239,2538844,1676308,620004,594595,594576';
imageSets[3] = '8717619,8717618,8717617,8717616,8717615,8717614,8717613,8717612,8717611,7150900,5890094,5889119,5889115,5681670,5571619,5571618,5528332,4063729,4063722,4063709,4063664,3985861,3541348,3541187,3541186,3541180,3541179,3541178,2664080,2650741,2592840,2592837,2592835,2578820,2554476,2554436,2554433,2554324,2554287,2539909,2539906,2539902,2539283,2539239,2538844,1676308,1654885,1654882,1654880,1654876';
imageSets[75036] = '5528332';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/morcosyeti/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/morcosyeti/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 = 'Peter Rosenmann photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	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> Ft ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="MORCOSYETI">';
			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;
	}
}

			

