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

  $('.bt_animation img').tooltip({ 
    track: true, 
    delay: 0, 
    showURL: false, 
    showBody: " - ", 
    fade: 250 
	});
  $('#productList img').tooltip({ 
    track: true, 
    delay: 0, 
    showURL: false, 
    showBody: " - ", 
    fade: 250 
	});
  $("#animationKAMA").cycle({ 
    fx:     'fade', 
    speed:   800, 
    timeout: 3000, 
    next:   '#animationKAMA', 
    pause:   0 
	});
  $('#configurateur').cycle({
		fx:    'fade',
		timeout:500,
    	speed:  300 
	});
  
	$(".popup").click(function(){ 
    window.open($(this).attr("href")); 
    return false; 
	});
	
	$("a.bt_1").hover(function() {
	  $("#bulle_1").animate({opacity: "show", top: "0"}, "slow");
	}, function() {
	  $("#bulle_1").animate({opacity: "hide", top: "-5"}, "fast");
	});
	$("a.bt_2").hover(function() {
	  $("#bulle_2").animate({opacity: "show", top: "0"}, "slow");
	}, function() {
	  $("#bulle_2").animate({opacity: "hide", top: "-5"}, "fast");
	});
	$(".bt_3").hover(function() {
	  $("#bulle_3").animate({opacity: "show", top: "0"}, "slow");
	}, function() {
	  $("#bulle_3").animate({opacity: "hide", top: "-5"}, "fast");
	});
	
	$("#pageflip").hover(function() { //On hover...
	$("#pageflip img , .msg_block").stop()
		.animate({ //Animate and expand the image and the msg_block (Width + height)
			width: '34px',
			height: '33px'
		}, 500);
	} , function() {
	$("#pageflip img").stop() //On hover out, go back to original size 50x52
		.animate({
			width: '10px',
			height: '12px'
		}, 220);
	$(".msg_block").stop() //On hover out, go back to original size 50x50
		.animate({
			width: '10px',
			height: '10px'
		}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});
  
});
   
