﻿(function($){

$.fn.simpleAlerter = function(alertDuration){




var element = this;

			if($(element).length)
			{
			$(element).fadeIn("fast");	
				
				
				if(alertDuration){


var alerttimer = window.setTimeout(function () {
					$(element).trigger('click');
				}, alertDuration);
}
				
				
				
				
		
				
				$(element).click(function () {
					window.clearTimeout(alerttimer);
					$(element).fadeOut("slow");					
				});
			}

};


})(jQuery);








/*
(function($) {
  $.fn.toggler = function(options) {

    var opts = $.extend({}, $.fn.toggler.defaults, options);

    return this.each(function() {
      this.togglee = $($(this).attr('href')).hide();
      $(this).click(onClick);
    });

    function onClick() {
      this.togglee[opts.animate ? 'slideToggle' : 'toggle']();
      return false;
    }
  }

  $.fn.toggler.defaults = {animate: false}
})("hilite">jQuery);
*/