var ZI = 2;
var PB = 1;
	$(function() {
		$(".memo").draggable({start: function(event, ui) {
			ZI++;
			this.style.zIndex=ZI;
				if ( PB == 1) {
					PB++;
					$(".popupbubble").animate({opacity:"hide", top:"-40"}, "fast");
				}
		}});
			$("#memocontent").hover(function() {
				if ( PB == 1) {
					$(".popupbubble").animate({opacity:"show", top:"-50"}, "slow");
				}
			},
			function(){
				if ( PB == 1) {
					$(".popupbubble").animate({opacity:"hide", top:"-40"}, "fast");
				}
			});
	});
