/*
* sPreLoader - jQuery plugin
* Name: sPreLoader.js
* Author: Siful Islam - http://www.getsiful.com
* Version: 1.0
*/
!function(e){var r=new Array,n=new Array,t=function(){},a=0,i={preMainSection:"#tx-main-preloader",prePerText:".tx-preloader-percentage-text",preBar:".tx-preloader-bar",showPercentage:!0,debugMode:0,splashFunction:function(){}},o=function(r){var t=new Image;e(t).load(function(){c()}).error(function(){n.push(e(this).attr("src")),c()}).attr("src",r)},c=function(){a++;var n=Math.round(a/r.length*100);if(e(jBar).stop().animate({width:n+"%"},500,"linear"),i.showPercentage&&e(jPer).text(n),a>=r.length){if(a=r.length,i.debugMode)u();f()}},f=function(){e(jBar).stop().animate({width:"100%"},500,"linear",function(){e(jOverlay).fadeOut(800,function(){t()})})},u=function(){if(n.length>0){n.length+" image files cound not be found. \n\r","Please check your image paths and filenames:\n\r";for(var e=0;e