window.thumbnails = new Object();
												thumbnails[47429] = new thumbnail(47429,'','Mountain road near Montejaque','mountainroad2_thumb.jpg',130, 85,1,'#');
												thumbnails[22807] = new thumbnail(22807,'273680','Plaza de Andalucia, Olvera','olveratrip1_thumb.7.jpg',130, 86,1,'photo_22807.html');
												thumbnails[22808] = new thumbnail(22808,'273680','Views over Olvera','olveratrip2_thumb.1.jpg',130, 86,1,'photo_22808.html');
												thumbnails[22810] = new thumbnail(22810,'273680','View of the Iglesia - Olvera','olveratrip3_thumb.3.jpg',130, 195,1,'photo_22810.html');
												thumbnails[22811] = new thumbnail(22811,'273679','View from the Punte Nuevo, Ronda','Pict0680_thumb.jpg',130, 173,1,'photo_22811.html');
												thumbnails[22814] = new thumbnail(22814,'2661','Interview during the 1st Rallye Ruta del Aceite, May 2005.','PV interview_thumb.JPG',130, 195,1,'photo_22814.html');
												thumbnails[22815] = new thumbnail(22815,'273679','View from the New Bridge in Ronda','ronda_thumb.JPG',130, 98,1,'photo_22815.html');
												thumbnails[23618] = new thumbnail(23618,'273680','Spring in Olvera','olverapoppy1adj_thumb.jpg',130, 195,1,'photo_23618.html');
												thumbnails[23884] = new thumbnail(23884,'273680','Olvera view','olverapoppy2adj_thumb.jpg',130, 87,1,'photo_23884.html');
												thumbnails[24018] = new thumbnail(24018,'27017','Punte Nuevo in Ronda','Pict0682adj_thumb.jpg',130, 173,1,'photo_24018.html');
												thumbnails[24019] = new thumbnail(24019,'273678','Springtime in El Torcal.','antequera3adj1_thumb.jpg',130, 102,1,'photo_24019.html');
												thumbnails[24020] = new thumbnail(24020,'273678','El Torcal ','antequerasizeadj_thumb.jpg',130, 88,1,'photo_24020.html');
												thumbnails[24304] = new thumbnail(24304,'51726','Olvera band prepare for the Los Reyes Magos procession','olveraband_thumb.JPG',130, 195,1,'photo_24304.html');
												thumbnails[24307] = new thumbnail(24307,'273680','Stained glass window - Cemetary chapel, Olvera','stainedglass_thumb.JPG',130, 195,1,'photo_24307.html');
												thumbnails[24308] = new thumbnail(24308,'51726','A Kiss for the King - Los Reyes Magos celebrations, Olvera','threekings_thumb.JPG',130, 101,1,'photo_24308.html');
												thumbnails[24977] = new thumbnail(24977,'273681','Finca near Torre Alhaquime','fincaview2_thumb.JPG',130, 87,1,'photo_24977.html');
												thumbnails[24981] = new thumbnail(24981,'27017','Typical Andalucian rooftopview - Ronda','Pict06852_thumb.jpg',130, 98,1,'photo_24981.html');
												thumbnails[24983] = new thumbnail(24983,'273679','Horse drawn carriage - Ronda','ronda5_thumb.JPG',130, 173,1,'photo_24983.html');
												thumbnails[26480] = new thumbnail(26480,'273683','Via Verde de la Sierra - view of Pruna','Pruna view_thumb.jpg',130, 195,1,'photo_26480.html');
												thumbnails[26482] = new thumbnail(26482,'273683','View from the Via Verde nr. Olvera','Prunaview6_thumb.jpg',130, 87,1,'photo_26482.html');
												thumbnails[26483] = new thumbnail(26483,'273683','Cycling the Via Verde near Olvera','Riders_thumb.jpg',130, 195,1,'photo_26483.html');
												thumbnails[26489] = new thumbnail(26489,'273683','View from the Via Verde de la Sierra','View2_thumb.jpg',130, 195,1,'photo_26489.html');
												thumbnails[26490] = new thumbnail(26490,'273683','View from the Via Verde','View3_thumb.jpg',130, 195,1,'photo_26490.html');
												thumbnails[26492] = new thumbnail(26492,'273683','View from the Via Verde','View4_thumb.jpg',130, 195,1,'photo_26492.html');
												thumbnails[26494] = new thumbnail(26494,'273683','The Yellowbrick Road - Via Verde de la Sierra','Yellowbrickroad2_thumb.jpg',130, 195,1,'photo_26494.html');
												thumbnails[39250] = new thumbnail(39250,'273728','Town hall view - El Gastor','elgastor1_thumb.9.JPG',130, 195,1,'photo_39250.html');
												thumbnails[39251] = new thumbnail(39251,'27017','El Gastor street','elgastor2_thumb.4.JPG',130, 195,1,'photo_39251.html');
												thumbnails[39257] = new thumbnail(39257,'27017','Archway - El Gastor','elgastor3_thumb.1.JPG',130, 195,1,'photo_39257.html');
												thumbnails[39264] = new thumbnail(39264,'27017','Zahara de la Sierra','zahara1_thumb.1.JPG',130, 195,1,'photo_39264.html');
												thumbnails[39267] = new thumbnail(39267,'273687','Zahara de la Sierra','zahara3_thumb.JPG',130, 87,1,'photo_39267.html');
												thumbnails[39269] = new thumbnail(39269,'273687','Zahara de la Sierra','zahara6_thumb.JPG',130, 87,1,'photo_39269.html');
												thumbnails[39271] = new thumbnail(39271,'2711','Flowering aloe plant with Zahara de la Sierra in the background','zaharaaloe_thumb.JPG',130, 87,1,'photo_39271.html');
												thumbnails[39272] = new thumbnail(39272,'273687','View of El Gastor and Zahara de la Sierra lake','zaharalake1_thumb.JPG',130, 87,1,'photo_39272.html');
												thumbnails[39273] = new thumbnail(39273,'273687','The lake at Zahara de la Sierra','zaharalake2_thumb.JPG',130, 195,1,'photo_39273.html');
												thumbnails[39275] = new thumbnail(39275,'27017','Ancient roof tops of Zahara de la Sierra','zahararoof1_thumb.JPG',130, 195,1,'photo_39275.html');
												thumbnails[39276] = new thumbnail(39276,'27017','The beautiful church in Zahara de la Sierra','zahararoof1_thumb.1.JPG',130, 195,1,'photo_39276.html');
												thumbnails[39277] = new thumbnail(39277,'27017','View of church rooftops - Zahara de la Sierra','zahararoof4_thumb.JPG',130, 182,1,'photo_39277.html');
												thumbnails[47416] = new thumbnail(47416,'273680','View of the Arabic Castle and Church of the Encarnation.','castlechurchviewfromcorazon_thumb.jpg',130, 85,1,'photo_47416.html');
												thumbnails[47421] = new thumbnail(47421,'27017','El Corazon Monument, Plaza Andalucia','corazonmonumentcloseup_thumb.jpg',130, 199,1,'photo_47421.html');
												thumbnails[47424] = new thumbnail(47424,'273679','Statue of Daniel in Plaza Soccorro, Ronda','danielstatue_thumb.jpg',130, 85,1,'photo_47424.html');
												thumbnails[47426] = new thumbnail(47426,'273679','Statue of Daniel and the lions in Plaza Soccorro','danielstatuesocorrochurch_thumb.jpg',130, 193,1,'photo_47426.html');
												thumbnails[47427] = new thumbnail(47427,'273679','Mountain Road near Montejaque','mountainroad1_thumb.jpg',130, 84,1,'photo_47427.html');
												thumbnails[47431] = new thumbnail(47431,'27017','Church of the Encarnation, Olvera','OlveraChurch1_thumb.jpg',130, 86,1,'photo_47431.html');
												thumbnails[60090] = new thumbnail(60090,'51733','Bull fight action at the Real Feria de San Augustin 2005, Olvera','bullfight3_thumb.JPG',130, 75,1,'photo_60090.html');
												thumbnails[60094] = new thumbnail(60094,'51733','The temporary bullring.','bullfight39_thumb.JPG',130, 87,1,'photo_60094.html');
												thumbnails[60096] = new thumbnail(60096,'2661','Dominoes with the locals.','doms1_thumb.JPG',130, 88,1,'photo_60096.html');
												thumbnails[60118] = new thumbnail(60118,'51733','Skillfully dispensing the sherry','sherry3_thumb.JPG',130, 128,1,'photo_60118.html');
												thumbnails[85798] = new thumbnail(85798,'27017','Arcos de la Frontera','File0003_thumb.jpg',130, 164,1,'photo_85798.html');
												thumbnails[85802] = new thumbnail(85802,'27017','Arcos de la Frontera','File0005_thumb.jpg',130, 166,1,'photo_85802.html');
												thumbnails[85803] = new thumbnail(85803,'27017','Arcos de la Frontera','File0008_thumb.jpg',130, 165,1,'photo_85803.html');
												thumbnails[111268] = new thumbnail(111268,'27017','Ronda','File0076_thumb.jpg',130, 173,1,'photo_111268.html');
												thumbnails[111271] = new thumbnail(111271,'273728','El Gastor','File0067_thumb.jpg',130, 98,1,'photo_111271.html');
												thumbnails[111274] = new thumbnail(111274,'273681','View of Torre Alhaquime','File0071_thumb.jpg',130, 164,1,'photo_111274.html');
												thumbnails[111275] = new thumbnail(111275,'273680','View of Olvera','File0072_thumb.jpg',130, 204,1,'photo_111275.html');
												thumbnails[111281] = new thumbnail(111281,'273728','Storm over El Gastor','IMG_0021panorama3_thumb.jpg',130, 46,1,'photo_111281.html');
												thumbnails[197878] = new thumbnail(197878,'2661','Reflections of Andalucia Day 2006','DSCF0040copywebsite_thumb.jpg',130, 109,1,'photo_197878.html');
												thumbnails[197949] = new thumbnail(197949,'271900','Perfumes and soaps stall - Medieval Market Olvera','IMG_0045website_thumb.jpg',130, 87,1,'photo_197949.html');
												thumbnails[316757] = new thumbnail(316757,'27017','View of the Iglesia de la Encarnation from the Castle walls.','Architectural1_thumb.jpg',130, 196,1,'photo_316757.html');
												thumbnails[316759] = new thumbnail(316759,'27017','Iglesia de la Encarnation','Architectural3_thumb.jpg',130, 86,1,'photo_316759.html');
												thumbnails[316760] = new thumbnail(316760,'27017','Through the Walls','Churchthrucastle wall_thumb.jpg',130, 196,1,'photo_316760.html');
												thumbnails[316766] = new thumbnail(316766,'8322','Through the Castle Walls','Churchthruwallsb+w_thumb.jpg',130, 193,1,'photo_316766.html');
												thumbnails[316767] = new thumbnail(316767,'2711','Mountain Goat','DSCF0012web_thumb.jpg',130, 196,1,'photo_316767.html');
												thumbnails[316769] = new thumbnail(316769,'2711','Arctic Wolf','DSCF0015adjeyesweb3_thumb.jpg',130, 139,1,'photo_316769.html');
												thumbnails[316963] = new thumbnail(316963,'2711','European Wolf','Grey Wolf_thumb.jpg',130, 95,1,'photo_316963.html');
												thumbnails[316969] = new thumbnail(316969,'51735','Andalucian Horse and Rider ','Lunes de Quasimodo2_thumb.jpg',130, 168,1,'photo_316969.html');
												thumbnails[316971] = new thumbnail(316971,'51735','Andalucian horse and rider','Lunes de Quasimodo4_thumb.jpg',130, 102,1,'photo_316971.html');
												thumbnails[316981] = new thumbnail(316981,'8322','Arabic castle plaque','Monochrome2_thumb.jpg',130, 158,1,'photo_316981.html');
												thumbnails[316996] = new thumbnail(316996,'27017','Arabic wall plaque ','Olveracastle plaque_thumb.jpg',130, 145,1,'photo_316996.html');
												thumbnails[317082] = new thumbnail(317082,'51724','Semana Santa procession','Procession2_thumb.6.jpg',130, 196,1,'photo_317082.html');
												thumbnails[317086] = new thumbnail(317086,'51724','Semana Santa procession','Procession2_thumb.10.jpg',130, 86,1,'photo_317086.html');
												thumbnails[317090] = new thumbnail(317090,'51724','Semana Santa procession','Procession2_thumb.14.jpg',130, 196,1,'photo_317090.html');
												thumbnails[317091] = new thumbnail(317091,'51724','Semana Santa procession','Procession2_thumb.16.jpg',130, 86,1,'photo_317091.html');
												thumbnails[317107] = new thumbnail(317107,'273683','Springtime view from the Via Verde de la Sierra','Pruna_thumb.jpg',130, 196,1,'photo_317107.html');
												thumbnails[317110] = new thumbnail(317110,'273684','Pruna','Prunalongshot_thumb.jpg',130, 86,1,'photo_317110.html');
												thumbnails[317111] = new thumbnail(317111,'273680','Snow on the Sierra de Nieves','SierradeNieves_thumb.jpg',130, 86,1,'photo_317111.html');
												thumbnails[317112] = new thumbnail(317112,'27018','Via Verde de la Sierra','Via Verde, Olvera pictorial_thumb.jpg',130, 91,1,'photo_317112.html');
												thumbnails[317114] = new thumbnail(317114,'273687','Zahara de la Sierra','Zahara_thumb.jpg',130, 196,1,'photo_317114.html');
												thumbnails[499943] = new thumbnail(499943,'38979','','DSCF0017JPG1_thumb.jpg',130, 175,1,'photo_499943.html');
												thumbnails[499945] = new thumbnail(499945,'38979','','DSCF0018JPG1_thumb.jpg',130, 176,1,'photo_499945.html');
												thumbnails[499952] = new thumbnail(499952,'38979','','DSCF0024JPG_thumb.jpg',130, 193,1,'photo_499952.html');
												thumbnails[500059] = new thumbnail(500059,'38979','','DSCF0031JPG_thumb.jpg',130, 196,1,'photo_500059.html');
												thumbnails[500067] = new thumbnail(500067,'38979','','DSCF0047JPG_thumb.jpg',130, 264,1,'photo_500067.html');
												thumbnails[500071] = new thumbnail(500071,'38979','','DSCF0062JPG_thumb.jpg',130, 197,1,'photo_500071.html');
												thumbnails[500073] = new thumbnail(500073,'38979','','DSCF0064JPG_thumb.jpg',130, 193,1,'photo_500073.html');
												thumbnails[500075] = new thumbnail(500075,'38979','','DSCF0067JPG_thumb.jpg',130, 196,1,'photo_500075.html');
												thumbnails[500079] = new thumbnail(500079,'38979','','DSCF0078JPG_thumb.jpg',130, 190,1,'photo_500079.html');
												thumbnails[500084] = new thumbnail(500084,'38979','','DSCF0092JPG_thumb.jpg',130, 191,1,'photo_500084.html');
												thumbnails[500086] = new thumbnail(500086,'38979','','DSCF0098JPG_thumb.jpg',130, 188,1,'photo_500086.html');
												thumbnails[500087] = new thumbnail(500087,'38979','','DSCF0099JPG_thumb.jpg',130, 188,1,'photo_500087.html');
												thumbnails[500090] = new thumbnail(500090,'38979','','DSCF0120JPG_thumb.jpg',130, 196,1,'photo_500090.html');
												thumbnails[500091] = new thumbnail(500091,'38979','','DSCF0121JPG_thumb.jpg',130, 196,1,'photo_500091.html');
												thumbnails[500092] = new thumbnail(500092,'38979','','DSCF0123JPG_thumb.jpg',130, 196,1,'photo_500092.html');
												thumbnails[500095] = new thumbnail(500095,'38979','','DSCF0135JPG_thumb.jpg',130, 173,1,'photo_500095.html');
												thumbnails[500098] = new thumbnail(500098,'38979','','DSCF0144JPG_thumb.jpg',130, 199,1,'photo_500098.html');
												thumbnails[500099] = new thumbnail(500099,'38979','','DSCF0147JPG_thumb.jpg',130, 196,1,'photo_500099.html');
												thumbnails[500101] = new thumbnail(500101,'38979','','DSCF0148JPG_thumb.jpg',130, 196,1,'photo_500101.html');
												thumbnails[500104] = new thumbnail(500104,'38979','','DSCF0186JPG_thumb.jpg',130, 100,1,'photo_500104.html');
												thumbnails[597503] = new thumbnail(597503,'27018','Pimientos rojo','Brian Grady_Pictorial_Spain_October_thumb.jpg',130, 73,1,'photo_597503.html');
												thumbnails[597507] = new thumbnail(597507,'8322','Flamenco artists','DSCF0238TriX_thumb.jpg',130, 69,1,'photo_597507.html');
												thumbnails[610147] = new thumbnail(610147,'38979','Rocio (1)','Rocio(1)_thumb.JPG',130, 206,1,'photo_610147.html');
												thumbnails[610148] = new thumbnail(610148,'38979','','Rocio(2)_thumb.JPG',130, 190,1,'photo_610148.html');
												thumbnails[610149] = new thumbnail(610149,'38979','Rocio (3)','Rocio(3)_thumb.JPG',130, 176,1,'photo_610149.html');
												thumbnails[610150] = new thumbnail(610150,'38979','Rocio (4)','Rocio(4)_thumb.JPG',130, 193,1,'photo_610150.html');
												thumbnails[610153] = new thumbnail(610153,'38979','Rocio (6)','Rocio(6)_thumb.JPG',130, 196,1,'photo_610153.html');
												thumbnails[610155] = new thumbnail(610155,'38979','Rocio (7)','Rocio(7)_thumb.JPG',130, 234,1,'photo_610155.html');
												thumbnails[610157] = new thumbnail(610157,'38979','Rocio (8)','Rocio(8)_thumb.JPG',130, 216,1,'photo_610157.html');
												thumbnails[610175] = new thumbnail(610175,'38979','Rocio (9)','Rocio(9)_thumb.JPG',130, 88,1,'photo_610175.html');
												thumbnails[679825] = new thumbnail(679825,'79958','SWPP & BPPA Gold Merit Award Winner - Monochrome August 2006.','Brian Grady_Monochrome_thumb.jpg',130, 173,1,'photo_679825.html');
												thumbnails[679845] = new thumbnail(679845,'273680','Olvera Terrace View','TERRACE VIEW 1MODIFIEDJPG1_thumb.jpg',130, 74,1,'photo_679845.html');
												thumbnails[679847] = new thumbnail(679847,'2661','Jenni Hallam','Brian Grady_Portrait_thumb.jpg',130, 135,1,'photo_679847.html');
												thumbnails[683858] = new thumbnail(683858,'79958','SWPP & BPPA Gold Merit Award Winner - Press & PR August 2006.','Brian Grady_Press&PR_thumb.jpg',130, 86,1,'photo_683858.html');
												thumbnails[803108] = new thumbnail(803108,'271900','Medieval Market Performer - Olvera','Medaeval festival Performerwebsite copy_thumb.jpg',130, 195,1,'photo_803108.html');
												thumbnails[1082913] = new thumbnail(1082913,'27017','Andalucian Doorway','Brian Grady_Architectural_Spain_May (score 78)_thumb.jpg',130, 194,1,'photo_1082913.html');
												thumbnails[1082919] = new thumbnail(1082919,'27017','Nazrid House, Benacoaz','Brian Grady_Landscape_Spain_May (score 77)_thumb.jpg',130, 89,1,'photo_1082919.html');
												thumbnails[1082925] = new thumbnail(1082925,'27017','Bell Tower, Arcos de la Frontera','Brian_Grady_Architectural_Spain_Feb (score 74)_thumb.jpg',130, 196,1,'photo_1082925.html');
												thumbnails[1082932] = new thumbnail(1082932,'27017','Ermitage above Grazelema, Andalucia','DSC_3122_thumb.jpg',130, 175,1,'photo_1082932.html');
												thumbnails[1082936] = new thumbnail(1082936,'79958','SWPP & BPPA Gold Merit Award Winner - Science and Nature April 2007','Brian_Grady_Science&Nature_Spain_april (score 80)_thumb.jpg',130, 86,1,'photo_1082936.html');
												thumbnails[1082942] = new thumbnail(1082942,'79958','SWPP& BPPA Gold Merit Award Winner - Wildlife March 2007','Brian_Grady_Wildlife_Spain_March (score 80)_thumb.jpg',130, 71,1,'photo_1082942.html');
												thumbnails[1082979] = new thumbnail(1082979,'8322','Fuente','Brian Grady_Monochrome_Spain_May (score 78)_thumb.jpg',130, 96,1,'photo_1082979.html');
												thumbnails[1082982] = new thumbnail(1082982,'8322','Eagle','Brian_Grady_Digital Art_Spain_March (score 74)_thumb.jpg',130, 96,1,'photo_1082982.html');
												thumbnails[1082983] = new thumbnail(1082983,'8322','Medieval Fayre performer','Brian_Grady_Monochrome_Spain_April (score 79)_thumb.jpg',130, 195,1,'photo_1082983.html');
												thumbnails[1082992] = new thumbnail(1082992,'2711','Butterfly stack','Brian_Grady_Science&Nature_Spain_March (score 75)_thumb.JPG',130, 196,1,'photo_1082992.html');
												thumbnails[1082996] = new thumbnail(1082996,'2711','Black Crowned Night Heron','Brian_Grady_Wildlife_Spain_April (score 77)_thumb.jpg',130, 184,1,'photo_1082996.html');
												thumbnails[1673887] = new thumbnail(1673887,'102213','The island of Pico, the Azores','Brian_Grady_Landscape_Spain_November (score 78)_thumb.jpg',130, 64,1,'photo_1673887.html');
												thumbnails[1673890] = new thumbnail(1673890,'273682','The Grand Canyon','Grand Canyon_1_thumb.jpg',130, 80,1,'photo_1673890.html');
												thumbnails[1673895] = new thumbnail(1673895,'273686','Olive Groves, Coripe','Olive Groves, Coripe1_thumb.jpg',130, 44,1,'photo_1673895.html');
												thumbnails[1673896] = new thumbnail(1673896,'27017','Moorish Arch, Andalucia','Brian Grady_Architectural_Spain_August (score 77)_thumb.jpg',130, 163,1,'photo_1673896.html');
												thumbnails[1673905] = new thumbnail(1673905,'102213','The Bay of Porto Pim, Faial','DSC_4463_thumb.jpg',130, 85,1,'photo_1673905.html');
												thumbnails[1673906] = new thumbnail(1673906,'102213','Horta Marina, Faial','DSC_4485_thumb.jpg',130, 85,1,'photo_1673906.html');
												thumbnails[1673907] = new thumbnail(1673907,'102213','Big Game Fishing, The Azores','DSC_4578_thumb.jpg',130, 198,1,'photo_1673907.html');
												thumbnails[1673908] = new thumbnail(1673908,'102213','Shimano Tiagra fishing reel','DSC_4583_thumb.jpg',130, 85,1,'photo_1673908.html');
												thumbnails[1673910] = new thumbnail(1673910,'102213','Inter island ferry, Horta','DSC_4606_thumb.jpg',130, 85,1,'photo_1673910.html');
												thumbnails[1673913] = new thumbnail(1673913,'102213','Big Game Fishing','DSCF5403_thumb.jpg',130, 99,1,'photo_1673913.html');
												thumbnails[1673917] = new thumbnail(1673917,'102213','Typical colonial style architecture in Horta, island of Faial','Image 1_thumb.jpg',130, 195,1,'photo_1673917.html');
												thumbnails[1673918] = new thumbnail(1673918,'102213','Anchors Away !!','Image 6_thumb.jpg',130, 85,1,'photo_1673918.html');
												thumbnails[1673920] = new thumbnail(1673920,'102213','Artwork, Horta on the island of Faial','Image 7_thumb.jpg',130, 85,1,'photo_1673920.html');
												thumbnails[1673921] = new thumbnail(1673921,'102213','Sea Wall artwork, Horta','Image 8_thumb.jpg',130, 198,1,'photo_1673921.html');
												thumbnails[1673923] = new thumbnail(1673923,'102213','Leaving Horta','Image 13_thumb.jpg',130, 85,1,'photo_1673923.html');
												thumbnails[1673927] = new thumbnail(1673927,'102213','Leaving Faial','Image 14_thumb.jpg',130, 198,1,'photo_1673927.html');
												thumbnails[1673928] = new thumbnail(1673928,'102213','Peters Cafe Sport','Image 18_thumb.jpg',130, 145,1,'photo_1673928.html');
												thumbnails[1673936] = new thumbnail(1673936,'102213','Observatorio de Principe Alberto de Monaco','Image 19_thumb.jpg',130, 87,1,'photo_1673936.html');
												thumbnails[1673937] = new thumbnail(1673937,'102213','Charter boat','Image 20_thumb.jpg',130, 87,1,'photo_1673937.html');
												thumbnails[1673938] = new thumbnail(1673938,'102213','Gone Fishing','Image 21_thumb.jpg',130, 66,1,'photo_1673938.html');
												thumbnails[1673942] = new thumbnail(1673942,'102213','Ferry boat, Horta harbour','Image 26_thumb.jpg',130, 87,1,'photo_1673942.html');
												thumbnails[1673944] = new thumbnail(1673944,'27018','The Bullfight 1','Brian_Grady_Fine Art_Spain_November (score 75)_thumb.jpg',130, 63,1,'photo_1673944.html');
												thumbnails[1673952] = new thumbnail(1673952,'27018','The Bullfight 2','DSCF5280cropmidnight_thumb.jpg',130, 75,1,'photo_1673952.html');
												thumbnails[1673953] = new thumbnail(1673953,'51733','Bullfight action','DSCF5247crop_thumb.jpg',130, 68,1,'photo_1673953.html');
												thumbnails[1673962] = new thumbnail(1673962,'8322','Street Artist, Ronda','Brian_Grady_Monochrome_Spain_November (score 75)_thumb.jpg',130, 90,1,'photo_1673962.html');
												thumbnails[1673969] = new thumbnail(1673969,'8322','Derelict, South Africa','Derelict - South Africa_thumb.jpg',130, 85,1,'photo_1673969.html');
												thumbnails[1673972] = new thumbnail(1673972,'8322','The Southern Belle','DSC_2330LABadj_thumb.jpg',130, 66,1,'photo_1673972.html');
												thumbnails[1673985] = new thumbnail(1673985,'8322','Morning papers, Marbella','Morning Papers Marbella_thumb.jpg',130, 66,1,'photo_1673985.html');
												thumbnails[1673986] = new thumbnail(1673986,'8322','Olvera','Olvera_thumb.jpg',130, 85,1,'photo_1673986.html');
												thumbnails[1673990] = new thumbnail(1673990,'2711','Just looking...','Brian_Grady_Environmental Portraiture_Spain_November (no score)_thumb.jpg',130, 122,1,'photo_1673990.html');
												thumbnails[2149190] = new thumbnail(2149190,'79958','SWPP & BPPA Silver Merit Award Winner - Monochrome March 2008','Brian Grady_Monochrome_Spain_March_thumb.jpg',130, 158,1,'photo_2149190.html');
												thumbnails[2149234] = new thumbnail(2149234,'79958','SWPP & BPPA Silver Merit Award Winner - Press & PR April 2008','Brian Grady_Press&PR_Spain_April_thumb.jpg',130, 173,1,'photo_2149234.html');
												thumbnails[2149244] = new thumbnail(2149244,'79958','SWPP & BPPA Silver Merit Award Winner - Fine Art January 2008','Brian Grady_Fine Art_Spain_January_thumb.jpg',130, 173,1,'photo_2149244.html');
												thumbnails[2149246] = new thumbnail(2149246,'79958','SWPP & BPPA Silver Merit Award Winner - Comtemporary Portraiture.','Brian Grady_Portraiture Contemporary_Spain_March_thumb.jpg',130, 153,1,'photo_2149246.html');
												thumbnails[2149299] = new thumbnail(2149299,'2661','Andalucian Girl','Andlaucian Girl 2_thumb.jpg',130, 128,1,'photo_2149299.html');
												thumbnails[2149302] = new thumbnail(2149302,'51733','Death in the Afternoon 2','Death in the Afternoon 3_thumb.jpg',130, 109,1,'photo_2149302.html');
												thumbnails[2149310] = new thumbnail(2149310,'273687','White Villages - Andalucia','Brian Grady_Landscape_Spain_April_thumb.jpg',130, 104,1,'photo_2149310.html');
												thumbnails[2149354] = new thumbnail(2149354,'8322','Lakeside Tree','Brian Grady_Monochrome_Spain_April_thumb.jpg',130, 161,1,'photo_2149354.html');
												thumbnails[2149370] = new thumbnail(2149370,'27018','Flower Study 1','Brian Grady_Fine Art_Spain_April_thumb.jpg',130, 110,1,'photo_2149370.html');
												thumbnails[2149373] = new thumbnail(2149373,'27018','Earth Study','Brian Grady_Pictorial_Spain_April_thumb.jpg',130, 104,1,'photo_2149373.html');
												thumbnails[2149374] = new thumbnail(2149374,'27018','Semana Santa 1','Fine Art_thumb.jpg',130, 130,1,'photo_2149374.html');
												thumbnails[2149530] = new thumbnail(2149530,'27018','Flamenco Dancer 1','Flamenco 1 watercolor_thumb.jpg',130, 181,1,'photo_2149530.html');
												thumbnails[2149536] = new thumbnail(2149536,'271898','El Traspunte Teatro poster','DSCF5446adj with text_thumb.jpg',130, 173,1,'photo_2149536.html');
												thumbnails[2149541] = new thumbnail(2149541,'271898','Isabel','DSC_5186print_thumb.jpg',130, 173,1,'photo_2149541.html');
												thumbnails[2149548] = new thumbnail(2149548,'271898','Reflections ...','DSC_5170_thumb.jpg',130, 167,1,'photo_2149548.html');
												thumbnails[2149575] = new thumbnail(2149575,'27018','Digital Art 1','Brian Grady_Digital Art_Spain_May (score 77)1_thumb.jpg',130, 52,1,'photo_2149575.html');
												thumbnails[2149578] = new thumbnail(2149578,'27018','Digital Art 2','Abstract 2_thumb.jpg',130, 130,1,'photo_2149578.html');
												thumbnails[2948793] = new thumbnail(2948793,'182114','Poppy field, Grazelema','Brian_Grady_Landscape_Spain_May_12_x_16_thumb.jpg',130, 98,1,'photo_2948793.html');
												thumbnails[2948799] = new thumbnail(2948799,'182114','El Rey - The King of the Pueblos Blancos, Olvera','DSC_3151_16_x_12_thumb.jpg',130, 98,1,'photo_2948799.html');
												thumbnails[2948800] = new thumbnail(2948800,'182114','The lake at Zahara de la Sierra','DSCF6278_16_x_12_thumb.jpg',130, 98,1,'photo_2948800.html');
												thumbnails[2948802] = new thumbnail(2948802,'182114','Zahara de la Sierra','Fine_Art_8_14x12_canvas_thumb.jpg',130, 111,1,'photo_2948802.html');
												thumbnails[2948804] = new thumbnail(2948804,'182114','Orchid Splendour','P1000304adjpaint_16_x12_thumb.jpg',130, 98,1,'photo_2948804.html');
												thumbnails[3164803] = new thumbnail(3164803,'79958','SWPP & BPPA Silver Merit Award Winner - November 2008','Brian_Grady_Architectural_November_Spain Web_thumb.jpg',130, 153,1,'photo_3164803.html');
												thumbnails[3164821] = new thumbnail(3164821,'79958','SWPP & BPPA Silver Merit Award Winner - November 2008','Brian_Grady_Press&PR_November_Spain Web1_thumb.jpg',130, 96,1,'photo_3164821.html');
												thumbnails[3170046] = new thumbnail(3170046,'2661','Bandeleros 1','Bandaleros 1_thumb.jpg',130, 173,1,'photo_3170046.html');
												thumbnails[3170052] = new thumbnail(3170052,'2661','Man with Burro','Bandaleros 2_thumb.jpg',130, 173,1,'photo_3170052.html');
												thumbnails[3170063] = new thumbnail(3170063,'2661','Bandeleros 3','Bandaleros 31_thumb.jpg',130, 203,1,'photo_3170063.html');
												thumbnails[3170082] = new thumbnail(3170082,'2661','Bandeleros 4','Bandaleros 4_thumb.jpg',130, 218,1,'photo_3170082.html');
												thumbnails[3170083] = new thumbnail(3170083,'2661','Bandeleros Girl','Bandaleros Girl_thumb.jpg',130, 173,1,'photo_3170083.html');
												thumbnails[3170120] = new thumbnail(3170120,'2661','Bandeleros 5','Bandeleros 5_thumb.jpg',130, 198,1,'photo_3170120.html');
												thumbnails[3170146] = new thumbnail(3170146,'2711','Feeding bee on thistle','Brian Grady_Science & Nature_November_Spain_thumb.jpg',130, 103,1,'photo_3170146.html');
												thumbnails[3170153] = new thumbnail(3170153,'2661','Hope','Portrait12x12 web_thumb.jpg',130, 130,1,'photo_3170153.html');
												thumbnails[3170156] = new thumbnail(3170156,'182114','Derelict Farmhouse','Derelict Farmhouse website_thumb.jpg',130, 98,1,'photo_3170156.html');
												thumbnails[3170157] = new thumbnail(3170157,'182114','Andalucian Poppies','DSCF6284drybrush website_thumb.jpg',130, 87,1,'photo_3170157.html');
												thumbnails[3424773] = new thumbnail(3424773,'431453','Final Scene from Las Brujas de Salem','DSC_5317_thumb.jpg',130, 173,1,'photo_3424773.html');
												thumbnails[3424821] = new thumbnail(3424821,'431453','Las Brujas de Salem','DSCF6801_thumb.jpg',130, 173,1,'photo_3424821.html');
												thumbnails[3424951] = new thumbnail(3424951,'431453','La Comunion de Las Amapolas (de Baldo Ruiz)','DSCF6861_thumb.jpg',130, 173,1,'photo_3424951.html');
												thumbnails[3424956] = new thumbnail(3424956,'431453','La Comunion de Las Amapolas (de Baldo Ruiz)','DSCF6866_thumb.jpg',130, 173,1,'photo_3424956.html');
												thumbnails[3424970] = new thumbnail(3424970,'431453','La Comunion de Las Amapolas (de Baldo Ruiz)','DSCF6876_thumb.jpg',130, 195,1,'photo_3424970.html');
												thumbnails[3547838] = new thumbnail(3547838,'431453','Tsicosis','DSCF0004_thumb.jpg',130, 173,1,'photo_3547838.html');
												thumbnails[3547956] = new thumbnail(3547956,'431453','Tsicosis','DSC01207_thumb.jpg',130, 87,1,'photo_3547956.html');
												thumbnails[3548013] = new thumbnail(3548013,'79958','SWPP & BPPA Gold Merit Award winner for Architectural Exterior February 2009','Brian_Grady_Architectural_Exterior_February_Spain_thumb.jpg',130, 130,1,'photo_3548013.html');
												thumbnails[3586368] = new thumbnail(3586368,'431453','A Buenas Horas','DSCF0119_thumb.jpg',130, 173,1,'photo_3586368.html');
												thumbnails[3586380] = new thumbnail(3586380,'431453','A Buenas Horas','DSCF0129_thumb.jpg',130, 173,1,'photo_3586380.html');
												thumbnails[3586494] = new thumbnail(3586494,'431453','A Buenas Horas','DSCF0205_thumb.jpg',130, 173,1,'photo_3586494.html');
												thumbnails[3586722] = new thumbnail(3586722,'219171','Running with Wolves','DSCF0068_thumb.jpg',130, 173,1,'photo_3586722.html');
												thumbnails[3586870] = new thumbnail(3586870,'219171','Running with Wolves','DSCF0087_thumb.jpg',130, 173,1,'photo_3586870.html');
												thumbnails[3586875] = new thumbnail(3586875,'219171','Running with Wolves','DSCF0089_thumb.jpg',130, 173,1,'photo_3586875.html');
												thumbnails[3586896] = new thumbnail(3586896,'219171','Running with Wolves','DSCF0112_thumb.jpg',130, 98,1,'photo_3586896.html');
												thumbnails[3586902] = new thumbnail(3586902,'219171','Running with Wolves','DSCF0113_thumb.jpg',130, 173,1,'photo_3586902.html');
												thumbnails[3670888] = new thumbnail(3670888,'431453','La Mirada Perdida','61_thumb.jpg',130, 98,1,'photo_3670888.html');
												thumbnails[3670904] = new thumbnail(3670904,'431453','La Mirada Perdida','8_thumb.jpg',130, 173,1,'photo_3670904.html');
												thumbnails[3777871] = new thumbnail(3777871,'271898','Louis in the hilarious \"Baldosas\" comedy','DSC_5560_thumb.jpg',130, 173,1,'photo_3777871.html');
												thumbnails[3777887] = new thumbnail(3777887,'271898','Lina from a scene in \"Baldosas\"','DSC_5591_thumb.jpg',130, 173,1,'photo_3777887.html');
												thumbnails[3865175] = new thumbnail(3865175,'79958','GOLD Merit Award Winner - Landscape','Brian_Grady_Landscape_Spain_April_09_thumb.jpg',130, 98,1,'photo_3865175.html');
												thumbnails[3865180] = new thumbnail(3865180,'79958','Silver Merit Award Winner - Pictorial','Brian_Grady_Pictorial_Spain_April_thumb.jpg',130, 109,1,'photo_3865180.html');
												thumbnails[3865182] = new thumbnail(3865182,'79958','Silver Merit Award Winner - Science & Nature','Brian_Grady_Science__Nature_Spain_April_thumb.jpg',130, 130,1,'photo_3865182.html');
												thumbnails[3865185] = new thumbnail(3865185,'79958','GOLD Merit Award - Wildlife','Brian_Grady_Wildlife_Spain_April_thumb.jpg',130, 87,1,'photo_3865185.html');
												thumbnails[3865191] = new thumbnail(3865191,'2661','Portait - Arab Girl ','Brian_Grady_Portraiture_Contemporary_Spain_April_09_thumb.jpg',130, 148,1,'photo_3865191.html');
												thumbnails[3865193] = new thumbnail(3865193,'2661','Portrait - Arabic Man','Brian_Grady_Portraiture_Environmental_Spain_April_09_thumb.jpg',130, 194,1,'photo_3865193.html');
												thumbnails[4031659] = new thumbnail(4031659,'79958','Silver Merit Award Winner May 2009 - Macro','Brian_Grady_Macro_Spain_May09_thumb.jpg',130, 104,1,'photo_4031659.html');
												thumbnails[4031667] = new thumbnail(4031667,'79958','GOLD Merit Award Winner - May 2009 (Pictorial)','Brian_Grady_Pictorial_Spain_May091_thumb.jpg',130, 87,1,'photo_4031667.html');
												thumbnails[5200237] = new thumbnail(5200237,'79958','SILVER Award winning image Noember 2009 (Landscape)','Brian_Grady_Landscape_November_SpainSILVER_thumb.jpg',130, 68,1,'photo_5200237.html');
												thumbnails[5661744] = new thumbnail(5661744,'431453','','DSCF0834_thumb.jpg',130, 98,1,'photo_5661744.html');
												thumbnails[5661746] = new thumbnail(5661746,'431453','','DSCF0835_thumb.jpg',130, 98,1,'photo_5661746.html');
												thumbnails[5661814] = new thumbnail(5661814,'431453','','DSCF0886_thumb.jpg',130, 98,1,'photo_5661814.html');
												thumbnails[5661819] = new thumbnail(5661819,'431453','','DSCF0892_thumb.jpg',130, 98,1,'photo_5661819.html');
												thumbnails[5661853] = new thumbnail(5661853,'431453','','DSCF0784_thumb.jpg',130, 173,1,'photo_5661853.html');
												thumbnails[5661857] = new thumbnail(5661857,'431453','','DSCF0788_thumb.jpg',130, 98,1,'photo_5661857.html');
												thumbnails[5661900] = new thumbnail(5661900,'431453','Go Grease Lightnin\' !!','DSCF0992_thumb.jpg',130, 98,1,'photo_5661900.html');
												thumbnails[5661912] = new thumbnail(5661912,'431453','','DSCF1072_thumb.jpg',130, 98,1,'photo_5661912.html');
												thumbnails[5661952] = new thumbnail(5661952,'431453','','DSCF1231_thumb.jpg',130, 98,1,'photo_5661952.html');
												thumbnails[5677076] = new thumbnail(5677076,'431453','','DSCF1266_thumb.jpg',130, 98,1,'photo_5677076.html');
												thumbnails[5677167] = new thumbnail(5677167,'431453','','DSCF1305_thumb.jpg',130, 98,1,'photo_5677167.html');
												thumbnails[5678742] = new thumbnail(5678742,'431453','','_3121148_thumb.jpg',130, 173,1,'photo_5678742.html');
												thumbnails[5678765] = new thumbnail(5678765,'431453','','DSCF1251_thumb.jpg',130, 173,1,'photo_5678765.html');
												thumbnails[5678774] = new thumbnail(5678774,'431453','','DSCF1257_thumb.jpg',130, 98,1,'photo_5678774.html');
												thumbnails[5678781] = new thumbnail(5678781,'431453','','DSCF1261_thumb.jpg',130, 173,1,'photo_5678781.html');
												thumbnails[5774812] = new thumbnail(5774812,'271898','\"23 centimetros\" by El Traspunte Teatro','DSCF1375_thumb.jpg',130, 98,1,'photo_5774812.html');
												thumbnails[5774832] = new thumbnail(5774832,'271898','\"23 centimetro\" by El Traspunte Teatro','DSCF1407_thumb.jpg',130, 98,1,'photo_5774832.html');
												thumbnails[5816276] = new thumbnail(5816276,'51724','Santo Entierro','P10506891_thumb.jpg',130, 173,1,'photo_5816276.html');
												thumbnails[5816297] = new thumbnail(5816297,'51724','Santo Entierro','P1050718_thumb.jpg',130, 173,1,'photo_5816297.html');
												thumbnails[5816382] = new thumbnail(5816382,'51724','Santo Entierro','P1050721_thumb.jpg',130, 173,1,'photo_5816382.html');
												thumbnails[5816388] = new thumbnail(5816388,'51724','Santo Entierro','P1050769_thumb.jpg',130, 173,1,'photo_5816388.html');
												thumbnails[5816390] = new thumbnail(5816390,'51724','Santo Entierro','P1050785_thumb.jpg',130, 173,1,'photo_5816390.html');
												thumbnails[5816502] = new thumbnail(5816502,'51724','Santo Entierro','P1050803_thumb.jpg',130, 173,1,'photo_5816502.html');
												thumbnails[5816530] = new thumbnail(5816530,'51724','Santo Entierro','P1050807_thumb.jpg',130, 173,1,'photo_5816530.html');
												thumbnails[5816650] = new thumbnail(5816650,'51724','Santo Entierro','P1050818_thumb.jpg',130, 173,1,'photo_5816650.html');
												thumbnails[5816664] = new thumbnail(5816664,'51724','Santo Entierro','P1050820_thumb.jpg',130, 173,1,'photo_5816664.html');
												thumbnails[5816666] = new thumbnail(5816666,'51724','Santo Entierro','P1050821_thumb.jpg',130, 98,1,'photo_5816666.html');
												thumbnails[5816669] = new thumbnail(5816669,'51724','Santo Entierro','P1050825_thumb.jpg',130, 173,1,'photo_5816669.html');
												thumbnails[5816672] = new thumbnail(5816672,'51724','Santo Entierro','P1050826_thumb.jpg',130, 173,1,'photo_5816672.html');
												thumbnails[5918018] = new thumbnail(5918018,'79958','Silver Merit Award Winner - Fine Art April 2010','Brian_Grady_Fine_Art_April_Spain_10_thumb.jpg',130, 98,1,'photo_5918018.html');
												thumbnails[5918032] = new thumbnail(5918032,'79958','Silver Merit Award Winner - Wildlife April 2010','Brian_Grady_Wildlife_April_Spain_10_thumb.jpg',130, 87,1,'photo_5918032.html');
												thumbnails[6272549] = new thumbnail(6272549,'79958','\"Death in The Afternoon\"','Brian_Grady_Events_June_Spain_10_thumb.jpg',130, 92,1,'photo_6272549.html');
												thumbnails[7409966] = new thumbnail(7409966,'79958','Silver Merit Winner Nov 2010','Brian_Grady_Architectural_Exterior_Spain_Nov2010_thumb.jpg',130, 108,1,'photo_7409966.html');
												thumbnails[7409975] = new thumbnail(7409975,'79958','Silver Merit Award Winner October 2010','Brian_Grady_Monochrome_Spain_Sept_2010_thumb.jpg',130, 99,1,'photo_7409975.html');
												thumbnails[7409992] = new thumbnail(7409992,'27018','Details of Nature','_1010360_thumb.jpg',130, 98,1,'photo_7409992.html');
												thumbnails[7410000] = new thumbnail(7410000,'2711','Mantis','Brian_Grady_Wildlife_Spain_Nov2010_thumb.jpg',130, 191,1,'photo_7410000.html');
												thumbnails[7589396] = new thumbnail(7589396,'431453','Scene from Tic-Tac by Vaujaus Teatro (Sevilla)','_1010793_thumb.jpg',130, 98,1,'photo_7589396.html');
												thumbnails[7589398] = new thumbnail(7589398,'431453','Scene from Tic-Tac by Vaujaus Teatro (Sevilla)','_1010799_thumb.jpg',130, 173,1,'photo_7589398.html');
												thumbnails[7589401] = new thumbnail(7589401,'431453','Scene from Tic-Tac by Vaujaus Teatro (Sevilla)','_1010805_thumb.jpg',130, 98,1,'photo_7589401.html');
												thumbnails[7589404] = new thumbnail(7589404,'431453','Scene from Tic-Tac by Vaujaus Teatro (Sevilla)','_1010810_thumb.jpg',130, 98,1,'photo_7589404.html');
												thumbnails[7589407] = new thumbnail(7589407,'431453','Scene from Tic-Tac by Vaujaus Teatro (Sevilla)','DSCF1524_thumb.jpg',130, 87,1,'photo_7589407.html');
												thumbnails[7589430] = new thumbnail(7589430,'431453','Scene from Tic-Tac by Vaujaus Teatro (Sevilla)','DSCF1557_thumb.jpg',130, 87,1,'photo_7589430.html');
												thumbnails[7592049] = new thumbnail(7592049,'431453','Scene from Gaviotas Subterraneas by Farandula Teatro (Estapona - Malaga)','_1010862_thumb.jpg',130, 98,1,'photo_7592049.html');
												thumbnails[7592063] = new thumbnail(7592063,'431453','Scene from Me dicen Magdalena by Teatro por las nubes (Granada)','_1010989_40B33C16-1EC9-DFB6-09A380129D2E1F4F_thumb.jpg',130, 173,1,'photo_7592063.html');
												thumbnails[7592066] = new thumbnail(7592066,'431453','Scene from Me dicen Magdalena by Teatro por las nubes (Granada)','_1010995_thumb.jpg',130, 173,1,'photo_7592066.html');
												thumbnails[7592078] = new thumbnail(7592078,'431453','Scene from Me dicen Magdalena by Teatro por las nubes (Granada)','DSCF1433_thumb.jpg',130, 87,1,'photo_7592078.html');
												thumbnails[7592085] = new thumbnail(7592085,'431453','Scene from Me dicen Magdalena by Teatro por las nubes (Granada)','DSCF1456_thumb.jpg',130, 87,1,'photo_7592085.html');
												thumbnails[7592098] = new thumbnail(7592098,'431453','Scene from La Leccion by Sennsa Teatro (Sevilla)','_1011040_thumb.jpg',130, 98,1,'photo_7592098.html');
												thumbnails[7592103] = new thumbnail(7592103,'431453','Scene from La Leccion by Sennsa Teatro (Sevilla)','_1011087_thumb.jpg',130, 98,1,'photo_7592103.html');
												thumbnails[7669189] = new thumbnail(7669189,'431453','Scene from La soledad del guardaespaldas','P1012280_thumb.jpg',130, 98,1,'photo_7669189.html');
												thumbnails[7669220] = new thumbnail(7669220,'431453','Scene from La Tarima','P1000791_thumb.jpg',130, 98,1,'photo_7669220.html');
												thumbnails[7669224] = new thumbnail(7669224,'431453','Scene from La Tarima','P1000792_thumb.jpg',130, 98,1,'photo_7669224.html');
												thumbnails[7669225] = new thumbnail(7669225,'431453','Scene from La Tarima','P1000793_thumb.jpg',130, 98,1,'photo_7669225.html');
												thumbnails[7733131] = new thumbnail(7733131,'271898','Scene from Valium 400 by El Traspunte Teatro','DSCF1640_thumb.jpg',130, 87,1,'photo_7733131.html');
												thumbnails[7733154] = new thumbnail(7733154,'271898','Final Scene from Valium 400 by El Traspunte Teatro','DSCF1668_thumb.jpg',130, 87,1,'photo_7733154.html');
												thumbnails[7733156] = new thumbnail(7733156,'271898','Scene from Valium 400 by El Traspunte Teatro','P1012380_thumb.jpg',130, 173,1,'photo_7733156.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[27017] = new gallery(27017,'1673896,1082932,1082925,1082919,1082913,316996,316760,316759,316757,111268','Architectural','gallery',[24018,24981,39251,39257,39264,39275,39276,39277,47421,47431,85798,85802,85803,111268,316757,316759,316760,316996,1082913,1082919,1082925,1082932,1673896],0, 0, '', 'gallery_27017.html',0,0);
				  					galleries[79958] = new gallery(79958,'7409975,7409966,6272549,5918032,5918018,5200237,4031667,4031659,3865185,3865182','Awards Portfolio','gallery',[679825,683858,1082936,1082942,2149190,2149234,2149244,2149246,3164803,3164821,3548013,3865175,3865180,3865182,3865185,4031659,4031667,5200237,5918018,5918032,6272549,7409966,7409975],0, 0, '', 'gallery_79958.html',0,0);
				  					galleries[431453] = new gallery(431453,'7669225,7669224,7669220,7669189,7592103,7592098,7592085,7592078,7592066,7592063','Certamen de Teatro ','gallery',[3424773,3424821,3424951,3424956,3424970,3547838,3547956,3586368,3586380,3586494,3670888,3670904,5661744,5661746,5661814,5661819,5661853,5661857,5661900,5661912,5661952,5677076,5677167,5678742,5678765,5678774,5678781,7589396,7589398,7589401,7589404,7589407,7589430,7592049,7592063,7592066,7592078,7592085,7592098,7592103,7669189,7669220,7669224,7669225],0, 0, '271897', 'gallery_431453.html',0,0);
				  					galleries[273686] = new gallery(273686,'1673895','Coripe','gallery',[1673895],0, 0, '273677', 'gallery_273686.html',0,0);
				  					galleries[401425] = new gallery(401425,'','Croatia','gallery',[],0, 0, '273677', 'gallery_401425.html',0,0);
				  					galleries[273728] = new gallery(273728,'111281,111271,39250','El Gastor','gallery',[39250,111271,111281],0, 0, '273677', 'gallery_273728.html',0,0);
				  					galleries[273678] = new gallery(273678,'24020,24019','El Torcal','gallery',[24019,24020],0, 0, '273677', 'gallery_273678.html',0,0);
				  					galleries[271898] = new gallery(271898,'7733156,7733154,7733131,5774832,5774812,3777887,3777871,2149548,2149541,2149536','El Traspunte Teatro','gallery',[2149536,2149541,2149548,3777871,3777887,5774812,5774832,7733131,7733154,7733156],0, 0, '271897', 'gallery_271898.html',0,0);
				  					galleries[182114] = new gallery(182114,'3170157,3170156,2948804,2948802,2948800,2948799,2948793','Handmade Canvas Prints','gallery',[2948793,2948799,2948800,2948802,2948804,3170156,3170157],0, 0, '', 'gallery_182114.html',0,0);
				  					galleries[51726] = new gallery(51726,'24308,24304','Los Reyes Magos','gallery',[24304,24308],0, 0, '271896', 'gallery_51726.html',0,0);
				  					galleries[51735] = new gallery(51735,'316971,316969','Lunes de Quasimodo','gallery',[316969,316971],0, 0, '271896', 'gallery_51735.html',0,0);
				  					galleries[38979] = new gallery(38979,'610175,610157,610155,610153,610150,610149,610148,610147,500104,500101','Marbella Fashion Weekend ','gallery',[499943,499945,499952,500059,500067,500071,500073,500075,500079,500084,500086,500087,500090,500091,500092,500095,500098,500099,500101,500104,610147,610148,610149,610150,610153,610155,610157,610175],0, 0, '', 'gallery_38979.html',0,0);
				  					galleries[271900] = new gallery(271900,'803108,197949','Medieval Market - Olvera 2005','gallery',[197949,803108],0, 0, '271896', 'gallery_271900.html',0,0);
				  					galleries[8322] = new gallery(8322,'2149354,1673986,1673985,1673972,1673969,1673962,1082983,1082982,1082979,597507','Monochrome','gallery',[316766,316981,597507,1082979,1082982,1082983,1673962,1673969,1673972,1673985,1673986,2149354],0, 0, '', 'gallery_8322.html',0,0);
				  					galleries[2711] = new gallery(2711,'7410000,3170146,1673990,1082996,1082992,316963,316769,316767,39271','Nature','gallery',[39271,316767,316769,316963,1082992,1082996,1673990,3170146,7410000],0, 0, '', 'gallery_2711.html',0,0);
				  					galleries[273680] = new gallery(273680,'679845,317111,111275,47416,24307,23884,23618,22810,22808,22807','Olvera','gallery',[22807,22808,22810,23618,23884,24307,47416,111275,317111,679845],0, 0, '273677', 'gallery_273680.html',0,0);
				  					galleries[2661] = new gallery(2661,'3865193,3865191,3170153,3170120,3170083,3170082,3170063,3170052,3170046,2149299','People ','gallery',[22814,60096,197878,679847,2149299,3170046,3170052,3170063,3170082,3170083,3170120,3170153,3865191,3865193],0, 0, '', 'gallery_2661.html',0,0);
				  					galleries[27018] = new gallery(27018,'7409992,2149578,2149575,2149530,2149374,2149373,2149370,1673952,1673944,597503','Pictorial','gallery',[317112,597503,1673944,1673952,2149370,2149373,2149374,2149530,2149575,2149578,7409992],0, 0, '', 'gallery_27018.html',0,0);
				  					galleries[273677] = new gallery(273677,'2149310,1673942,1673938,1673937,1673936,1673928,1673927,1673923,1673921,1673920','Places','gallery',[],0, 0, '', 'gallery_273677.html',0,0);
				  					galleries[102213] = new gallery(102213,'1673942,1673938,1673937,1673936,1673928,1673927,1673923,1673921,1673920,1673918','Portugal','gallery',[1673887,1673905,1673906,1673907,1673908,1673910,1673913,1673917,1673918,1673920,1673921,1673923,1673927,1673928,1673936,1673937,1673938,1673942],0, 0, '273677', 'gallery_102213.html',0,0);
				  					galleries[273684] = new gallery(273684,'317110','Pruna','gallery',[317110],0, 0, '273677', 'gallery_273684.html',0,0);
				  					galleries[51733] = new gallery(51733,'2149302,1673953,60118,60094,60090','Real Feria de San Augustin','gallery',[60090,60094,60118,1673953,2149302],0, 0, '271896', 'gallery_51733.html',0,0);
				  					galleries[273679] = new gallery(273679,'47427,47426,47424,24983,22815,22811','Ronda','gallery',[22811,22815,24983,47424,47426,47427],0, 0, '273677', 'gallery_273679.html',0,0);
				  					galleries[51724] = new gallery(51724,'5816672,5816669,5816666,5816664,5816650,5816530,5816502,5816390,5816388,5816382','Semana Santa','gallery',[317082,317086,317090,317091,5816276,5816297,5816382,5816388,5816390,5816502,5816530,5816650,5816664,5816666,5816669,5816672],0, 0, '271896', 'gallery_51724.html',0,0);
				  					galleries[219171] = new gallery(219171,'3586902,3586896,3586875,3586870,3586722','Teatro Dia de Las Mujeres','gallery',[3586722,3586870,3586875,3586896,3586902],0, 0, '271897', 'gallery_219171.html',0,0);
				  					galleries[271897] = new gallery(271897,'7733156,7733154,7733131,7669225,7669224,7669220,7669189,7592103,7592098,7592085','Theatre / Teatro','gallery',[],0, 0, '', 'gallery_271897.html',0,0);
				  					galleries[273681] = new gallery(273681,'111274,24977','Torre Alhaquime','gallery',[24977,111274],0, 0, '273677', 'gallery_273681.html',0,0);
				  					galleries[271896] = new gallery(271896,'5816672,5816669,5816666,5816664,5816650,5816530,5816502,5816390,5816388,5816382','Traditional Local Events','gallery',[],0, 0, '', 'gallery_271896.html',0,0);
				  					galleries[273682] = new gallery(273682,'1673890','USA','gallery',[1673890],0, 0, '273677', 'gallery_273682.html',0,0);
				  					galleries[273683] = new gallery(273683,'317107,26494,26492,26490,26489,26483,26482,26480','Via Verde de la Sierra','gallery',[26480,26482,26483,26489,26490,26492,26494,317107],0, 0, '273677', 'gallery_273683.html',0,0);
				  					galleries[273687] = new gallery(273687,'2149310,317114,39273,39272,39269,39267','Zahara de la Sierra','gallery',[39267,39269,39272,39273,317114,2149310],0, 0, '273677', 'gallery_273687.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7733156,7733154,7733131,7669225,7669224,7669220,7669189,7592103,7592098,7592085,7592078,7592066,7592063,7592049,7589430,7589407,7589404,7589401,7589398,7589396,7410000,7409992,7409975,7409966,6272549,5918032,5918018,5816666,5816664,5816650,5816530,5816502,5816382,5816297,5816276,5774832,5774812,5678781,5678774,5678765,5678742,5677167,5677076,5661952,5661912,5661900,5661857,5661853,5661819,5661814,5661746,5661744,5200237,4031667,4031659,3865191,3865185,3865182,3865175,3777887,3777871,3670904,3670888,3586494,3586380,3586368,3548013,3547956,3547838,3424970,3424956,3424951,3424821,3424773,3170157,3170156,3170153,3164821,2948799,2149370,2149310,2149299,1673969,1673962,1673944,1673938,1673921,1673910,1673890,1673887,1082942,1082936,683858,679825,317091,316766,316759,197949,111281,47416,39276,39267,23884';
imageSets[3] = '7733156,7733154,7733131,7669225,7669224,7669220,7669189,7592103,7592098,7592085,7592078,7592066,7592063,7592049,7589430,7589407,7589404,7589401,7589398,7589396,7410000,7409992,7409975,7409966,6272549,5918032,5918018,5816672,5816669,5816666,5816664,5816650,5816530,5816502,5816390,5816388,5816382,5816297,5816276,5774832,5774812,5678781,5678774,5678765,5678742,5677167,5677076,5661952,5661912,5661900';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/BrianGrady/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/BrianGrady/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 = 'Avista Andaluz Photography : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      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 == undefined) {
    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>';
	}
					
				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>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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 + '<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;
	}
}

			

