var timeouttime = 200;
var locked = false;
var activeTimeout = null;

function setBorderNoteHover() {
	jQuery("#border-note").hover(
		function(){
			if(locked == false) {
				window.clearTimeout(activeTimeout);
				activeTimeout = window.setTimeout("StartAnimation()", timeouttime);
			}
		},
		function(){
			window.clearTimeout(activeTimeout);
			jQuery("#border-note").animate({ 
				top: "273px"
			}, 1500, "", function() { window.clearTimeout(activeTimeout); locked = false; } );
		}
	);
}

function StartAnimation() {
	locked = true;
	jQuery("#border-note").animate({ 
		top: "130px"
	}, 1500 );
}

/*
jQuery(document).ready(function() {
	
	var items = jQuery('span.fader');
	
	if (items.length > 0) {

		items.each(function() {

			jQuery(this).find('img:last-child').hide();
			console.log(jQuery(this).parent());
			jQuery(this).parent().mouseenter(handlerIn).mouseleave(handlerOut);
		
		});
		
	}
	
	

});*/
