/*
 * uiLock 1.0 - UI locker plugin for jQuery
 *
 * Copyright (c) 2009 jQuery Howto
 *
 * Licensed under the GPL license:
 *   http://www.gnu.org/licenses/gpl.html
 *
 * URL:
 *   http://jquery-howto.blogspot.com
 *
 * Author URL:
 *   http://me.boo.uz
 *
 */
(function($) {
	$.extend({ 
		uiLock: function(content){
			if(content == 'undefined') content = '';
			$('<div></div>').attr('id', 'uiLockId').css({
				'height': ($(document).height()+40)+'px'
			}).html(content).appendTo('body');
			/*$('<div></div>').attr('id', 'loading_area').css({
				'top': ($(document).height()-500)+'px',
				'left': (($(document).width()/2)-100)+'px'
			}).html('Please Wait ...').appendTo('body');*/
		},
		uiUnlock: function(){
			$('#uiLockId').remove();
		}
	});
})(jQuery);


function show_overlay() {
    $('#overlay').show();
}

function hide_overlay() {
    $('#overlay').hide();
}

