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[1965696]=new thumbnail(1965696,"","Juno 1","MPR_6376 copy_thumb.jpg",130,87,1);thumbnails[1965712]=new thumbnail(1965712,"","Juno 17","MPR_6625 copy_thumb.jpg",130,105,1);thumbnails[1965492]=new thumbnail(1965492,"132058","Vietnamese Girl","VN1 copy_thumb.jpg",130,87,1);thumbnails[1965604]=new thumbnail(1965604,"132058","A Hmong girl relaxes by the riverside","vn11 copy_thumb.jpg",130,194,1);thumbnails[1965493]=new thumbnail(1965493,"132058","Water buffalo","vn10 copy_thumb.jpg",130,87,1);thumbnails[1965605]=new thumbnail(1965605,"132058","Street children","vn19 copy_thumb.jpg",130,194,1);thumbnails[1965494]=new thumbnail(1965494,"132058","Dangerous, be careful","vn12 copy_thumb.jpg",130,87,1);thumbnails[1965606]=new thumbnail(1965606,"132058","Brothers","vn22 copy_thumb.jpg",130,194,1);thumbnails[1965495]=new thumbnail(1965495,"132058","Schools Out","vn13 copy_thumb.jpg",130,87,1);thumbnails[1965607]=new thumbnail(1965607,"132058","Hmong tribeswoman","vn5 copy_thumb.jpg",130,175,1);thumbnails[1965496]=new thumbnail(1965496,"132058","A Hmong Tribes woman makes her way through the rice fields","vn14 copy_thumb.jpg",130,87,1);thumbnails[1965608]=new thumbnail(1965608,"132058","Rice fields on the side of a mountain","vn7 copy_thumb.jpg",130,194,1);thumbnails[1965497]=new thumbnail(1965497,"132058","Meeter and Greeter","vn15 copy_thumb.jpg",130,87,1);thumbnails[1965498]=new thumbnail(1965498,"132058","Reaping the crop","vn16 copy_thumb.jpg",130,87,1);thumbnails[1965499]=new thumbnail(1965499,"132058","At work","vn18 copy_thumb.jpg",130,87,1);thumbnails[1965500]=new thumbnail(1965500,"132058","Hmong Tribeswoman","vn2 copy_thumb.jpg",130,87,1);thumbnails[1965501]=new thumbnail(1965501,"132058","A young girl follows her cattle","vn20 copy_thumb.jpg",130,87,1);thumbnails[1965502]=new thumbnail(1965502,"132058","A boy and his pet ","vn21 copy_thumb.jpg",130,87,1);thumbnails[1965503]=new thumbnail(1965503,"132058","3 klicks","vn3 copy_thumb.jpg",130,87,1);thumbnails[1965504]=new thumbnail(1965504,"132058","Hmong tribeswoman sell there trinkets","vn4 copy_thumb.jpg",130,87,1);thumbnails[1965505]=new thumbnail(1965505,"132058","Home Sweet Home","vn6 copy_thumb.jpg",130,87,1);thumbnails[1965506]=new thumbnail(1965506,"132058","Drying the rice","vn8 copy_thumb.jpg",130,87,1);thumbnails[1965507]=new thumbnail(1965507,"132058","Incoming Mist","vn9 copy_thumb.jpg",130,81,1);thumbnails[3535208]=new thumbnail(3535208,"216387","Rain Clouds rolling over Liberty Island and swallowing up Manhattan Island","Liberty_Incoming_rain_thumb.jpg",130,87,1);thumbnails[3535233]=new thumbnail(3535233,"216387","The last boat leaves Ellis Island and passes under the shadow of the Statue of Liberty","Liberty_Slow_Boat_thumb.jpg",130,87,1);thumbnails[3535247]=new thumbnail(3535247,"216387","The web of steel of the Brooklyn Bridge","Brooklyn_Bridge_Web_thumb.jpg",130,87,1);thumbnails[3535249]=new thumbnail(3535249,"216387","The Empire State Building, New York at Night.","Empire_State_Building_thumb.jpg",130,87,1);thumbnails[3535253]=new thumbnail(3535253,"216387","The Empire State Building, New York and no 'Kong' in Site","Empire_State_Tree_thumb.jpg",130,87,1);thumbnails[3535262]=new thumbnail(3535262,"216387","Grand Central Station, New York","Grand_Central_Station_thumb.jpg",130,87,1);thumbnails[3535265]=new thumbnail(3535265,"216387","A busy wet junction, Upper East Side, New York ","Spots_and_Stripes_thumb.jpg",130,87,1);thumbnails[3535268]=new thumbnail(3535268,"216387","New York underground Metro at Night","New_York_Metro_thumb.jpg",130,87,1);thumbnails[3535302]=new thumbnail(3535302,"216387","A rainy wet day in New York.","Umbrella_thumb.jpg",130,136,1);thumbnails[3535305]=new thumbnail(3535305,"216387","A tourist looks up at the Statue of Liberty for that holiday snap.","Tourist_thumb.jpg",130,87,1);thumbnails[3535308]=new thumbnail(3535308,"216387","A book worm takes time out to relax and enjoy a book in Central Park, New York.","Central_Park_Book_reader_thumb.jpg",130,87,1);thumbnails[2435405]=new thumbnail(2435405,"157220","Top of the Bonfire","IMG_0436 copy_thumb.jpg",130,195,1);thumbnails[2435406]=new thumbnail(2435406,"157220","The field","IMG_0442 copy_thumb.jpg",130,87,1);thumbnails[2435407]=new thumbnail(2435407,"157220","Relaxing at the site","IMG_0443 copy_thumb.jpg",130,87,1);thumbnails[2435408]=new thumbnail(2435408,"157220","Best seat in the house","IMG_0469 copy_thumb.jpg",130,87,1);thumbnails[2435409]=new thumbnail(2435409,"157220","Jumping off","IMG_0494 copy_thumb.jpg",130,195,1);thumbnails[2435411]=new thumbnail(2435411,"157220","Proud of there work","IMG_0501 copy_thumb.jpg",130,195,1);thumbnails[2435412]=new thumbnail(2435412,"157220","Nice haircut","IMG_0507 copy_thumb.jpg",130,87,1);thumbnails[2435413]=new thumbnail(2435413,"157220","Finished","IMG_0519-copy_thumb.jpg",130,87,1);thumbnails[2435414]=new thumbnail(2435414,"157220","Dump wood","IMG_0525 copy_thumb.jpg",130,195,1);thumbnails[1965697]=new thumbnail(1965697,"132096","Juno 2","MPR_6393 copy_thumb.jpg",130,87,1);thumbnails[1965698]=new thumbnail(1965698,"132096","Juno 3","MPR_6406 copy_thumb.jpg",130,87,1);thumbnails[1965699]=new thumbnail(1965699,"132096","Juno 4","MPR_6423 copy_thumb.jpg",130,87,1);thumbnails[1965700]=new thumbnail(1965700,"132096","Juno 5","MPR_6453 copy_thumb.jpg",130,87,1);thumbnails[1965701]=new thumbnail(1965701,"132096","Juno 6","MPR_6465 copy_thumb.jpg",130,66,1);thumbnails[1965702]=new thumbnail(1965702,"132096","Juno 7","MPR_6472 copy_thumb.jpg",130,87,1);thumbnails[1965703]=new thumbnail(1965703,"132096","Juno 8","MPR_6486 copy_thumb.jpg",130,87,1);thumbnails[1965704]=new thumbnail(1965704,"132096","Juno 9","MPR_6491 copy_thumb.jpg",130,75,1);thumbnails[1965705]=new thumbnail(1965705,"132096","Juno 10","MPR_6493 copy_thumb.jpg",130,87,1);thumbnails[1965706]=new thumbnail(1965706,"132096","Juno 11","MPR_6497 copy_thumb.jpg",130,87,1);thumbnails[1965707]=new thumbnail(1965707,"132096","Juno 12","MPR_6500 copy_thumb.jpg",130,87,1);thumbnails[1965708]=new thumbnail(1965708,"132096","Juno 13","MPR_6531 copy_thumb.jpg",130,48,1);thumbnails[1965709]=new thumbnail(1965709,"132096","Juno 14","MPR_6545 copy_thumb.jpg",130,87,1);thumbnails[1965710]=new thumbnail(1965710,"132096","Juno 15","MPR_6553 copy_thumb.jpg",130,107,1);thumbnails[1965711]=new thumbnail(1965711,"132096","Juno 16","MPR_6576 copy_thumb.jpg",130,87,1);thumbnails[5569965]=new thumbnail(5569965,"315972","","IMG_7435_copy_thumb.jpg",130,87,1);thumbnails[5594308]=new thumbnail(5594308,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_1202_copy_thumb.jpg",130,87,1);thumbnails[5594320]=new thumbnail(5594320,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_1173_copy1_thumb.jpg",130,87,1);thumbnails[5594367]=new thumbnail(5594367,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7465_copy_thumb.jpg",130,87,1);thumbnails[5594371]=new thumbnail(5594371,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7467_copy_thumb.jpg",130,87,1);thumbnails[5594375]=new thumbnail(5594375,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7471_copy_thumb.jpg",130,87,1);thumbnails[5594380]=new thumbnail(5594380,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7475_copy_thumb.jpg",130,87,1);thumbnails[5594383]=new thumbnail(5594383,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7487_copy_thumb.jpg",130,87,1);thumbnails[5594385]=new thumbnail(5594385,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7489_copy1_thumb.jpg",130,87,1);thumbnails[5594388]=new thumbnail(5594388,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7497_copy_thumb.jpg",130,87,1);thumbnails[5594389]=new thumbnail(5594389,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7499_copy_thumb.jpg",130,87,1);thumbnails[5594393]=new thumbnail(5594393,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7505_copy_thumb.jpg",130,87,1);thumbnails[5594395]=new thumbnail(5594395,"315972","","IMG_7511_copy_thumb.jpg",130,87,1);thumbnails[5594396]=new thumbnail(5594396,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7514_copy_thumb.jpg",130,87,1);thumbnails[5594402]=new thumbnail(5594402,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7522_copy_thumb.jpg",130,87,1);thumbnails[5594404]=new thumbnail(5594404,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7531_copy_thumb.jpg",130,87,1);thumbnails[5594407]=new thumbnail(5594407,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7539_copy_thumb.jpg",130,87,1);thumbnails[5594408]=new thumbnail(5594408,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7555_copy_thumb.jpg",130,87,1);thumbnails[5594414]=new thumbnail(5594414,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7574_copy_thumb.jpg",130,195,1);thumbnails[5594415]=new thumbnail(5594415,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7599_copy_thumb.jpg",130,87,1);thumbnails[5594416]=new thumbnail(5594416,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7606_copy_thumb.jpg",130,87,1);thumbnails[5594418]=new thumbnail(5594418,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7611_copy_thumb.jpg",130,87,1);thumbnails[5594419]=new thumbnail(5594419,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7615_copy_thumb.jpg",130,195,1);thumbnails[5594422]=new thumbnail(5594422,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7633_copy_thumb.jpg",130,195,1);thumbnails[5594425]=new thumbnail(5594425,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7642_copy_thumb.jpg",130,87,1);thumbnails[5594427]=new thumbnail(5594427,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7729_copy_thumb.jpg",130,87,1);thumbnails[5594432]=new thumbnail(5594432,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7789_copy_thumb.jpg",130,87,1);thumbnails[5594324]=new thumbnail(5594324,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_1210_copy_thumb.jpg",130,87,1);thumbnails[5594326]=new thumbnail(5594326,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_1225_copy_thumb.jpg",130,87,1);thumbnails[5594340]=new thumbnail(5594340,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7434_copy_thumb.jpg",130,87,1);thumbnails[5594343]=new thumbnail(5594343,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7435_copy1_thumb.jpg",130,87,1);thumbnails[5594349]=new thumbnail(5594349,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7441_copy_thumb.jpg",130,87,1);thumbnails[5594356]=new thumbnail(5594356,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7444_copy_thumb.jpg",130,87,1);thumbnails[5594359]=new thumbnail(5594359,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7447_copy_thumb.jpg",130,87,1);thumbnails[5594363]=new thumbnail(5594363,"315972","Pedro Foods Stages Rally, 2010 Hankook MSA Northern Ireland Stage Rally Championship. Saturday 27th February 2010 at Kirkistown Racing Circuit, Co. Down","IMG_7461_copy_thumb.jpg",130,87,1);thumbnails[1051837]=new thumbnail(1051837,"132097","Kirkistown","MPR_0906 copy_thumb.jpg",130,196,1);thumbnails[1051835]=new thumbnail(1051835,"132097","Kirkistown","MPR_0876 copy_thumb.jpg",130,173,1);thumbnails[1051834]=new thumbnail(1051834,"132097","Kirkistown","MPR_0711 copy_thumb.jpg",130,86,1);thumbnails[1051831]=new thumbnail(1051831,"132097","Kirkistown","MPR_0184 copy_thumb.jpg",130,86,1);thumbnails[1051830]=new thumbnail(1051830,"132097","Kirkistown","MPR_0368 copy_thumb.jpg",130,86,1);thumbnails[1051829]=new thumbnail(1051829,"132097","Kirkistown","MPR_0155 copy_thumb.jpg",130,86,1);thumbnails[1051828]=new thumbnail(1051828,"132097","Kirkistown","MPR_0048 copy_thumb.jpg",130,86,1);thumbnails[3084567]=new thumbnail(3084567,"183172","The London Eye","EOS10D 014_thumb.jpg",130,87,1);thumbnails[3084594]=new thumbnail(3084594,"183172","London Eye","EOS10D 047 COPY_thumb.jpg",130,87,1);thumbnails[3084568]=new thumbnail(3084568,"183172","Houses of Parliment","EOS10D 026 COPY_thumb.jpg",130,87,1);thumbnails[3084595]=new thumbnail(3084595,"183172","Trafalger Square, London","EOS10D 126_thumb.jpg",130,87,1);thumbnails[3084569]=new thumbnail(3084569,"183172","London Routemaster","EOS10D 081_thumb.jpg",130,87,1);thumbnails[3084596]=new thumbnail(3084596,"183172","Great Dane","MPR_1322 COPY_thumb.jpg",130,86,1);thumbnails[3084549]=new thumbnail(3084549,"183172","Time Square, New York","DSCF1391_thumb.jpg",130,98,1);thumbnails[3084570]=new thumbnail(3084570,"183172","Houses of Parliment","EOS10D 083_thumb.jpg",130,87,1);thumbnails[3084597]=new thumbnail(3084597,"183172","Landrover","MPR_3164 COPY_thumb.jpg",130,86,1);thumbnails[3084571]=new thumbnail(3084571,"183172","Tower Bridge","EOS10D 175_thumb.jpg",130,87,1);thumbnails[3093418]=new thumbnail(3093418,"189772","Minister Leading Service","IMG_1097 COPY_thumb.jpg",130,195,1);thumbnails[3093423]=new thumbnail(3093423,"189772","Army Cadet Corp 2","IMG_1118 COPY_thumb.jpg",130,195,1);thumbnails[3093434]=new thumbnail(3093434,"189772","Newtownards Councillors","IMG_2190 COPY_thumb.jpg",130,177,1);thumbnails[3093419]=new thumbnail(3093419,"189772","Flag Bearers","IMG_1101 COPY_thumb.jpg",130,87,1);thumbnails[3093420]=new thumbnail(3093420,"189772","Laying a Wreath","IMG_1103 COPY_thumb.jpg",130,87,1);thumbnails[3093421]=new thumbnail(3093421,"189772","Army Cadet Corp","IMG_1104 COPY_thumb.jpg",130,101,1);thumbnails[3093422]=new thumbnail(3093422,"189772","The Last Post","IMG_1112 COPY_thumb.jpg",130,87,1);thumbnails[3093425]=new thumbnail(3093425,"189772","Donaghadee Remembrance Service","IMG_1136 COPY_thumb.jpg",130,105,1);thumbnails[3093426]=new thumbnail(3093426,"189772","IMG 2173 COPY","IMG_2173 COPY_thumb.jpg",130,87,1);thumbnails[3093428]=new thumbnail(3093428,"189772","Standing at Attention","IMG_2177 COPY_thumb.jpg",130,75,1);thumbnails[3093429]=new thumbnail(3093429,"189772","Preparing to lay a wreath","IMG_2180 COPY_thumb.jpg",130,87,1);thumbnails[3093430]=new thumbnail(3093430,"189772","Flag Bearers","IMG_2182 COPY_thumb.jpg",130,87,1);thumbnails[3093432]=new thumbnail(3093432,"189772","Reading The service","IMG_2183 COPY_thumb.jpg",130,87,1);thumbnails[3093433]=new thumbnail(3093433,"189772","The Cenotaph","IMG_2188 COPY_thumb.jpg",130,87,1);thumbnails[3093435]=new thumbnail(3093435,"189772","Laying A Wreath","IMG_2196 COPY_thumb.jpg",130,87,1);thumbnails[3093440]=new thumbnail(3093440,"189772","Ballyfrenis Accordian Band 2","IMG_2223 COPY_thumb.jpg",130,87,1);thumbnails[3093441]=new thumbnail(3093441,"189772","The parade marches off","IMG_2225 COPY_thumb.jpg",130,87,1);thumbnails[3093442]=new thumbnail(3093442,"189772","The Parade continues","IMG_2227 COPY_thumb.jpg",130,87,1);var galleries=new Object();galleries[132058]=new gallery(132058,"1965608,1965607,1965606,1965605,1965604,1965507,1965506,1965505,1965504,1965503","Vietnam","gallery",[1965492,1965604,1965493,1965605,1965494,1965606,1965495,1965607,1965496,1965608,1965497,1965498,1965499,1965500,1965501,1965502,1965503,1965504,1965505,1965506,1965507]);galleries[216387]=new gallery(216387,"3535308,3535305,3535302,3535268,3535265,3535262,3535253,3535249,3535247,3535233","New York","gallery",[3535208,3535233,3535247,3535249,3535253,3535262,3535265,3535268,3535302,3535305,3535308]);galleries[157220]=new gallery(157220,"2435414,2435413,2435412,2435411,2435409,2435408,2435407,2435406,2435405","Clandeboye Bonfire Site, Bangor","gallery",[2435405,2435406,2435407,2435408,2435409,2435411,2435412,2435413,2435414]);galleries[132096]=new gallery(132096,"1965711,1965710,1965709,1965708,1965707,1965706,1965705,1965704,1965703,1965702","Juno Ireland Racing","gallery",[1965697,1965698,1965699,1965700,1965701,1965702,1965703,1965704,1965705,1965706,1965707,1965708,1965709,1965710,1965711]);galleries[315972]=new gallery(315972,"5594432,5594427,5594425,5594422,5594419,5594418,5594416,5594415,5594414,5594408","Kirkistown Rally Cross ","gallery",[5569965,5594308,5594320,5594367,5594371,5594375,5594380,5594383,5594385,5594388,5594389,5594393,5594395,5594396,5594402,5594404,5594407,5594408,5594414,5594415,5594416,5594418,5594419,5594422,5594425,5594427,5594432,5594324,5594326,5594340,5594343,5594349,5594356,5594359,5594363]);galleries[132097]=new gallery(132097,"1051837,1051835,1051834,1051831,1051830,1051829,1051828","Motor Sport","gallery",[1051837,1051835,1051834,1051831,1051830,1051829,1051828]);galleries[183172]=new gallery(183172,"3084597,3084596,3084595,3084594,3084571,3084570,3084569,3084568,3084567,3084549","High Dynamic Range (HDR)","gallery",[3084567,3084594,3084568,3084595,3084569,3084596,3084549,3084570,3084597,3084571]);galleries[189772]=new gallery(189772,"3093442,3093441,3093440,3093435,3093434,3093433,3093432,3093430,3093429,3093428","Donaghadee Remembrance Service","gallery",[3093418,3093423,3093434,3093419,3093420,3093421,3093422,3093425,3093426,3093428,3093429,3093430,3093432,3093433,3093435,3093440,3093441,3093442]);var imageSets=new Object();imageSets[1]="5594432,5594427,5594425,5594422,5594419,5594418,5594416,5594415,5594414,5594408,5594407,5594404,5594402,5594396,5594395,5594393,5594389,5594388,5594385,5594383,5594380,5594375,5594371,5594367,5594363,5594359,5594356,5594349,5594343,5594340,5594326,5594324,5594320,5594308,5569965,3535308,3535305,3535302,3535268,3535265,3535262,3535253,3535249,3535247,3535233,3535208,3093442,3093441,3093440,3093435";imageSets[3]="5594432,5594427,5594425,5594422,5594419,5594418,5594416,5594415,5594414,5594408,5594407,5594404,5594402,5594396,5594395,5594393,5594389,5594388,5594385,5594383,5594380,5594375,5594371,5594367,5594363,5594359,5594356,5594349,5594343,5594340,5594326,5594324,5594320,5594308,5569965,3535308,3535305,3535302,3535268,3535265,3535262,3535253,3535249,3535247,3535233,3535208,3093442,3093441,3093440,3093435";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/memike/images";break}switch(a){case 1:b="http://www1.clikpic.com/memike/images";break}switch(a){case 2:b="http://admin.clikpic.com/memike/images";break}switch(a){case 24:b="http://tpc15/clikpic/memike/images";break}switch(a){case 4:b="http://www.clikchurch.com/memike/images";break}switch(a){case 5:b="http://www2.clikpic.com/memike/images";break}switch(a){case 22:b="http://tpc5/clikpic/memike/images";break}switch(a){case 23:b="http://tpc10/clikpic/memike/images";break}switch(a){case 25:b="http://tpc16/clikpic/memike/images";break}switch(a){case 15:b="http://www3.clikpic.com/memike/images";break}switch(a){case 18:b="http://www4.clikpic.com/memike/images";break}switch(a){case 19:b="http://www5.clikpic.com/memike/images";break}switch(a){case 31:b="http://www7.clikpic.com/memike/images";break}switch(a){case 32:b="http://admin2.clikpic.com/memike/images";break}switch(a){case 33:b="http://www8.clikpic.com/memike/images";break}switch(a){case 34:b="http://www9.clikpic.com/memike/images";break}switch(a){case 35:b="http://admin3.clikpic.com/memike/images";break}switch(a){case 37:b="http://admin4.clikpic.com/memike/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="'+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="Michael Parker Images: "+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>PAYPAL</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(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>Secure payment with PAYPAL</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="MEMIKE">';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+'")'})}}};