window.thumbnails = {};
															thumbnails[6967383] = clik.newPhoto({"id":6967383,"src":"studio_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":118,"caption":"Karas Studio for Commercial Photography.","height":130});
															thumbnails[7399954] = clik.newPhoto({"id":7399954,"src":"P0010023_web1_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_7399954.html","width":130,"caption":"Celebrating the Egyptian revolution ","height":98});
															thumbnails[7400006] = clik.newPhoto({"id":7400006,"src":"P0010043_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_7400006.html","width":130,"caption":"Celebrating the Egyptian revolution.","height":64});
															thumbnails[7400013] = clik.newPhoto({"id":7400013,"src":"P0010055_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_7400013.html","width":98,"caption":"","height":130});
															thumbnails[7400015] = clik.newPhoto({"id":7400015,"src":"P0010062_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_7400015.html","width":98,"caption":"Celebrating the Egyptian revolution.","height":130});
															thumbnails[7400016] = clik.newPhoto({"id":7400016,"src":"P0010092_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_7400016.html","width":98,"caption":"Celebrating the Egyptian revolution.","height":130});
															thumbnails[5433146] = clik.newPhoto({"id":5433146,"src":"P0010040_web_7B463D64-1D09-001F-997A5793A9183770_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5433146.html","width":130,"caption":"My sister's wedding session.","height":113});
															thumbnails[5433149] = clik.newPhoto({"id":5433149,"src":"P0010024web_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5433149.html","width":95,"caption":"","height":130});
															thumbnails[5061549] = clik.newPhoto({"id":5061549,"src":"P0010140_web_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_5061549.html","width":97,"caption":"El Fuego","height":130});
															thumbnails[5061552] = clik.newPhoto({"id":5061552,"src":"P0010141_adjusted_web_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_5061552.html","width":97,"caption":"El Fuego","height":130});
															thumbnails[5061557] = clik.newPhoto({"id":5061557,"src":"7_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_5061557.html","width":97,"caption":"Zimmer Gallery","height":130});
															thumbnails[5061562] = clik.newPhoto({"id":5061562,"src":"1_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_5061562.html","width":130,"caption":"Zimmer Gallery","height":102});
															thumbnails[5074860] = clik.newPhoto({"id":5074860,"src":"P0010060_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074860.html","width":98,"caption":"","height":130});
															thumbnails[5074894] = clik.newPhoto({"id":5074894,"src":"P0010008adjusted_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074894.html","width":88,"caption":"","height":130});
															thumbnails[5074910] = clik.newPhoto({"id":5074910,"src":"P0010160adjusted_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074910.html","width":98,"caption":"","height":130});
															thumbnails[5074913] = clik.newPhoto({"id":5074913,"src":"P0010166_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074913.html","width":98,"caption":"","height":130});
															thumbnails[5074917] = clik.newPhoto({"id":5074917,"src":"P0010145sky_toned_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074917.html","width":130,"caption":"","height":98});
															thumbnails[5074920] = clik.newPhoto({"id":5074920,"src":"P0010147sky_toned2_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074920.html","width":130,"caption":"","height":98});
															thumbnails[5074955] = clik.newPhoto({"id":5074955,"src":"P0010143_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074955.html","width":130,"caption":"","height":98});
															thumbnails[5074965] = clik.newPhoto({"id":5074965,"src":"P0010041adjusted_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074965.html","width":130,"caption":"","height":81});
															thumbnails[5074982] = clik.newPhoto({"id":5074982,"src":"P0010039_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074982.html","width":130,"caption":"","height":98});
															thumbnails[5074984] = clik.newPhoto({"id":5074984,"src":"P0010030adjusted3_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5074984.html","width":130,"caption":"","height":98});
															thumbnails[5076503] = clik.newPhoto({"id":5076503,"src":"Cairo_Opera_House_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5076503.html","width":130,"caption":"Cairo Opera House","height":84});
															thumbnails[5084157] = clik.newPhoto({"id":5084157,"src":"P0010025_web_E475C0EE-1D09-001F-99EB3230DF0AC2A7_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5084157.html","width":130,"caption":"Kasr Elnil Bridge.","height":98});
															thumbnails[5087681] = clik.newPhoto({"id":5087681,"src":"P0010030_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5087681.html","width":130,"caption":"Kasr Elnil Bridge.","height":98});
															thumbnails[5087690] = clik.newPhoto({"id":5087690,"src":"P0010017_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5087690.html","width":130,"caption":"Khan El Khalili Market","height":98});
															thumbnails[5087722] = clik.newPhoto({"id":5087722,"src":"P0010018_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5087722.html","width":130,"caption":"Down Town","height":98});
															thumbnails[5087733] = clik.newPhoto({"id":5087733,"src":"P0010028_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5087733.html","width":130,"caption":"Down Town","height":98});
															thumbnails[5087755] = clik.newPhoto({"id":5087755,"src":"adjusted2_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5087755.html","width":130,"caption":"Giza Pyramids","height":114});
															thumbnails[5087759] = clik.newPhoto({"id":5087759,"src":"WEB_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5087759.html","width":130,"caption":"Giza Pyramids","height":97});
															thumbnails[5087970] = clik.newPhoto({"id":5087970,"src":"P0010076web_thumb.jpg","galleries_id":287721,"server_id":5,"link":"photo_5087970.html","width":97,"caption":"Bedouin Boy","height":130});
															thumbnails[5087984] = clik.newPhoto({"id":5087984,"src":"P0010072_thumb.jpg","galleries_id":287721,"server_id":5,"link":"photo_5087984.html","width":97,"caption":"Sinai desert","height":130});
															thumbnails[5088020] = clik.newPhoto({"id":5088020,"src":"P0010025web_thumb.jpg","galleries_id":287721,"server_id":5,"link":"photo_5088020.html","width":97,"caption":"Sinai desert","height":130});
															thumbnails[5088040] = clik.newPhoto({"id":5088040,"src":"P0010044web_thumb.jpg","galleries_id":287721,"server_id":5,"link":"photo_5088040.html","width":130,"caption":"Sinai desert","height":97});
															thumbnails[5088059] = clik.newPhoto({"id":5088059,"src":"P0010006web_thumb.jpg","galleries_id":287721,"server_id":5,"link":"photo_5088059.html","width":98,"caption":"Bedouin girl","height":130});
															thumbnails[5088067] = clik.newPhoto({"id":5088067,"src":"P0010045web_thumb.jpg","galleries_id":287721,"server_id":5,"link":"photo_5088067.html","width":130,"caption":"Saint Catherine Monastery","height":98});
															thumbnails[5088074] = clik.newPhoto({"id":5088074,"src":"P0010040_web_thumb.jpg","galleries_id":287721,"server_id":5,"link":"photo_5088074.html","width":98,"caption":"Saint Catherine Monastery","height":130});
															thumbnails[5088083] = clik.newPhoto({"id":5088083,"src":"P0010041web_thumb.jpg","galleries_id":287721,"server_id":5,"link":"photo_5088083.html","width":130,"caption":"Saint Catherine Monastery","height":98});
															thumbnails[5095822] = clik.newPhoto({"id":5095822,"src":"1_EE9B6B8E-1D09-001F-998AF79F736CF2B3_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5095822.html","width":98,"caption":"The rust effect","height":130});
															thumbnails[5095824] = clik.newPhoto({"id":5095824,"src":"2_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5095824.html","width":98,"caption":"The rust effect","height":130});
															thumbnails[5095838] = clik.newPhoto({"id":5095838,"src":"4_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5095838.html","width":98,"caption":"The rust effect","height":130});
															thumbnails[5114539] = clik.newPhoto({"id":5114539,"src":"Triple_Madness_web_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5114539.html","width":130,"caption":"Triple Madness","height":97});
															thumbnails[5114625] = clik.newPhoto({"id":5114625,"src":"tower_scene_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5114625.html","width":89,"caption":"Tower scene","height":130});
															thumbnails[5114744] = clik.newPhoto({"id":5114744,"src":"still_there_to_the_left_boy_web_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5114744.html","width":130,"caption":"Still there","height":98});
															thumbnails[5114808] = clik.newPhoto({"id":5114808,"src":"Back_street_boys_web_thumb.jpg","galleries_id":287145,"server_id":5,"link":"photo_5114808.html","width":130,"caption":"Back street boys","height":98});
															thumbnails[5115021] = clik.newPhoto({"id":5115021,"src":"GayerP0010109bweb_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5115021.html","width":100,"caption":"Gayer Anderson's House","height":130});
															thumbnails[5115174] = clik.newPhoto({"id":5115174,"src":"P0010101_web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5115174.html","width":130,"caption":"Gayer Anderson's House","height":96});
															thumbnails[5115301] = clik.newPhoto({"id":5115301,"src":"P0010035web_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5115301.html","width":130,"caption":"","height":91});
															thumbnails[5115515] = clik.newPhoto({"id":5115515,"src":"P0010040_web_FF19F8C8-1D09-001F-994BD5051F35279B_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5115515.html","width":130,"caption":"Hanging church","height":129});
															thumbnails[5136423] = clik.newPhoto({"id":5136423,"src":"P0010026_adjusted_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_5136423.html","width":97,"caption":"Talisman Hotel","height":130});
															thumbnails[5137672] = clik.newPhoto({"id":5137672,"src":"P0010011web1_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_5137672.html","width":130,"caption":"Le Pacha 1901","height":98});
															thumbnails[5137681] = clik.newPhoto({"id":5137681,"src":"P0010003web_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_5137681.html","width":130,"caption":"Le Pacha 1901","height":103});
															thumbnails[5137731] = clik.newPhoto({"id":5137731,"src":"P0010008_web_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_5137731.html","width":130,"caption":"Le Pacha 1901","height":98});
															thumbnails[5288750] = clik.newPhoto({"id":5288750,"src":"P0010026b_website_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5288750.html","width":97,"caption":"","height":130});
															thumbnails[5288753] = clik.newPhoto({"id":5288753,"src":"P0010016c_website_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5288753.html","width":117,"caption":"","height":130});
															thumbnails[5289789] = clik.newPhoto({"id":5289789,"src":"P0010045b_website1_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5289789.html","width":82,"caption":"","height":130});
															thumbnails[5290169] = clik.newPhoto({"id":5290169,"src":"P0010015bc_website_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_5290169.html","width":98,"caption":"","height":130});
															thumbnails[5377963] = clik.newPhoto({"id":5377963,"src":"P0010013b_web_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5377963.html","width":119,"caption":"","height":130});
															thumbnails[5387070] = clik.newPhoto({"id":5387070,"src":"UK_BW_diffused_web_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5387070.html","width":109,"caption":"","height":130});
															thumbnails[5437080] = clik.newPhoto({"id":5437080,"src":"P0010023web_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5437080.html","width":105,"caption":"My sister's wedding.","height":130});
															thumbnails[6491079] = clik.newPhoto({"id":6491079,"src":"williams2_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_6491079.html","width":130,"caption":"Williams Office Catalog, 2010.","height":92});
															thumbnails[6491124] = clik.newPhoto({"id":6491124,"src":"williams3_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_6491124.html","width":130,"caption":"Williams Office Catalog, 2010.","height":92});
															thumbnails[7004154] = clik.newPhoto({"id":7004154,"src":"P0010006_web_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_7004154.html","width":106,"caption":"","height":130});
															thumbnails[7004179] = clik.newPhoto({"id":7004179,"src":"P0010047web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7004179.html","width":101,"caption":"","height":130});
															thumbnails[7004218] = clik.newPhoto({"id":7004218,"src":"15062008_03web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7004218.html","width":106,"caption":"","height":130});
															thumbnails[7004227] = clik.newPhoto({"id":7004227,"src":"set_up1_web_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_7004227.html","width":130,"caption":"& Cairo","height":90});
															thumbnails[7004245] = clik.newPhoto({"id":7004245,"src":"IMG_0040_adjusted_web_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_7004245.html","width":94,"caption":"& Cairo.","height":130});
															thumbnails[7005740] = clik.newPhoto({"id":7005740,"src":"29082008_07_website_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7005740.html","width":130,"caption":"Alfredo seafood.","height":98});
															thumbnails[7005749] = clik.newPhoto({"id":7005749,"src":"29082008_64_website_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7005749.html","width":130,"caption":"Alfredo seafood.","height":87});
															thumbnails[7005858] = clik.newPhoto({"id":7005858,"src":"IMG_0008web_thumb.jpg","galleries_id":286400,"server_id":5,"link":"photo_7005858.html","width":94,"caption":"& Cairo.","height":130});
															thumbnails[7083497] = clik.newPhoto({"id":7083497,"src":"P0010015k-2_retouched_2_web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7083497.html","width":97,"caption":"","height":130});
															thumbnails[7146630] = clik.newPhoto({"id":7146630,"src":"31072008_12_website_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_7146630.html","width":103,"caption":"","height":130});
															thumbnails[7147214] = clik.newPhoto({"id":7147214,"src":"31072008_01website_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_7147214.html","width":85,"caption":"","height":130});
															thumbnails[7147221] = clik.newPhoto({"id":7147221,"src":"carrera_web_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_7147221.html","width":130,"caption":"","height":108});
															thumbnails[7296794] = clik.newPhoto({"id":7296794,"src":"website_0161_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7296794.html","width":88,"caption":"","height":130});
															thumbnails[7296796] = clik.newPhoto({"id":7296796,"src":"website_0162_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7296796.html","width":87,"caption":"","height":130});
															thumbnails[7303998] = clik.newPhoto({"id":7303998,"src":"web_0177_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7303998.html","width":87,"caption":"","height":130});
															thumbnails[7322991] = clik.newPhoto({"id":7322991,"src":"13092008_03_conceptual_web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7322991.html","width":130,"caption":"","height":93});
															thumbnails[7324274] = clik.newPhoto({"id":7324274,"src":"Brownies_0226_website_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7324274.html","width":87,"caption":"","height":130});
															thumbnails[7330722] = clik.newPhoto({"id":7330722,"src":"Grants_0012_best_retouched_web_site_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7330722.html","width":87,"caption":"","height":130});
															thumbnails[7565209] = clik.newPhoto({"id":7565209,"src":"letuce__colors_0268_website_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7565209.html","width":87,"caption":"","height":130});
															thumbnails[7565226] = clik.newPhoto({"id":7565226,"src":"letuce__colors_0237_website_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7565226.html","width":69,"caption":"","height":130});
															thumbnails[7565265] = clik.newPhoto({"id":7565265,"src":"letuce__colors_0190_website_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7565265.html","width":91,"caption":"","height":130});
															thumbnails[7569815] = clik.newPhoto({"id":7569815,"src":"Beer_0422_website_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7569815.html","width":82,"caption":"","height":130});
															thumbnails[7569816] = clik.newPhoto({"id":7569816,"src":"Mojito_0305_website_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_7569816.html","width":119,"caption":"","height":130});
															thumbnails[7635326] = clik.newPhoto({"id":7635326,"src":"P0010006website_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_7635326.html","width":98,"caption":"Downtown Cairo","height":130});
															thumbnails[7635331] = clik.newPhoto({"id":7635331,"src":"P0010021website_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_7635331.html","width":130,"caption":"","height":98});
															thumbnails[7635332] = clik.newPhoto({"id":7635332,"src":"P0010018website_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_7635332.html","width":98,"caption":"","height":130});
															thumbnails[7750289] = clik.newPhoto({"id":7750289,"src":"P0010027_BW_web_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_7750289.html","width":97,"caption":"Spanish guitar","height":130});
															thumbnails[7784433] = clik.newPhoto({"id":7784433,"src":"Karim_0811_facebook_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7784433.html","width":90,"caption":"Egyptian designer: Karim Mekhtigian. Copyrights reserved © 2011. ","height":130});
															thumbnails[7784550] = clik.newPhoto({"id":7784550,"src":"Main_3_gradient_facebook_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_7784550.html","width":91,"caption":"","height":130});
															thumbnails[7814213] = clik.newPhoto({"id":7814213,"src":"P0010061_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_7814213.html","width":130,"caption":"","height":102});
															thumbnails[7814219] = clik.newPhoto({"id":7814219,"src":"P0010097_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_7814219.html","width":130,"caption":"","height":102});
															thumbnails[7814222] = clik.newPhoto({"id":7814222,"src":"P0010068_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_7814222.html","width":102,"caption":"","height":130});
															thumbnails[7814223] = clik.newPhoto({"id":7814223,"src":"P0010050_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_7814223.html","width":102,"caption":"","height":130});
															thumbnails[7974830] = clik.newPhoto({"id":7974830,"src":"P0010448_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974830.html","width":104,"caption":"","height":130});
															thumbnails[7974833] = clik.newPhoto({"id":7974833,"src":"P0010450_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974833.html","width":104,"caption":"","height":130});
															thumbnails[7974847] = clik.newPhoto({"id":7974847,"src":"P0010452_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974847.html","width":104,"caption":"","height":130});
															thumbnails[7974850] = clik.newPhoto({"id":7974850,"src":"P0010445_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974850.html","width":130,"caption":"","height":117});
															thumbnails[7974885] = clik.newPhoto({"id":7974885,"src":"P0010409_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974885.html","width":104,"caption":"","height":130});
															thumbnails[7974941] = clik.newPhoto({"id":7974941,"src":"P0010060_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974941.html","width":104,"caption":"","height":130});
															thumbnails[7974955] = clik.newPhoto({"id":7974955,"src":"P0010297_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974955.html","width":104,"caption":"","height":130});
															thumbnails[7974961] = clik.newPhoto({"id":7974961,"src":"P0010310_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974961.html","width":104,"caption":"","height":130});
															thumbnails[7974971] = clik.newPhoto({"id":7974971,"src":"P0010217_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974971.html","width":104,"caption":"","height":130});
															thumbnails[7974975] = clik.newPhoto({"id":7974975,"src":"P0010325_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974975.html","width":104,"caption":"","height":130});
															thumbnails[7974983] = clik.newPhoto({"id":7974983,"src":"P0010345_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974983.html","width":104,"caption":"","height":130});
															thumbnails[7974986] = clik.newPhoto({"id":7974986,"src":"P0010359_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7974986.html","width":104,"caption":"","height":130});
															thumbnails[7975400] = clik.newPhoto({"id":7975400,"src":"P0010457_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7975400.html","width":114,"caption":"","height":130});
															thumbnails[7975514] = clik.newPhoto({"id":7975514,"src":"P0010425_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7975514.html","width":114,"caption":"","height":130});
															thumbnails[7980139] = clik.newPhoto({"id":7980139,"src":"P0010207_web_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7980139.html","width":114,"caption":"","height":130});
															thumbnails[8022486] = clik.newPhoto({"id":8022486,"src":"240236_188847081165068_156938781022565_449769_1459557_o_thumb.jpg","galleries_id":429391,"server_id":5,"link":"photo_8022486.html","width":100,"caption":"","height":130});
															thumbnails[8145985] = clik.newPhoto({"id":8145985,"src":"awesome_sunset_web_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_8145985.html","width":98,"caption":"","height":130});
															thumbnails[8319595] = clik.newPhoto({"id":8319595,"src":"P0010087_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_8319595.html","width":97,"caption":"","height":130});
															thumbnails[8319596] = clik.newPhoto({"id":8319596,"src":"P0010089_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_8319596.html","width":104,"caption":"","height":130});
															thumbnails[8319598] = clik.newPhoto({"id":8319598,"src":"P0010073_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_8319598.html","width":130,"caption":"","height":97});
															thumbnails[8319599] = clik.newPhoto({"id":8319599,"src":"P0010086_thumb.jpg","galleries_id":287188,"server_id":5,"link":"photo_8319599.html","width":130,"caption":"","height":97});
															thumbnails[8384771] = clik.newPhoto({"id":8384771,"src":"splash_0494web_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_8384771.html","width":89,"caption":"","height":130});
															thumbnails[8406985] = clik.newPhoto({"id":8406985,"src":"splash_0538web_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_8406985.html","width":93,"caption":"","height":130});
															thumbnails[8780856] = clik.newPhoto({"id":8780856,"src":"Sara_0738_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8780856.html","width":130,"caption":"","height":119});
															thumbnails[8781062] = clik.newPhoto({"id":8781062,"src":"P0010031-2_gradient_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_8781062.html","width":93,"caption":"","height":130});
															thumbnails[8783614] = clik.newPhoto({"id":8783614,"src":"Sara_0725web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8783614.html","width":130,"caption":"","height":87});
															thumbnails[8808511] = clik.newPhoto({"id":8808511,"src":"P0010048-2web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8808511.html","width":97,"caption":"","height":130});
															thumbnails[8820319] = clik.newPhoto({"id":8820319,"src":"P0010034cropped_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_8820319.html","width":130,"caption":"","height":104});
															thumbnails[9092807] = clik.newPhoto({"id":9092807,"src":"Untitled-1web-2_1_thumb.jpg","galleries_id":270305,"server_id":38,"link":"photo_9092807.html","width":130,"caption":"","height":94});
															thumbnails[9092814] = clik.newPhoto({"id":9092814,"src":"P0010080_1_thumb.jpg","galleries_id":270305,"server_id":38,"link":"photo_9092814.html","width":130,"caption":"","height":73});
															thumbnails[5061545] = clik.newPhoto({"id":5061545,"src":"P0010120_adjusted_web_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_5061545.html","width":97,"caption":"Gianaclis wines","height":130});
															thumbnails[6210538] = clik.newPhoto({"id":6210538,"src":"mahmoud_maze_web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_6210538.html","width":130,"caption":"","height":124});
															thumbnails[8018963] = clik.newPhoto({"id":8018963,"src":"P0010534-2_BW_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8018963.html","width":130,"caption":"","height":100});
															thumbnails[5596837] = clik.newPhoto({"id":5596837,"src":"03052008_5_web_thumb.jpg","galleries_id":379515,"server_id":5,"link":"photo_5596837.html","width":114,"caption":"","height":130});
															thumbnails[6184482] = clik.newPhoto({"id":6184482,"src":"P0010027_copy_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_6184482.html","width":130,"caption":"","height":110});
															thumbnails[8084066] = clik.newPhoto({"id":8084066,"src":"Nabil_0148_website_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8084066.html","width":110,"caption":"","height":130});
															thumbnails[5061540] = clik.newPhoto({"id":5061540,"src":"P0010023__web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5061540.html","width":97,"caption":"Ragai Karas","height":130});
															thumbnails[5125063] = clik.newPhoto({"id":5125063,"src":"Chivas_Regal_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_5125063.html","width":91,"caption":"Chivas Regal","height":130});
															thumbnails[6195286] = clik.newPhoto({"id":6195286,"src":"Abstract_Vector_Images_web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_6195286.html","width":97,"caption":"","height":130});
															thumbnails[5231804] = clik.newPhoto({"id":5231804,"src":"13062008_20-2_web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_5231804.html","width":98,"caption":"","height":130});
															thumbnails[5313867] = clik.newPhoto({"id":5313867,"src":"P0010016d_web_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_5313867.html","width":73,"caption":"","height":130});
															thumbnails[7317001] = clik.newPhoto({"id":7317001,"src":"web_0111_copy_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_7317001.html","width":130,"caption":"","height":90});
															thumbnails[5231801] = clik.newPhoto({"id":5231801,"src":"13062008_09_web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_5231801.html","width":77,"caption":"","height":130});
															thumbnails[5912124] = clik.newPhoto({"id":5912124,"src":"05032008_43_adjusted_web_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_5912124.html","width":130,"caption":"Golden Ring","height":117});
															thumbnails[8173349] = clik.newPhoto({"id":8173349,"src":"282574_10150240866183920_166576253919_7515340_5811471_n_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8173349.html","width":130,"caption":"","height":117});
															thumbnails[5912099] = clik.newPhoto({"id":5912099,"src":"05032008_9web_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_5912099.html","width":85,"caption":"Golden Bracelet.","height":130});
															thumbnails[8175564] = clik.newPhoto({"id":8175564,"src":"Karim_0896web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8175564.html","width":87,"caption":"","height":130});
															thumbnails[5313886] = clik.newPhoto({"id":5313886,"src":"P0010014_facebook_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_5313886.html","width":92,"caption":"","height":130});
															thumbnails[5339982] = clik.newPhoto({"id":5339982,"src":"korin_portrait_BW_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5339982.html","width":96,"caption":"","height":130});
															thumbnails[5339963] = clik.newPhoto({"id":5339963,"src":"P0010013BW_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5339963.html","width":97,"caption":"","height":130});
															thumbnails[5596832] = clik.newPhoto({"id":5596832,"src":"03052008_4_web_thumb.jpg","galleries_id":289634,"server_id":5,"link":"photo_5596832.html","width":128,"caption":"","height":130});
															thumbnails[8199948] = clik.newPhoto({"id":8199948,"src":"Nabil_0158-4web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8199948.html","width":87,"caption":"","height":130});
															thumbnails[5061326] = clik.newPhoto({"id":5061326,"src":"Prayweb_view_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5061326.html","width":130,"caption":"Pray","height":61});
															thumbnails[5339999] = clik.newPhoto({"id":5339999,"src":"P0010002_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5339999.html","width":97,"caption":"","height":130});
															thumbnails[5366912] = clik.newPhoto({"id":5366912,"src":"web_2A2D6BFE-2219-B5B5-4C904A4B3D2A5A46_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5366912.html","width":130,"caption":"Korin & Basem's wedding.<br>\r\n*** Photo may look degraded in quality due to web view reasons ***","height":45});
															thumbnails[7985989] = clik.newPhoto({"id":7985989,"src":"campus1_thumb.jpg","galleries_id":429391,"server_id":5,"link":"photo_7985989.html","width":95,"caption":"","height":130});
															thumbnails[8221177] = clik.newPhoto({"id":8221177,"src":"May_0090_final_website_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8221177.html","width":130,"caption":"","height":106});
															thumbnails[7296793] = clik.newPhoto({"id":7296793,"src":"website_0125_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_7296793.html","width":130,"caption":"","height":126});
															thumbnails[8003130] = clik.newPhoto({"id":8003130,"src":"May_0041_website_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_8003130.html","width":87,"caption":"","height":130});
															thumbnails[7810236] = clik.newPhoto({"id":7810236,"src":"On_black_web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_7810236.html","width":130,"caption":"","height":70});
															thumbnails[4717347] = clik.newPhoto({"id":4717347,"src":"P0010033cropped_without_finger_web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_4717347.html","width":130,"caption":"","height":169});
															thumbnails[5061479] = clik.newPhoto({"id":5061479,"src":"The_ultimate_sports_wear_to_send_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5061479.html","width":130,"caption":"Lost","height":61});
															thumbnails[5366915] = clik.newPhoto({"id":5366915,"src":"web1_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5366915.html","width":130,"caption":"korin & Basem's wedding.","height":96});
															thumbnails[7985994] = clik.newPhoto({"id":7985994,"src":"campus21_thumb.jpg","galleries_id":429391,"server_id":5,"link":"photo_7985994.html","width":95,"caption":"","height":130});
															thumbnails[5063301] = clik.newPhoto({"id":5063301,"src":"composition2_web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_5063301.html","width":130,"caption":"","height":103});
															thumbnails[5366919] = clik.newPhoto({"id":5366919,"src":"web3_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5366919.html","width":112,"caption":"Korin & Basem's wedding.","height":130});
															thumbnails[7985995] = clik.newPhoto({"id":7985995,"src":"celantro_thumb.jpg","galleries_id":429391,"server_id":5,"link":"photo_7985995.html","width":130,"caption":"","height":114});
															thumbnails[5063300] = clik.newPhoto({"id":5063300,"src":"13062008_31_web_thumb.jpg","galleries_id":270306,"server_id":5,"link":"photo_5063300.html","width":130,"caption":"","height":103});
															thumbnails[5366922] = clik.newPhoto({"id":5366922,"src":"web_2A31BC8C-2219-B5B5-4CF3563F8B7A81D7_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5366922.html","width":100,"caption":"Donna & Hany's engagement.","height":130});
															thumbnails[7985999] = clik.newPhoto({"id":7985999,"src":"enigma1_thumb.jpg","galleries_id":429391,"server_id":5,"link":"photo_7985999.html","width":95,"caption":"","height":130});
															thumbnails[5095766] = clik.newPhoto({"id":5095766,"src":"Time_to_pray_to_send_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5095766.html","width":130,"caption":"Time to pray","height":101});
															thumbnails[5366908] = clik.newPhoto({"id":5366908,"src":"P0010006a_web2_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5366908.html","width":130,"caption":"Mariam & Michael's engagement.","height":126});
															thumbnails[7986000] = clik.newPhoto({"id":7986000,"src":"enigma2_thumb.jpg","galleries_id":429391,"server_id":5,"link":"photo_7986000.html","width":95,"caption":"","height":130});
															thumbnails[5366925] = clik.newPhoto({"id":5366925,"src":"P0010013a_thumb.jpg","galleries_id":302477,"server_id":5,"link":"photo_5366925.html","width":107,"caption":"Mariam & Michael's engagement.","height":130});
															thumbnails[5095753] = clik.newPhoto({"id":5095753,"src":"Think_High_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5095753.html","width":130,"caption":"The Good Fellow","height":100});
															thumbnails[7980114] = clik.newPhoto({"id":7980114,"src":"P0010065_web_99F74910-1EC9-D45B-1C4E1EF42FD0AFE0_thumb.jpg","galleries_id":428925,"server_id":5,"link":"photo_7980114.html","width":104,"caption":"","height":130});
															thumbnails[7986002] = clik.newPhoto({"id":7986002,"src":"Egypt_today_thumb.jpg","galleries_id":429391,"server_id":5,"link":"photo_7986002.html","width":69,"caption":"","height":130});
															thumbnails[5099694] = clik.newPhoto({"id":5099694,"src":"Flora_web_thumb.jpg","galleries_id":286364,"server_id":5,"link":"photo_5099694.html","width":130,"caption":"","height":129});
															thumbnails[5340026] = clik.newPhoto({"id":5340026,"src":"P0010044_web1_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5340026.html","width":87,"caption":"","height":130});
															thumbnails[5340033] = clik.newPhoto({"id":5340033,"src":"smoke_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5340033.html","width":130,"caption":"","height":125});
															thumbnails[7962136] = clik.newPhoto({"id":7962136,"src":"P0010473_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_7962136.html","width":110,"caption":"","height":130});
															thumbnails[5475334] = clik.newPhoto({"id":5475334,"src":"P0010001-3_best_web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5475334.html","width":102,"caption":"Egypt's top photographer: \" Tarek El Baradie \". ","height":130});
															thumbnails[7004200] = clik.newPhoto({"id":7004200,"src":"P0010023_retouched_web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_7004200.html","width":117,"caption":"","height":130});
															thumbnails[5061537] = clik.newPhoto({"id":5061537,"src":"P0010013adjusted2_web_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5061537.html","width":107,"caption":"","height":130});
															thumbnails[5340103] = clik.newPhoto({"id":5340103,"src":"7_0B11322D-2219-B5B5-4C6F22FD9639D85F_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5340103.html","width":130,"caption":"","height":79});
															thumbnails[5340047] = clik.newPhoto({"id":5340047,"src":"P0010025_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5340047.html","width":97,"caption":"","height":130});
															thumbnails[7303898] = clik.newPhoto({"id":7303898,"src":"Collection_website_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_7303898.html","width":130,"caption":"","height":64});
															thumbnails[5340061] = clik.newPhoto({"id":5340061,"src":"P0010044c_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5340061.html","width":110,"caption":"","height":130});
															thumbnails[5340084] = clik.newPhoto({"id":5340084,"src":"P0010248_thumb.jpg","galleries_id":270305,"server_id":5,"link":"photo_5340084.html","width":97,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[270306] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion","link":"gallery_270306.html","maxRecords":0.0,"photoIDs":[7004179.0,7004218.0,7083497.0,7296794.0,7296796.0,7303998.0,7322991.0,7784433.0,7784550.0,8781062.0,8820319.0,6210538.0,6184482.0,6195286.0,5231804.0,5231801.0,5063301.0,5063300.0],"skipIndex":0,"section_code":"gallery","featured_images":5063300.0,"id":270306,"singleSection":false});				  						galleries[270305] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_270305.html","maxRecords":0.0,"photoIDs":[8780856.0,8783614.0,8808511.0,9092807.0,9092814.0,8018963.0,8084066.0,5061540.0,7317001.0,8173349.0,8175564.0,5339982.0,5339963.0,8199948.0,5339999.0,8221177.0,7296793.0,8003130.0,7810236.0,4717347.0,5340026.0,5340033.0,7962136.0,5475334.0,7004200.0,5061537.0,5340103.0,5340047.0,7303898.0,5340061.0,5340084.0],"skipIndex":0,"section_code":"gallery","featured_images":5339963.0,"id":270305,"singleSection":false});				  						galleries[289634] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Products","link":"gallery_289634.html","maxRecords":0.0,"photoIDs":[7146630.0,7147214.0,7147221.0,7750289.0,5061545.0,5125063.0,5313867.0,5912124.0,5912099.0,5313886.0,5596832.0],"skipIndex":0,"section_code":"gallery","featured_images":7146630.0,"id":289634,"singleSection":false});				  						galleries[379515] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Food & Beverage","link":"gallery_379515.html","maxRecords":0.0,"photoIDs":[7005740.0,7005749.0,7324274.0,7330722.0,7565209.0,7565226.0,7565265.0,7569815.0,7569816.0,8384771.0,8406985.0,5596837.0],"skipIndex":0,"section_code":"gallery","featured_images":7005740.0,"id":379515,"singleSection":false});				  						galleries[286400] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Indoors & Furniture","link":"gallery_286400.html","maxRecords":0.0,"photoIDs":[5061549.0,5061552.0,5061557.0,5061562.0,5136423.0,5137672.0,5137681.0,5137731.0,6491079.0,6491124.0,7004227.0,7004245.0,7005858.0],"skipIndex":0,"section_code":"gallery","featured_images":6491124.0,"id":286400,"singleSection":false});				  						galleries[302477] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Special Occasions","link":"gallery_302477.html","maxRecords":0.0,"photoIDs":[5433146.0,5433149.0,5437080.0,7814213.0,7814219.0,7814222.0,7814223.0,5366912.0,5366915.0,5366919.0,5366922.0,5366908.0,5366925.0],"skipIndex":0,"section_code":"gallery","featured_images":5366915.0,"id":302477,"singleSection":false});				  						galleries[286364] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Conceptual","link":"gallery_286364.html","maxRecords":0.0,"photoIDs":[5095822.0,5095824.0,5095838.0,5114539.0,5288750.0,5288753.0,5377963.0,5387070.0,7004154.0,7635332.0,8145985.0,5061326.0,5061479.0,5095766.0,5095753.0,5099694.0],"skipIndex":0,"section_code":"gallery","featured_images":7004154.0,"id":286364,"singleSection":false});				  						galleries[429391] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Interviews & Publication","link":"gallery_429391.html","maxRecords":0.0,"photoIDs":[8022486.0,7985989.0,7985994.0,7985995.0,7985999.0,7986000.0,7986002.0],"skipIndex":0,"section_code":"gallery","featured_images":8022486.0,"id":429391,"singleSection":false});				  						galleries[287145] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alexandria","link":"gallery_287145.html","maxRecords":0.0,"photoIDs":[5074860.0,5074894.0,5074910.0,5074913.0,5074917.0,5074920.0,5074955.0,5074965.0,5074982.0,5074984.0,5114744.0,5114808.0],"skipIndex":0,"section_code":"gallery","featured_images":5074955.0,"id":287145,"singleSection":false});				  						galleries[287721] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sinai","link":"gallery_287721.html","maxRecords":0.0,"photoIDs":[5087970.0,5087984.0,5088020.0,5088040.0,5088059.0,5088067.0,5088074.0,5088083.0],"skipIndex":0,"section_code":"gallery","featured_images":5088040.0,"id":287721,"singleSection":false});				  						galleries[287188] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cairo","link":"gallery_287188.html","maxRecords":0.0,"photoIDs":[7399954.0,7400006.0,7400013.0,7400015.0,7400016.0,5076503.0,5084157.0,5087681.0,5087690.0,5087722.0,5087733.0,5087755.0,5087759.0,5114625.0,5115021.0,5115174.0,5115301.0,5115515.0,5289789.0,5290169.0,7635326.0,7635331.0,8319595.0,8319596.0,8319598.0,8319599.0],"skipIndex":0,"section_code":"gallery","featured_images":5084157.0,"id":287188,"singleSection":false});				  						galleries[428925] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ISTANBUL 2011","link":"gallery_428925.html","maxRecords":0.0,"photoIDs":[7974830.0,7974833.0,7974847.0,7974850.0,7974885.0,7974941.0,7974955.0,7974961.0,7974971.0,7974975.0,7974983.0,7974986.0,7975400.0,7975514.0,7980139.0,7980114.0],"skipIndex":0,"section_code":"gallery","featured_images":7974955.0,"id":428925,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5063301';
imageSets[2] = '8022486,7974955,7146630,7005740,7004154,6491124,5088040,5084157,5074955,5339963,5366915,5063300';
imageSets[3] = '9092814,9092807,8820319,8808511,8783614,8781062,8780856,8406985,8384771,8319599,8319598,8319596,8319595,8221177,8199948,8175564,8173349,8145985,8084066,8022486,8018963,8003130,7986002,7986000,7985999,7985995,7985994,7985989,7980139,7980114,7975514,7975400,7974986,7974983,7974975,7974971,7974961,7974955,7974941,7974885,7974850,7974847,7974833,7974830,7962136,7814223,7814222,7814219,7814213,7810236';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sherkaras/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sherkaras/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 = 'SHERIF KARAS 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>';
	}
				
				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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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 += '<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;
	}
}

			

