$(function(){
        
});


$.fn.addLoader = function(){
	var css = 'position:absolute;z-index:9999;top:0;left:0;height:'+($(this).outerHeight())+'px;width:'+$(this).outerWidth()+'px';
	$('<div class="loader-splash" style="'+css+'"></div>').appendTo($(this));
	$(this).addClass('loader').css('position','relative');
}

$.fn.removeLoader = function(){
	$(this).removeClass('loader').css('position','').find('.loader-splash').remove();
}


