window.thumbnails = {};
															thumbnails[9000162] = clik.newPhoto({"id":9000162,"src":"_C030982_0D0F76E1-1EC9-DFB6-09C995C203091B40_thumb_0D130003-1EC9-DFB6-095EF36C688FAD81.JPG","galleries_id":208634,"server_id":1,"link":"photo_9000162.html","width":130,"caption":"Empty bench","height":195});
															thumbnails[6784642] = clik.newPhoto({"id":6784642,"src":"_DSC0037_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_6784642.html","width":130,"caption":"Pompidou","height":86});
															thumbnails[6784654] = clik.newPhoto({"id":6784654,"src":"_DSC0190_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_6784654.html","width":130,"caption":"Bastile","height":86});
															thumbnails[7609081] = clik.newPhoto({"id":7609081,"src":"_DSC0170_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609081.html","width":130,"caption":"le garçon dans se repent du Rue Saint Dominique","height":193});
															thumbnails[6784697] = clik.newPhoto({"id":6784697,"src":"DSC_3311_thumb.jpg","galleries_id":233500,"server_id":1,"link":"photo_6784697.html","width":130,"caption":"Place du Trocadero","height":86});
															thumbnails[6855495] = clik.newPhoto({"id":6855495,"src":"_DSC0075_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_6855495.html","width":130,"caption":"Musee du Louvre","height":86});
															thumbnails[6855539] = clik.newPhoto({"id":6855539,"src":"_DSC0108_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_6855539.html","width":130,"caption":"Reflections","height":196});
															thumbnails[6855549] = clik.newPhoto({"id":6855549,"src":"_DSC0117_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_6855549.html","width":130,"caption":"Institute du Monde Arabe","height":196});
															thumbnails[6855562] = clik.newPhoto({"id":6855562,"src":"_DSC0141_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_6855562.html","width":130,"caption":"Velibe","height":86});
															thumbnails[6855580] = clik.newPhoto({"id":6855580,"src":"_DSC0162_thumb.jpg","galleries_id":281259,"server_id":1,"link":"photo_6855580.html","width":130,"caption":"Perrier","height":86});
															thumbnails[5893609] = clik.newPhoto({"id":5893609,"src":"_DSC6900_thumb.JPG","galleries_id":281259,"server_id":1,"link":"photo_5893609.html","width":130,"caption":"Lunchtime","height":86});
															thumbnails[5893614] = clik.newPhoto({"id":5893614,"src":"_DSC6902_thumb.JPG","galleries_id":277342,"server_id":1,"link":"photo_5893614.html","width":130,"caption":"Relections","height":86});
															thumbnails[5893621] = clik.newPhoto({"id":5893621,"src":"_DSC6905_thumb.JPG","galleries_id":469955,"server_id":1,"link":"photo_5893621.html","width":130,"caption":"Sitting","height":86});
															thumbnails[5893625] = clik.newPhoto({"id":5893625,"src":"_DSC6926_thumb.JPG","galleries_id":277342,"server_id":1,"link":"photo_5893625.html","width":130,"caption":"Shadows","height":86});
															thumbnails[5893628] = clik.newPhoto({"id":5893628,"src":"_DSC6927_thumb.JPG","galleries_id":277342,"server_id":1,"link":"photo_5893628.html","width":130,"caption":"Musee du Louvre","height":86});
															thumbnails[5893633] = clik.newPhoto({"id":5893633,"src":"_DSC6941_thumb.JPG","galleries_id":469955,"server_id":1,"link":"photo_5893633.html","width":130,"caption":"Sunny afternoon","height":86});
															thumbnails[5684593] = clik.newPhoto({"id":5684593,"src":"Copy_5331_thumb.jpg","galleries_id":469955,"server_id":1,"link":"photo_5684593.html","width":130,"caption":"Chairs","height":79});
															thumbnails[3909992] = clik.newPhoto({"id":3909992,"src":"Paris_026_copy_thumb.jpg","galleries_id":233500,"server_id":1,"link":"photo_3909992.html","width":130,"caption":"Eiffel Tower & the Peace memorial","height":86});
															thumbnails[3909993] = clik.newPhoto({"id":3909993,"src":"Paris_027_thumb.jpg","galleries_id":233500,"server_id":1,"link":"photo_3909993.html","width":130,"caption":"Eiffel Tower","height":86});
															thumbnails[3909996] = clik.newPhoto({"id":3909996,"src":"Paris_0451_thumb.jpg","galleries_id":233500,"server_id":1,"link":"photo_3909996.html","width":130,"caption":"Underneath the tower","height":86});
															thumbnails[3910697] = clik.newPhoto({"id":3910697,"src":"Paris_098_1_thumb.jpg","galleries_id":233500,"server_id":1,"link":"photo_3910697.html","width":130,"caption":"Eiffel Tower","height":86});
															thumbnails[3910720] = clik.newPhoto({"id":3910720,"src":"Paris_023_thumb.jpg","galleries_id":233500,"server_id":1,"link":"photo_3910720.html","width":130,"caption":"Eiffel Tower","height":86});
															thumbnails[3910767] = clik.newPhoto({"id":3910767,"src":"Paris_106_1_thumb.jpg","galleries_id":233500,"server_id":1,"link":"photo_3910767.html","width":130,"caption":"Eiffel Tower","height":86});
															thumbnails[3911974] = clik.newPhoto({"id":3911974,"src":"CNV000172_thumb.JPG","galleries_id":277342,"server_id":1,"link":"photo_3911974.html","width":130,"caption":"Musee Picasso","height":91});
															thumbnails[4945219] = clik.newPhoto({"id":4945219,"src":"Paris_001_thumb.jpg","galleries_id":281259,"server_id":1,"link":"photo_4945219.html","width":130,"caption":"My coffee awaits!","height":86});
															thumbnails[3418746] = clik.newPhoto({"id":3418746,"src":"Copy 004_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3418746.html","width":130,"caption":"Sacre Cour, Montmartre","height":196});
															thumbnails[3418804] = clik.newPhoto({"id":3418804,"src":"Copy 010_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3418804.html","width":130,"caption":"All down hill","height":196});
															thumbnails[3418827] = clik.newPhoto({"id":3418827,"src":"Copy 209_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3418827.html","width":130,"caption":"Musee du Louvre","height":196});
															thumbnails[3418839] = clik.newPhoto({"id":3418839,"src":"Copy 4121_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3418839.html","width":130,"caption":"Velibe","height":196});
															thumbnails[3418843] = clik.newPhoto({"id":3418843,"src":"Copy 443_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3418843.html","width":130,"caption":"Mirror","height":196});
															thumbnails[3418922] = clik.newPhoto({"id":3418922,"src":"Copy 319_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3418922.html","width":130,"caption":"Jardin du Palais Royal","height":193});
															thumbnails[3418932] = clik.newPhoto({"id":3418932,"src":"Copy 347_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3418932.html","width":130,"caption":"Galerie Vivienne","height":196});
															thumbnails[3418988] = clik.newPhoto({"id":3418988,"src":"Copy 538_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3418988.html","width":130,"caption":"Jardin du Tuilleries","height":196});
															thumbnails[3419045] = clik.newPhoto({"id":3419045,"src":"Copy 706_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3419045.html","width":130,"caption":"Place des Vosges","height":196});
															thumbnails[3419053] = clik.newPhoto({"id":3419053,"src":"Copy 405_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3419053.html","width":130,"caption":"Walking","height":201});
															thumbnails[3419085] = clik.newPhoto({"id":3419085,"src":"Copy 560_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3419085.html","width":130,"caption":"Place de la Concord","height":196});
															thumbnails[3419364] = clik.newPhoto({"id":3419364,"src":"Copy 290_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_3419364.html","width":130,"caption":"Jardin du Palais Royal","height":196});
															thumbnails[4945211] = clik.newPhoto({"id":4945211,"src":"DSC_3297_thumb.jpg","galleries_id":281259,"server_id":1,"link":"photo_4945211.html","width":130,"caption":"Sunny afternoon","height":86});
															thumbnails[4945221] = clik.newPhoto({"id":4945221,"src":"Picture_036_thumb.jpg","galleries_id":281259,"server_id":1,"link":"photo_4945221.html","width":130,"caption":"Today's special","height":86});
															thumbnails[6784628] = clik.newPhoto({"id":6784628,"src":"_DSC0168_thumb.jpg","galleries_id":208634,"server_id":1,"link":"photo_6784628.html","width":130,"caption":"Perrier","height":196});
															thumbnails[7609083] = clik.newPhoto({"id":7609083,"src":"_DSC0173_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609083.html","width":130,"caption":"le garçon dans se repent du Rue Saint Dominique","height":84});
															thumbnails[7609085] = clik.newPhoto({"id":7609085,"src":"_DSC0205_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609085.html","width":130,"caption":"Graffiti in the Marais","height":196});
															thumbnails[7609087] = clik.newPhoto({"id":7609087,"src":"_DSC0206_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609087.html","width":130,"caption":"Graffiti in the Marais","height":85});
															thumbnails[7609088] = clik.newPhoto({"id":7609088,"src":"Copy_013_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609088.html","width":130,"caption":"On guard","height":196});
															thumbnails[7609090] = clik.newPhoto({"id":7609090,"src":"Copy_053_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609090.html","width":130,"caption":"Marilyn","height":86});
															thumbnails[7609093] = clik.newPhoto({"id":7609093,"src":"Copy_776_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609093.html","width":130,"caption":"Hand signals","height":204});
															thumbnails[7609094] = clik.newPhoto({"id":7609094,"src":"Copy_777_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609094.html","width":130,"caption":"The magician","height":196});
															thumbnails[7609096] = clik.newPhoto({"id":7609096,"src":"Paris_film_055_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609096.html","width":130,"caption":"Lady Di","height":89});
															thumbnails[7609098] = clik.newPhoto({"id":7609098,"src":"Place_des_voges_0183_thumb.jpg","galleries_id":412644,"server_id":1,"link":"photo_7609098.html","width":130,"caption":"The boxer","height":84});
															thumbnails[9000246] = clik.newPhoto({"id":9000246,"src":"_C041031_thumb.JPG","galleries_id":469955,"server_id":1,"link":"photo_9000246.html","width":130,"caption":"","height":130});
															thumbnails[9000250] = clik.newPhoto({"id":9000250,"src":"_C041029_thumb.JPG","galleries_id":469955,"server_id":1,"link":"photo_9000250.html","width":130,"caption":"","height":130});
															thumbnails[9000269] = clik.newPhoto({"id":9000269,"src":"_C041028_thumb.JPG","galleries_id":469955,"server_id":1,"link":"photo_9000269.html","width":130,"caption":"","height":73});
															thumbnails[9000273] = clik.newPhoto({"id":9000273,"src":"_C041037_thumb.JPG","galleries_id":208634,"server_id":1,"link":"photo_9000273.html","width":130,"caption":"","height":230});
															thumbnails[9000275] = clik.newPhoto({"id":9000275,"src":"_C030984_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_9000275.html","width":130,"caption":"Rainy Paris","height":86});
															thumbnails[9000277] = clik.newPhoto({"id":9000277,"src":"_C031000_thumb.JPG","galleries_id":208634,"server_id":1,"link":"photo_9000277.html","width":130,"caption":"","height":230});
															thumbnails[9000281] = clik.newPhoto({"id":9000281,"src":"_C041023_thumb.JPG","galleries_id":208634,"server_id":1,"link":"photo_9000281.html","width":130,"caption":"","height":231});
															thumbnails[9000318] = clik.newPhoto({"id":9000318,"src":"_C051065_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_9000318.html","width":130,"caption":"Broken Chair","height":130});
															thumbnails[9000319] = clik.newPhoto({"id":9000319,"src":"_C041025_thumb.JPG","galleries_id":208634,"server_id":1,"link":"photo_9000319.html","width":130,"caption":"","height":230});
															thumbnails[9000323] = clik.newPhoto({"id":9000323,"src":"_C041024_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_9000323.html","width":130,"caption":"Metro Bastile","height":73});
															thumbnails[9000326] = clik.newPhoto({"id":9000326,"src":"_C051067_thumb.JPG","galleries_id":412644,"server_id":1,"link":"photo_9000326.html","width":130,"caption":"","height":130});
															thumbnails[9000327] = clik.newPhoto({"id":9000327,"src":"_C051066_thumb.JPG","galleries_id":412644,"server_id":1,"link":"photo_9000327.html","width":130,"caption":"","height":130});
															thumbnails[9000331] = clik.newPhoto({"id":9000331,"src":"_C031001_thumb.JPG","galleries_id":208634,"server_id":1,"link":"photo_9000331.html","width":130,"caption":"","height":231});
															thumbnails[5893637] = clik.newPhoto({"id":5893637,"src":"_DSC6978_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_5893637.html","width":130,"caption":"Hotel de Ville","height":86});
															thumbnails[5893641] = clik.newPhoto({"id":5893641,"src":"_DSC6983_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_5893641.html","width":130,"caption":"Drinking fountain","height":86});
															thumbnails[5893680] = clik.newPhoto({"id":5893680,"src":"_DSC7036_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_5893680.html","width":130,"caption":"Graffiti","height":86});
															thumbnails[5893721] = clik.newPhoto({"id":5893721,"src":"_DSC7040_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_5893721.html","width":130,"caption":"Montmartre","height":86});
															thumbnails[3909876] = clik.newPhoto({"id":3909876,"src":"Paris_039_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3909876.html","width":130,"caption":"After the rain","height":84});
															thumbnails[6855488] = clik.newPhoto({"id":6855488,"src":"_DSC0037_7E4629AD-24E8-5EC4-4FBB14D15146DFB0_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_6855488.html","width":130,"caption":"Reflection","height":86});
															thumbnails[5893631] = clik.newPhoto({"id":5893631,"src":"_DSC6928_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_5893631.html","width":130,"caption":"Shadows","height":86});
															thumbnails[6855529] = clik.newPhoto({"id":6855529,"src":"_DSC0100_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_6855529.html","width":130,"caption":"Relection","height":86});
															thumbnails[3406525] = clik.newPhoto({"id":3406525,"src":"Copy 208_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3406525.html","width":130,"caption":"Musee du Louvre","height":86});
															thumbnails[5893635] = clik.newPhoto({"id":5893635,"src":"_DSC6956_thumb.JPG","galleries_id":277345,"server_id":1,"link":"photo_5893635.html","width":130,"caption":"Velibe","height":86});
															thumbnails[3413799] = clik.newPhoto({"id":3413799,"src":"Copy 498_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3413799.html","width":130,"caption":"Metro","height":86});
															thumbnails[3413840] = clik.newPhoto({"id":3413840,"src":"Copy 123_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3413840.html","width":130,"caption":"Postcards & flowers","height":86});
															thumbnails[3413803] = clik.newPhoto({"id":3413803,"src":"Copy 4401_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3413803.html","width":130,"caption":"Mirror","height":86});
															thumbnails[3413807] = clik.newPhoto({"id":3413807,"src":"Copy 441_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3413807.html","width":130,"caption":"Mirror","height":86});
															thumbnails[3413811] = clik.newPhoto({"id":3413811,"src":"Copy 4461_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3413811.html","width":130,"caption":"Mirror","height":89});
															thumbnails[3413813] = clik.newPhoto({"id":3413813,"src":"Copy 4481_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3413813.html","width":130,"caption":"Reflections","height":86});
															thumbnails[3413819] = clik.newPhoto({"id":3413819,"src":"Copy 275_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3413819.html","width":130,"caption":"Open for business","height":86});
															thumbnails[3417432] = clik.newPhoto({"id":3417432,"src":"Copy 0093_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3417432.html","width":130,"caption":"Montmartre","height":86});
															thumbnails[3406530] = clik.newPhoto({"id":3406530,"src":"Copy 2301_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3406530.html","width":130,"caption":"Pyramid ","height":86});
															thumbnails[3417435] = clik.newPhoto({"id":3417435,"src":"Copy 0072_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3417435.html","width":130,"caption":"Postcards for sale","height":86});
															thumbnails[3413831] = clik.newPhoto({"id":3413831,"src":"Copy 351_thumb.jpg","galleries_id":277345,"server_id":1,"link":"photo_3413831.html","width":130,"caption":"Galerie Vivienne","height":86});
															thumbnails[3406527] = clik.newPhoto({"id":3406527,"src":"Copy 2172_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3406527.html","width":130,"caption":"Pyramid","height":86});
															thumbnails[3406557] = clik.newPhoto({"id":3406557,"src":"du Mond Arab_00871_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3406557.html","width":130,"caption":"Institut du Monde Arabe","height":86});
															thumbnails[3406562] = clik.newPhoto({"id":3406562,"src":"Copy 0861_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3406562.html","width":130,"caption":"Institut du Monde Arabe","height":86});
															thumbnails[3406568] = clik.newPhoto({"id":3406568,"src":"Copy 0931_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3406568.html","width":130,"caption":"Institut du Monde Arabe","height":86});
															thumbnails[3406575] = clik.newPhoto({"id":3406575,"src":"Copy 1192_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3406575.html","width":130,"caption":"Institut du Monde Arabe","height":86});
															thumbnails[3413731] = clik.newPhoto({"id":3413731,"src":"Eiffle Tower_01391_thumb.jpg","galleries_id":233500,"server_id":1,"link":"photo_3413731.html","width":130,"caption":"Eiffel Tower","height":86});
															thumbnails[3413737] = clik.newPhoto({"id":3413737,"src":"Luxemborg_01551_thumb.jpg","galleries_id":469955,"server_id":1,"link":"photo_3413737.html","width":130,"caption":"Le Profete ","height":86});
															thumbnails[3413741] = clik.newPhoto({"id":3413741,"src":"Copy 591_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3413741.html","width":130,"caption":"Arch de Triomphe","height":86});
															thumbnails[3413751] = clik.newPhoto({"id":3413751,"src":"Copy 691_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3413751.html","width":130,"caption":"Centre Pompidou","height":86});
															thumbnails[3413753] = clik.newPhoto({"id":3413753,"src":"Copy 689_thumb.jpg","galleries_id":207768,"server_id":1,"link":"photo_3413753.html","width":130,"caption":"Centre Pompidou","height":86});
															thumbnails[3413849] = clik.newPhoto({"id":3413849,"src":"Copy 308_thumb.jpg","galleries_id":469955,"server_id":1,"link":"photo_3413849.html","width":130,"caption":"Relaxing in the Jardin du Palais Royal","height":86});
															thumbnails[3417277] = clik.newPhoto({"id":3417277,"src":"Copy 2801_thumb.jpg","galleries_id":469955,"server_id":1,"link":"photo_3417277.html","width":130,"caption":"Jardin du Palais Royal","height":86});
															thumbnails[3413873] = clik.newPhoto({"id":3413873,"src":"Copy 314_thumb.jpg","galleries_id":469955,"server_id":1,"link":"photo_3413873.html","width":130,"caption":"Jardin du Palais Royal","height":84});
															thumbnails[3417568] = clik.newPhoto({"id":3417568,"src":"Copy 306_thumb.jpg","galleries_id":469955,"server_id":1,"link":"photo_3417568.html","width":130,"caption":"Jardin du Palais Royal","height":86});
															thumbnails[3417397] = clik.newPhoto({"id":3417397,"src":"Copy 5422_thumb.jpg","galleries_id":469955,"server_id":1,"link":"photo_3417397.html","width":130,"caption":"Jardin du Tuilleries","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[277345] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Places","link":"gallery_277345.html","maxRecords":0.0,"photoIDs":[9000275.0,9000318.0,9000323.0,5893637.0,5893641.0,5893680.0,5893721.0,3909876.0,6855488.0,5893631.0,6855529.0,5893635.0,3413799.0,3413840.0,3413803.0,3413807.0,3413811.0,3413813.0,3413819.0,3417432.0,3417435.0,3413831.0],"skipIndex":0,"section_code":"gallery","featured_images":"9000323,9000318,9000275,6855529,6855488,5893721,5893680,5893641,5893637,5893635","id":277345,"singleSection":false});				  						galleries[277342] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"People","link":"gallery_277342.html","maxRecords":0.0,"photoIDs":[5893614.0,5893625.0,5893628.0,3911974.0],"skipIndex":0,"section_code":"gallery","featured_images":"5893628,5893625,5893614,3911974","id":277342,"singleSection":false});				  						galleries[207768] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Architecture","link":"gallery_207768.html","maxRecords":0.0,"photoIDs":[6784642.0,6784654.0,6855495.0,6855562.0,3406525.0,3406530.0,3406527.0,3406557.0,3406562.0,3406568.0,3406575.0,3413741.0,3413751.0,3413753.0],"skipIndex":0,"section_code":"gallery","featured_images":"3406527,3406525","id":207768,"singleSection":false});				  						galleries[233500] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Eiffel Tower","link":"gallery_233500.html","maxRecords":0.0,"photoIDs":[6784697.0,3909992.0,3909993.0,3909996.0,3910697.0,3910720.0,3910767.0,3413731.0],"skipIndex":0,"section_code":"gallery","featured_images":3909993.0,"id":233500,"singleSection":false});				  						galleries[469955] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Jardins de Paris","link":"gallery_469955.html","maxRecords":0.0,"photoIDs":[5893621.0,5893633.0,5684593.0,9000246.0,9000250.0,9000269.0,3413737.0,3413849.0,3417277.0,3413873.0,3417568.0,3417397.0],"skipIndex":0,"section_code":"gallery","featured_images":"9000269,9000250,9000246,5893633,5893621,5684593,3417568,3417397,3417277,3413873","id":469955,"singleSection":false});				  						galleries[281259] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Cafe Life","link":"gallery_281259.html","maxRecords":0.0,"photoIDs":[6855580.0,5893609.0,4945219.0,4945211.0,4945221.0],"skipIndex":0,"section_code":"gallery","featured_images":"6855580,5893609,4945221,4945219,4945211","id":281259,"singleSection":false});				  						galleries[412644] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Graffiti","link":"gallery_412644.html","maxRecords":0.0,"photoIDs":[7609081.0,7609083.0,7609085.0,7609087.0,7609088.0,7609090.0,7609093.0,7609094.0,7609096.0,7609098.0,9000326.0,9000327.0],"skipIndex":0,"section_code":"gallery","featured_images":"9000327,9000326,7609098,7609096,7609094,7609093,7609090,7609088,7609087,7609085","id":412644,"singleSection":false});				  						galleries[208634] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Portfolio 1","link":"gallery_208634.html","maxRecords":0.0,"photoIDs":[9000162.0,6855539.0,6855549.0,3418746.0,3418804.0,3418827.0,3418839.0,3418843.0,3418922.0,3418932.0,3418988.0,3419045.0,3419053.0,3419085.0,3419364.0,6784628.0,9000273.0,9000277.0,9000281.0,9000319.0,9000331.0],"skipIndex":0,"section_code":"gallery","featured_images":6784628.0,"id":208634,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6784628,3406525,3413813,3417435,3413731,3413737,3413741';
imageSets[2] = '6784628,3909993,3406525,3406527';
imageSets[3] = '9000331,9000327,9000326,9000323,9000319,9000318,9000281,9000277,9000275,9000273,9000269,9000250,9000246,9000162,7609098,7609096,7609094,7609093,7609090,7609088,7609087,7609085,7609083,7609081,6855580,6855562,6855549,6855539,6855529,6855495,6855488,6784697,6784654,6784642,6784628,5893721,5893680,5893641,5893637,5893635,5893633,5893631,5893628,5893625,5893621,5893614,5893609,5684593,4945221,4945219';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lilacgroove/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lilacgroove/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 = 'Paris 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="pbardell@btinternet.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="pbardell@btinternet.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

