/* Modified by Attila Pest, 2011-02-10 05:57:05 EST */
	
	$(document).ready(function(){
    
    $('.scrollpane').jScrollPane({showArrows:true});
    
    $('#featured_products_list').cycle({ 
      fx   : 'scrollHorz',
      delay: -1000,
      timeout: 6000,
      pager: '#nav',
      next : '#next_product',
      prev : '#prev_product',
			cleartypeNoBg:  true
    });

    //featured video change    
    $("[id^='youtube_']").click(function(event){
      event.preventDefault();
      $("[id^='youtube_']").removeClass("active");
      $(this).addClass("active");
      var id = $(this).attr("id").replace("youtube_","");
      var src="http://www.youtube.com/embed/" + id + "?enablejsapi=1&wmode=transparent&autoplay=1&controls=0&showsearch=0&rel=0";
      $('#featuredvideo').attr("src",src);             
    });

    $("#djhome").hover(
      function(){
        $(this).attr("src","images/choice-chauvet-dj-over.png");
      },
      function(){
        $(this).attr("src","images/choice-chauvet-dj.png");
      }
    );
    $("#prohome").hover(
      function(){
        $(this).attr("src","images/choice-chauvet-professional-over.png");
      },
      function(){
        $(this).attr("src","images/choice-chauvet-professional.png");
      }
    );

            
	});
	
