window.thumbnails = new Object();
												thumbnails[3439165] = new thumbnail(3439165,'43837','','FLATIRON2008_thumb.jpg',130, 130,18,'photo_3439165.html');
												thumbnails[2846117] = new thumbnail(2846117,'43837','','BROOKLYN-BRIDGE-WEB_thumb.jpg',130, 103,18,'photo_2846117.html');
												thumbnails[3439220] = new thumbnail(3439220,'43837','','montSAINTMICHEL_thumb.jpg',130, 109,18,'photo_3439220.html');
												thumbnails[3439221] = new thumbnail(3439221,'43837','','MONTSAINTMICHEL2_thumb.jpg',130, 130,18,'photo_3439221.html');
												thumbnails[3439243] = new thumbnail(3439243,'43837','','VENTANA-EN-EDAM_thumb.jpg',130, 114,18,'photo_3439243.html');
												thumbnails[568239] = new thumbnail(568239,'43837','','arguis-copia_thumb.jpg',130, 133,18,'photo_568239.html');
												thumbnails[568248] = new thumbnail(568248,'43837','','BATTERSEAPOWERSTATION--copi_thumb.jpg',130, 104,18,'photo_568248.html');
												thumbnails[568260] = new thumbnail(568260,'43837','','ALHAMBRA-copia1_thumb.jpg',130, 173,18,'photo_568260.html');
												thumbnails[568271] = new thumbnail(568271,'43837','','cabarceno-copia_thumb.jpg',130, 116,18,'photo_568271.html');
												thumbnails[568275] = new thumbnail(568275,'43837','','CANAL-FRANCIA-copia_thumb.jpg',130, 139,18,'photo_568275.html');
												thumbnails[568280] = new thumbnail(568280,'43837','','cascada-monasterio-de-piedr_thumb.jpg',130, 117,18,'photo_568280.html');
												thumbnails[568282] = new thumbnail(568282,'43837','','CASCADA-ORDESA-copia_thumb.jpg',130, 130,18,'photo_568282.html');
												thumbnails[568285] = new thumbnail(568285,'43837','','CEMENTERIO-EN-LONDRES-2-cop_thumb.jpg',130, 101,18,'photo_568285.html');
												thumbnails[568286] = new thumbnail(568286,'43837','','CEMENTERIO-LONDRES-4-copia_thumb.jpg',130, 105,18,'photo_568286.html');
												thumbnails[568290] = new thumbnail(568290,'43837','','CENTRAL-PARK-copia_thumb.jpg',130, 87,18,'photo_568290.html');
												thumbnails[568292] = new thumbnail(568292,'43837','','desdeTRIJUEQUE-copia_thumb.jpg',130, 132,18,'photo_568292.html');
												thumbnails[568297] = new thumbnail(568297,'43837','','DESNUDO-A-BAJO-CERO-EN-NUEV_thumb.jpg',130, 202,18,'photo_568297.html');
												thumbnails[568302] = new thumbnail(568302,'43837','','EDINBURGH-copia_thumb.jpg',130, 130,18,'photo_568302.html');
												thumbnails[568304] = new thumbnail(568304,'43837','','EDINBURGH-panoramica-copia_thumb.jpg',130, 72,18,'photo_568304.html');
												thumbnails[568310] = new thumbnail(568310,'43837','','el rincon de los muertos, estocolmo copia_thumb.jpg',130, 41,18,'photo_568310.html');
												thumbnails[568314] = new thumbnail(568314,'43837','','ferroatlantica-copia_thumb.jpg',130, 129,18,'photo_568314.html');
												thumbnails[568315] = new thumbnail(568315,'43837','','FILA-india-EN-EL-CORAZON-DE_thumb.jpg',130, 97,18,'photo_568315.html');
												thumbnails[568316] = new thumbnail(568316,'43837','','GAMLA STAN copia_thumb.jpg',130, 76,18,'photo_568316.html');
												thumbnails[568318] = new thumbnail(568318,'43837','','harinera huesca copia 2_thumb.jpg',130, 129,18,'photo_568318.html');
												thumbnails[568319] = new thumbnail(568319,'43837','','nave-vikinga-copia_thumb.jpg',130, 94,18,'photo_568319.html');
												thumbnails[568321] = new thumbnail(568321,'43837','','New-York-1996,-homenaje-a-S_thumb.jpg',130, 193,18,'photo_568321.html');
												thumbnails[568322] = new thumbnail(568322,'43837','','PATIO-DE-PALACIO--copia_thumb.jpg',130, 153,18,'photo_568322.html');
												thumbnails[568327] = new thumbnail(568327,'43837','','puente-estocolmo-copia_thumb.jpg',130, 129,18,'photo_568327.html');
												thumbnails[568330] = new thumbnail(568330,'43837','','REFLEJO-EN-CENTRAL-PARK-cop_thumb.jpg',130, 241,18,'photo_568330.html');
												thumbnails[568332] = new thumbnail(568332,'43837','','rocas-y-agua-copia_thumb.jpg',130, 130,18,'photo_568332.html');
												thumbnails[568334] = new thumbnail(568334,'43837','','RUINAS-EN-EDINBURGH-copia-4_thumb.jpg',130, 114,18,'photo_568334.html');
												thumbnails[568344] = new thumbnail(568344,'43837','','SIERRA DE GUARA copia_thumb.jpg',130, 133,18,'photo_568344.html');
												thumbnails[573332] = new thumbnail(573332,'44264','','PAULA-copia_thumb.jpg',130, 130,18,'photo_573332.html');
												thumbnails[573334] = new thumbnail(573334,'44264','','paula-con-gafas-sol_thumb.jpg',130, 134,18,'photo_573334.html');
												thumbnails[573335] = new thumbnail(573335,'44264','','paulacolor-copia_thumb.jpg',130, 112,18,'photo_573335.html');
												thumbnails[573336] = new thumbnail(573336,'44264','','paula,en-la-ALHAMBRA-copia1_thumb.jpg',130, 128,18,'photo_573336.html');
												thumbnails[573340] = new thumbnail(573340,'44264','','PAULA-6-granada_thumb.jpg',130, 98,18,'photo_573340.html');
												thumbnails[573343] = new thumbnail(573343,'44264','','PAULA-5-en-granada_thumb.jpg',130, 91,18,'photo_573343.html');
												thumbnails[573344] = new thumbnail(573344,'44264','','PAULA-3-copia_thumb.jpg',130, 90,18,'photo_573344.html');
												thumbnails[573351] = new thumbnail(573351,'44264','','PAULA-2-copia_thumb.jpg',130, 88,18,'photo_573351.html');
												thumbnails[573354] = new thumbnail(573354,'44264','','PAULA-1-copia_thumb.jpg',130, 165,18,'photo_573354.html');
												thumbnails[573360] = new thumbnail(573360,'44264','','Puala-sentada_thumb.jpg',130, 153,18,'photo_573360.html');
												thumbnails[1159916] = new thumbnail(1159916,'43837','','MAR_thumb.jpg',130, 73,18,'photo_1159916.html');
												thumbnails[1159921] = new thumbnail(1159921,'83891','','MI LAVABO_thumb.jpg',130, 94,18,'photo_1159921.html');
												thumbnails[1159930] = new thumbnail(1159930,'83891','','GERONA_thumb.jpg',130, 100,18,'photo_1159930.html');
												thumbnails[1159934] = new thumbnail(1159934,'43837','','ESCAPARATE MADRID_thumb.jpg',130, 76,18,'photo_1159934.html');
												thumbnails[1159938] = new thumbnail(1159938,'43837','','SIERRA DE LAS NIEVES_thumb.jpg',130, 73,18,'photo_1159938.html');
												thumbnails[1159945] = new thumbnail(1159945,'83891','','CEMENTERIO EN LONDRES_thumb.jpg',130, 99,18,'photo_1159945.html');
												thumbnails[1159950] = new thumbnail(1159950,'43837','','PLAYA DE MIJAS_thumb.jpg',130, 97,18,'photo_1159950.html');
												thumbnails[1159955] = new thumbnail(1159955,'43837','','ARBOL EN MONTSERRAT_thumb.jpg',130, 179,18,'photo_1159955.html');
												thumbnails[1159958] = new thumbnail(1159958,'43837','','NUBE Y OLA_thumb.jpg',130, 128,18,'photo_1159958.html');
												thumbnails[1159964] = new thumbnail(1159964,'44264','','PAULA VERANO 2006_thumb.jpg',130, 101,18,'photo_1159964.html');
												thumbnails[1165254] = new thumbnail(1165254,'44264','','PAULA CON TOALLA 1999_thumb.jpg',130, 87,18,'photo_1165254.html');
												thumbnails[3439166] = new thumbnail(3439166,'83891','','Madrid_thumb.jpg',130, 128,18,'photo_3439166.html');
												thumbnails[3439227] = new thumbnail(3439227,'44264','','PAULA-en-nuevo-baztan_thumb.jpg',130, 130,18,'photo_3439227.html');
												thumbnails[3439236] = new thumbnail(3439236,'83891','','RETRATO-CON-VALLA_thumb.jpg',130, 81,18,'photo_3439236.html');
												thumbnails[3439238] = new thumbnail(3439238,'83891','','sombrasZEROfinal-copia_thumb.jpg',130, 85,18,'photo_3439238.html');
												thumbnails[6439473] = new thumbnail(6439473,'83891','','paulaLONDONSTGEORGE-copia_thumb.jpg',130, 131,18,'photo_6439473.html');
												thumbnails[6439474] = new thumbnail(6439474,'83891','','puentemilenioLONDON-copia_thumb.jpg',130, 130,18,'photo_6439474.html');
												thumbnails[7041893] = new thumbnail(7041893,'83891','','LONDON2_thumb.jpg',130, 129,18,'photo_7041893.html');
												thumbnails[7041898] = new thumbnail(7041898,'83891','','LONDON3_thumb.jpg',130, 130,18,'photo_7041898.html');
												thumbnails[7089694] = new thumbnail(7089694,'383928','','AMANDA-3_thumb.jpg',130, 131,18,'photo_7089694.html');
												thumbnails[7089702] = new thumbnail(7089702,'383928','','CHICA_thumb.jpg',130, 133,18,'photo_7089702.html');
												thumbnails[7089709] = new thumbnail(7089709,'383928','','desnudo_thumb.jpg',130, 131,18,'photo_7089709.html');
												thumbnails[7089711] = new thumbnail(7089711,'383928','','EL-CHAPI-copia_thumb.jpg',130, 90,18,'photo_7089711.html');
												thumbnails[7089721] = new thumbnail(7089721,'383928','','IRENE_thumb.jpg',130, 117,18,'photo_7089721.html');
												thumbnails[7089723] = new thumbnail(7089723,'383928','','JAVIER_thumb.jpg',130, 218,18,'photo_7089723.html');
												thumbnails[7089728] = new thumbnail(7089728,'383928','','KIKE-CON-CHICA-copia_thumb.jpg',130, 194,18,'photo_7089728.html');
												thumbnails[7089810] = new thumbnail(7089810,'383928','','CHICAPELIRROJA_thumb.jpg',130, 132,18,'photo_7089810.html');
												thumbnails[7097424] = new thumbnail(7097424,'43837','','BATTERSEAPOWERSTATION_thumb.jpg',160, 128,18,'photo_7097424.html');
												thumbnails[7097428] = new thumbnail(7097428,'43837','','bicienGAMLASTAN_thumb.jpg',160, 108,18,'photo_7097428.html');
												thumbnails[7097478] = new thumbnail(7097478,'43837','','LAROCHELLE_thumb.jpg',160, 131,18,'photo_7097478.html');
												thumbnails[7105567] = new thumbnail(7105567,'384418','','TAZAVIPS_thumb.jpg',111, 150,18,'photo_7105567.html');
												thumbnails[7105569] = new thumbnail(7105569,'384418','','abalorios_thumb.jpg',111, 150,18,'photo_7105569.html');
												thumbnails[7105570] = new thumbnail(7105570,'384418','','armani_thumb.jpg',111, 150,18,'photo_7105570.html');
												thumbnails[7105571] = new thumbnail(7105571,'384418','','BOE_thumb.jpg',111, 150,18,'photo_7105571.html');
												thumbnails[7105572] = new thumbnail(7105572,'384418','','BOE2_thumb.jpg',111, 150,18,'photo_7105572.html');
												thumbnails[7105574] = new thumbnail(7105574,'384418','','BPI_thumb.jpg',111, 150,18,'photo_7105574.html');
												thumbnails[7105575] = new thumbnail(7105575,'384418','','carrefour_thumb.jpg',111, 150,18,'photo_7105575.html');
												thumbnails[7105578] = new thumbnail(7105578,'384418','','deco_thumb.jpg',111, 150,18,'photo_7105578.html');
												thumbnails[7105579] = new thumbnail(7105579,'384418','','MAMPARAS_thumb.jpg',111, 150,18,'photo_7105579.html');
												thumbnails[7105662] = new thumbnail(7105662,'384418','','ROHAN_thumb.jpg',111, 150,18,'photo_7105662.html');
												thumbnails[7105670] = new thumbnail(7105670,'384418','','TRANSFESA_thumb.jpg',111, 150,18,'photo_7105670.html');
												thumbnails[7105672] = new thumbnail(7105672,'384418','','WALKSOFSPAIN_thumb.jpg',111, 150,18,'photo_7105672.html');
												thumbnails[7105698] = new thumbnail(7105698,'384418','','passport_thumb.jpg',111, 150,18,'photo_7105698.html');
												thumbnails[7106921] = new thumbnail(7106921,'44264','','PAULA1_thumb.jpg',100, 150,18,'photo_7106921.html');
												thumbnails[7106930] = new thumbnail(7106930,'43837','','PAISAJE_thumb.jpg',160, 107,18,'photo_7106930.html');
												thumbnails[7106938] = new thumbnail(7106938,'384466','','battersea_thumb.jpg',160, 108,18,'photo_7106938.html');
												thumbnails[7115050] = new thumbnail(7115050,'384466','','cincovillas_thumb.jpg',160, 130,18,'photo_7115050.html');
												thumbnails[7115068] = new thumbnail(7115068,'384466','','eileandonan_thumb.jpg',150, 150,18,'photo_7115068.html');
												thumbnails[7115070] = new thumbnail(7115070,'384466','','FLORENCIA_101_thumb.jpg',160, 149,18,'photo_7115070.html');
												thumbnails[7115072] = new thumbnail(7115072,'384466','','FLORENCIA2_thumb.jpg',154, 150,18,'photo_7115072.html');
												thumbnails[7115078] = new thumbnail(7115078,'384466','','FLORENCIA3_thumb.jpg',160, 143,18,'photo_7115078.html');
												thumbnails[7115151] = new thumbnail(7115151,'384466','','PARIS_thumb.jpg',160, 117,18,'photo_7115151.html');
												thumbnails[7115209] = new thumbnail(7115209,'384466','','paris2_thumb.jpg',160, 107,18,'photo_7115209.html');
												thumbnails[7115212] = new thumbnail(7115212,'384466','','paris3_thumb.jpg',100, 150,18,'photo_7115212.html');
												thumbnails[7130318] = new thumbnail(7130318,'383928','','aida_thumb.jpg',98, 150,18,'photo_7130318.html');
												thumbnails[7130366] = new thumbnail(7130366,'383928','','mary_thumb.jpg',160, 121,18,'photo_7130366.html');
												thumbnails[7130391] = new thumbnail(7130391,'43837','','ARCACHON_thumb.jpg',160, 108,18,'photo_7130391.html');
												thumbnails[7133703] = new thumbnail(7133703,'44264','','paulaOXFORD_thumb.jpg',160, 116,18,'photo_7133703.html');
												thumbnails[7133706] = new thumbnail(7133706,'44264','','PAULALONDON_17C0A794-1EC9-DFB6-09DCBAD588C5E0CB_thumb.jpg',160, 107,18,'photo_7133706.html');
												thumbnails[7133712] = new thumbnail(7133712,'44264','','PAULA_thumb.jpg',105, 150,18,'photo_7133712.html');
												thumbnails[7133718] = new thumbnail(7133718,'384466','','carnac_thumb.jpg',150, 150,18,'photo_7133718.html');
												thumbnails[7133725] = new thumbnail(7133725,'384466','','costagranito_thumb.jpg',150, 150,18,'photo_7133725.html');
												thumbnails[7133727] = new thumbnail(7133727,'384466','','granitorosa_thumb.jpg',160, 120,18,'photo_7133727.html');
												thumbnails[7133730] = new thumbnail(7133730,'384466','','DIA8PA0061_thumb.JPG',160, 120,18,'photo_7133730.html');
												thumbnails[7133731] = new thumbnail(7133731,'384466','','DIA7024_thumb.jpg',160, 123,18,'photo_7133731.html');
												thumbnails[7133735] = new thumbnail(7133735,'384466','','DIA7028_thumb.jpg',160, 107,18,'photo_7133735.html');
												thumbnails[7133738] = new thumbnail(7133738,'384466','','DIA7048_thumb.jpg',160, 90,18,'photo_7133738.html');
												thumbnails[7133739] = new thumbnail(7133739,'384466','','DIA12159_thumb.jpg',160, 107,18,'photo_7133739.html');
												thumbnails[7133742] = new thumbnail(7133742,'384466','','ny1_thumb.jpg',119, 150,18,'photo_7133742.html');
												thumbnails[7133744] = new thumbnail(7133744,'384466','','LONDON_thumb.jpg',160, 128,18,'photo_7133744.html');
												thumbnails[7133747] = new thumbnail(7133747,'384466','','london1_thumb.jpg',160, 109,18,'photo_7133747.html');
												thumbnails[7133750] = new thumbnail(7133750,'384466','','london2_195D9050-1EC9-DFB6-09F3E4B8363FA0B1_thumb.jpg',160, 90,18,'photo_7133750.html');
												thumbnails[7133753] = new thumbnail(7133753,'384466','','london3_196A5450-1EC9-DFB6-09FF0AB646495142_thumb.jpg',160, 111,18,'photo_7133753.html');
												thumbnails[7133765] = new thumbnail(7133765,'384466','','london4_thumb.jpg',160, 107,18,'photo_7133765.html');
												thumbnails[7133775] = new thumbnail(7133775,'384466','','candem_thumb.jpg',160, 131,18,'photo_7133775.html');
												thumbnails[7133782] = new thumbnail(7133782,'384466','','oxford_thumb.jpg',160, 96,18,'photo_7133782.html');
												thumbnails[7133788] = new thumbnail(7133788,'384466','','LOCHNESS_thumb.jpg',160, 103,18,'photo_7133788.html');
												thumbnails[7133792] = new thumbnail(7133792,'384466','','lochness2_thumb.jpg',160, 104,18,'photo_7133792.html');
												thumbnails[7133804] = new thumbnail(7133804,'384466','','SCOTLANDCARLOs_thumb.jpg',160, 112,18,'photo_7133804.html');
												thumbnails[7133813] = new thumbnail(7133813,'384466','','MONTSANTMICHEL_thumb.jpg',160, 119,18,'photo_7133813.html');
												thumbnails[7174110] = new thumbnail(7174110,'83891','','ABADIA_thumb.jpg',160, 97,18,'photo_7174110.html');
												thumbnails[7174114] = new thumbnail(7174114,'383928','','actor_thumb.jpg',131, 150,18,'photo_7174114.html');
												thumbnails[7174116] = new thumbnail(7174116,'383928','','andresLOPEZ_thumb.jpg',160, 131,18,'photo_7174116.html');
												thumbnails[7174119] = new thumbnail(7174119,'383928','','CHICA2_thumb.jpg',122, 150,18,'photo_7174119.html');
												thumbnails[7174123] = new thumbnail(7174123,'44264','','PAULA_E73FDC13-1EC9-DFB6-0965359DAC244FD8_thumb.jpg',160, 132,18,'photo_7174123.html');
												thumbnails[7174126] = new thumbnail(7174126,'44264','','PAULA2_thumb.jpg',152, 150,18,'photo_7174126.html');
												thumbnails[7420138] = new thumbnail(7420138,'402163','','atocha_thumb.jpg',150, 150,18,'photo_7420138.html');
												thumbnails[7420153] = new thumbnail(7420153,'402163','','car1_thumb.jpg',150, 150,18,'photo_7420153.html');
												thumbnails[7420160] = new thumbnail(7420160,'402163','','car2_thumb.jpg',150, 150,18,'photo_7420160.html');
												thumbnails[7420179] = new thumbnail(7420179,'402163','','linea-1_thumb.jpg',150, 150,18,'photo_7420179.html');
												thumbnails[7420184] = new thumbnail(7420184,'402163','','linea-2_thumb.jpg',150, 150,18,'photo_7420184.html');
												thumbnails[7420191] = new thumbnail(7420191,'402163','','linea-43_thumb.jpg',150, 150,18,'photo_7420191.html');
												thumbnails[7420224] = new thumbnail(7420224,'402163','','linea-44-2_thumb.jpg',150, 150,18,'photo_7420224.html');
												thumbnails[7420232] = new thumbnail(7420232,'402163','','linea-44-3_thumb.jpg',150, 150,18,'photo_7420232.html');
												thumbnails[7420242] = new thumbnail(7420242,'402163','','linea-44_thumb.jpg',150, 150,18,'photo_7420242.html');
												thumbnails[7420250] = new thumbnail(7420250,'402163','','linea-64-2_thumb.jpg',150, 150,18,'photo_7420250.html');
												thumbnails[7420264] = new thumbnail(7420264,'402163','','linea-82-2_thumb.jpg',150, 150,18,'photo_7420264.html');
												thumbnails[7420270] = new thumbnail(7420270,'402163','','linea-82-3_thumb.jpg',150, 150,18,'photo_7420270.html');
												thumbnails[7421455] = new thumbnail(7421455,'402163','','linea-82-5_thumb.jpg',150, 150,18,'photo_7421455.html');
												thumbnails[7421466] = new thumbnail(7421466,'402163','','linea-82_thumb.jpg',150, 150,18,'photo_7421466.html');
												thumbnails[7421472] = new thumbnail(7421472,'402163','','linea-126_thumb.jpg',150, 150,18,'photo_7421472.html');
												thumbnails[7421482] = new thumbnail(7421482,'402163','','linea-137-2-_thumb.jpg',150, 150,18,'photo_7421482.html');
												thumbnails[7421483] = new thumbnail(7421483,'402163','','linea-137_thumb.jpg',150, 150,18,'photo_7421483.html');
												thumbnails[7421492] = new thumbnail(7421492,'402163','','_linea_82_7_thumb.jpg',150, 150,18,'photo_7421492.html');
												thumbnails[7421506] = new thumbnail(7421506,'402163','','LINEA_82-6_thumb.jpg',150, 150,18,'photo_7421506.html');
												thumbnails[7421510] = new thumbnail(7421510,'402163','','Valdezarza_thumb.jpg',150, 150,18,'photo_7421510.html');
												thumbnails[7422961] = new thumbnail(7422961,'402163','','linea-44-4_thumb.jpg',150, 150,18,'photo_7422961.html');
												thumbnails[7570553] = new thumbnail(7570553,'83891','Arcachon, pinhole','zero1final_thumb.jpg',160, 103,18,'photo_7570553.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[43837] = new gallery(43837,'7106930,7097478,7097428,7097424,3439165','CUADERNO DE BITACORA','gallery',[3439165,2846117,3439220,3439221,3439243,568239,568248,568260,568271,568275,568280,568282,568285,568286,568290,568292,568297,568302,568304,568310,568314,568315,568316,568318,568319,568321,568322,568327,568330,568332,568334,568344,1159916,1159934,1159938,1159950,1159955,1159958,7097424,7097428,7097478,7106930,7130391],0, 0, '', 'gallery_43837.html',0,0);
				  					galleries[44264] = new gallery(44264,'7106921','PAULA','gallery',[573332,573334,573335,573336,573340,573343,573344,573351,573354,573360,1159964,1165254,3439227,7106921,7133703,7133706,7133712,7174123,7174126],0, 0, '', 'gallery_44264.html',0,0);
				  					galleries[83891] = new gallery(83891,'7570553,7174110,7041898,7041893,3439236','HOLE AND HOLGA','gallery',[1159921,1159930,1159945,3439166,3439236,3439238,6439473,6439474,7041893,7041898,7174110,7570553],0, 0, '', 'gallery_83891.html',0,0);
				  					galleries[383928] = new gallery(383928,'7174119,7174116,7174114,7130318,7089810,7089728,7089723,7089721,7089711,7089709,7089702,7089694','PEOPLE','gallery',[7089694,7089702,7089709,7089711,7089721,7089723,7089728,7089810,7130318,7130366,7174114,7174116,7174119],0, 0, '', 'gallery_383928.html',0,0);
				  					galleries[384466] = new gallery(384466,'7133813,7133804,7133792,7133788,7133782,7133775,7133765,7133753,7133750,7133744,7133742,7133739,7133738,7133735,7133731,7133730,7133725,7133718,7115212,7115209,7115151,7115078,7115072,7115070,7115050,7106938','I LIKE TO TRAVEL','gallery',[7106938,7115050,7115068,7115070,7115072,7115078,7115151,7115209,7115212,7133718,7133725,7133727,7133730,7133731,7133735,7133738,7133739,7133742,7133744,7133747,7133750,7133753,7133765,7133775,7133782,7133788,7133792,7133804,7133813],0, 0, '', 'gallery_384466.html',0,0);
				  					galleries[402163] = new gallery(402163,'7422961,7421510,7421506,7421483,7421482,7421472,7421466,7421455,7420270,7420264,7420250,7420242,7420232,7420224,7420191,7420153,7420138','ON THE ROAD','gallery',[7420138,7420153,7420160,7420179,7420184,7420191,7420224,7420232,7420242,7420250,7420264,7420270,7421455,7421466,7421472,7421482,7421483,7421492,7421506,7421510,7422961],0, 0, '', 'gallery_402163.html',0,0);
				  					galleries[384418] = new gallery(384418,'7105698,7105672,7105670,7105662,7105579,7105578,7105575,7105574,7105572,7105571','COMMERCIAL WORK','gallery',[7105567,7105569,7105570,7105571,7105572,7105574,7105575,7105578,7105579,7105662,7105670,7105672,7105698],0, 0, '', 'gallery_384418.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7570553,7422961,7421510,7421506,7421483,7421482,7421472,7421466,7421455,7420270,7420264,7420250,7420242,7420232,7420224,7420191,7420153,7420138,7174119,7174116,7174114,7174110,7133813,7133804,7133792,7133788,7133782,7133775,7133765,7133753,7133750,7133744,7133742,7133739,7133738,7133735,7133731,7133730,7133725,7133718,7130318,7115212,7115209,7115151,7115078,7115072,7115070,7115050,7106938,7106930,7106921,7097478,7097428,7097424,7089810,7089728,7089723,7089721,7089711,7089709,7089702,7089694,7041898,7041893,3439236,3439165';
imageSets[2] = '7570553,7422961,7421510,7421506,7421483,7421482,7421472,7421466,7421455,7420270,7420264,7420250,7420242,7420232,7420224,7420191,7420153,7420138,7174119,7174116,7174114,7174110,7133813,7133804,7133792,7133788,7133782,7133775,7133765,7133753,7133750,7133744,7133742,7133739,7133738,7133735,7133731,7133730,7133725,7133718,7130318,7115212,7115209,7115151,7115078,7115072,7115070,7115050,7106938,7106930,7106921,7097478,7097428,7097424,7089810,7089728,7089723,7089721,7089711,7089709,7089702,7089694,7041898,7041893,3439236,3439165';
imageSets[3] = '7570553,7422961,7421510,7421506,7421483,7421482,7421472,7421466,7421455,7420270,7420264,7420250,7420242,7420232,7420224,7420191,7420153,7420138,7174119,7174116,7174114,7174110,7133813,7133804,7133792,7133788,7133782,7133775,7133765,7133753,7133750,7133744,7133742,7133739,7133738,7133735,7133731,7133730,7133725,7133718,7130318,7115212,7115209,7115151,7115078,7115072,7115070,7115050,7106938,7106930,7106921,7097478,7097428,7097424,7089810,7089728,7089723,7089721,7089711,7089709,7089702,7089694,7041898,7041893,3439236,3439165';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/csphoto/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/csphoto/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/csphoto/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/csphoto/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/csphoto/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/csphoto/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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Carlos Sanchez Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &euro;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = 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 = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="carlos1960sb@hotmail.com">';
	temp = temp + '<input type="hidden" name="currency_code" value="EUR">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="carlos1960sb@hotmail.com">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							temp = 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

