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();    });};$(function() {	$('#mycarousel a.light').lightBox();});jQuery(document).ready(function() {	$('ul#mycarousel').find('div.texte_photo').animate({height: 0,opacity: 0.00, padding: 0}, 1 );	$('li.rub_artistes').addClass("menu_rub_select");	$('div#videos ul#mycarousel_2 li:first').addClass('jcarousel-item_select');	    jQuery('#mycarousel').jcarousel({        auto: 4,        wrap: 'last',        initCallback: mycarousel_initCallback    });	jQuery('div#videos ul#mycarousel_2').jcarousel({        vertical: true,        auto: 10,        wrap: 'last',        initCallback: mycarousel_initCallback    });	jQuery('div#mixtapes ul#mycarousel_3').jcarousel({        auto: 10,		scroll: 1,        wrap: 'last',        initCallback: mycarousel_initCallback    });		$('div#videos ul#mycarousel_2 li div.image').click(function(){		var video = $(this).attr('id');		$('ul#mycarousel_2').find('li.jcarousel-item_select').removeClass('jcarousel-item_select');		$('li#li_'+video).addClass('jcarousel-item_select');	});	$('li.item_photo a.light').hover(		function(){			$(this).find('div.texte_photo').animate({height: 88,opacity: 0.85, padding: 5}, 400 );		}, function(){			$(this).find('div.texte_photo').animate({height: 0,opacity: 0.00,  padding: 0}, 100 );		}	);	$('div.texte_bio').hover(		function(){			$(this).animate({opacity: 0.99});		}, function(){		}	);		$('img.avatar').hover(		function(){			$('div.texte_bio').animate({opacity: 0.0});		}, function(){			$('div.texte_bio').animate({opacity: 0.99});		}	);	$('div#videos ul#mycarousel_2 div.ouvrir').click(function(){		$("#jquery_jplayer").stop();				$("div#playeur_video").show().empty().prepend('<div class="loading_visualiseur_2"></div>');		page=$(this).attr("id");		$.ajax({			url: "http://www.southindiescrew.com/?page=artiste_video&video="+page+"&autoplay=1",			cache:false,			success:function(html){				afficher(html);			},			error:function(XMLHttpRequest,textStatus, errorThrown){				afficher("erreur lors du chagement de la page");			}		})		return false;	});		});	function afficher_2(data){		$('div#chargeur_tchune').empty().append(data);	}function afficher(data){		$('div#playeur_video').empty().append(data);}
