    $(function () {
        $('.bubbleInfo').each(function () {
            var distance = 30;
            var time = 250;
            var hideDelay = 500;

            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var trigger = $('.trigger', this);
            var info = $('.popup', this).css('opacity', 0);


            $([trigger.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -90,
                        left: -33,
                        display: 'block'
                    }).animate({
                        top: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });

function submit_cart()
		{
		document.buy_block.submit();
		}
function compte()
		{
		document.account_form.submit();
		}

jQuery(document).ready(function() {
	jQuery('#mycarousel').jcarousel();
});

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();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 5,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});
$(document).ready(function(){
    
    $("#passe_oublie").click(function () {
      $("#div_passe").slideToggle("slow");
    });

  });
  
/* CLIGNOTEMENT ERREUR */

$(document).ready(function(){
            $(".close").click(function(){
                $("#error").animate({left:"+=10px"}).animate({left:"-5000px"});
            });
            blink();
        });
        function blink(){
            $("#error").fadeOut(800).fadeIn(800).fadeOut(400).fadeIn(400).fadeOut(400).fadeIn(400);
        }
        function nudge(){
            $("#error").animate({left:"+=5px"},20).animate({top:"+=5px"},20).animate({top:"-=10px"},20).animate({left:"-=10px"},20)
            .animate({top:"+=5px"},20).animate({left:"+=5px"},20)
            .animate({left:"+=5px"},20).animate({top:"+=5px"},20).animate({top:"-=10px"},20).animate({left:"-=10px"},20)
            .animate({top:"+=5px"},20).animate({left:"+=5px"},20);
        }

/* SECOUE VIGNETTE HOME PAGE*/

$(document).ready(function(){
		    $(".close").click(function(){
		        $("#vignette").animate({left:"+=10px"}).animate({left:"-5000px"});
		    });
		    $("#vignette").animate({left:"+=5px"},40).animate({top:"+=5px"},40)
		    .animate({top:"-=10px"},40).animate({left:"-=10px"},40)
		    .animate({top:"+=5px"},40).animate({left:"+=5px"},40)
		    .animate({left:"+=5px"},40).animate({top:"+=5px"},40)
		    .animate({top:"-=10px"},40).animate({left:"-=10px"},40)
		    .animate({top:"+=5px"},40).animate({left:"+=5px"},40);
		});
		
/* */


$(function($) {

    function test() {
        $.ajax({ url: 'wait2.php', cache: false });
    }

    // global hook - unblock UI when ajax request completes
    $().ajaxStop($.unblockUI);

    $('#blockButton').click(function() {
        $('#page').block({ message: '<h1>Processing...</h1>', css: { border: '1px solid #CCC' } });
    });
    $('li').click(function() {
        $('#page').block({ message: null });
    });
    $('#lowest').click(function() {
        $('#page').block({ message: null });
    });    
    $('#highest').click(function() {
        $('#page').block({ message: null });
    });
    $('#AZ').click(function() {
        $('#page').block({ message: null });
    });
    $('#ZA').click(function() {
        $('#page').block({ message: null });
    });
    $('#terminer').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub1').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub2').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub3').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub4').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub5').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub6').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub7').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub8').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub9').click(function() {
        $('#page').block({ message: null });
    });
    $('#pub10').click(function() {
        $('#page').block({ message: null });
    });
    
    
    $('#unblockButton').click(function() {
        $('#page').unblock();
    });

});


$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'shuffle' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
// -->

$(document).ready(function() {
			$("a.zoom").fancybox();
		});
		
//


(function($) {
	$.fn.inputdynvalue = function (options) {
		var opts = $.extend({}, $.fn.inputdynvalue.defaults, options);

		return this.each(function(){
			// Initialisation de l'INPUT (attributs value, class)
			var hvalue = opts.htext;
			switch (opts.htext) {
				case 'title': hvalue = $(this).attr('title'); break;
				case 'value': hvalue = $(this).attr('value'); break;
			}
			$(this).attr('value', hvalue).addClass(opts.hclass)

			// Remise à zéro des gestionnaires d'évènement
			.unbind('focus.dynvalue blur.dynvalue')

			// Ajout et suppression du texte au focus ou à la perte de focus
			.bind('focus.dynvalue', function() {
				if (this.value === hvalue) {
					this.value = '';
					$(this).removeClass(opts.hclass);
				}
			})
			.bind('blur.dynvalue', function() {
				if (this.value === '') {
					this.value = hvalue;
					$(this).addClass(opts.hclass);
				}
			});
		});
	};
	// Arguments par défaut
	$.fn.inputdynvalue.defaults = {
		htext: 'title',
		hclass: 'hint'
	};
})(jQuery);

$(document).ready(function(){
	$('.rech').inputdynvalue();
});
$(function(){
	$("ul#ticker01").liScroll();
});

//

$(document).ready(function() { 
    $('.cart2').click(function() { 
        $.blockUI({ 
            message: $('div.growlUI'), 
            fadeIn: 700, 
            fadeOut: 700, 
            timeout: 2000, 
            showOverlay: false, 
            centerY: false, 
            css: { 
                width: '350px', 
                top: '10px', 
                left: '', 
                right: '10px', 
                border: 'none', 
                padding: '5px', 
                backgroundColor: '#000', 
                '-webkit-border-radius': '10px', 
                '-moz-border-radius': '10px', 
                opacity: .6, 
                color: '#fff' 
            } 
        }); 
    }); 
});

$(function() {
                var COOKIE_NAME = 'Disclaimer';
                $('#accept').click(function() {
                    var date = new Date();
                    date.setTime(date.getTime() + (3 * 24 * 60 * 60 * 1000));
                    $.cookie(COOKIE_NAME, 'accepte', { path: '/', expires: date });
                    return false;
                });
                
            });
            
function select_all()
{
var text_val=eval("document.genebay.source");
text_val.focus();
text_val.select();
}
