    var $j = jQuery.noConflict();
	
	
	
    function mycarousel_initCallback(carousel) {
        $j('.jcarousel-control img').bind('click', function() {
            carousel.scroll($j.jcarousel.intval($j(this).parent().attr('rel')));
            return false;
        });
		carousel.clip.hover(function() {
			carousel.stopAuto();
		}, function() {
			carousel.startAuto();
		});
   
    };
	function qte_a(){
		var nb = parseInt($j('#qte_select').val());
		var add = nb+1;
		$j('#qte_txt').empty();
		$j('#qte_txt').html(add);		
		$j('#qte_select').val(add)
		
	}
	function qte_d(){
		var nb = parseInt($j('#qte_select').val());
		
			var add = nb-1;
		if(add>=1){
			$j('#qte_txt').empty();
			$j('#qte_txt').html(add);		
			$j('#qte_select').val(add)
		}
	}
    function check_cgv(){
		if(document.getElementById('cgv_check').checked){
			$j(location).attr('href','index.php?page=21');
		}else{
			alert('Vous devez accepter les conditions générales de vente');
		}
	}
    $j(document).ready(function() {		
			
			var content_height = $j("#content").height();	
			var aside_height = $j("#aside").height();	
			if(content_height>aside_height){
				$j("#aside").height(content_height-8);
			}else{
				var marge = aside_height-content_height+4;
				$j("#content .block:last").append('<div style="height:'+marge+'px;background:#fff;border:1px solid #fff;">&nbsp;</div>');
				
			}
		
		
		$j('#photos').galleryView({
			panel_width: 960,
			panel_height: 291,
			frame_width: 124,
			frame_height: 61,
			overlay_color: '#222',
			overlay_text_color: 'white',
			caption_text_color: '#222',
			background_color: '#2b2f32',
			border: 'none',
			nav_theme: 'black',
			easing: 'swing',
			pause_on_hover: true
		});
  	
        
        
    });
	


