function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[4109339]=new thumbnail(4109339,"302036","Leamaneh Castle, Kilnaboy, father ted location, County Clare, ireland, black and white yellow daffodil","_DSC6562_thumb.jpg",130,196,15);thumbnails[4109351]=new thumbnail(4109351,"302036","St Mary's Cathedral, Killarney","3538876507_3cbb47d14e_thumb.jpg",130,87,15);thumbnails[4109356]=new thumbnail(4109356,"302039","Bunratty Castle and Durty Nelly's, county clare, ireland","07249149bb5d9ba29d8da7bc70100dfde183e73eeadde0f50dbc997d7255b5dcfb488b03_thumb.jpg",130,92,15);thumbnails[4109358]=new thumbnail(4109358,"302039","Different POV of the famous Bunratty Castle, county clare, ireland","412764818e2724fd588b18c7073a1943f1d066b1f93f134c3969ed31c055116ee5121444_thumb.jpg",130,92,15);thumbnails[4109359]=new thumbnail(4109359,"302039","Dromoland Castle at night, county clare, ireland","66014615a7121dc386f8e3ec9f789a948d82ccc5902d8c4aed1116f4dd92d0410498d327_thumb.jpg",130,86,15);thumbnails[4109361]=new thumbnail(4109361,"302039","Doonagore castle, doolin, county clare, ireland","395871819ee620deb5509110c508e430347f98bc1a3ce4835c8a4348eba6a80fd51ac131_thumb.jpg",130,92,15);thumbnails[4109362]=new thumbnail(4109362,"302039","Poulnabrone Portal Tomb, megalithic monuments, Karst limestone, in a field East of the Ballyvaughan, County Clare, Ireland","97690544037a7dc56352548bdacbfb40c8a2d870e0067b954af1e0cf441f660a201ed6c9_thumb.jpg",130,92,15);thumbnails[4109367]=new thumbnail(4109367,"302039","Poulnabrone Portal Tomb, megalithic monuments, Karst limestone, in a field East of the Ballyvaughan, County Clare, Ireland","29525990f5345ea5f5985245642ecb16f3417c8b3fe4447ab441b6358301ae39dc81c3ac_thumb.jpg",130,92,15);thumbnails[4109368]=new thumbnail(4109368,"302039","Poulnabrone Portal Tomb, megalithic monuments, Karst limestone, in a field East of Ballyvaughan, Ireland","72699270761221e7affb72eff58ededcd5e657eff429b11f140abd4f5f9f6067f961552f_thumb.jpg",130,92,15);thumbnails[4109369]=new thumbnail(4109369,"302039","Poulnabrone Portal Tomb, megalithic monuments, Karst limestone, in a field East of the Ballyvaughan, County Clare, Ireland","9969052429033327d74232088546647bfb90b085c7f5946e72f314963123f5cdbcc9fe22_thumb.jpg",130,92,15);thumbnails[4109371]=new thumbnail(4109371,"302039","Doonagore Castle during the winter,County Clare, Ireland","961857286c808ae11d9cc8702884a3622ab34d0d4c33a50a30668e6bb8dc2fb7aafed99b_thumb.jpg",130,92,15);thumbnails[4109375]=new thumbnail(4109375,"302039","liscannor beach,county clare, ireland. church grave, famous irish tourist holiday attraction","3494118095_1654cd35b9_thumb.jpg",130,86,15);thumbnails[4109377]=new thumbnail(4109377,"302039","Knappogue Castle, County Clare, Ireland","52346296cd0304ebeeda66fe5fbbf879cbe583b1c90655219127247a59f37cbf442480ad_thumb.jpg",130,92,15);thumbnails[4109381]=new thumbnail(4109381,"302039","breathtaking amazing killarney church, county kerry, ireland. famous irish tourist holiday attraction","3452695433_24ac58c43c_thumb.jpg",130,188,15);thumbnails[4109385]=new thumbnail(4109385,"302039","quin abbey, county clare, ireland","51982235fa02489467d191867f8eb14a5ddda78d4111551458c0d93a0aca25876afada7e_thumb.jpg",130,91,15);thumbnails[4109400]=new thumbnail(4109400,"302039","Poulnabrone Portal Tomb, megalithic monuments, Karst limestone, in a field East of the Ballyvaughan, County Clare, Ireland","dolman_pov_thumb.jpg",130,86,15);thumbnails[4109402]=new thumbnail(4109402,"302039","Dromoland Castle","dromoland-castle_thumb.jpg",130,86,15);thumbnails[4110987]=new thumbnail(4110987,"302039","Scenic Quin Abbey, county clare, ireland","070595255cfb0f77e879845c5a7d9131c1626d06d75af74c15d13dbc78b04cab26d03733_thumb.jpg",130,92,15);thumbnails[4112072]=new thumbnail(4112072,"302039","Poulnabrone Portal Tomb, megalithic monuments, Karst limestone, in a field East of Ballyvaughan, Ireland","304236144be85e4c3705355f62bb32bb3e55f2b08c16b739261dff8f75bf09592cfdcc80_thumb.jpg",130,92,15);thumbnails[4177898]=new thumbnail(4177898,"302039","This is Leamanagh Castle between Corofin and Kilfenora , County Clare, Ireland","760765169c160d189881a86e8d13c1cea66f5fa25b3e0c18886c70689d870298672c3a24_thumb.jpg",130,92,15);thumbnails[4426957]=new thumbnail(4426957,"302039","This is Leamanagh Castle between Corofin and Kilfenora , County Clare, Ireland.","castle_thumb.jpg",130,90,15);thumbnails[4426958]=new thumbnail(4426958,"302036","Ireland, Cliffs of Moher, County Clare. ","cliffs_thumb.jpg",130,88,15);thumbnails[4961742]=new thumbnail(4961742,"302036","Bodie, rusty wreck!","4005957909_5890bc3906_thumb.jpg",130,88,15);thumbnails[5361174]=new thumbnail(5361174,"302036","Ghost Town, Bodie","4115987485_c2bb742139_thumb.jpg",130,87,15);thumbnails[5361180]=new thumbnail(5361180,"302036","Bodie, Ghost Town","4116739988_54debf42d5_thumb.jpg",130,89,15);thumbnails[5361184]=new thumbnail(5361184,"302036","","4131715951_7f24d948f9_thumb.jpg",130,89,15);thumbnails[5361197]=new thumbnail(5361197,"302036","Monument Valley, Utah","4114981555_40a90db837_thumb.jpg",130,77,15);thumbnails[5361204]=new thumbnail(5361204,"302036","Auschwitz Birkenau","4219505598_e2188de8f2_thumb.jpg",130,86,15);thumbnails[5502797]=new thumbnail(5502797,"302039","Leamaneh Castle, County Clare","4206720862_f65775ff1f_thumb.jpg",130,196,15);thumbnails[5703415]=new thumbnail(5703415,"303624","","55_thumb.jpg",130,143,15);thumbnails[5703417]=new thumbnail(5703417,"303624","","97_thumb.jpg",130,170,15);thumbnails[5933514]=new thumbnail(5933514,"303624","","rh_thumb.jpg",130,296,15);thumbnails[5944157]=new thumbnail(5944157,"335359","","ggs1_thumb.jpg",130,239,15);thumbnails[5944159]=new thumbnail(5944159,"335359","","ggs2_thumb.jpg",130,86,15);thumbnails[5944160]=new thumbnail(5944160,"335359","","ggs4_thumb.jpg",130,78,15);thumbnails[5944161]=new thumbnail(5944161,"335359","","ggs5_thumb.jpg",130,173,15);thumbnails[5944162]=new thumbnail(5944162,"335359","","ggs7_thumb.jpg",130,239,15);thumbnails[5944165]=new thumbnail(5944165,"335359","","_DSC1742_thumb.jpg",130,115,15);thumbnails[5944166]=new thumbnail(5944166,"335359","","lf2_thumb.jpg",130,91,15);thumbnails[6501105]=new thumbnail(6501105,"303624","","rk33_thumb.jpg",130,98,15);thumbnails[6501293]=new thumbnail(6501293,"303624","","rk111_thumb.jpg",130,198,15);thumbnails[6501295]=new thumbnail(6501295,"303624","","rk441_thumb.jpg",130,167,15);thumbnails[6501297]=new thumbnail(6501297,"303624","","rk222_thumb.jpg",130,181,15);thumbnails[6501298]=new thumbnail(6501298,"303624","","rk331_thumb.jpg",130,98,15);thumbnails[6501302]=new thumbnail(6501302,"303624","","_3DSC3007_thumb.jpg",130,125,15);thumbnails[6634260]=new thumbnail(6634260,"303624","","_55DSCeOO5619_thumb.jpg",130,111,15);thumbnails[6634272]=new thumbnail(6634272,"303624","","_55DOOSCd5516_thumb.jpg",130,175,15);thumbnails[4177899]=new thumbnail(4177899,"302039","Quin Abbey","376927474faf6dbaac03c66a6a948addc1347c089d81e92ddb64939387f426228ab95467_thumb.jpg",130,94,15);thumbnails[6625822]=new thumbnail(6625822,"303624","","_DSCOO5686_thumb.jpg",130,243,15);thumbnails[4112023]=new thumbnail(4112023,"302039","Bunratty Castle at night, county clare, ireland","327160836f1e83be0921c4b326fa03e24c3af2a3c92982ead00cd4b217620880c6f8e158_thumb.jpg",130,92,15);thumbnails[6634271]=new thumbnail(6634271,"303624","","_55DSC1OO5797_thumb.jpg",130,217,15);thumbnails[6634263]=new thumbnail(6634263,"303624","","_55DSCO4O5766_thumb.jpg",130,107,15);thumbnails[6625826]=new thumbnail(6625826,"303624","","_DSCOO5696_thumb.jpg",130,223,15);thumbnails[6634269]=new thumbnail(6634269,"303624","","_55DSOOC5726_thumb.jpg",130,196,15);thumbnails[5433220]=new thumbnail(5433220,"303624","","r1_thumb.jpg",130,117,15);thumbnails[5909354]=new thumbnail(5909354,"303624","","111_680B34A5-1D09-001F-99D050469D045649_thumb.jpg",130,239,15);thumbnails[5433223]=new thumbnail(5433223,"303624","","r3_thumb.jpg",130,173,15);thumbnails[5433955]=new thumbnail(5433955,"303624","","h9_thumb.jpg",130,86,15);thumbnails[5361211]=new thumbnail(5361211,"302036","","4190176771_4c85110e88_thumb.jpg",130,95,15);thumbnails[5909363]=new thumbnail(5909363,"303624","","1112_thumb.jpg",130,196,15);thumbnails[6228649]=new thumbnail(6228649,"303624","","3_thumb.jpg",130,120,15);thumbnails[5728298]=new thumbnail(5728298,"303624","","6ytbw_thumb.jpg",130,105,15);thumbnails[5909368]=new thumbnail(5909368,"303624","","1115_thumb.jpg",130,186,15);thumbnails[5909374]=new thumbnail(5909374,"303624","","1113_thumb.jpg",130,98,15);thumbnails[5933523]=new thumbnail(5933523,"303624","","rh7_thumb.jpg",130,107,15);thumbnails[5728301]=new thumbnail(5728301,"303624","","sezwady_thumb.jpg",130,118,15);thumbnails[5943012]=new thumbnail(5943012,"303624","","rgth_thumb.jpg",130,86,15);thumbnails[5703464]=new thumbnail(5703464,"303624","","_DSC11115_thumb.jpg",130,107,15);thumbnails[5933604]=new thumbnail(5933604,"303624","","dc5_thumb.jpg",130,196,15);thumbnails[5933606]=new thumbnail(5933606,"303624","","er_thumb.jpg",130,246,15);thumbnails[6228754]=new thumbnail(6228754,"303624","","6_thumb.jpg",130,112,15);thumbnails[6228648]=new thumbnail(6228648,"303624","","2_thumb.jpg",130,167,15);thumbnails[5728300]=new thumbnail(5728300,"303624","","_bwbDSC8166_thumb.jpg",130,115,15);thumbnails[6228669]=new thumbnail(6228669,"303624","","5_thumb.jpg",130,111,15);thumbnails[5909366]=new thumbnail(5909366,"303624","","1116_thumb.jpg",130,184,15);thumbnails[5933601]=new thumbnail(5933601,"303624","","dc4_thumb.jpg",130,237,15);thumbnails[5948500]=new thumbnail(5948500,"303624","","lfp_thumb.jpg",130,103,15);thumbnails[5944144]=new thumbnail(5944144,"303624","","_DSC1540_thumb.jpg",130,94,15);thumbnails[4109345]=new thumbnail(4109345,"231434","Amazing beautiful breathtaking irish connemara landscape, north west of Ireland","3414469328_5336a259f9_thumb.jpg",130,86,15);thumbnails[4109352]=new thumbnail(4109352,"231434","Who needs a bike with variable ratio transmission system gears!  ;-)   , not the folks in county kerry, ireland ;-)","749565942616fd84427bd3bd5a45f7f6fd49531206426d0c65ff1955b97b6dc02b961394_thumb.jpg",130,92,15);thumbnails[4109354]=new thumbnail(4109354,"231434","DOUGH CASTLE beside Lahinch golf course, county clare, ireland. famous irish tourist holiday attraction.","6587400532b990bc3ffccfe8bf3535259fdb1a1b8b2f9863f0932f3a65dfb1fc55ea87e6_thumb.jpg",130,92,15);thumbnails[4109364]=new thumbnail(4109364,"231434","amazing breathtaking view of cliffs of moher, hdr, county clare, ireland","3494259103_637c8afd6b_thumb.jpg",130,86,15);thumbnails[4109365]=new thumbnail(4109365,"231434","beautiful amazing breathtaking view of cliffs of moher, hdr, county clare, ireland. famous irish tourist attractions","3558134830_6a0f44b59f_thumb.jpg",130,87,15);thumbnails[4109366]=new thumbnail(4109366,"231434","beautiful breathtaking amazing ireland landscape, north west of ireland Connemara Landscape, Ireland","86549758ffc2a4387ce680ca7517bfcf49136aeb204efbdacfd4470613d35b9df844f65b_thumb.jpg",130,92,15);thumbnails[4109370]=new thumbnail(4109370,"231434","scenic ireland, breathtaking west of ireland landscapes,rough cruel ocean, doolin, county clare","996117202a02fc5726fbbd1a35c0df393f0b8281100e5c0b0c684fb4260110eecf07ac58_thumb.jpg",130,92,15);thumbnails[4109372]=new thumbnail(4109372,"231434","Dromoland Castle Ducks","4115512184_dfe4db03f0_thumb.jpg",130,97,15);thumbnails[4109373]=new thumbnail(4109373,"231434","ireland waterfall, ennistymon water falls, county clare,ireland. famous irish tourist attractions","4407821777e9eaaba283fdbe845416c4a2b9158d68d46f411f5d9080e8e203440d97473c_thumb.jpg",130,92,15);thumbnails[4109374]=new thumbnail(4109374,"231434","Golf pond at Dromoland golf club, county clare, ireland","3608060613_467fab4443_thumb.jpg",130,86,15);thumbnails[4109376]=new thumbnail(4109376,"231434","Countryside farming landscape","213730030bd3f8ace081d364ea69fa6f3ddb6f1864c3776d98660657ad64f4df6bbfc0c8_thumb.jpg",130,92,15);thumbnails[4109378]=new thumbnail(4109378,"231434","County Kerry Landscape","3345156834_e154132ea6_thumb.jpg",130,89,15);thumbnails[4109379]=new thumbnail(4109379,"231434","breathtaking amazing beautiful ring of kerry ireland, scenic irish tourist attraction","77596014e75d849ca8f92ec55ba00add9238ab403402837c1d1d13d819831ae78293aa7e_thumb.jpg",130,92,15);thumbnails[4109380]=new thumbnail(4109380,"231434","Lahinch beach, county clare,ireland","3364149446_1b78577c5c_thumb.jpg",130,86,15);thumbnails[4109382]=new thumbnail(4109382,"231434","Ladies view, ring of kerry, ireland","224702879edf369410227397c4d026800ea0040458197c6ad8539dcf798b8c0ddf704d83_thumb.jpg",130,87,15);thumbnails[4109383]=new thumbnail(4109383,"231434","Durty Nelly's Pub, Ireland most famous pub, county Clare, Ireland","16028327eaa9c296139a9e2e514efd6f330fb9cf4a550f3c8e36474329ef912a3b65a0e9_thumb.jpg",130,87,15);thumbnails[4109384]=new thumbnail(4109384,"231434","Ring of Kerry","4143956309_4225d0cc04_thumb.jpg",130,100,15);thumbnails[4109386]=new thumbnail(4109386,"231434","Rusty Plassey Ship Wreck, Aran Islands, Father Ted, Craggy Island,Ireland","748525929599381da6fba270977610ce7116357097f31ea0727ecfa48471fd83fd74bed0_thumb.jpg",130,92,15);thumbnails[4109387]=new thumbnail(4109387,"231434","Reflection Landscape","99961351020293cf90e64e566bf939f315dbaf5f6b909c039146eb09fcb6fe3bb3683532_thumb.jpg",130,92,15);thumbnails[4109388]=new thumbnail(4109388,"231434","Scenic lake landscape","559136304c349f992c79c8e211cd76aec989686acd4078950b6295344fa3eff12dd3e895_thumb.jpg",130,93,15);thumbnails[4109389]=new thumbnail(4109389,"231434","Valentia Island, light house, ring of kerry, ireland","6739181786a9ee8f4304e5cc10ddd5e5452c556d962ed2740955bf5186008335afbe560a_thumb.jpg",130,92,15);thumbnails[4109465]=new thumbnail(4109465,"231434","Durty Nelly's and Bunratty Castle, County Clare, Ireland","3320123837_95403c196d_thumb.jpg",130,86,15);thumbnails[4170744]=new thumbnail(4170744,"231434","Skellig Island Puffin","937495935debcaf722b4751153cc0c65776a1feb8fad5aa4bece60ad8d31565822f3dd9b_thumb.jpg",130,92,15);thumbnails[4170757]=new thumbnail(4170757,"231434","Rural Countryside Landscape","68682040e997d1c567f2092f62cac7945fb1ce23214c2d9ec8355bd56978340e95f9a346_thumb.jpg",130,86,15);thumbnails[4170765]=new thumbnail(4170765,"231434","Cliffs of Moher","4138575454_1fbacfd7f1_thumb.jpg",130,89,15);thumbnails[4170767]=new thumbnail(4170767,"231434","Cliffs of Moher","348553746a8b17997ed26560de1a691b05dc539ceaaeb7546e2bc296b9cd435e317ad489_thumb.jpg",130,92,15);thumbnails[4426956]=new thumbnail(4426956,"231434","Lahinch Beach, County Clare, Ireland","beach_thumb.jpg",130,88,15);thumbnails[4426961]=new thumbnail(4426961,"231434","loop head lighthouse, county clare, ireland","loop_thumb.jpg",130,77,15);thumbnails[5462583]=new thumbnail(5462583,"231434","Dromoland Castle At Winter","222_thumb.jpg",130,79,15);thumbnails[5462584]=new thumbnail(5462584,"231434","Lahinch Beach","333_thumb.jpg",130,91,15);thumbnails[5462598]=new thumbnail(5462598,"231434","Doolin , County Clare, Sunset","444_thumb.jpg",130,89,15);thumbnails[5502303]=new thumbnail(5502303,"231434","Lahinch Beach Panoramic ","pano-lahinch-1_thumb.jpg",130,66,15);thumbnails[5502667]=new thumbnail(5502667,"231434","Connemara Ireland","4163361246_f7d3e2a26e_thumb.jpg",130,76,15);thumbnails[5502675]=new thumbnail(5502675,"231434","Ring of Kerry","4316108109_4f89491289_thumb.jpg",130,85,15);thumbnails[5502683]=new thumbnail(5502683,"231434","Ring Of Kerry","4181409265_cebedba1f9_thumb.jpg",130,77,15);thumbnails[4109342]=new thumbnail(4109342,"231434","Cliffs of Moher","44_thumb.jpg",130,91,15);thumbnails[5462579]=new thumbnail(5462579,"231434","Bunratty Castle At Night","111_thumb.jpg",130,98,15);thumbnails[4109344]=new thumbnail(4109344,"231434","Connemara river landscape","3414469572_6d25642ac0_thumb.jpg",130,86,15);thumbnails[3813101]=new thumbnail(3813101,"231435","","Sample_1b_thumb.jpg",130,98,15);thumbnails[3813103]=new thumbnail(3813103,"231435","","Sample_2b_thumb.jpg",130,98,15);thumbnails[3813104]=new thumbnail(3813104,"231435","","Sample_3b_thumb.jpg",130,98,15);thumbnails[3813105]=new thumbnail(3813105,"231435","","Sample_4b_thumb.jpg",130,98,15);thumbnails[4961740]=new thumbnail(4961740,"282104","Midtown NYC","3862622249_63621743e8_thumb.jpg",130,86,15);thumbnails[4961741]=new thumbnail(4961741,"282104","Midtown NYC by night","3884238341_3d4a4cf355_thumb.jpg",130,86,15);thumbnails[4961743]=new thumbnail(4961743,"282104","San Francisco","4018753590_1cb2d7e307_thumb.jpg",130,88,15);thumbnails[4961744]=new thumbnail(4961744,"282104","Arches National Park, Utah","3960649255_50e7426d28_thumb.jpg",130,91,15);thumbnails[4961745]=new thumbnail(4961745,"282104","Golden Gate Bridge","4172735640_00b0c697dc_thumb.jpg",130,108,15);thumbnails[4961746]=new thumbnail(4961746,"282104","Monument Valley, Utah","4155676530_82127640e5_thumb.jpg",130,93,15);thumbnails[5361264]=new thumbnail(5361264,"282104","New York Skyline","4277050898_c43be0f997_thumb.jpg",130,89,15);thumbnails[5361267]=new thumbnail(5361267,"282104","Yosemite, El Capitan ","3339234282_804eb2b397_thumb.jpg",130,90,15);thumbnails[5361272]=new thumbnail(5361272,"282104","Bodie, Ghost Town","4116005807_db88a3a21c_thumb.jpg",130,89,15);thumbnails[5361275]=new thumbnail(5361275,"282104","Sedona, Arizona","4225441007_dede7510ce_thumb.jpg",130,74,15);thumbnails[5361285]=new thumbnail(5361285,"282104","Monument Valley, Utah","3957144334_a1febfa1db_thumb.jpg",130,86,15);thumbnails[5361288]=new thumbnail(5361288,"282104","New York Cityscape at Night","4096340936_d81a23fceb_thumb.jpg",130,74,15);thumbnails[5361290]=new thumbnail(5361290,"282104","Arches National Park, Utah","4158131284_b4b83f6a15_thumb.jpg",130,92,15);thumbnails[5502585]=new thumbnail(5502585,"282104","Golden Gate Bridge","4018100567_f6da0802da_thumb.jpg",130,88,15);thumbnails[5360948]=new thumbnail(5360948,"302031","Irish Castle, Bunratty Castle, County Clare, Irealnd","4206526624_63af071e26_thumb.jpg",130,84,15);thumbnails[5360949]=new thumbnail(5360949,"302031","NYC Cityscape Grunge","4197694501_34dda0b7e5_thumb.jpg",130,72,15);thumbnails[5360950]=new thumbnail(5360950,"302031","Cliffs Of Moher","4196752473_5557b30a22_thumb.jpg",130,86,15);thumbnails[5360953]=new thumbnail(5360953,"302031","Yosemite National Park","4196782923_a7151e6601_thumb.jpg",130,86,15);thumbnails[5360954]=new thumbnail(5360954,"302031","Cottage view of Doolin","3501669822_8943e618d1_thumb.jpg",130,101,15);thumbnails[4426960]=new thumbnail(4426960,"302031","Countryside Landscape","field_thumb.jpg",130,98,15);thumbnails[4961764]=new thumbnail(4961764,"282106","Auschwitz Birkenau German Nazi Concentration and Extermination death Camp. Holocaust Auschwitz Birkenau wire fence","3399373451_e52384fd3a_thumb.jpg",130,189,15);thumbnails[4961765]=new thumbnail(4961765,"282106","Grandfathers are just antique little boys!","3328203517_a2fcdd2080_thumb.jpg",130,95,15);thumbnails[4961766]=new thumbnail(4961766,"282106","The Red Door","3326173105_dc78ae8040_thumb.jpg",130,208,15);thumbnails[4961768]=new thumbnail(4961768,"282106","Copenhagen Denmark","3314542413_e43a9666d4_thumb.jpg",130,98,15);thumbnails[4961769]=new thumbnail(4961769,"282106","Bellagio Italy, by lake Como","3363228613_f789942a3f_thumb.jpg",130,173,15);thumbnails[4961770]=new thumbnail(4961770,"282106","Krakow Poland","3401514890_340f9ddebc_thumb.jpg",130,82,15);thumbnails[4961772]=new thumbnail(4961772,"282106","New York City Hot Dog","4225691076_00a6fdd1ff_thumb.jpg",130,98,15);thumbnails[4961774]=new thumbnail(4961774,"282106","VW Camper Van","3737080800_4c0958f9d9_thumb.jpg",130,82,15);thumbnails[4961776]=new thumbnail(4961776,"282106","Celtic Revival Cross, Ireland","3347110537_a5f38bb8e5_o_thumb.jpg",130,191,15);thumbnails[4961777]=new thumbnail(4961777,"282106","Venice Gondola, Italy","3333893676_2f266603e2_thumb.jpg",130,92,15);thumbnails[4961778]=new thumbnail(4961778,"282106","Ennis Abbey (Old Friary)","3347138871_0ce3710305_thumb.jpg",130,160,15);var galleries=new Object();galleries[302039]=new gallery(302039,"4109400,4109385","Ancient Ireland","gallery",[4109356,4109358,4109359,4109361,4109362,4109367,4109368,4109369,4109371,4109375,4109377,4109381,4109385,4109400,4109402,4110987,4112072,4177898,4426957,5502797,4177899,4112023]);galleries[302036]=new gallery(302036,"4426958","Black and White","gallery",[4109339,4109351,4426958,4961742,5361174,5361180,5361184,5361197,5361204,5361211]);galleries[303624]=new gallery(303624,"5703417","Family Portrait","gallery",[5703415,5703417,5933514,6501105,6501293,6501295,6501297,6501298,6501302,6634260,6634272,6625822,6634271,6634263,6625826,6634269,5433220,5909354,5433223,5433955,5909363,6228649,5728298,5909368,5909374,5933523,5728301,5943012,5703464,5933604,5933606,6228754,6228648,5728300,6228669,5909366,5933601,5948500,5944144]);galleries[335359]=new gallery(335359,"5944157","Green Screen","gallery",[5944157,5944159,5944160,5944161,5944162,5944165,5944166]);galleries[231434]=new gallery(231434,"4109352","Ireland Gallery","gallery",[4109345,4109352,4109354,4109364,4109365,4109366,4109370,4109372,4109373,4109374,4109376,4109378,4109379,4109380,4109382,4109383,4109384,4109386,4109387,4109388,4109389,4109465,4170744,4170757,4170765,4170767,4426956,4426961,5462583,5462584,5462598,5502303,5502667,5502675,5502683,4109342,5462579,4109344]);galleries[231435]=new gallery(231435,"3813103","Digital Photo Restoration Examples","gallery",[3813101,3813103,3813104,3813105]);galleries[282104]=new gallery(282104,"4961740","USA Gallery","gallery",[4961740,4961741,4961743,4961744,4961745,4961746,5361264,5361267,5361272,5361275,5361285,5361288,5361290,5502585]);galleries[302031]=new gallery(302031,"5360948","Grunge Textures","gallery",[5360948,5360949,5360950,5360953,5360954,4426960]);galleries[282106]=new gallery(282106,"4961764","My Personal Favs","gallery",[4961764,4961765,4961766,4961768,4961769,4961770,4961772,4961774,4961776,4961777,4961778]);var imageSets=new Object();imageSets[1]="5462579";imageSets[2]="5944157,5703417,5360948,4961764,4961740,4426958,4109400,4109385,4109352,3813103";imageSets[3]="6634272,6634271,6634269,6634263,6634260,6625826,6625822,6501302,6501298,6501297,6501295,6501293,6501105,6228754,6228669,6228649,6228648,5948500,5944166,5944165,5944162,5944161,5944160,5944159,5944157,5944144,5943012,5933606,5933604,5933601,5933523,5933514,5909374,5909368,5909366,5909363,5909354,5728301,5728300,5728298,5703464,5703417,5703415,5502797,5502683,5502675,5502667,5502585,5502303,5462598";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/upthebanner/images";break}switch(a){case 1:b="http://www1.clikpic.com/upthebanner/images";break}switch(a){case 2:b="http://admin.clikpic.com/upthebanner/images";break}switch(a){case 24:b="http://tpc15/clikpic/upthebanner/images";break}switch(a){case 4:b="http://www.clikchurch.com/upthebanner/images";break}switch(a){case 5:b="http://www2.clikpic.com/upthebanner/images";break}switch(a){case 22:b="http://tpc5/clikpic/upthebanner/images";break}switch(a){case 23:b="http://tpc10/clikpic/upthebanner/images";break}switch(a){case 25:b="http://tpc16/clikpic/upthebanner/images";break}switch(a){case 15:b="http://www3.clikpic.com/upthebanner/images";break}switch(a){case 18:b="http://www4.clikpic.com/upthebanner/images";break}switch(a){case 19:b="http://www5.clikpic.com/upthebanner/images";break}switch(a){case 31:b="http://www7.clikpic.com/upthebanner/images";break}switch(a){case 32:b="http://admin2.clikpic.com/upthebanner/images";break}switch(a){case 33:b="http://www8.clikpic.com/upthebanner/images";break}switch(a){case 34:b="http://www9.clikpic.com/upthebanner/images";break}switch(a){case 35:b="http://admin3.clikpic.com/upthebanner/images";break}switch(a){case 37:b="http://admin4.clikpic.com/upthebanner/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Up The Banner Photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#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,photos,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()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&euro;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="UPTHEBANNER">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};