/*Fix Colorbox issue with double include*/ $(function(){ if (!jQuery().colorbox) { $.getScript("/includes/colorbox/jquery.colorbox.js", function(data, textStatus, jqxhr) { if( $('.plainSubGalleryLink').lengh != 0 ){ $('.plainSubGalleryLink').colorbox(); $('.seeVideo a').colorbox({iframe:true, innerWidth:640, innerHeight:480}); } }); }else{ if( $('.plainSubGalleryLink').lengh != 0 ){ $('.plainSubGalleryLink').colorbox(); $('.seeVideo a').colorbox({iframe:true, innerWidth:640, innerHeight:480}); } } //}); //$(function(){ if( $('.listModule_tId_18').length > 0 ){ $('.thumbnail').click(function(event){ if( $(this).find('img').length != 1){ event.preventDefault(); }else{ $(this).parent().find('.selected').removeClass('selected'); $(this).addClass('selected'); $(this).parent().parent().find('.displayImage > img').attr('src', $(this).find('img').attr('src') ); } }); $(".thumbnail img").error(function(){ $(this).parent().remove(); }); $(".thumbnail img").each(function(){ if( $(this).attr('src').indexOf("[DATA_9") !== -1 ){ //$(this).parent().remove(); $(this).parent().css('visibility','hidden'); }else{ $(this).attr('height', $(this).height() ); if( $(this).height() < 51 ){ $(this).css('margin-top', parseInt( (51 - $(this).height() ) / 2 ) + 'px'); } } }); $(".seeVideo a").each(function(){ if( $(this).attr('href').length == 0 ){ $(this).remove(); } }); } $('.aboutTextContent h1').each(function(){ if( $(this).html() == ""){ $(this).parent().find('h2').first().css({'margin-top': '0px', 'border-bottom' : '1px solid #c8c8c8', 'padding-bottom' : '6px'}); $(this).remove(); } }); });