	$(document).ready(function(){
				$(".moreinfo").each(function(){
					var t;
					var isanimated = false;
					var isvisible = false;
					var popup = $(".floatingpanel",this);
					$(this).mouseover(function(){
						if (t) clearTimeout(t);
						if (!isvisible && !isanimated){
							isanimated = true;
							popup.css({opacity:0,display:"block",marginTop:-5,marginLeft:110}).animate({marginTop:-5,opacity:1},500, function(){isanimated=false;isvisible=true;});
						} else {
							return;
						}
					}).mouseout(function(){
						if (t) clearTimeout(t);
						if (!isanimated && isvisible){
							t = setTimeout(function(){isanimated=true;popup.animate({marginTop:-15,opacity:0},500, function(){popup.css({display:"none"});isvisible=false;isanimated=false;});}, 500);
						} else {
							return;
						}
					});
				});
									   
			});
			
			
			
			 $(function () {
        $('.bubbleInfo').each(function () {
            var distance = 10;
            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: -72,
                        left: -46,
                        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;
            });
        });
    });
