var Overlay={isShown:!1,create:function(a,b){Overlay.isShown||(Overlay.isShown=!0,$("body").append('<div class="Overlay"></div>'),a&&($("div.Overlay").append('<div class="Loader ui-loader ui-corner-all ui-body-d ui-loader-verbose"><img src="Images/jquery.mobile/ajax-loader.gif" /><h1></h1></div>'),$("div.Loader h1").text(b)))},createChangePage:function(a,b){Overlay.isShown||(Overlay.isShown=!0,$("body").append('<div class="OverlayChangePage ui-body-c"></div>'),a&&($("div.OverlayChangePage").append('<div class="Loader ui-loader ui-corner-all ui-body-d ui-loader-verbose"><img src="Images/jquery.mobile/ajax-loader.gif" /><h1></h1></div>'),
$("div.Loader h1").text(b)))},hideLoader:function(){$("div.Loader").remove()},showLoader:function(a){$("div.Overlay").append('<div class="Loader ui-loader ui-corner-all ui-body-d ui-loader-verbose"><img src="Images/jquery.mobile/ajax-loader.gif" /><h1></h1></div>');$("div.Loader h1").text(a)},destroy:function(){Overlay.isShown=!1;$("div.Overlay").remove()},destroyChangePage:function(){Overlay.isShown=!1;$("div.OverlayChangePage").remove()},changeLoader:function(a){Log(a);$("div.Loader h1").text(a)},
showTextOnlyLoader:function(a){$("div.Overlay").append('<div class="Loader ui-loader ui-corner-all ui-body-d ui-loader-verbose"><h1></h1></div>');$("div.Loader h1").text(a)},ClickToClose:function(a,b){b?($("body").append('<div class="TransparencyOverlay"></div>'),$("div.TransparencyOverlay").click(function(){$(a).popup("close");$("div.TransparencyOverlay").remove()})):$("div.Overlay").click(function(){$(a).popup("close")})}};
