); // SEARCH DROP DOWN $("#search-where a").each(function() { $(this).click(function(e) { var currentVal = $('.simple-search form:visible:eq(0) input.search-keywords').val(); var $this = this; var showSearch = $($this).attr('href'); $("#search-where a").each(function() { var hideSearch = $(this).attr('href'); $(hideSearch+' input.search-keywords').val(currentVal); $(hideSearch).hide(); $(this).removeClass('selected'); }); $(showSearch).show(); $($this).addClass('selected'); e.preventDefault(); }); }); // CONTENT IMAGE LIGHT BOX $("a.popup-trigger").magnificPopup({ type: 'image', mainClass: 'popup-fade', removalDelay: 400, closeOnContentClick: true, showCloseBtn: false, zoom: { enabled: true, duration: 400, easing: 'ease-in-out' }, image: { titleSrc: function(item) { iId = item.el.attr('id'); cId = iId.replace('img', 'cap'); //console.log(cId); return $('#'+cId).text(); } } }); if($('#sub-box').length) { $.magnificPopup.open({ items: { src: '#sub-box', type: 'inline' } }); } if($('#limit-box').length) { $.magnificPopup.open({ items: { src: '#limit-box', type: 'inline' }, closeOnContentClick: false, showCloseBtn: false, closeOnBgClick: false }); } }); var addthis_share = {}; var addthis_config = { username : 'gjsentinel', services_exclude : 'email', ui_cobrand : 'GJSentinel.com', data_ga_tracker : 'pageTracker', ui_header_color : '#FFF', ui_header_background: '#DD8631' };