/**
 * @author and
 */

Event.observe(window, 'load', function(){
	
	 $$('#pictos a.picto').each(function(a){
	 		
	 		a.observe('mouseover',function(e){
				
				$('kitchenpopup_' + a.id).style.top = (Event.pointerY(e) - $('kitchenpopup_' + a.id).getHeight() - 10 ) + "px";
				$('kitchenpopup_' + a.id).style.left = (Event.pointerX(e) - $('kitchenpopup_' + a.id).getWidth() / 2) + "px";
				$('kitchenpopup_' + a.id).style.display = 'block';
			});
			a.observe('mouseout',function(e){
				$('kitchenpopup_' + a.id).style.display = 'none';
			});
	 });
});
