// JavaScript Document

window.addEvent('domready', function(){
	
	$$('a.delete-confirm').addEvent('click', function(e){
	
		if(!confirm('Are you sure?')){

			e.stop();
		
		}
		
		
													  
	});
	
	$$('div.make-me-title').each(function(item, index){
		
		var slider = new Fx.Slide(item);
		
		slider.hide();
		
	});
	
	$$('div.make-me-item').each(function(item, index){
		
		var text = item.getElement('div.make-me-title');				
		var slider = new Fx.Slide(text);
		
		var autoClose = function() { slider.slideOut(); };
		
		var myTimer = '';
	
		item.getElements('a.make-me-button').addEvents({
			
			'mouseover': function(){
		
				slider.slideIn();
				
				var myTimer = autoClose.delay(5000);
				
			},
			'mouseout' : function() {
				
				myTimer = $clear(myTimer);
				slider.slideOut();	
			}
			
		});
	
	});

})