!function(h){h.jqx.jqxWidget("jqxLoader","",{}),h.extend(h.jqx._jqxLoader.prototype,{defineInstance:function(){var t={width:200,height:150,text:"Loading...",html:null,textPosition:"bottom",imagePosition:"center",isModal:!1,autoOpen:!1,rtl:!1,events:["create"]};return this===h.jqx._jqxLoader.prototype||h.extend(!0,this,t),t},createInstance:function(t){this._render(!0),this._raiseEvent("0")},render:function(){this._render()},open:function(t,e){var o=this;null!==this.width&&-1!==this.width.toString().indexOf("%")&&o.host.css("width",this.width),null!==this.height&&-1!==this.height.toString().indexOf("%")&&o.host.css("height",this.height),o.host.show(),o.host.css("left",-o.host.width()/2),o.host.css("top",-o.host.height()/2),t&&e&&(o.host.css("left",t),o.host.css("top",e)),o.isModal&&o._modal.show()},close:function(){var t=this;t.host.hide(),t.isModal&&t._modal.hide()},_checkBrowser:function(){var t=this;"msie"===h.jqx.browser.browser&&("7.0"===h.jqx.browser.version?(!1===t.isModal&&t.host.addClass(t.toThemeProperty("jqx-loader-ie-transparency")),t.host.css("top",Math.max(0,(h(window).height()-h(t.host).outerHeight())/2+h(window).scrollTop())+"px"),t.host.css("left",Math.max(0,(h(window).width()-h(t.host).outerWidth())/2+h(window).scrollLeft())+"px"),h(window).resize(function(){t.host.css("top",Math.max(0,(h(window).height()-h(t.host).outerHeight())/2+h(window).scrollTop())+"px"),t.host.css("left",Math.max(0,(h(window).width()-h(t.host).outerWidth())/2+h(window).scrollLeft())+"px")}),this.host.css({"margin-top":"0","margin-left":"0"})):"8.0"===h.jqx.browser.version&&!1===t.isModal&&t.host.addClass(t.toThemeProperty("jqx-loader-ie-transparency")))},_textPos:function(){var t=this;this._text=t.host.children("div:eq(1)"),this._image&&this._image.css("background-position-y",t.imagePosition),"top"===t.textPosition?(this._text.addClass(t.toThemeProperty("jqx-loader-text-top")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-bottom")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-left")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-right"))):"bottom"===t.textPosition?(this._text.addClass(t.toThemeProperty("jqx-loader-text-bottom")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-top")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-left")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-right"))):"left"===t.textPosition?(this._text.addClass(t.toThemeProperty("jqx-loader-text-left")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-right")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-top")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-bottom"))):"right"===t.textPosition&&(this._text.addClass(t.toThemeProperty("jqx-loader-text-right")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-left")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-top")),this._text.removeClass(t.toThemeProperty("jqx-loader-text-bottom")))},refresh:function(t){!0!==t&&this._render(!1)},destroy:function(){this._removeHandlers(),this.host.remove()},propertyChangedHandler:function(t,e,o,s){if(s!==o)switch(e){case"width":t.host.width(s);break;case"height":t.host.height(s);break;case"text":t._text.text(s);break;case"html":t.host.html(s);break;case"textPosition":t._textPos(s);break;case"rtl":!0===s?t._text.addClass(t.toThemeProperty("jqx-loader-rtl")):t._text.removeClass(t.toThemeProperty("jqx-loader-rtl"))}},_raiseEvent:function(t,e){var o=this,t=o.events[t],s=new h.Event(t);s.owner=o,s.args=e;try{var r=o.host.trigger(s)}catch(t){}return r},_render:function(t){var e=this;e.host.width(e.width),e.host.height(e.height),!1===e.autoOpen&&e.host.hide(),t&&(null===e.html?(e.host.append('