 var $j = jQuery.noConflict();
 

	  function mycarousel_initCallback(carousel)
	  {
	        // Disable autoscrolling if the user clicks the prev or next button.
			//carousel.buttonNext.bind('click', function() {
			//    carousel.startAuto(0);
      //});
	  
	  //carousel.buttonPrev.bind('click', function() {
	  //    carousel.startAuto(0);
	  //});
	  
	  // Pause autoscrolling if the user moves with the cursor over the clip.
	  carousel.clip.hover(function() 
	  {
	        carousel.stopAuto();
      }, function() {
	  carousel.startAuto();
	  });
	  };


     // Use jQuery via $j(...)
     $j(document).ready(function(){

								 
	        $j('#mycarousel').jcarousel({
			auto: 6,
			wrap: 'last',
			initCallback: mycarousel_initCallback
            });



	        $j(".btn-slide").click(function()
			{
			      $j("#panel").slideToggle("slow");
				  $j(this).toggleClass("active"); return false;
			});
			

			
			$j("#syp-not-home").click(function()
            {
				// here insert scrolling
				  targetOffset = 0; // to scroll
				  $j('html,body').animate({scrollTop: targetOffset}, 1000);
				
				  $j("#panel").slideToggle("slow");
				  $j("p.slide a").toggleClass("active"); return false;
				
			});
			
			$j("#syp").click(function()                
			{
			      // here insert scrolling
				  targetOffset = 0; // to scroll
				  $j('html,body').animate({scrollTop: targetOffset}, 1000);
				  
				  // toggle
				  $j("#panel").slideToggle("slow");
				  $j("p.slide a").toggleClass("active"); return false;
			});
		
			$j('.sociable-keith ul li:first a').removeAttr("alt").removeAttr("title").attr({title: "Share this playlist on Facebook"});
			$j('.sociable-keith ul li:last a').removeAttr("alt").removeAttr("title").attr({title: "Tweet this playlist on Twitter"});
			
			
			
			$j('.sociable-keith ul li a img[alt="Facebook"]').removeAttr("alt").removeAttr("title");
			$j('.sociable-keith ul li a img[alt="TwitThis"]').removeAttr("alt").removeAttr("title");
			
     });
	  
	  
	  
	  
	  
	  
	  
	  
	  
	  	 