jQuery.noConflict();
jQuery(document).ready(function(){
   jQuery(".thumb").hover(function(){
   jQuery(this).fadeTo("fast", 0.6); // This sets the opacity to 60% on hover
   },function(){
   jQuery(this).fadeTo("fast", 1.0); // This sets the opacity back to 100% on mouseout
   jQuery("div.thumb").click(function() {
   jQuery('.aktiv').removeClass('aktiv');
   jQuery(this).addClass('aktiv');
});
});
});
function showPic(url,title,descr,width,height) {
  jQuery("#maxImage").fadeOut("slow", function(){
      var image = new Image();
      jQuery(image).load(function() {
        jQuery(this).hide();

// with the holding div #loader, apply:
      jQuery('#picturecontainer')
        // remove the loading class (so no background spinner), 
        
        // then insert our image
        .append(this);
        jQuery("#maxImage").attr({
          src: url,
          width: width,
          height: height
        });
        jQuery("#maxImage").fadeIn("fast");
        jQuery("#maxTitle").html(title);
        jQuery("#maxDescr").html(descr);
   jQuery('#picturecontainer').addClass('loading')
      });
      jQuery(image).attr({src: url,width: width,
          height: height});
  });
}