function isMobile(){let n=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor||window.opera),n}function SmartUnLoading(){$(".divMessageBox").fadeOut(300,function(){$(this).remove()});$(".LoadingBoxContainer").fadeOut(300,function(){$(this).remove()})}function getInternetExplorerVersion(){var n=-1,t,i;return navigator.appName=="Microsoft Internet Explorer"&&(t=navigator.userAgent,i=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),i.exec(t)!=null&&(n=parseFloat(RegExp.$1))),n}function checkVersion(){var n="You're not using Windows Internet Explorer.",t=getInternetExplorerVersion();t>-1&&(n=t>=8?"You're using a recent copy of Windows Internet Explorer.":"You should upgrade your copy of Windows Internet Explorer.");alert(n)}function isIE8orlower(){var n="0",t=getInternetExplorerVersion();return t>-1&&(n=t>=9?0:1),n}var BigBoxes;$.sound_path="/content/sound/";$.sound_on=!0;jQuery(document).ready(function(){$("body").append("<div id='divSmallBoxes'><\/div>");$("body").append("<div id='divMiniIcons'><\/div><div id='divbigBoxes'><\/div>")});var ExistMsg=0,SmartMSGboxCount=0,PrevTop=0;$.SmartMessageBox=function(n,t){var h,r,c,e,f,s,u,o,i;if(n=$.extend({title:"",content:"",NormalButton:undefined,ActiveButton:undefined,buttons:undefined,input:undefined,inputValue:undefined,maxLength:500,placeholder:"",sound:$.sound_on,options:undefined,isInputRequired:undefined},n),c=0,n.sound!==!0||typeof isMobile!="function"||isMobile()||isIE8orlower()==0&&(e=document.createElement("audio"),e.setAttribute("src",$.sound_path+"messagebox.mp3"),e.addEventListener("load",function(){e.play()},!0),e.pause(),e.play()),SmartMSGboxCount=SmartMSGboxCount+1,ExistMsg==0&&(ExistMsg=1,h="<div class='divMessageBox animated fadeIn fast' id='MsgBoxBack'><\/div>",$("body").append(h),isIE8orlower()==1&&$("#MsgBoxBack").addClass("MessageIE")),f="",s=0,n.input!=undefined){s=1;n.input=n.input.toLowerCase();switch(n.input){case"text":n.inputValue=$.type(n.inputValue)==="string"?n.inputValue.replace(/'/g,"&#x27;"):n.inputValue;f="<input class='form-control' maxlength='"+n.maxLength+"' type='"+n.input+"' id='txt"+SmartMSGboxCount+"' placeholder='"+n.placeholder+"' value='"+n.inputValue+"'/><br/><br/>";break;case"password":f="<input class='form-control' type='"+n.input+"' id='txt"+SmartMSGboxCount+"' placeholder='"+n.placeholder+"'/><br/><br/>";break;case"select":if(n.options==undefined)alert("For this type of input, the options parameter is required.");else{for(f="<select class='form-control' id='txt"+SmartMSGboxCount+"'>",i=0;i<=n.options.length-1;i++)n.options[i]=="["?u="":n.options[i]=="]"?(o=o+1,u="<option>"+u+"<\/option>",f+=u):u+=n.options[i];f+="<\/select>"}break;default:alert("That type of input is not handled yet")}}for(r="<div class='MessageBoxContainer animated fadeIn fast' id='Msg"+SmartMSGboxCount+"'>",r+="<div class='MessageBoxMiddle'>",r+="<span class='MsgTitle'>"+n.title+"<\/span class='MsgTitle'>",r+="<p class='pText'>"+n.content+"<\/p>",r+=f,r+="<div class='MessageBoxButtonSection'>",n.buttons==undefined&&(n.buttons="[Accept]"),n.buttons=$.trim(n.buttons),n.buttons=n.buttons.split(""),u="",o=0,n.NormalButton==undefined&&(n.NormalButton="#232323"),n.ActiveButton==undefined&&(n.ActiveButton="#ed145b"),i=0;i<=n.buttons.length-1;i++)n.buttons[i]=="["?u="":n.buttons[i]=="]"?(o=o+1,u="<button id='bot"+o+"-Msg"+SmartMSGboxCount+"' class='btn btn-default btn-sm botTempo'> "+u+"<\/button>",r+=u):u+=n.buttons[i];r+="<\/div>";r+="<\/div>";r+="<\/div>";SmartMSGboxCount>1&&($(".MessageBoxContainer").hide(),$(".MessageBoxContainer").css("z-index",99999));$(".divMessageBox").append(r);s==1&&$("#txt"+SmartMSGboxCount).focus();$(".botTempo").hover(function(){var n=$(this).attr("id")},function(){var n=$(this).attr("id")});$(".botTempo").click(function(i){var f=$(this).attr("id"),e=f.substr(f.indexOf("-")+1),u=$.trim($(this).text()),o,r,h;if(s==1){if(typeof t=="function"&&(o=e.replace("Msg",""),r=$("#txt"+o).val(),t&&(t(u,r,i),h=n.isInputRequired==!0,h&&(r==null||r=="")&&u=="Yes")))return}else typeof t=="function"&&t&&t(u);$("#"+e).addClass("animated fadeOut fast");SmartMSGboxCount=SmartMSGboxCount-1;SmartMSGboxCount==0&&$("#MsgBoxBack").removeClass("fadeIn").addClass("fadeOut").delay(300).queue(function(){ExistMsg=0;$(this).remove()})})};BigBoxes=0;$.bigBox=function(n,t){var i,r,f;n=$.extend({title:"",content:"",icon:undefined,number:undefined,color:undefined,sound:$.sound_on,timeout:undefined,colortime:1500,colors:undefined},n);n.sound!==!0||typeof isMobile!="function"||isMobile()||isIE8orlower()==0&&(r=document.createElement("audio"),navigator.userAgent.match("Firefox/")?r.setAttribute("src",$.sound_path+"bigbox.ogg"):r.setAttribute("src",$.sound_path+"bigbox.mp3"),r.addEventListener("load",function(){r.play()},!0),r.pause(),r.play());BigBoxes=BigBoxes+1;i="<div id='bigBox"+BigBoxes+"' class='bigBox animated fadeIn fast'><div id='bigBoxColor"+BigBoxes+"'><i class='botClose fa fa-times' id='botClose"+BigBoxes+"'><\/i>";i+="<span>"+n.title+"<\/span>";i+="<p>"+n.content+"<\/p>";i+="<div class='bigboxicon'>";n.icon==undefined&&(n.icon="fa fa-cloud");i+="<i class='"+n.icon+"'><\/i>";i+="<\/div>";i+="<div class='bigboxnumber'>";n.number!=undefined&&(i+=n.number);i+="<\/div><\/div>";i+="<\/div>";$("#divbigBoxes").append(i);n.color==undefined&&(n.color="#004d60");$("#bigBox"+BigBoxes).css("background-color",n.color);$("#divMiniIcons").append("<div id='miniIcon"+BigBoxes+"' class='cajita animated fadeIn' style='background-color: "+n.color+";'><i class='"+n.icon+"'><\/i><\/div>");$("#miniIcon"+BigBoxes).bind("click",function(){var n=$(this).attr("id"),t=n.replace("miniIcon","bigBox"),i=n.replace("miniIcon","bigBoxColor");$(".cajita").each(function(){var n=$(this).attr("id"),t=n.replace("miniIcon","bigBox");$("#"+t).css("z-index",9998)});$("#"+t).css("z-index",9999);$("#"+i).removeClass("animated fadeIn").delay(1).queue(function(){$(this).show();$(this).addClass("animated fadeIn");$(this).clearQueue()})});var u=$("#botClose"+BigBoxes),o=$("#bigBox"+BigBoxes),s=$("#miniIcon"+BigBoxes),e;n.colors!=undefined&&n.colors.length>0&&(u.attr("colorcount","0"),e=setInterval(function(){var t=u.attr("colorcount");u.animate({backgroundColor:n.colors[t].color});o.animate({backgroundColor:n.colors[t].color});s.animate({backgroundColor:n.colors[t].color});t<n.colors.length-1?u.attr("colorcount",t*1+1):u.attr("colorcount",0)},n.colortime));u.bind("click",function(){clearInterval(e);typeof t=="function"&&t&&t();var n=$(this).attr("id"),i=n.replace("botClose","bigBox"),r=n.replace("botClose","miniIcon");$("#"+i).removeClass("fadeIn fast");$("#"+i).addClass("fadeOut fast").delay(300).queue(function(){$(this).clearQueue();$(this).remove()});$("#"+r).removeClass("fadeIn fast");$("#"+r).addClass("fadeOut fast").delay(300).queue(function(){$(this).clearQueue();$(this).remove()})});n.timeout!=undefined&&(f=BigBoxes,setTimeout(function(){clearInterval(e);$("#bigBox"+f).removeClass("fadeIn fast");$("#bigBox"+f).addClass("fadeOut fast").delay(300).queue(function(){$(this).clearQueue();$(this).remove()});$("#miniIcon"+f).removeClass("fadeIn fast");$("#miniIcon"+f).addClass("fadeOut fast").delay(300).queue(function(){$(this).clearQueue();$(this).remove()})},n.timeout))};var SmallBoxes=0,SmallCount=0,SmallBoxesAnchos=0;$.smallBox=function(n,t){var f,r,e,u,s,i,o;n=$.extend({title:"",content:"",icon:undefined,iconSmall:undefined,sound:$.sound_on,color:undefined,timeout:undefined,colortime:1500,colors:undefined},n);n.sound!==!0||typeof isMobile!="function"||isMobile()||isIE8orlower()==0&&(r=document.createElement("audio"),navigator.userAgent.match("Firefox/")?r.setAttribute("src",$.sound_path+"smallbox.ogg"):r.setAttribute("src",$.sound_path+"smallbox.mp3"),r.addEventListener("load",function(){r.play()},!0),r.pause(),r.play());SmallBoxes=SmallBoxes+1;f="";e="";u="smallbox"+SmallBoxes;e=n.iconSmall==undefined?"<div class='miniIcono'><\/div>":"<div class='miniIcono'><i class='miniPic "+n.iconSmall+"'><\/i><\/div>";f=n.icon==undefined?"<div id='smallbox"+SmallBoxes+"' class='SmallBox animated fadeInRight fast'><div class='textoFull'><span>"+n.title+"<\/span><p>"+n.content+"<\/p><\/div>"+e+"<\/div>":"<div id='smallbox"+SmallBoxes+"' class='SmallBox animated fadeInRight fast'><div class='foto'><i class='"+n.icon+"'><\/i><\/div><div class='textoFoto'><span>"+n.title+"<\/span><p>"+n.content+"<\/p><\/div>"+e+"<\/div>";SmallBoxes==1?($("#divSmallBoxes").append(f),SmallBoxesAnchos=$("#smallbox"+SmallBoxes).height()+40):(s=$(".SmallBox").length,s==0?($("#divSmallBoxes").append(f),SmallBoxesAnchos=$("#smallbox"+SmallBoxes).height()+40):($("#divSmallBoxes").append(f),$("#smallbox"+SmallBoxes).css("top",SmallBoxesAnchos),SmallBoxesAnchos=SmallBoxesAnchos+$("#smallbox"+SmallBoxes).height()+20,$(".SmallBox").each(function(n){n==0?($(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)})));i=$("#smallbox"+SmallBoxes);n.color==undefined?i.css("background-color","#004d60"):i.css("background-color",n.color);n.colors!=undefined&&n.colors.length>0&&(i.attr("colorcount","0"),o=setInterval(function(){var t=i.attr("colorcount");i.animate({backgroundColor:n.colors[t].color});t<n.colors.length-1?i.attr("colorcount",t*1+1):i.attr("colorcount",0)},n.colortime));n.timeout!=undefined&&setTimeout(function(){clearInterval(o);var n=$(this).height()+20,i=u,r=$("#"+u).css("top");if($("#"+u+":hover").length!=0)$("#"+u).on("mouseleave",function(){SmallBoxesAnchos=SmallBoxesAnchos-n;$("#"+u).remove();typeof t=="function"&&t&&t();var i=0;$(".SmallBox").each(function(n){n==0?($(this).animate({top:20},300),i=$(this).height()+40,SmallBoxesAnchos=$(this).height()+40):($(this).animate({top:i},350),i=i+$(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$(this).height()+20)})});else clearInterval(o),SmallBoxesAnchos=SmallBoxesAnchos-n,typeof t=="function"&&t&&t(),$("#"+u).removeClass().addClass("SmallBox").animate({opacity:0},300,function(){$(this).remove();var n=0;$(".SmallBox").each(function(t){t==0?($(this).animate({top:20},300),n=$(this).height()+40,SmallBoxesAnchos=$(this).height()+40):($(this).animate({top:n}),n=n+$(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$(this).height()+20)})})},n.timeout);$("#smallbox"+SmallBoxes).bind("click",function(){clearInterval(o);typeof t=="function"&&t&&t();var n=$(this).height()+20,i=$(this).attr("id"),r=$(this).css("top");SmallBoxesAnchos=SmallBoxesAnchos-n;$(this).removeClass().addClass("SmallBox").animate({opacity:0},300,function(){$(this).remove();var n=0;$(".SmallBox").each(function(t){t==0?($(this).animate({top:20},300),n=$(this).height()+40,SmallBoxesAnchos=$(this).height()+40):($(this).animate({top:n},350),n=n+$(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$(this).height()+20)})})})},function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}})