$(function(){ $('a img').hover(function(){ $(this).attr('src', $(this).attr('src').replace('_off', '_on')); }, function(){ if (!$(this).hasClass('currentPage')) { $(this).attr('src', $(this).attr('src').replace('_on', '_off')); } }); }); $(function(){ $('#pageTop').hide(); $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('#pageTop').fadeIn(); } else { $('#pageTop').fadeOut(); } }); $('#pageTop').click(function(){ $('html,body').animate({ scrollTop: 0 }, 500); return false; }); }); $(function() { if(navigator.userAgent.indexOf("MSIE") != -1) { $('img').each(function() { if($(this).attr('src').indexOf('.png') != -1) { $(this).css({ 'filter': 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + $(this).attr('src') + '", sizingMethod="scale");' }); } }); } }); $(function() { // vars var $elm = $('.js-capcomModal'); if($elm.length === 0){ return false; } // trigger $elm.colorbox({ className: "capcomCbox", width: "100%", maxWidth: "1140px", maxHeight: "85%", fixed: true }); });