jQuery.noConflict();

(function($){
  $(document).ready(function(){

    // activate menu
    $('ul#menu')
      .supersubs({
            minWidth:    12,   
            maxWidth:    27,   
            extraWidth:  1     
        })
      .superfish({
            delay:       1000,                            // one second delay on mouseout
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation
            speed:       'fast',                          // faster animation speed
            autoArrows:  false,                           // disable generation of arrow mark-up
            dropShadows: false                            // disable drop shadows
        })
    ;

    // activate add to favorites
    $('a.add-to-favorites').click(function(e){
      e.preventDefault();
      $(this).jFav();
    });

    // load adds
    $('form.add').each(function(){
      $('<div></div>').load($(this).attr('action')).insertAfter($(this));
      $(this).remove();
    })

$(".slideshow ul").carouFredSel({
    	width: 725,
    	height: 200,
    	items: 1,
    	prev : {   
        button  : "#slide_prev",
        key     : "left"
    },
    next : {
        button  : "#slide_next",
        key     : "right"
    },
    	scroll: {
    		pauseOnHover: true,
    		duration: 1000
    	}
    });
  });

})(jQuery);

