window.thumbnails = {};
															thumbnails[6699577] = clik.newPhoto({"id":6699577,"src":"2009_12_15_Vistamontaņa_2504_1_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_6699577.html","width":130,"caption":"Winter Seascape","height":87});
															thumbnails[6699584] = clik.newPhoto({"id":6699584,"src":"2009_12_15_Vistamontaņa_2485_1_1_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_6699584.html","width":130,"caption":"Winter Sea with Parador","height":87});
															thumbnails[6699588] = clik.newPhoto({"id":6699588,"src":"2009_12_15_Vistamontaņa_2478_1_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_6699588.html","width":130,"caption":"Headland with Palm trees","height":86});
															thumbnails[818420] = clik.newPhoto({"id":818420,"src":"Montgo and Oranges_11_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_818420.html","width":130,"caption":"Montgo and Oranges","height":85});
															thumbnails[1259478] = clik.newPhoto({"id":1259478,"src":"Two arabs_thumb.jpg","galleries_id":365722,"server_id":1,"link":"photo_1259478.html","width":130,"caption":"A captured moment ","height":85});
															thumbnails[1480595] = clik.newPhoto({"id":1480595,"src":"20070929_0631_1-trimmed_thumb.jpg","galleries_id":63527,"server_id":1,"link":"photo_1480595.html","width":130,"caption":"Jet Ski 4","height":86});
															thumbnails[1480623] = clik.newPhoto({"id":1480623,"src":"20070830_0764_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_1480623.html","width":130,"caption":"Cadiz Harbour at low tide","height":85});
															thumbnails[2474241] = clik.newPhoto({"id":2474241,"src":"Sea Urchin catcher_1_thumb.jpg","galleries_id":51790,"server_id":1,"link":"photo_2474241.html","width":130,"caption":"Sea urchin catcher","height":88});
															thumbnails[2751059] = clik.newPhoto({"id":2751059,"src":"Xabia Church_1_thumb.jpg","galleries_id":51822,"server_id":1,"link":"photo_2751059.html","width":130,"caption":"Xabia skyline","height":195});
															thumbnails[2751724] = clik.newPhoto({"id":2751724,"src":"IMG_1113_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_2751724.html","width":130,"caption":"Fragrant Rose ","height":90});
															thumbnails[1480582] = clik.newPhoto({"id":1480582,"src":"jt13_thumb.jpg","galleries_id":63527,"server_id":1,"link":"photo_1480582.html","width":130,"caption":"Jet Ski 3","height":78});
															thumbnails[2474220] = clik.newPhoto({"id":2474220,"src":"IMG_7973_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_2474220.html","width":130,"caption":"Bahia de Xabia","height":85});
															thumbnails[2861591] = clik.newPhoto({"id":2861591,"src":"IMG_6708_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_2861591.html","width":129,"caption":"La Falzia, Xabia","height":80});
															thumbnails[5148006] = clik.newPhoto({"id":5148006,"src":"Montefrio_landscape_enhanced_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_5148006.html","width":130,"caption":"Montefrio olive trees","height":86});
															thumbnails[6699593] = clik.newPhoto({"id":6699593,"src":"2010_06_19_Wedding_3232_1_Trimmed_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_6699593.html","width":130,"caption":"Vejer wedding, June 2010 <br>\r\n","height":82});
															thumbnails[677823] = clik.newPhoto({"id":677823,"src":"20061231_0769_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_677823.html","width":130,"caption":"Porticholl, Xabia","height":87});
															thumbnails[1442699] = clik.newPhoto({"id":1442699,"src":"IMG_8692_1_thumb.JPG","galleries_id":63527,"server_id":1,"link":"photo_1442699.html","width":130,"caption":"Jet Ski","height":81});
															thumbnails[2474113] = clik.newPhoto({"id":2474113,"src":"20070310_0121_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_2474113.html","width":130,"caption":"Holiday's are made of this...","height":86});
															thumbnails[2474334] = clik.newPhoto({"id":2474334,"src":"Alcazar Plaza_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2474334.html","width":130,"caption":"Real Alcazar, Sevilla","height":87});
															thumbnails[3016616] = clik.newPhoto({"id":3016616,"src":"IMG_0379_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_3016616.html","width":130,"caption":"Santiago ","height":87});
															thumbnails[699491] = clik.newPhoto({"id":699491,"src":"20060101_0006_1_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_699491.html","width":130,"caption":"La Grava","height":86});
															thumbnails[2814577] = clik.newPhoto({"id":2814577,"src":"Moraira Bay_1_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_2814577.html","width":130,"caption":"Moraira Bay","height":86});
															thumbnails[4775896] = clik.newPhoto({"id":4775896,"src":"Rugby_7s_0112_1_thumb.JPG","galleries_id":63527,"server_id":1,"link":"photo_4775896.html","width":130,"caption":"Team Talk","height":108});
															thumbnails[5148007] = clik.newPhoto({"id":5148007,"src":"Montefrio_Cortijo_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_5148007.html","width":130,"caption":"Montefrio Cortijo","height":85});
															thumbnails[680265] = clik.newPhoto({"id":680265,"src":"20060123_0115_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_680265.html","width":130,"caption":"La Caleta, Xabia","height":87});
															thumbnails[1480671] = clik.newPhoto({"id":1480671,"src":"20070830_0765-trim_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_1480671.html","width":130,"caption":"Cadiz Harbour","height":92});
															thumbnails[3016628] = clik.newPhoto({"id":3016628,"src":"IMG_0320_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_3016628.html","width":130,"caption":"Santiago University","height":87});
															thumbnails[4775898] = clik.newPhoto({"id":4775898,"src":"Rugby_7s_0116_1_thumb.JPG","galleries_id":63527,"server_id":1,"link":"photo_4775898.html","width":130,"caption":"Directing play","height":86});
															thumbnails[1480629] = clik.newPhoto({"id":1480629,"src":"Ronda_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_1480629.html","width":130,"caption":"Ronda","height":86});
															thumbnails[3016761] = clik.newPhoto({"id":3016761,"src":"IMG_0420_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_3016761.html","width":130,"caption":"Alonso III","height":85});
															thumbnails[4580346] = clik.newPhoto({"id":4580346,"src":"IMG_0132_1_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_4580346.html","width":130,"caption":"Granadella, Jávea, Spain","height":88});
															thumbnails[4775921] = clik.newPhoto({"id":4775921,"src":"Rugby_7s_0120_1_thumb.JPG","galleries_id":63527,"server_id":1,"link":"photo_4775921.html","width":130,"caption":"Going for the Bull","height":81});
															thumbnails[2814488] = clik.newPhoto({"id":2814488,"src":"Frog Fountain in Vejer_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2814488.html","width":130,"caption":"Vejer Frog Fountain","height":84});
															thumbnails[3016640] = clik.newPhoto({"id":3016640,"src":"IMG_0378_1_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_3016640.html","width":130,"caption":"The Alameda Park","height":87});
															thumbnails[4775934] = clik.newPhoto({"id":4775934,"src":"Rugby_7s_0131_1_thumb.JPG","galleries_id":63527,"server_id":1,"link":"photo_4775934.html","width":130,"caption":"In the line of duty","height":90});
															thumbnails[1480641] = clik.newPhoto({"id":1480641,"src":"Pavilion Real Alcazar_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_1480641.html","width":130,"caption":"Pavilion Real Alcazar","height":85});
															thumbnails[2751515] = clik.newPhoto({"id":2751515,"src":"IMG_0245_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_2751515.html","width":130,"caption":"Simply Luscious","height":93});
															thumbnails[3081159] = clik.newPhoto({"id":3081159,"src":"Luxor Egypt_1_thumb.jpg","galleries_id":365722,"server_id":1,"link":"photo_3081159.html","width":130,"caption":"Mosque at Luxor, Egypt ","height":92});
															thumbnails[838032] = clik.newPhoto({"id":838032,"src":"20070318_0349-1_1_thumb.jpg","galleries_id":51823,"server_id":1,"link":"photo_838032.html","width":130,"caption":"A little gem","height":90});
															thumbnails[2766908] = clik.newPhoto({"id":2766908,"src":"IMG_2495_3_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_2766908.html","width":130,"caption":"Continental Crossroads","height":84});
															thumbnails[3080942] = clik.newPhoto({"id":3080942,"src":"IMG_7434_1_thumb.JPG","galleries_id":365722,"server_id":1,"link":"photo_3080942.html","width":130,"caption":"Ras Al Khaimah Camel Market","height":96});
															thumbnails[3140325] = clik.newPhoto({"id":3140325,"src":"Port fiesta 2008_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_3140325.html","width":130,"caption":"Port Fiesta","height":191});
															thumbnails[678645] = clik.newPhoto({"id":678645,"src":"20060616_0374_thumb.JPG","galleries_id":59879,"server_id":1,"link":"photo_678645.html","width":130,"caption":"The Dangerous Summer","height":208});
															thumbnails[694097] = clik.newPhoto({"id":694097,"src":"IMG_1012_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_694097.html","width":130,"caption":"Xabia Old Town","height":195});
															thumbnails[699342] = clik.newPhoto({"id":699342,"src":"IMG_0296_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_699342.html","width":130,"caption":"Nestra Senora de Loreto","height":215});
															thumbnails[764235] = clik.newPhoto({"id":764235,"src":"IMG_4236_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_764235.html","width":130,"caption":"Parador de Xabia","height":87});
															thumbnails[775959] = clik.newPhoto({"id":775959,"src":"20070219_1187_1_thumb.JPG","galleries_id":63527,"server_id":1,"link":"photo_775959.html","width":130,"caption":"Into the blue","height":85});
															thumbnails[782988] = clik.newPhoto({"id":782988,"src":"IMG_4479_1_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_782988.html","width":130,"caption":"Blue Wonder","height":83});
															thumbnails[2473949] = clik.newPhoto({"id":2473949,"src":"20070101_0795_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_2473949.html","width":130,"caption":"Xabia Bay from Cap Negre","height":87});
															thumbnails[2803704] = clik.newPhoto({"id":2803704,"src":"Conde 2_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2803704.html","width":130,"caption":"Conde in control","height":95});
															thumbnails[6699602] = clik.newPhoto({"id":6699602,"src":"2010_08_27_joseph_3898_1_1_thumb.JPG","galleries_id":365727,"server_id":1,"link":"photo_6699602.html","width":130,"caption":"Joe, Moraira","height":87});
															thumbnails[817609] = clik.newPhoto({"id":817609,"src":"Montgo oranges Trimmed final_1_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_817609.html","width":130,"caption":"Bumper crop","height":87});
															thumbnails[2767607] = clik.newPhoto({"id":2767607,"src":"1 Ronda in August 2008_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2767607.html","width":130,"caption":"Spectacular Ronda","height":87});
															thumbnails[3158242] = clik.newPhoto({"id":3158242,"src":"Dhow in Persian Gulf_1_thumb.jpg","galleries_id":365722,"server_id":1,"link":"photo_3158242.html","width":130,"caption":"Arabian Dhow","height":77});
															thumbnails[817659] = clik.newPhoto({"id":817659,"src":"Ghali Casita 1_1_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_817659.html","width":130,"caption":"Chic design","height":87});
															thumbnails[2817889] = clik.newPhoto({"id":2817889,"src":"Julio Aparicio_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2817889.html","width":130,"caption":"Julio Aparicio, Matador  ","height":87});
															thumbnails[3162073] = clik.newPhoto({"id":3162073,"src":"Cazorla Parador_1_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_3162073.html","width":130,"caption":"Cazorla Parador","height":87});
															thumbnails[2767666] = clik.newPhoto({"id":2767666,"src":"Aparicio 1_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2767666.html","width":130,"caption":"Aparicio passes","height":80});
															thumbnails[3189336] = clik.newPhoto({"id":3189336,"src":"IMG_7415_1_thumb.JPG","galleries_id":365722,"server_id":1,"link":"photo_3189336.html","width":130,"caption":"Abra boatman of Dubai","height":87});
															thumbnails[2817768] = clik.newPhoto({"id":2817768,"src":"Julio Aparicio in Baeza_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2817768.html","width":130,"caption":"Aparicio dazed ","height":88});
															thumbnails[3560632] = clik.newPhoto({"id":3560632,"src":"El_Portet_End_Feb_09_1_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_3560632.html","width":130,"caption":"El Portet","height":86});
															thumbnails[678269] = clik.newPhoto({"id":678269,"src":"20061231_0753_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_678269.html","width":130,"caption":"Porticholl Island","height":87});
															thumbnails[2474121] = clik.newPhoto({"id":2474121,"src":"20070407_0339_1_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_2474121.html","width":130,"caption":"Xabia shoe shop","height":191});
															thumbnails[2768099] = clik.newPhoto({"id":2768099,"src":"3 Ronda in August 2008_1_11_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2768099.html","width":130,"caption":"Incredible Ronda","height":87});
															thumbnails[4775498] = clik.newPhoto({"id":4775498,"src":"Fez_0248_1_thumb.JPG","galleries_id":365720,"server_id":1,"link":"photo_4775498.html","width":130,"caption":"Fez Tanneries","height":85});
															thumbnails[715816] = clik.newPhoto({"id":715816,"src":"IMG_2374_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_715816.html","width":130,"caption":"Vejer","height":87});
															thumbnails[733232] = clik.newPhoto({"id":733232,"src":"20060819_0439_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_733232.html","width":130,"caption":"Cadiz Harbour","height":91});
															thumbnails[757414] = clik.newPhoto({"id":757414,"src":"20060823_0496_1_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_757414.html","width":130,"caption":"Sol y Sombra","height":84});
															thumbnails[4775737] = clik.newPhoto({"id":4775737,"src":"Fez_0327_2_1_thumb.JPG","galleries_id":365720,"server_id":1,"link":"photo_4775737.html","width":130,"caption":"Ramadan, 2009","height":91});
															thumbnails[5340399] = clik.newPhoto({"id":5340399,"src":"Vejer_vista_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_5340399.html","width":130,"caption":"Vista Vejer","height":87});
															thumbnails[6699677] = clik.newPhoto({"id":6699677,"src":"IMG_0469_1_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_6699677.html","width":130,"caption":"Xabia Port Church in monotone","height":180});
															thumbnails[678495] = clik.newPhoto({"id":678495,"src":"20060319_0201-2_1_1_thumb.jpg","galleries_id":51823,"server_id":1,"link":"photo_678495.html","width":130,"caption":"Glorious Spring ","height":98});
															thumbnails[692528] = clik.newPhoto({"id":692528,"src":"IMG_2206-1_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_692528.html","width":130,"caption":"Moors and Christians","height":214});
															thumbnails[693976] = clik.newPhoto({"id":693976,"src":"IMG_2254_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_693976.html","width":130,"caption":"San Bartolome Church","height":195});
															thumbnails[699335] = clik.newPhoto({"id":699335,"src":"IMG_0298_11_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_699335.html","width":130,"caption":"Nestra Senora de Loreto","height":203});
															thumbnails[749532] = clik.newPhoto({"id":749532,"src":"20061231_0754_1_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_749532.html","width":130,"caption":"Porticholl Island","height":86});
															thumbnails[783005] = clik.newPhoto({"id":783005,"src":"IMG_4497_1_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_783005.html","width":130,"caption":"Montgo","height":86});
															thumbnails[817551] = clik.newPhoto({"id":817551,"src":"Surfing dudes_1_thumb.jpg","galleries_id":63527,"server_id":1,"link":"photo_817551.html","width":130,"caption":"Surfing buddies","height":83});
															thumbnails[5340404] = clik.newPhoto({"id":5340404,"src":"Montefrio_vista_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_5340404.html","width":130,"caption":"Vista of Montefrio","height":86});
															thumbnails[6699601] = clik.newPhoto({"id":6699601,"src":"2010_08_27_joseph_3900_1_1_thumb.JPG","galleries_id":365727,"server_id":1,"link":"photo_6699601.html","width":130,"caption":"Joe, Moraira","height":87});
															thumbnails[2165002] = clik.newPhoto({"id":2165002,"src":"After the storm_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_2165002.html","width":130,"caption":"After the storm","height":168});
															thumbnails[2325029] = clik.newPhoto({"id":2325029,"src":"20070318_0343_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_2325029.html","width":130,"caption":"For Whom the Bell Tolls","height":196});
															thumbnails[5340424] = clik.newPhoto({"id":5340424,"src":"2009_10_03_Sevilla_Lita_1465_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_5340424.html","width":130,"caption":"Andalucian wedding","height":87});
															thumbnails[2751091] = clik.newPhoto({"id":2751091,"src":"20080201_0979_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_2751091.html","width":130,"caption":"Sea Urchin Catcher","height":87});
															thumbnails[6821870] = clik.newPhoto({"id":6821870,"src":"2009_10_03_Sevilla_Lita_1481_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_6821870.html","width":130,"caption":"Sevilla Palms","height":87});
															thumbnails[6821875] = clik.newPhoto({"id":6821875,"src":"2009_10_03_Sevilla_Lita_1504_1_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_6821875.html","width":130,"caption":"Sevilla ","height":87});
															thumbnails[5340587] = clik.newPhoto({"id":5340587,"src":"Vista_small_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_5340587.html","width":130,"caption":"Montefrio fields","height":86});
															thumbnails[5340617] = clik.newPhoto({"id":5340617,"src":"Tarifa_window_and_light_small_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_5340617.html","width":130,"caption":"Tarifa window","height":90});
															thumbnails[2164996] = clik.newPhoto({"id":2164996,"src":"A stunning cactus flower_thumb.jpg","galleries_id":51823,"server_id":1,"link":"photo_2164996.html","width":130,"caption":"A stunning cactus","height":87});
															thumbnails[5340429] = clik.newPhoto({"id":5340429,"src":"2009_10_03_Sevilla_Lita_1492_1_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_5340429.html","width":130,"caption":"Sevilla Alcazar","height":196});
															thumbnails[5340414] = clik.newPhoto({"id":5340414,"src":"Vejer_olives_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_5340414.html","width":130,"caption":"Vejer Olives","height":195});
															thumbnails[697559] = clik.newPhoto({"id":697559,"src":"IMG_2234-1_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_697559.html","width":130,"caption":"Moors and Christians","height":172});
															thumbnails[699328] = clik.newPhoto({"id":699328,"src":"IMG_0315_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_699328.html","width":130,"caption":"Xabia Fishing Fleet","height":189});
															thumbnails[715690] = clik.newPhoto({"id":715690,"src":"20070120_0974_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_715690.html","width":130,"caption":"Church of San Bartolome","height":195});
															thumbnails[733241] = clik.newPhoto({"id":733241,"src":"20060822_0492_11_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_733241.html","width":130,"caption":"A warm welcome","height":193});
															thumbnails[752715] = clik.newPhoto({"id":752715,"src":"IMG_3233_2_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_752715.html","width":130,"caption":"Arenal & El Montgo","height":87});
															thumbnails[772194] = clik.newPhoto({"id":772194,"src":"20070218_1165_1-1_1_thumb.jpg","galleries_id":51823,"server_id":1,"link":"photo_772194.html","width":130,"caption":"Rock Rose","height":98});
															thumbnails[772395] = clik.newPhoto({"id":772395,"src":"20060611_0321_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_772395.html","width":130,"caption":"Laurieīs Point","height":86});
															thumbnails[774893] = clik.newPhoto({"id":774893,"src":"20070219_1194-1_1_1_thumb.jpg","galleries_id":63527,"server_id":1,"link":"photo_774893.html","width":130,"caption":"Javea surfing","height":92});
															thumbnails[5119303] = clik.newPhoto({"id":5119303,"src":"Vejer_Olives_small_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_5119303.html","width":130,"caption":"Montefrio Olive Trees","height":195});
															thumbnails[6699596] = clik.newPhoto({"id":6699596,"src":"2010_08_27_joseph_3923_1_1_thumb.JPG","galleries_id":365727,"server_id":1,"link":"photo_6699596.html","width":130,"caption":"Joe, Moraira","height":87});
															thumbnails[817612] = clik.newPhoto({"id":817612,"src":"Montgo and oranges_1_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_817612.html","width":130,"caption":"Spring Oranges","height":85});
															thumbnails[2164983] = clik.newPhoto({"id":2164983,"src":"20080105_0930-1_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_2164983.html","width":130,"caption":"At fiesta time","height":166});
															thumbnails[2751077] = clik.newPhoto({"id":2751077,"src":"Sevilla Square_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2751077.html","width":130,"caption":"Sevilla, Spain","height":193});
															thumbnails[698361] = clik.newPhoto({"id":698361,"src":"20070101_0791_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_698361.html","width":130,"caption":"Porticholl Island ","height":88});
															thumbnails[2165035] = clik.newPhoto({"id":2165035,"src":"Three kings head_1_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_2165035.html","width":130,"caption":"A fiesta head","height":127});
															thumbnails[2474257] = clik.newPhoto({"id":2474257,"src":"Real Escuela in Jerez_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2474257.html","width":130,"caption":"Real Escuela, Jerez","height":197});
															thumbnails[2474187] = clik.newPhoto({"id":2474187,"src":"After the storm 2_1_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_2474187.html","width":130,"caption":"Javea Boat Show","height":86});
															thumbnails[2751147] = clik.newPhoto({"id":2751147,"src":"Fiesta in Baeza August 2008_2_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2751147.html","width":130,"caption":"Baeza fiesta","height":191});
															thumbnails[2814423] = clik.newPhoto({"id":2814423,"src":"Barrera waits trimmed_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_2814423.html","width":130,"caption":"Barrera waits","height":185});
															thumbnails[818256] = clik.newPhoto({"id":818256,"src":"wet rocks_1_thumb.jpg","galleries_id":51790,"server_id":1,"link":"photo_818256.html","width":130,"caption":"White Surf","height":86});
															thumbnails[1480705] = clik.newPhoto({"id":1480705,"src":"20070825_0751_1_thumb.JPG","galleries_id":291260,"server_id":1,"link":"photo_1480705.html","width":130,"caption":"Ronda","height":195});
															thumbnails[1480609] = clik.newPhoto({"id":1480609,"src":"Alcazar tower_1_thumb.jpg","galleries_id":291260,"server_id":1,"link":"photo_1480609.html","width":130,"caption":"Real Alcazar, Sevilla","height":195});
															thumbnails[698674] = clik.newPhoto({"id":698674,"src":"20061231_0774_11_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_698674.html","width":130,"caption":"The encircling sea","height":87});
															thumbnails[688136] = clik.newPhoto({"id":688136,"src":"IMG_0372_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_688136.html","width":130,"caption":"Xabia Marina","height":195});
															thumbnails[696204] = clik.newPhoto({"id":696204,"src":"IMG_0832_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_696204.html","width":130,"caption":"A true sun-lover","height":87});
															thumbnails[697617] = clik.newPhoto({"id":697617,"src":"IMG_3547-1_1_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_697617.html","width":130,"caption":"Three Kings","height":98});
															thumbnails[715623] = clik.newPhoto({"id":715623,"src":"20070120_0965_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_715623.html","width":130,"caption":"Xabia Indoor Market","height":194});
															thumbnails[749477] = clik.newPhoto({"id":749477,"src":"20060526_0276_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_749477.html","width":130,"caption":"Benitachell","height":87});
															thumbnails[818260] = clik.newPhoto({"id":818260,"src":"Pathway_1_thumb.jpg","galleries_id":51790,"server_id":1,"link":"photo_818260.html","width":130,"caption":"La Mirador","height":86});
															thumbnails[6699604] = clik.newPhoto({"id":6699604,"src":"2010_08_27_joseph_3873_thumb.JPG","galleries_id":365727,"server_id":1,"link":"photo_6699604.html","width":130,"caption":"Joe, Moraira","height":194});
															thumbnails[697587] = clik.newPhoto({"id":697587,"src":"IMG_2732_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_697587.html","width":130,"caption":"Nestra Senora de Loreto","height":208});
															thumbnails[699338] = clik.newPhoto({"id":699338,"src":"IMG_0297_1_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_699338.html","width":130,"caption":"Nestra Senora de Loreto.","height":191});
															thumbnails[711663] = clik.newPhoto({"id":711663,"src":"20061211_0696_2_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_711663.html","width":130,"caption":"Parador of Xabia","height":83});
															thumbnails[749403] = clik.newPhoto({"id":749403,"src":"20060518_0264_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_749403.html","width":130,"caption":"Winter warmer","height":209});
															thumbnails[697583] = clik.newPhoto({"id":697583,"src":"IMG_2733_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_697583.html","width":130,"caption":"Nestra Senora de Loreto","height":201});
															thumbnails[711659] = clik.newPhoto({"id":711659,"src":"Javea Arenal Beach_1_thumb.jpg","galleries_id":51790,"server_id":1,"link":"photo_711659.html","width":130,"caption":"Playa del Arenal","height":90});
															thumbnails[696231] = clik.newPhoto({"id":696231,"src":"IMG_1433_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_696231.html","width":130,"caption":"Beyond repair","height":191});
															thumbnails[756794] = clik.newPhoto({"id":756794,"src":"IMG_0414_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_756794.html","width":130,"caption":"Simply relaxing","height":181});
															thumbnails[804400] = clik.newPhoto({"id":804400,"src":"20070303_1354-2_2_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_804400.html","width":130,"caption":"Our Lady of Loreto","height":173});
															thumbnails[2165057] = clik.newPhoto({"id":2165057,"src":"Xabia Paseo_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_2165057.html","width":130,"caption":"Marina paseo","height":86});
															thumbnails[678474] = clik.newPhoto({"id":678474,"src":"20060518_0267_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_678474.html","width":130,"caption":"The Yacht Club, Xabia","height":78});
															thumbnails[678625] = clik.newPhoto({"id":678625,"src":"20061015_0688_1_thumb.JPG","galleries_id":59879,"server_id":1,"link":"photo_678625.html","width":130,"caption":"Snooze time","height":87});
															thumbnails[715677] = clik.newPhoto({"id":715677,"src":"20070120_0971_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_715677.html","width":130,"caption":"Church of San Bartolome","height":195});
															thumbnails[757728] = clik.newPhoto({"id":757728,"src":"20070103_0799_3_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_757728.html","width":130,"caption":"La Ermita","height":87});
															thumbnails[769910] = clik.newPhoto({"id":769910,"src":"20070217_1080-2_1_thumb.jpg","galleries_id":51823,"server_id":1,"link":"photo_769910.html","width":130,"caption":"A little wonder","height":96});
															thumbnails[2474156] = clik.newPhoto({"id":2474156,"src":"20070508_0415_1_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_2474156.html","width":130,"caption":"Mirador Cap Negre, Xabia","height":84});
															thumbnails[2751118] = clik.newPhoto({"id":2751118,"src":"Jaen August 2008_1_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_2751118.html","width":130,"caption":"Jaen from the air","height":86});
															thumbnails[6699609] = clik.newPhoto({"id":6699609,"src":"2010_08_27_joseph_3757_thumb.JPG","galleries_id":365727,"server_id":1,"link":"photo_6699609.html","width":130,"caption":"Joe, Moraira","height":199});
															thumbnails[757488] = clik.newPhoto({"id":757488,"src":"20070106_0929_1_2_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_757488.html","width":130,"caption":"Javea Bay","height":77});
															thumbnails[2814440] = clik.newPhoto({"id":2814440,"src":"Kiri pensive_1_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_2814440.html","width":130,"caption":"Girl in thought","height":92});
															thumbnails[749407] = clik.newPhoto({"id":749407,"src":"20060518_0269_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_749407.html","width":130,"caption":"Sea mist","height":87});
															thumbnails[2165008] = clik.newPhoto({"id":2165008,"src":"Helicopter_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_2165008.html","width":130,"caption":"Fire protection","height":89});
															thumbnails[812570] = clik.newPhoto({"id":812570,"src":"IMG_3230_2_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_812570.html","width":130,"caption":"Red Sails","height":87});
															thumbnails[1481102] = clik.newPhoto({"id":1481102,"src":"jt12_1_1_thumb.jpg","galleries_id":63527,"server_id":1,"link":"photo_1481102.html","width":130,"caption":"Against the clock","height":186});
															thumbnails[1480577] = clik.newPhoto({"id":1480577,"src":"jt2_1_thumb.jpg","galleries_id":63527,"server_id":1,"link":"photo_1480577.html","width":130,"caption":"Jet Ski 2","height":187});
															thumbnails[2114259] = clik.newPhoto({"id":2114259,"src":"Xabia weather vane 2_1_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_2114259.html","width":130,"caption":"Xabia Port Weather Vane","height":91});
															thumbnails[696219] = clik.newPhoto({"id":696219,"src":"IMG_0837_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_696219.html","width":130,"caption":"Hot orange","height":87});
															thumbnails[697635] = clik.newPhoto({"id":697635,"src":"IMG_0993_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_697635.html","width":130,"caption":"La Corona","height":87});
															thumbnails[715628] = clik.newPhoto({"id":715628,"src":"20070120_0967_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_715628.html","width":130,"caption":"Church of San Bartolome","height":195});
															thumbnails[757456] = clik.newPhoto({"id":757456,"src":"20061231_0768_2-5_thumb.jpg","galleries_id":51790,"server_id":1,"link":"photo_757456.html","width":130,"caption":"Craggy cliffs","height":91});
															thumbnails[764230] = clik.newPhoto({"id":764230,"src":"IMG_4280-3_2_3_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_764230.html","width":130,"caption":"The morning catch","height":78});
															thumbnails[775573] = clik.newPhoto({"id":775573,"src":"20070219_1188-1-2_1_1_thumb.jpg","galleries_id":63527,"server_id":1,"link":"photo_775573.html","width":130,"caption":"The big easy","height":177});
															thumbnails[1266090] = clik.newPhoto({"id":1266090,"src":"Souk Arab Dubai_thumb.jpg","galleries_id":365722,"server_id":1,"link":"photo_1266090.html","width":130,"caption":"Souk trader","height":107});
															thumbnails[2165014] = clik.newPhoto({"id":2165014,"src":"Campo fire_thumb.jpg","galleries_id":59879,"server_id":1,"link":"photo_2165014.html","width":130,"caption":"Campo fire","height":79});
															thumbnails[678639] = clik.newPhoto({"id":678639,"src":"Jo 1_thumb.1.06.jpg","galleries_id":51710,"server_id":1,"link":"photo_678639.html","width":130,"caption":"Amenecer de Espaņa","height":87});
															thumbnails[694106] = clik.newPhoto({"id":694106,"src":"Javea Church in Old Town_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_694106.html","width":130,"caption":"Church of San Bartolome ","height":187});
															thumbnails[696227] = clik.newPhoto({"id":696227,"src":"IMG_1297_2_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_696227.html","width":130,"caption":"Intensity","height":87});
															thumbnails[757520] = clik.newPhoto({"id":757520,"src":"20070106_0939_1_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_757520.html","width":130,"caption":"La Sardinera Beach","height":85});
															thumbnails[786282] = clik.newPhoto({"id":786282,"src":"20070225_1241_1_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_786282.html","width":130,"caption":"At rest","height":89});
															thumbnails[789026] = clik.newPhoto({"id":789026,"src":"Granadella_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_789026.html","width":130,"caption":"Granadella Bay","height":88});
															thumbnails[2814504] = clik.newPhoto({"id":2814504,"src":"Benidorm Plaza de Toros_1_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_2814504.html","width":130,"caption":"Plaza de Toros, Benidorm","height":88});
															thumbnails[678372] = clik.newPhoto({"id":678372,"src":"20060406_0241_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_678372.html","width":130,"caption":"Montanya I, Xabia","height":87});
															thumbnails[678610] = clik.newPhoto({"id":678610,"src":"IMG_0304_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_678610.html","width":130,"caption":"Church of Nestra Senora de Loreto","height":87});
															thumbnails[697627] = clik.newPhoto({"id":697627,"src":"IMG_3297_2_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_697627.html","width":130,"caption":"El Montgo","height":86});
															thumbnails[715688] = clik.newPhoto({"id":715688,"src":"20070120_0973_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_715688.html","width":130,"caption":"Padre Vicente Ferrer","height":182});
															thumbnails[768864] = clik.newPhoto({"id":768864,"src":"IMG_0838_2_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_768864.html","width":130,"caption":"Natureīs perfect display","height":87});
															thumbnails[804853] = clik.newPhoto({"id":804853,"src":"20070303_1381_1_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_804853.html","width":130,"caption":"Natureīs best","height":91});
															thumbnails[2114271] = clik.newPhoto({"id":2114271,"src":"Xabia weather vane_1_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_2114271.html","width":130,"caption":"Xabia Port Weather Vane","height":87});
															thumbnails[2114284] = clik.newPhoto({"id":2114284,"src":"Prickly pears_1_thumb.jpg","galleries_id":51823,"server_id":1,"link":"photo_2114284.html","width":130,"caption":"Prickly Pear","height":86});
															thumbnails[838008] = clik.newPhoto({"id":838008,"src":"20070318_0328_3_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_838008.html","width":130,"caption":"Wild freesia","height":88});
															thumbnails[715481] = clik.newPhoto({"id":715481,"src":"20060820_0498_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_715481.html","width":130,"caption":"Simplicity","height":204});
															thumbnails[715588] = clik.newPhoto({"id":715588,"src":"20070120_0946_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_715588.html","width":130,"caption":"Xabia Clock Tower","height":194});
															thumbnails[756094] = clik.newPhoto({"id":756094,"src":"20070210_1034_1_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_756094.html","width":130,"caption":"Javea Marina","height":82});
															thumbnails[2114302] = clik.newPhoto({"id":2114302,"src":"Port Esplanade_1_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_2114302.html","width":130,"caption":"Xabia Port Esplanade","height":87});
															thumbnails[8248543] = clik.newPhoto({"id":8248543,"src":"IMG_0653_1_thumb.JPG","galleries_id":51710,"server_id":35,"link":"photo_8248543.html","width":130,"caption":"Winter sunset","height":87});
															thumbnails[2114314] = clik.newPhoto({"id":2114314,"src":"Javea Port_1_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_2114314.html","width":130,"caption":"Xabia Port and beach","height":85});
															thumbnails[4775353] = clik.newPhoto({"id":4775353,"src":"Fez_0157_1_thumb.JPG","galleries_id":365720,"server_id":1,"link":"photo_4775353.html","width":130,"caption":"Central Medina, Fez al-Bali","height":195});
															thumbnails[6699590] = clik.newPhoto({"id":6699590,"src":"2010_06_19_Wedding_3256_1_trimmed_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_6699590.html","width":130,"caption":"Vejer Wedding ","height":209});
															thumbnails[3598695] = clik.newPhoto({"id":3598695,"src":"Fez_7_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_3598695.html","width":130,"caption":"Colores de Fez","height":195});
															thumbnails[677796] = clik.newPhoto({"id":677796,"src":"20061231_0752_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_677796.html","width":130,"caption":"Xabia Bay and the Montgo Massif","height":71});
															thumbnails[677807] = clik.newPhoto({"id":677807,"src":"IMG_0845_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_677807.html","width":130,"caption":"Cool in white","height":195});
															thumbnails[688119] = clik.newPhoto({"id":688119,"src":"IMG_0307_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_688119.html","width":130,"caption":"Xabia Fishing Port","height":87});
															thumbnails[715619] = clik.newPhoto({"id":715619,"src":"20070120_0944_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_715619.html","width":130,"caption":"Church of San Bartolome ","height":199});
															thumbnails[804690] = clik.newPhoto({"id":804690,"src":"Barraca light_thumb.jpg","galleries_id":51790,"server_id":1,"link":"photo_804690.html","width":130,"caption":"A Painterīs Paradise","height":86});
															thumbnails[2817743] = clik.newPhoto({"id":2817743,"src":"Hotel Puerta de la Luna_1_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_2817743.html","width":130,"caption":"Baeza Cathedral ","height":189});
															thumbnails[3598765] = clik.newPhoto({"id":3598765,"src":"Fez_26_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_3598765.html","width":130,"caption":"Sublime ","height":195});
															thumbnails[3017312] = clik.newPhoto({"id":3017312,"src":"IMG_0314_1_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_3017312.html","width":130,"caption":"Santiago Cathedral","height":195});
															thumbnails[804743] = clik.newPhoto({"id":804743,"src":"Ghali tosca columns_1_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_804743.html","width":130,"caption":"La Corona","height":88});
															thumbnails[4775507] = clik.newPhoto({"id":4775507,"src":"Fez_0291_1_thumb.JPG","galleries_id":365720,"server_id":1,"link":"photo_4775507.html","width":130,"caption":"Medina Door","height":195});
															thumbnails[804797] = clik.newPhoto({"id":804797,"src":"Ghali Casa View 1_1_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_804797.html","width":130,"caption":"Simply Breathtaking","height":86});
															thumbnails[804821] = clik.newPhoto({"id":804821,"src":"20070302_1320_1_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_804821.html","width":130,"caption":"Pure indulgence","height":86});
															thumbnails[838265] = clik.newPhoto({"id":838265,"src":"20070318_0366_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_838265.html","width":130,"caption":"The Calvario Church","height":86});
															thumbnails[4775749] = clik.newPhoto({"id":4775749,"src":"Fez_0331_1_thumb.JPG","galleries_id":365720,"server_id":1,"link":"photo_4775749.html","width":130,"caption":"Bedroom fit for a queen","height":195});
															thumbnails[678330] = clik.newPhoto({"id":678330,"src":"IMG_0377_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_678330.html","width":130,"caption":"Xabia Club Nautico","height":86});
															thumbnails[711673] = clik.newPhoto({"id":711673,"src":"Javea Old Town_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_711673.html","width":130,"caption":"Old Town appeal","height":94});
															thumbnails[715420] = clik.newPhoto({"id":715420,"src":"20060820_0499_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_715420.html","width":130,"caption":"Summer Rose","height":195});
															thumbnails[757694] = clik.newPhoto({"id":757694,"src":"20070103_0797_1_11_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_757694.html","width":130,"caption":"La Ermita","height":198});
															thumbnails[1259461] = clik.newPhoto({"id":1259461,"src":"Dhow Boatman of Dubai_thumb.jpg","galleries_id":365722,"server_id":1,"link":"photo_1259461.html","width":130,"caption":"Dhow boatman of Dubai","height":210});
															thumbnails[1266074] = clik.newPhoto({"id":1266074,"src":"Abra boatman of Dubai_thumb.jpg","galleries_id":365722,"server_id":1,"link":"photo_1266074.html","width":130,"caption":"Abra Boatman of Dubai","height":177});
															thumbnails[2165024] = clik.newPhoto({"id":2165024,"src":"Spanish Roses in bloom_1_thumb.jpg","galleries_id":51823,"server_id":1,"link":"photo_2165024.html","width":130,"caption":"Spanish roses","height":199});
															thumbnails[818251] = clik.newPhoto({"id":818251,"src":"Red roof_1_thumb.jpg","galleries_id":51790,"server_id":1,"link":"photo_818251.html","width":130,"caption":"La Caleta","height":85});
															thumbnails[2474027] = clik.newPhoto({"id":2474027,"src":"20070302_1318_1_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_2474027.html","width":130,"caption":"Xabia's elegant and stylish architecture.","height":184});
															thumbnails[2114298] = clik.newPhoto({"id":2114298,"src":"Cap Negre_1_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_2114298.html","width":130,"caption":"Cap Negre, Xabia","height":193});
															thumbnails[699326] = clik.newPhoto({"id":699326,"src":"IMG_0303_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_699326.html","width":130,"caption":"Nestra Senora de Loreto","height":94});
															thumbnails[711662] = clik.newPhoto({"id":711662,"src":"IMG_1923_1_thumb.JPG","galleries_id":51789,"server_id":1,"link":"photo_711662.html","width":130,"caption":"Natural architecture","height":195});
															thumbnails[817547] = clik.newPhoto({"id":817547,"src":"20070310_0123_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_817547.html","width":130,"caption":"XV Century Canon","height":88});
															thumbnails[838028] = clik.newPhoto({"id":838028,"src":"20070318_0369_1_1_thumb.JPG","galleries_id":51823,"server_id":1,"link":"photo_838028.html","width":130,"caption":"Rock Rose","height":188});
															thumbnails[6821841] = clik.newPhoto({"id":6821841,"src":"2009_12_15_Vistamontaņa_2476_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_6821841.html","width":130,"caption":"Javéa Surf","height":87});
															thumbnails[3017364] = clik.newPhoto({"id":3017364,"src":"IMG_0327-1 trimmed_1_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_3017364.html","width":130,"caption":"Mass in Santiago","height":195});
															thumbnails[754096] = clik.newPhoto({"id":754096,"src":"IMG_1922_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_754096.html","width":130,"caption":"The little bay","height":195});
															thumbnails[757635] = clik.newPhoto({"id":757635,"src":"20070210_1035_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_757635.html","width":130,"caption":"Club Nautico","height":87});
															thumbnails[818428] = clik.newPhoto({"id":818428,"src":"Montgo and Church_2_thumb.jpg","galleries_id":51789,"server_id":1,"link":"photo_818428.html","width":130,"caption":"Imposing Montgo","height":193});
															thumbnails[837972] = clik.newPhoto({"id":837972,"src":"20070318_0337_2_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_837972.html","width":130,"caption":"Ermita de Santa Lucia","height":89});
															thumbnails[699329] = clik.newPhoto({"id":699329,"src":"IMG_0314_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_699329.html","width":130,"caption":"Xabia Fishing Port","height":91});
															thumbnails[804724] = clik.newPhoto({"id":804724,"src":"20070304_1400_1_1_thumb.JPG","galleries_id":51790,"server_id":1,"link":"photo_804724.html","width":130,"caption":"Towards Javea Bay","height":84});
															thumbnails[838001] = clik.newPhoto({"id":838001,"src":"20070318_0341_1_thumb.JPG","galleries_id":51822,"server_id":1,"link":"photo_838001.html","width":130,"caption":"Ermita de Saint Lucia","height":86});
															thumbnails[756772] = clik.newPhoto({"id":756772,"src":"IMG_0419_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_756772.html","width":130,"caption":"Bahia de Javea","height":87});
															thumbnails[786299] = clik.newPhoto({"id":786299,"src":"20070225_1253_12_1_thumb.jpg","galleries_id":51790,"server_id":1,"link":"photo_786299.html","width":130,"caption":"Platja del Tango","height":201});
															thumbnails[756036] = clik.newPhoto({"id":756036,"src":"20070210_1031_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_756036.html","width":130,"caption":"Xabia Port","height":81});
															thumbnails[736764] = clik.newPhoto({"id":736764,"src":"Alternative Red_thumb.jpg","galleries_id":55053,"server_id":1,"link":"photo_736764.html","width":130,"caption":"Colonel Stewart Newcombe","height":201});
															thumbnails[756780] = clik.newPhoto({"id":756780,"src":"IMG_0419-5_1_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_756780.html","width":130,"caption":"Port & Montgo","height":79});
															thumbnails[2751765] = clik.newPhoto({"id":2751765,"src":"IMG_1920_1_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_2751765.html","width":130,"caption":"Altea Church","height":195});
															thumbnails[756044] = clik.newPhoto({"id":756044,"src":"20070210_1012_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_756044.html","width":130,"caption":"Xabia Port","height":87});
															thumbnails[757729] = clik.newPhoto({"id":757729,"src":"Slide1_11_thumb.JPG","galleries_id":55053,"server_id":1,"link":"photo_757729.html","width":130,"caption":"Discover Xabia ","height":184});
															thumbnails[804581] = clik.newPhoto({"id":804581,"src":"20070303_1_thumb.jpg","galleries_id":51710,"server_id":1,"link":"photo_804581.html","width":130,"caption":"The passion of Christ","height":102});
															thumbnails[804599] = clik.newPhoto({"id":804599,"src":"20070303_1373_1_thumb.JPG","galleries_id":51710,"server_id":1,"link":"photo_804599.html","width":130,"caption":"Time Out","height":76});
															thumbnails[5420081] = clik.newPhoto({"id":5420081,"src":"66149_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420081.html","width":130,"caption":"Casa Faro Rental","height":87});
															thumbnails[5420091] = clik.newPhoto({"id":5420091,"src":"66147_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420091.html","width":130,"caption":"The Lounge","height":87});
															thumbnails[5420094] = clik.newPhoto({"id":5420094,"src":"66150_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420094.html","width":130,"caption":"Master Bedroom","height":86});
															thumbnails[5420098] = clik.newPhoto({"id":5420098,"src":"65864_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420098.html","width":130,"caption":"Delightful Pool","height":87});
															thumbnails[5420103] = clik.newPhoto({"id":5420103,"src":"66148_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420103.html","width":130,"caption":"Dining room","height":86});
															thumbnails[5420111] = clik.newPhoto({"id":5420111,"src":"67754_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420111.html","width":130,"caption":"Sea View","height":87});
															thumbnails[5420116] = clik.newPhoto({"id":5420116,"src":"66152_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420116.html","width":130,"caption":"Patio garden","height":98});
															thumbnails[5431455] = clik.newPhoto({"id":5431455,"src":"IMG_3737_1_thumb.JPG","galleries_id":306298,"server_id":1,"link":"photo_5431455.html","width":130,"caption":"Patio","height":87});
															thumbnails[5420121] = clik.newPhoto({"id":5420121,"src":"66153_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420121.html","width":130,"caption":"Dining Room","height":194});
															thumbnails[5420129] = clik.newPhoto({"id":5420129,"src":"66155_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420129.html","width":130,"caption":"Kitchen Dining Room","height":193});
															thumbnails[5420131] = clik.newPhoto({"id":5420131,"src":"66154_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420131.html","width":130,"caption":"Hallway","height":197});
															thumbnails[5420134] = clik.newPhoto({"id":5420134,"src":"65866_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420134.html","width":130,"caption":"The Kitchen","height":195});
															thumbnails[5420138] = clik.newPhoto({"id":5420138,"src":"66156_5594_Javea_Villa_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5420138.html","width":130,"caption":"Lounge","height":193});
															thumbnails[5431440] = clik.newPhoto({"id":5431440,"src":"Patio_2_1_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5431440.html","width":130,"caption":"Small Patio","height":187});
															thumbnails[5431435] = clik.newPhoto({"id":5431435,"src":"Entrance_Hall_1_1_thumb.jpg","galleries_id":306298,"server_id":1,"link":"photo_5431435.html","width":130,"caption":"Entrance Hall","height":195});
															thumbnails[5583222] = clik.newPhoto({"id":5583222,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1280_1_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583222.html","width":130,"caption":"A beautiful view","height":85});
															thumbnails[5583226] = clik.newPhoto({"id":5583226,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1246_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583226.html","width":130,"caption":"Lounge","height":87});
															thumbnails[5583231] = clik.newPhoto({"id":5583231,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1244_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583231.html","width":130,"caption":"Dining Room","height":87});
															thumbnails[5583259] = clik.newPhoto({"id":5583259,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1249_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583259.html","width":130,"caption":"Lounge view to terrace","height":87});
															thumbnails[5583265] = clik.newPhoto({"id":5583265,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1254_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583265.html","width":130,"caption":"Kitchen","height":87});
															thumbnails[5583268] = clik.newPhoto({"id":5583268,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1264_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583268.html","width":130,"caption":"Bedroom One","height":87});
															thumbnails[5583272] = clik.newPhoto({"id":5583272,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1268_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583272.html","width":130,"caption":"Bedroom Two","height":87});
															thumbnails[5583274] = clik.newPhoto({"id":5583274,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1276_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583274.html","width":130,"caption":"Terrace Dining","height":87});
															thumbnails[5583276] = clik.newPhoto({"id":5583276,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1279_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583276.html","width":130,"caption":"View to the sea","height":86});
															thumbnails[5583280] = clik.newPhoto({"id":5583280,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1286_1_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583280.html","width":130,"caption":"Optional Jacuzzi","height":90});
															thumbnails[5583282] = clik.newPhoto({"id":5583282,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1293_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583282.html","width":130,"caption":"Parking (offroad)","height":87});
															thumbnails[5583292] = clik.newPhoto({"id":5583292,"src":"2009_12_07_George_Cresswell_and_Modern_Ho_1291_1_thumb.JPG","galleries_id":306890,"server_id":1,"link":"photo_5583292.html","width":130,"caption":"View from garden","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[306298] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Villa RENTAL - Casa Faro","link":"section366636.html","maxRecords":0.0,"photoIDs":[5420081.0,5420091.0,5420094.0,5420098.0,5420103.0,5420111.0,5420116.0,5431455.0,5420121.0,5420129.0,5420131.0,5420134.0,5420138.0,5431440.0,5431435.0],"skipIndex":0,"section_code":"section366636","featured_images":"5431455,5431440,5431435,5420138,5420134,5420131,5420129,5420121,5420116,5420111","id":306298,"singleSection":true});				  						galleries[306890] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Villa RENTAL - Casa Barraca","link":"section367459.html","maxRecords":0.0,"photoIDs":[5583222.0,5583226.0,5583231.0,5583259.0,5583265.0,5583268.0,5583272.0,5583274.0,5583276.0,5583280.0,5583282.0,5583292.0],"skipIndex":0,"section_code":"section367459","featured_images":"5583292,5583282,5583280,5583276,5583274,5583272,5583268,5583265,5583259,5583231","id":306890,"singleSection":true});				  						galleries[51710] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Javea Port ","link":"gallery_51710.html","maxRecords":0.0,"photoIDs":[3140325.0,699342.0,6699677.0,699335.0,699328.0,688136.0,697587.0,699338.0,749403.0,697583.0,696231.0,756794.0,804400.0,2165057.0,678474.0,757488.0,749407.0,2114259.0,678639.0,786282.0,678610.0,2114271.0,756094.0,2114302.0,8248543.0,2114314.0,688119.0,678330.0,699326.0,757635.0,699329.0,756772.0,756036.0,756780.0,756044.0,804581.0,804599.0],"skipIndex":0,"section_code":"gallery","featured_images":678330.0,"id":51710,"singleSection":false});				  						galleries[51822] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Jávea Old Town","link":"gallery_51822.html","maxRecords":0.0,"photoIDs":[2751059.0,694097.0,2474121.0,693976.0,2325029.0,715690.0,733241.0,715623.0,715677.0,715628.0,694106.0,715688.0,715588.0,715619.0,838265.0,711673.0,817547.0,837972.0,838001.0],"skipIndex":0,"section_code":"gallery","featured_images":837972.0,"id":51822,"singleSection":false});				  						galleries[51823] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Xabia Flora ","link":"gallery_51823.html","maxRecords":0.0,"photoIDs":[2751724.0,2751515.0,838032.0,782988.0,678495.0,2164996.0,772194.0,696204.0,769910.0,696219.0,696227.0,768864.0,804853.0,2114284.0,838008.0,715481.0,677807.0,715420.0,2165024.0,838028.0],"skipIndex":0,"section_code":"gallery","featured_images":782988.0,"id":51823,"singleSection":false});				  						galleries[51790] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Seascapes","link":"gallery_51790.html","maxRecords":0.0,"photoIDs":[6699577.0,6699584.0,6699588.0,2474241.0,2861591.0,677823.0,699491.0,680265.0,4580346.0,2473949.0,678269.0,749532.0,2751091.0,772395.0,698361.0,818256.0,698674.0,818260.0,711663.0,711659.0,2474156.0,812570.0,757456.0,678372.0,804690.0,818251.0,6821841.0,804724.0,786299.0],"skipIndex":0,"section_code":"gallery","featured_images":818256.0,"id":51790,"singleSection":false});				  						galleries[51789] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Landscapes","link":"gallery_51789.html","maxRecords":0.0,"photoIDs":[818420.0,2474220.0,2474113.0,2814577.0,764235.0,817609.0,817659.0,783005.0,752715.0,817612.0,749477.0,757728.0,697635.0,757520.0,789026.0,697627.0,677796.0,804743.0,804797.0,804821.0,757694.0,2474027.0,2114298.0,711662.0,818428.0],"skipIndex":0,"section_code":"gallery","featured_images":804797.0,"id":51789,"singleSection":false});				  						galleries[365727] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Fashion","link":"gallery_365727.html","maxRecords":0.0,"photoIDs":[6699602.0,6699601.0,6699596.0,6699604.0,6699609.0],"skipIndex":0,"section_code":"gallery","featured_images":6699596.0,"id":365727,"singleSection":false});				  						galleries[63527] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Sport & Activities","link":"gallery_63527.html","maxRecords":0.0,"photoIDs":[1480595.0,1480582.0,1442699.0,4775896.0,4775898.0,4775921.0,4775934.0,775959.0,817551.0,774893.0,1481102.0,1480577.0,775573.0],"skipIndex":0,"section_code":"gallery","featured_images":1481102.0,"id":63527,"singleSection":false});				  						galleries[59879] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"A Year in Xābia ","link":"gallery_59879.html","maxRecords":0.0,"photoIDs":[678645.0,692528.0,2165002.0,697559.0,2164983.0,2165035.0,2474187.0,697617.0,678625.0,2165008.0,764230.0,2165014.0],"skipIndex":0,"section_code":"gallery","featured_images":678645.0,"id":59879,"singleSection":false});				  						galleries[291260] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Andalucia","link":"gallery_291260.html","maxRecords":0.0,"photoIDs":[1480623.0,5148006.0,2474334.0,5148007.0,1480671.0,1480629.0,2814488.0,1480641.0,2766908.0,2803704.0,2767607.0,2817889.0,2767666.0,2817768.0,2768099.0,715816.0,733232.0,757414.0,5340399.0,5340404.0,5340424.0,6821870.0,6821875.0,5340587.0,5340617.0,5340429.0,5340414.0,5119303.0,2751077.0,2474257.0,2751147.0,2814423.0,1480705.0,1480609.0],"skipIndex":0,"section_code":"gallery","featured_images":5119303.0,"id":291260,"singleSection":false});				  						galleries[365720] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Moroccan Travels","link":"gallery_365720.html","maxRecords":0.0,"photoIDs":[4775498.0,4775737.0,4775353.0,4775507.0,4775749.0],"skipIndex":0,"section_code":"gallery","featured_images":"4775749,4775737,4775507,4775498,4775353","id":365720,"singleSection":false});				  						galleries[365722] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Oriental Assembly","link":"gallery_365722.html","maxRecords":0.0,"photoIDs":[1259478.0,3081159.0,3080942.0,3158242.0,3189336.0,1266090.0,1259461.0,1266074.0],"skipIndex":0,"section_code":"gallery","featured_images":1259461.0,"id":365722,"singleSection":false});				  						galleries[55053] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Other Photos","link":"gallery_55053.html","maxRecords":0.0,"photoIDs":[6699593.0,3016616.0,3016628.0,3016761.0,3016640.0,3162073.0,3560632.0,2751118.0,2814440.0,2814504.0,6699590.0,3598695.0,2817743.0,3598765.0,3017312.0,3017364.0,754096.0,736764.0,2751765.0,757729.0],"skipIndex":0,"section_code":"gallery","featured_images":2817743.0,"id":55053,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8248543,3560632,2474156,2473949,1480582,837972,818256,783005,782988,678610';
imageSets[2] = '6699596,5119303,2817743,1481102,1259461,837972,818256,804797,782988,678645,678330';
imageSets[3] = '818420';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/kerryw/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/kerryw/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/kerryw/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/kerryw/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/kerryw/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/kerryw/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/kerryw/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Discover Xābia / Jávea with Kerry Webber: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &euro;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="kerrykwa@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="EUR">';
					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="kerrykwa@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

		

