
jQuery.fn.initSpoilers=function(props){props=jQuery.extend({revealedClass:'reveal',method:'hover'},props?props:{});function over(){jQuery(this).addClass(props.revealedClass);};function out(){jQuery(this).removeClass(props.revealedClass);};if('hover'===props.method){this.hover(over,out);}else if('hoverIntent'===props.method){var hoverIntentOps=('hoverIntent'in props)?props.hoverIntent:{};hoverIntentOps.over=over;hoverIntentOps.out=out;this.hoverIntent(hoverIntentOps);}else if('click'===props.method){this.toggle(over,out);}
return this;};
