(function($) {
	
	$.fn.init_plugins = function(){
		return this.each(function() {
			if( (' ' + this.className + ' ').indexOf(' plugins__init ') > -1 ) {
				return;
			}
			$(this).addClass('plugins__init').find('.g-js').each(function(){
				var options = this.onmouseup instanceof Function ? this.onmouseup() : {};
				this.onmouseup = null;
				this.removeAttribute('onmouseup');
				$(this).removeClass('g-js')[ this.getAttribute('rel') ](options);
					
			});
		});
	};
	
})(jQuery);
