/**
 * JQLoader
 *
 * Jquery plugin to show a loading bar, or full screen loading
 *
 * @author Gemblue
 * @update Maian Media
 * 
 */
!function(t){t.fn.JQLoader=function(o){var i=t.extend({theme:"bottom",mask:!0,background:"#00788E",color:"#fff",action:"open"},o);if(t(".loading").remove(),"standard"==i.theme){if("close"==i.action)return t(".loading_box").hide(),t(".loading_mask").hide(),!1;1==i.mask&&(o=t('<div class="loading_mask loading"></div>').css({"background-color":i.background,opacity:.7,width:this.width(),height:this.height(),position:"absolute",top:"0px",left:"0px",overflow:"hidden","z-index":88888}),this.append(o),t(".loading_mask").fadeIn(500)),this.append("<div class='loading_box loading'>&nbsp;</div>"),t(".loading_box").css({position:"absolute",top:this.height()/2,left:this.width()/2-50,cursor:"pointer",overflow:"hidden","z-index":99999,width:100,color:i.color}),t(".loading_box").show()}else{if("bottom"==i.theme)return"close"==i.action?(t(".loading-bottom").animate({opacity:0},{duration:500,complete:function(){}}),setTimeout(function(){t(".loading-bottom").animate({left:-window.innerWidth},{duration:100,easing:"linear",complete:function(){t(".loading-text-img").hide()}})},500),!0):(lood_div="<div class='loading-bottom loading'><div class='loading-text-img loading'>&nbsp;</div></div>",t("body").append(lood_div),t(".loading-bottom").css("background",i.background),t(".loading-bottom").css("opacity","0.8"),t(".loading-bottom").animate({left:0},{duration:1e3,easing:"linear",complete:function(){t(".loading-text-img").fadeIn("slow")}}),!1);alert('Theme not found or defined. Value should be "bottom" or "standard" only.')}}}(jQuery);
