(function($){ 
     $.fn.extend({ 		 
		delay: function(time,func){
			return this.each(function(){
				setTimeout(func,time);
			});
		}
    }); 

     $.fn.extend({ 
		wait: function(time, type) {
			time = time || 1000;
			type = type || "fx";
			return this.queue(type, function() {
				var self = this;
				setTimeout(function() {
					$(self).dequeue();
				}, time);
			});
		}
    }); 
})(jQuery); 
