$().ready(function() { $('div.illustration').each(function() { $(this).addClass('maxIllustration'); }); $('div.illustration a img').each(function() { $(this).addClass('bigImg').attr('src', $(this).attr('src').replace('thumbnail/TN-', '')); }); $("ul.categoryActions li a[href*='category/'][href*='/flat']").each(function() { /* $('ul.categoryActions').css('display','inline'); */ /* $('div.titrePage h2').prepend('Albums'); */ }); $reltag = $('#menubar #mbTags').html(); if ($reltag == null) $reltag = ''; $reltag = '
' + $reltag + '
'; $('#copyright').before('
' + $reltag + '
'); $temp = $('#content .navigationBar').html(); $('#content .navigationBar').css('display','none'); $('div.titrePage h2').after($temp); $('span.wrap2 a img').click(function() { $scr = $(this).attr('src').replace('thumbnail/TN-', ''); $href = $(this).parent('a').attr('href'); $alt = $(this).attr('alt'); $(this).parent('a').attr('href', '#content'); $temp = $href.substr($href.indexOf('/')+1); $temp = $temp.substr(0,$temp.indexOf('/')); $title = $('#ix-desc .Thumb-'+$temp).attr('title'); $('#jquery_local_img').fadeOut("slow").replaceWith('
'+$alt+'
'+ $title +' - Index' + $reltag + '
').fadeIn("slow"); }); $('span.wrap2 a img').hover(function() { },function() { $(this).parent('a').attr('href', $href); }); });