jQuery.fn.repeatedclick=function(d,b){
	var e={duration:350,speed:0.85,min:50};
	var c=jQuery.extend(e,b);
	
	if(typeof jQuery.repeatedEvents==="undefined"){
		jQuery.repeatedEvents=[]
	}
	
	if(typeof jQuery.repeatedElements==="undefined"){
		jQuery.repeatedElements=[]
	}
		
	jQuery.repeatedEvents.push(d);
	jQuery.repeatedElements.push(this);
		
	var a=jQuery.repeatedEvents.length-1;
		
	return this.each(function(){
		repeatedEvent=function(g,h){
			jQuery.repeatedElements[g].each(jQuery.repeatedEvents[g]);
			repeatedEventTimer=setTimeout("repeatedEvent("+g+", "+(h>c.min?h*c.speed:h)+")",h)
		};
			
		jQuery(this).mousedown(function(){
			jQuery.repeatedEventDuration=c.duration;repeatedEvent(a,c.duration)
		}
	);
			
	var f=function(){
		if(typeof repeatedEventTimer!=="undefined"){
			clearInterval(repeatedEventTimer)
		}
	};
			
	jQuery(this).mouseout(f);jQuery(this).mouseup(f)})
};