function resizeImages() { $('#photoGallery_21146_1599684175 .galleryImg').each(function(key, value) { var minWidth = 300*1.5; // min width of image container before using full image var thisWidth = $(value).width(); var imageUrl = $(value).data('image-src'); var thumbUrl = $(value).data('thumb-src');
if (thisWidth >= minWidth) { $(value).css('background-image', 'url('+imageUrl+')') } else { $(value).css('background-image', 'url('+thumbUrl+')') } }); }
$(document).on('ready socast:reinit', function() { lightbox_21146_1599684175 = new Lightbox('lightbox_21146_1599684175',[{"type":"image","id":"295208","src":"https:\/\/media.socastsrm.com\/wordpress\/wp-content\/blogs.dir\/1166\/files\/2017\/11\/Mayor.jpg","caption":"","description":"Waterford City & County Council - Sponsors of the Mayors Award & Runner Up Prizes Frank Nolan, Waterford PPN and Cllr. Pat Nugent, Mayor of Waterford City & County Council."},{"type":"image","id":"295211","src":"https:\/\/media.socastsrm.com\/wordpress\/wp-content\/blogs.dir\/1166\/files\/2017\/11\/WCCC.jpg","caption":"","description":"Waterford City & County Council - Sponsors of the Environment Award Frank Nolan, Waterford PPN; Cllr. Pat Nugent, Mayor of Waterford City & County Council; Nathaniel Ademoye, Waterford PPN and Don Tuohy, Waterford City & County Council.-----------------------------------------------------------------------------------------------------"},{"type":"image","id":"295214","src":"https:\/\/media.socastsrm.com\/wordpress\/wp-content\/blogs.dir\/1166\/files\/2017\/11\/Local-Link.jpg","caption":"","description":"Local Link - Sponsors of the Community & Civic Pride Award James O Donoghue, Local Link; Cllr. Pat Nugent, Mayor of Waterford City & County Council; John Hawkes, Waterford PPN and Cllr.Pat Fitzgerald, Local Link"},{"type":"image","id":"295217","src":"https:\/\/media.socastsrm.com\/wordpress\/wp-content\/blogs.dir\/1166\/files\/2017\/11\/Glanbia.jpg","caption":"","description":"Glanbia - Sponsors of the Healthy, Active & Youth Award Cllr. Pat Nugent, Mayor of Waterford City & County Council; Andrea Galgey, Waterford PPN and Michael Keane, Glanbia."},{"type":"image","id":"295220","src":"https:\/\/media.socastsrm.com\/wordpress\/wp-content\/blogs.dir\/1166\/files\/2017\/11\/LEO.jpg","caption":"","description":"Local Enterprise Office - Sponsors of the Community\/Social Enterprise Award David Walsh, Local Enterprise Office, Cllr. Pat Nugent, Mayor of Waterford City & County Council; Jacqui Gaule, Local Enterprise Office and Nathaniel Ademoye, Waterford PPN."},{"type":"image","id":"295223","src":"https:\/\/media.socastsrm.com\/wordpress\/wp-content\/blogs.dir\/1166\/files\/2017\/11\/Credit-Union-1.jpg","caption":"","description":"Dungarvan Credit Union - Brochure Sponsors Cllr. Pat Nugent, Mayor of Waterford City & County Council; Nathaniel Ademoye, Waterford PPN and Orla Dawson, Dungarvan Credit Union."},{"type":"image","id":"295226","src":"https:\/\/media.socastsrm.com\/wordpress\/wp-content\/blogs.dir\/1166\/files\/2017\/11\/Bus-Eireann.jpg","caption":"","description":""},{"type":"image","id":"295229","src":"https:\/\/media.socastsrm.com\/wordpress\/wp-content\/blogs.dir\/1166\/files\/2017\/11\/BHP.jpg","caption":"","description":"BHP Insurance - Sponsors of the Arts & Culture Award Cllr. Pat Nugent, Mayor of Waterford City & County Council; Muriel Tobin, Waterford PPN and Mark Phelan, BHP Insurance."}], true,true,false,{"id":"21146","name":"Community and Voluntary Awards","num":"8","ago":"4 years ago"}); gallery_21146_1599684175 = new PhotoGallery(21146,1599684175,10); gallery_21146_1599684175.createColumns(2); gallery_21146_1599684175.showMore(); resizeImages(); });
$(window).on('resize', function() { resizeImages(); });
});