$(document).ready(function() { var string; if($('.theimg').is(':visible')) { string = $('.theimg img:first').attr('src').replace('thumbs/',''); $('.bilden').html(''); $('.theimg img').bind('click',function() { string = $(this).attr('src').replace('thumbs/','') $('.bilden img').animate({opacity: 'toggle'}, function(){ $(this).attr('src',string); }).animate({opacity: 'toggle'}); }); if($('.theimg').length <= 1) { $('.theimg').remove(); } } if($.browser.msie) { $('.infosidan').removeClass('infosidan').addClass('infosidanIE'); } else { $('.infosidan').removeClass('infosidan').addClass('infosidanFF'); } $('.menuItem').hover(function() { $('a:eq(0)',this).hide(); $('a:eq(1)',this).show(); },function() { $('a:eq(0)',this).show(); $('a:eq(1)',this).hide(); }); });