// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

$(document).ready(function(){
		
	setTimeout(function(){
		$(".flash").fadeOut("slow", function () {
			$(".flash").remove();
		}); }, 3500);
	
	// Not working?	
    jQuery.fn.idleTimeoutForItem = function(time){
        var i = $(this);  
        i.queue(function(){  
            setTimeout(function(){  
                i.dequeue();  
            }, time);  
        });  
    };
		
	jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
		return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);  
	};

	$('.fade').live("click", function() {
		var link_id = $(this).attr('rel');
		$('#'+link_id).slideFadeToggle('slow');
		return false;
	});
		
});





