{combine_css path="template-extension/flop_style/mainpage_categories/spotlight.css"} {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} {footer_script require='jquery'}{literal} jQuery(document).ready(function () { //loop through all the children in #items //save title value to a span and then remove the value of the title to avoid tooltips jQuery('#items .item').each(function () { title = jQuery(this).attr('title'); jQuery(this).append('
'); jQuery(this).attr('title',''); }); jQuery('#items .item').hover( function () { //set the opacity of all siblings jQuery(this).siblings().css({'opacity': '0.1'}); //set the opacity of current item to full, and add the effect class jQuery(this).css({'opacity': '1.0'}).addClass('effect'); //show the caption jQuery(this).children('.caption').show(); }, function () { //hide the caption jQuery(this).children('.caption').hide(); } ); jQuery('#items').mouseleave(function () { //reset all the opacity to full and remove effect class jQuery(this).children().fadeTo('100', '1.0').removeClass('effect'); }); }); {/literal}{/footer_script} {define_derivative name='spotlight' width=$derivative_params->max_width() height=$derivative_params->max_height() crop=true}