function SmartUnLoading(){$(".divMessageBox").fadeOut(300,function(){$(this).remove()}),$(".LoadingBoxContainer").fadeOut(300,function(){$(this).remove()})}jQuery(document).ready(function(){$("body").append("
"),$("body").append("
")});var ExistMsg=0,SmartMSGboxCount=0,PrevTop=0;$.SmartMessageBox=function(o,t){var e;o=$.extend({title:"",content:"",NormalButton:void 0,ActiveButton:void 0,buttons:void 0,input:void 0,inputValue:void 0,placeholder:"",options:void 0},o);if(1,0==isIE8orlower()&&$.sound_on){var i=document.createElement("audio");i.setAttribute("src",$.sound_path+"messagebox.mp3"),i.addEventListener("load",function(){i.play()},!0),i.pause(),i.play()}SmartMSGboxCount+=1,0==ExistMsg&&(ExistMsg=1,"
",$("body").append("
"),1==isIE8orlower()&&$("#MsgBoxBack").addClass("MessageIE"));var s="",a=0;if(null!=o.input)switch(a=1,o.input=o.input.toLowerCase(),o.input){case"text":o.inputValue="string"===$.type(o.inputValue)?o.inputValue.replace(/'/g,"'"):o.inputValue,s="

";break;case"password":s="

";break;case"select":if(null==o.options)alert("For this type of input, the options parameter is required.");else{s=""}break;default:alert("That type of input is not handled yet")}e="
",e+="
",e+=""+o.title+"",e+="

"+o.content+"

",e+=s,e+="
",null==o.buttons&&(o.buttons="[Accept]"),o.buttons=$.trim(o.buttons),o.buttons=o.buttons.split("");var l="",r=0;null==o.NormalButton&&(o.NormalButton="#232323"),null==o.ActiveButton&&(o.ActiveButton="#ed145b");for(n=0;n<=o.buttons.length-1;n++)"["==o.buttons[n]?l="":"]"==o.buttons[n]?e+=l="":l+=o.buttons[n];e+="
",e+="
",e+="
",SmartMSGboxCount>1&&($(".MessageBoxContainer").hide(),$(".MessageBoxContainer").css("z-index",99999)),$(".divMessageBox").append(e),1==a&&$("#txt"+SmartMSGboxCount).focus(),$(".botTempo").hover(function(){$(this).attr("id")},function(){$(this).attr("id")}),$(".botTempo").click(function(){var o=$(this).attr("id"),e=o.substr(o.indexOf("-")+1),i=$.trim($(this).text());if(1==a){if("function"==typeof t){var s=e.replace("Msg",""),n=$("#txt"+s).val();t&&t(i,n)}}else"function"==typeof t&&t&&t(i);$("#"+e).addClass("animated fadeOut fast"),0==(SmartMSGboxCount-=1)&&$("#MsgBoxBack").removeClass("fadeIn").addClass("fadeOut").delay(300).queue(function(){ExistMsg=0,$(this).remove()})})};var BigBoxes=0;$.bigBox=function(o,t){var e;if((o=$.extend({title:"",content:"",icon:void 0,number:void 0,color:void 0,sound:$.sound_on,sound_file:"bigbox",timeout:void 0,colortime:1500,colors:void 0},o)).sound&&0==isIE8orlower()){var i=document.createElement("audio");navigator.userAgent.match("Firefox/")?i.setAttribute("src",$.sound_path+o.sound_file+".ogg"):i.setAttribute("src",$.sound_path+o.sound_file+".mp3"),i.addEventListener("load",function(){i.play()},!0),i.pause(),i.play()}e="
",e+=""+o.title+"",e+="

"+o.content+"

",e+="
",null==o.icon&&(o.icon="fa fa-cloud"),e+="",e+="
",e+="
",null!=o.number&&(e+=o.number),e+="
",e+="
",$("#divbigBoxes").append(e),null==o.color&&(o.color="#004d60"),$("#bigBox"+BigBoxes).css("background-color",o.color),$("#divMiniIcons").append("
"),$("#miniIcon"+BigBoxes).bind("click",function(){var o=$(this).attr("id"),t=o.replace("miniIcon","bigBox"),e=o.replace("miniIcon","bigBoxColor");$(".cajita").each(function(o){var t=$(this).attr("id").replace("miniIcon","bigBox");$("#"+t).css("z-index",9998)}),$("#"+t).css("z-index",9999),$("#"+e).removeClass("animated fadeIn").delay(1).queue(function(){$(this).show(),$(this).addClass("animated fadeIn"),$(this).clearQueue()})});var s,a=$("#botClose"+BigBoxes),n=$("#bigBox"+BigBoxes),l=$("#miniIcon"+BigBoxes);if(null!=o.colors&&o.colors.length>0&&(a.attr("colorcount","0"),s=setInterval(function(){var t=a.attr("colorcount");a.animate({backgroundColor:o.colors[t].color}),n.animate({backgroundColor:o.colors[t].color}),l.animate({backgroundColor:o.colors[t].color}),t-1&&(o=t>=8?"You're using a recent copy of Windows Internet Explorer.":"You should upgrade your copy of Windows Internet Explorer."),alert(o)}function isIE8orlower(){var o="0",t=getInternetExplorerVersion();return t>-1&&(o=t>=9?0:1),o}$.smallBox=function(o,t){var e;if((o=$.extend({title:"",content:"",icon:void 0,iconSmall:void 0,sound:$.sound_on,sound_file:"smallbox",color:void 0,timeout:void 0,colortime:1500,colors:void 0},o)).sound&&0==isIE8orlower()){var i=document.createElement("audio");navigator.userAgent.match("Firefox/")?i.setAttribute("src",$.sound_path+o.sound_file+".ogg"):i.setAttribute("src",$.sound_path+o.sound_file+".mp3"),i.addEventListener("load",function(){i.play()},!0),i.pause(),i.play()}e="";var s="",a="smallbox"+(SmallBoxes+=1);(s=null==o.iconSmall?"
":"
",e=null==o.icon?"
"+o.title+"

"+o.content+"

"+s+"
":"
"+o.title+"

"+o.content+"

"+s+"
",1==SmallBoxes)?($("#divSmallBoxes").append(e),SmallBoxesAnchos=$("#smallbox"+SmallBoxes).height()+40):0==$(".SmallBox").length?($("#divSmallBoxes").append(e),SmallBoxesAnchos=$("#smallbox"+SmallBoxes).height()+40):($("#divSmallBoxes").append(e),$("#smallbox"+SmallBoxes).css("top",SmallBoxesAnchos),SmallBoxesAnchos=SmallBoxesAnchos+$("#smallbox"+SmallBoxes).height()+20,$(".SmallBox").each(function(o){0==o?($(this).css("top",20),heightPrev=$(this).height()+40,SmallBoxesAnchos=$(this).height()+40):($(this).css("top",heightPrev),heightPrev=heightPrev+$(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$(this).height()+20)}));var n,l=$("#smallbox"+SmallBoxes);null==o.color?l.css("background-color","#004d60"):l.css("background-color",o.color),null!=o.colors&&o.colors.length>0&&(l.attr("colorcount","0"),n=setInterval(function(){var t=l.attr("colorcount");l.animate({backgroundColor:o.colors[t].color}),t