/*! SmartAdmin - v1.5 - 2014-10-16 */function runAllForms(){$.fn.slider&&$(".slider").slider(),$.fn.select2&&$("select.select2").each(function(){var a=$(this),b=a.attr("data-select-width")||"100%";a.select2({"allowClear":!0,"width":b}),a=null}),$.fn.mask&&$("[data-mask]").each(function(){var a=$(this),b=a.attr("data-mask")||"error...",c=a.attr("data-mask-placeholder")||"X";a.mask(b,{"placeholder":c}),a=null}),$.fn.autocomplete&&$("[data-autocomplete]").each(function(){var a=$(this),b=a.data("autocomplete")||["The","Quick","Brown","Fox","Jumps","Over","Three","Lazy","Dogs"];a.autocomplete({"source":b}),a=null}),$.fn.datepicker&&$(".datepicker").each(function(){var a=$(this),b=a.attr("data-dateformat")||"dd.mm.yy";a.datepicker({"dateFormat":b,"prevText":'',"nextText":''}),a=null}),$("button[data-loading-text]").on("click",function(){var a=$(this);a.button("loading"),setTimeout(function(){a.button("reset"),a=null},3e3)})}function runAllCharts(){if($.fn.sparkline){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb;$(".sparkline:not(:has(>canvas))").each(function(){var tb=$(this),ub=tb.data("sparkline-type")||"bar";if("bar"==ub&&(a=tb.data("sparkline-bar-color")||tb.css("color")||"#0000f0",b=tb.data("sparkline-height")||"26px",c=tb.data("sparkline-barwidth")||5,d=tb.data("sparkline-barspacing")||2,e=tb.data("sparkline-negbar-color")||"#A90329",f=tb.data("sparkline-barstacked-color")||["#A90329","#0099c6","#98AA56","#da532c","#4490B1","#6E9461","#990099","#B4CAD3"],tb.sparkline("html",{"barColor":a,"type":ub,"height":b,"barWidth":c,"barSpacing":d,"stackedBarColor":f,"negBarColor":e,"zeroAxis":"false"}),tb=null),"line"==ub&&(b=tb.data("sparkline-height")||"20px",ab=tb.data("sparkline-width")||"90px",g=tb.data("sparkline-line-color")||tb.css("color")||"#0000f0",h=tb.data("sparkline-line-width")||1,i=tb.data("fill-color")||"#c0d0f0",j=tb.data("sparkline-spot-color")||"#f08000",k=tb.data("sparkline-minspot-color")||"#ed1c24",l=tb.data("sparkline-maxspot-color")||"#f08000",m=tb.data("sparkline-highlightspot-color")||"#50f050",n=tb.data("sparkline-highlightline-color")||"f02020",o=tb.data("sparkline-spotradius")||1.5,thisChartMinYRange=tb.data("sparkline-min-y")||"undefined",thisChartMaxYRange=tb.data("sparkline-max-y")||"undefined",thisChartMinXRange=tb.data("sparkline-min-x")||"undefined",thisChartMaxXRange=tb.data("sparkline-max-x")||"undefined",thisMinNormValue=tb.data("min-val")||"undefined",thisMaxNormValue=tb.data("max-val")||"undefined",thisNormColor=tb.data("norm-color")||"#c0c0c0",thisDrawNormalOnTop=tb.data("draw-normal")||!1,tb.sparkline("html",{"type":"line","width":ab,"height":b,"lineWidth":h,"lineColor":g,"fillColor":i,"spotColor":j,"minSpotColor":k,"maxSpotColor":l,"highlightSpotColor":m,"highlightLineColor":n,"spotRadius":o,"chartRangeMin":thisChartMinYRange,"chartRangeMax":thisChartMaxYRange,"chartRangeMinX":thisChartMinXRange,"chartRangeMaxX":thisChartMaxXRange,"normalRangeMin":thisMinNormValue,"normalRangeMax":thisMaxNormValue,"normalRangeColor":thisNormColor,"drawNormalOnTop":thisDrawNormalOnTop}),tb=null),"pie"==ub&&(p=tb.data("sparkline-piecolor")||["#B4CAD3","#4490B1","#98AA56","#da532c","#6E9461","#0099c6","#990099","#717D8A"],q=tb.data("sparkline-piesize")||90,r=tb.data("border-color")||"#45494C",s=tb.data("sparkline-offset")||0,tb.sparkline("html",{"type":"pie","width":q,"height":q,"tooltipFormat":' ({{percent.1}}%)',"sliceColors":p,"borderWidth":1,"offset":s,"borderColor":r}),tb=null),"box"==ub&&(t=tb.data("sparkline-width")||"auto",u=tb.data("sparkline-height")||"auto",v=tb.data("sparkline-boxraw")||!1,w=tb.data("sparkline-targetval")||"undefined",x=tb.data("sparkline-min")||"undefined",y=tb.data("sparkline-max")||"undefined",z=tb.data("sparkline-showoutlier")||!0,A=tb.data("sparkline-outlier-iqr")||1.5,B=tb.data("sparkline-spotradius")||1.5,C=tb.css("color")||"#000000",D=tb.data("fill-color")||"#c0d0f0",E=tb.data("sparkline-whis-color")||"#000000",F=tb.data("sparkline-outline-color")||"#303030",G=tb.data("sparkline-outlinefill-color")||"#f0f0f0",H=tb.data("sparkline-outlinemedian-color")||"#f00000",I=tb.data("sparkline-outlinetarget-color")||"#40a020",tb.sparkline("html",{"type":"box","width":t,"height":u,"raw":v,"target":w,"minValue":x,"maxValue":y,"showOutliers":z,"outlierIQR":A,"spotRadius":B,"boxLineColor":C,"boxFillColor":D,"whiskerColor":E,"outlierLineColor":F,"outlierFillColor":G,"medianColor":H,"targetColor":I}),tb=null),"bullet"==ub){var vb=tb.data("sparkline-height")||"auto";J=tb.data("sparkline-width")||2,K=tb.data("sparkline-bullet-color")||"#ed1c24",L=tb.data("sparkline-performance-color")||"#3030f0",M=tb.data("sparkline-bulletrange-color")||["#d3dafe","#a8b6ff","#7f94ff"],tb.sparkline("html",{"type":"bullet","height":vb,"targetWidth":J,"targetColor":K,"performanceColor":L,"rangeColors":M}),tb=null}"discrete"==ub&&(N=tb.data("sparkline-height")||26,O=tb.data("sparkline-width")||50,P=tb.css("color"),Q=tb.data("sparkline-line-height")||5,R=tb.data("sparkline-threshold")||"undefined",S=tb.data("sparkline-threshold-color")||"#ed1c24",tb.sparkline("html",{"type":"discrete","width":O,"height":N,"lineColor":P,"lineHeight":Q,"thresholdValue":R,"thresholdColor":S}),tb=null),"tristate"==ub&&(T=tb.data("sparkline-height")||26,U=tb.data("sparkline-posbar-color")||"#60f060",V=tb.data("sparkline-negbar-color")||"#f04040",W=tb.data("sparkline-zerobar-color")||"#909090",X=tb.data("sparkline-barwidth")||5,Y=tb.data("sparkline-barspacing")||2,Z=tb.data("sparkline-zeroaxis")||!1,tb.sparkline("html",{"type":"tristate","height":T,"posBarColor":_,"negBarColor":V,"zeroBarColor":W,"barWidth":X,"barSpacing":Y,"zeroAxis":Z}),tb=null),"compositebar"==ub&&(b=tb.data("sparkline-height")||"20px",ab=tb.data("sparkline-width")||"100%",c=tb.data("sparkline-barwidth")||3,h=tb.data("sparkline-line-width")||1,g=tb.data("data-sparkline-linecolor")||"#ed1c24",_=tb.data("data-sparkline-barcolor")||"#333333",tb.sparkline(tb.data("sparkline-bar-val"),{"type":"bar","width":ab,"height":b,"barColor":_,"barWidth":c}),tb.sparkline(tb.data("sparkline-line-val"),{"width":ab,"height":b,"lineColor":g,"lineWidth":h,"composite":!0,"fillColor":!1}),tb=null),"compositeline"==ub&&(b=tb.data("sparkline-height")||"20px",ab=tb.data("sparkline-width")||"90px",bb=tb.data("sparkline-bar-val"),cb=tb.data("sparkline-bar-val-spots-top")||null,db=tb.data("sparkline-bar-val-spots-bottom")||null,eb=tb.data("sparkline-line-width-top")||1,fb=tb.data("sparkline-line-width-bottom")||1,gb=tb.data("sparkline-color-top")||"#333333",hb=tb.data("sparkline-color-bottom")||"#ed1c24",ib=tb.data("sparkline-spotradius-top")||1.5,jb=tb.data("sparkline-spotradius-bottom")||ib,j=tb.data("sparkline-spot-color")||"#f08000",kb=tb.data("sparkline-minspot-color-top")||"#ed1c24",lb=tb.data("sparkline-maxspot-color-top")||"#f08000",mb=tb.data("sparkline-minspot-color-bottom")||kb,nb=tb.data("sparkline-maxspot-color-bottom")||lb,ob=tb.data("sparkline-highlightspot-color-top")||"#50f050",pb=tb.data("sparkline-highlightline-color-top")||"#f02020",qb=tb.data("sparkline-highlightspot-color-bottom")||ob,thisHighlightLineColor2=tb.data("sparkline-highlightline-color-bottom")||pb,rb=tb.data("sparkline-fillcolor-top")||"transparent",sb=tb.data("sparkline-fillcolor-bottom")||"transparent",tb.sparkline(bb,{"type":"line","spotRadius":ib,"spotColor":j,"minSpotColor":kb,"maxSpotColor":lb,"highlightSpotColor":ob,"highlightLineColor":pb,"valueSpots":cb,"lineWidth":eb,"width":ab,"height":b,"lineColor":gb,"fillColor":rb}),tb.sparkline(tb.data("sparkline-line-val"),{"type":"line","spotRadius":jb,"spotColor":j,"minSpotColor":mb,"maxSpotColor":nb,"highlightSpotColor":qb,"highlightLineColor":thisHighlightLineColor2,"valueSpots":db,"lineWidth":fb,"width":ab,"height":b,"lineColor":hb,"composite":!0,"fillColor":sb}),tb=null)})}$.fn.easyPieChart&&$(".easy-pie-chart").each(function(){var a=$(this),b=a.css("color")||a.data("pie-color"),c=a.data("pie-track-color")||"rgba(0,0,0,0.04)",d=parseInt(a.data("pie-size"))||25;a.easyPieChart({"barColor":b,"trackColor":c,"scaleColor":!1,"lineCap":"butt","lineWidth":parseInt(d/8.5),"animate":1500,"rotate":-90,"size":d,"onStep":function(a,b,c){$(this.el).find(".percent").text(Math.round(c))}}),a=null})}function setup_widgets_desktop(){$.fn.jarvisWidgets&&enableJarvisWidgets&&$("#widget-grid").jarvisWidgets({"grid":"article","widgets":".jarviswidget","localStorage":localStorageJarvisWidgets,"deleteSettingsKey":"#deletesettingskey-options","settingsKeyLabel":"Reset settings?","deletePositionKey":"#deletepositionkey-options","positionKeyLabel":"Reset position?","sortable":sortableJarvisWidgets,"buttonsHidden":!1,"toggleButton":!0,"toggleClass":"fa fa-minus | fa fa-plus","toggleSpeed":200,"onToggle":function(){},"deleteButton":!0,"deleteMsg":"Warning: This action cannot be undone!","deleteClass":"fa fa-times","deleteSpeed":200,"onDelete":function(){},"editButton":!0,"editPlaceholder":".jarviswidget-editbox","editClass":"fa fa-cog | fa fa-save","editSpeed":200,"onEdit":function(){},"colorButton":!0,"fullscreenButton":!0,"fullscreenClass":"fa fa-expand | fa fa-compress","fullscreenDiff":3,"onFullscreen":function(){},"customButton":!1,"customClass":"folder-10 | next-10","customStart":function(){alert("Hello you, this is a custom button...")},"customEnd":function(){alert("bye, till next time...")},"buttonOrder":"%refresh% %custom% %edit% %toggle% %fullscreen% %delete%","opacity":1,"dragHandle":"> header","placeholderClass":"jarviswidget-placeholder","indicator":!0,"indicatorTime":600,"ajax":!0,"timestampPlaceholder":".jarviswidget-timestamp","timestampFormat":"Last update: %m%/%d%/%y% %h%:%i%:%s%","refreshButton":!0,"refreshButtonClass":"fa fa-refresh","labelError":"Sorry but there was a error:","labelUpdated":"Last Update:","labelRefresh":"Refresh","labelDelete":"Delete widget:","afterLoad":function(){},"rtl":!1,"onChange":function(){},"onSave":function(){},"ajaxnav":$.navAsAjax})}function setup_widgets_mobile(){enableMobileWidgets&&enableJarvisWidgets&&setup_widgets_desktop()}function loadScript(a,b){if(jsArray[a])b&&(debugState&&root.root.console.log("This script was already loaded %c: "+a,debugStyle_warning),b());else{jsArray[a]=!0;var c=document.getElementsByTagName("body")[0],d=document.createElement("script");d.type="text/javascript",d.src=a,d.onload=b,c.appendChild(d)}}function checkURL(){var a=location.href.split("#").splice(1).join("#");if(!a)try{var b=window.document.URL;b&&b.indexOf("#",0)>0&&b.indexOf("#",0) ul > li:first-child > a[href!="#"]');window.location.hash=e.attr("href"),e=null}}function loadURL(a,b){debugState&&root.root.console.log("Loading URL: %c"+a,debugStyle),$.ajax({"type":"GET","url":a,"dataType":"html","cache":!0,"beforeSend":function(){if($.navAsAjax&&$(".google_maps")[0]&&b[0]==$("#content")[0]){var a=$(".google_maps"),c=0;a.each(function(){c++;var b=document.getElementById(this.id);c==a.length+1||(b&&b.parentNode.removeChild(b),debugState&&root.console.log("Destroying maps.........%c"+this.id,debugStyle_warning))}),debugState&&root.console.log("\u2714 Google map instances nuked!!!")}if($.navAsAjax&&$(".dataTables_wrapper")[0]&&b[0]==$("#content")[0]){var d=$.fn.dataTable.fnTables(!0);$(d).each(function(){0!=$(this).find(".details-control").length?($(this).find("*").addBack().off().remove(),$(this).dataTable().fnDestroy()):$(this).dataTable().fnDestroy()}),debugState&&root.console.log("\u2714 Datatable instances nuked!!!")}if($.navAsAjax&&$.intervalArr.length>0&&b[0]==$("#content")[0]&&enableJarvisWidgets){for(;$.intervalArr.length>0;)clearInterval($.intervalArr.pop());debugState&&root.console.log("\u2714 All JarvisWidget intervals cleared")}if($.navAsAjax&&b[0]==$("#content")[0]&&enableJarvisWidgets&&$("#widget-grid")[0]&&($("#widget-grid").jarvisWidgets("destroy"),debugState&&root.console.log("\u2714 JarvisWidgets destroyed")),$.navAsAjax&&b[0]==$("#content")[0]){if("function"==typeof pagedestroy)try{pagedestroy(),debugState&&root.console.log("\u2714 Pagedestroy()")}catch(e){pagedestroy=void 0,debugState&&root.console.log("! Pagedestroy() Catch Error")}$.fn.sparkline&&$("#content .sparkline")[0]&&($("#content .sparkline").sparkline("destroy"),debugState&&root.console.log("\u2714 Sparkline Charts destroyed!")),$.fn.easyPieChart&&$("#content .easy-pie-chart")[0]&&($("#content .easy-pie-chart").easyPieChart("destroy"),debugState&&root.console.log("\u2714 EasyPieChart Charts destroyed!")),$.fn.select2&&$("#content select.select2")[0]&&($("#content select.select2").select2("destroy"),debugState&&root.console.log("\u2714 Select2 destroyed!")),$.fn.mask&&$("#content [data-mask]")[0]&&($("#content [data-mask]").unmask(),debugState&&root.console.log("\u2714 Input Mask destroyed!")),$.fn.datepicker&&$("#content .datepicker")[0]&&($("#content .datepicker").off(),$("#content .datepicker").remove(),debugState&&root.console.log("\u2714 Datepicker destroyed!")),$.fn.slider&&$("#content .slider")[0]&&($("#content .slider").off(),$("#content .slider").remove(),debugState&&root.console.log("\u2714 Bootstrap Slider destroyed!"))}pagefunction=null,b.removeData().html(""),b.html('

Loading...

'),b[0]==$("#content")[0]&&($("body").find("> *").filter(":not("+ignore_key_elms+")").empty().remove(),drawBreadCrumb(),$("html").animate({"scrollTop":0},"fast"))},"success":function(a){b.css({"opacity":"0.0"}).html(a).delay(50).animate({"opacity":"1.0"},300),a=null,b=null},"error":function(c,d,e){b.html('

Error requesting '+a+": "+c.status+' '+e+"

")},"async":!0})}function drawBreadCrumb(a){var b=$("nav li.active > a"),c=b.length;bread_crumb.empty(),bread_crumb.append($("
  • Home
  • ")),b.each(function(){bread_crumb.append($("
  • ").html($.trim($(this).clone().children(".badge").remove().end().text()))),--c||(document.title=bread_crumb.find("li:last-child").text())}),void 0!=a&&$.each(a,function(a,b){bread_crumb.append($("
  • ").html(b)),document.title=bread_crumb.find("li:last-child").text()})}function pageSetUp(){"desktop"===thisDevice?($("[rel=tooltip], [data-rel=tooltip]").tooltip(),$("[rel=popover], [data-rel=popover]").popover(),$("[rel=popover-hover], [data-rel=popover-hover]").popover({"trigger":"hover"}),setup_widgets_desktop(),runAllCharts(),runAllForms()):($("[rel=popover], [data-rel=popover]").popover(),$("[rel=popover-hover], [data-rel=popover-hover]").popover({"trigger":"hover"}),runAllCharts(),setup_widgets_mobile(),runAllForms())}function getParam(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\\?&]"+a+"=([^&#]*)",c=new RegExp(b),d=c.exec(window.location.href);return null==d?"":d[1]}$.intervalArr=[];var calc_navbar_height=function(){var a=null;return $("#header").length&&(a=$("#header").height()),null===a&&(a=$('').height()),null===a?49:a},navbar_height=calc_navbar_height,shortcut_dropdown=$("#shortcut"),bread_crumb=$("#ribbon ol.breadcrumb"),topmenu=!1,thisDevice=null,ismobile=/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()),jsArray={},initApp=function(a){return a.addDeviceType=function(){return ismobile?($.root_.addClass("mobile-detected"),thisDevice="mobile",fastClick?($.root_.addClass("needsclick"),FastClick.attach(document.body),!1):void 0):($.root_.addClass("desktop-detected"),thisDevice="desktop",!1)},a.menuPos=function(){($.root_.hasClass("menu-on-top")||"top"==localStorage.getItem("sm-setmenu"))&&(topmenu=!0,$.root_.addClass("menu-on-top"))},a.SmartActions=function(){var a={"userLogout":function(a){function b(){window.location=a.attr("href")}$.SmartMessageBox({"title":" Logout "+$("#show-shortcut").text()+" ?","content":a.data("logout-msg")||"Você pode melhorar ainda mais sua segurança depois de sair, fechando esse navegador aberto","buttons":"[Não][Sim]"},function(a){"Sim"==a&&($.root_.addClass("animated fadeOutUp"),setTimeout(b,1e3))})},"resetWidgets":function(a){$.SmartMessageBox({"title":" Clear Local Storage","content":a.data("reset-msg")||"Would you like to RESET all your saved widgets and clear LocalStorage?1","buttons":"[No][Yes]"},function(a){"Yes"==a&&localStorage&&(localStorage.clear(),location.reload())})},"launchFullscreen":function(a){$.root_.hasClass("full-screen")?($.root_.removeClass("full-screen"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()):($.root_.addClass("full-screen"),a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.msRequestFullscreen&&a.msRequestFullscreen())},"minifyMenu":function(a){$.root_.hasClass("menu-on-top")||($.root_.toggleClass("minified"),$.root_.removeClass("hidden-menu"),$("html").removeClass("hidden-menu-mobile-lock"),a.effect("highlight",{},500))},"toggleMenu":function(){$.root_.hasClass("menu-on-top")?$.root_.hasClass("menu-on-top")&&$(window).width()<979&&($("html").toggleClass("hidden-menu-mobile-lock"),$.root_.toggleClass("hidden-menu"),$.root_.removeClass("minified")):($("html").toggleClass("hidden-menu-mobile-lock"),$.root_.toggleClass("hidden-menu"),$.root_.removeClass("minified"))},"toggleShortcut":function(){function a(){shortcut_dropdown.animate({"height":"hide"},300,"easeOutCirc"),$.root_.removeClass("shortcut-on")}function b(){shortcut_dropdown.animate({"height":"show"},200,"easeOutCirc"),$.root_.addClass("shortcut-on")}shortcut_dropdown.is(":visible")?a():b(),shortcut_dropdown.find("a").click(function(b){b.preventDefault(),window.location=$(this).attr("href"),setTimeout(a,300)}),$(document).mouseup(function(b){shortcut_dropdown.is(b.target)||0!==shortcut_dropdown.has(b.target).length||a()})}};$.root_.on("click",'[data-action="userLogout"]',function(b){var c=$(this);a.userLogout(c),b.preventDefault(),c=null}),$.root_.on("click",'[data-action="resetWidgets"]',function(b){var c=$(this);a.resetWidgets(c),b.preventDefault(),c=null}),$.root_.on("click",'[data-action="launchFullscreen"]',function(b){a.launchFullscreen(document.documentElement), b.preventDefault()}),$.root_.on("click",'[data-action="minifyMenu"]',function(b){var c=$(this);a.minifyMenu(c),b.preventDefault(),c=null}),$.root_.on("click",'[data-action="toggleMenu"]',function(b){a.toggleMenu(),b.preventDefault()}),$.root_.on("click",'[data-action="toggleShortcut"]',function(b){a.toggleShortcut(),b.preventDefault()})},a.leftNav=function(){topmenu||$("nav ul").jarvismenu({"accordion":menu_accordion||!0,"speed":menu_speed||!0,"closedSign":'',"openedSign":''})},a.domReadyMisc=function(){$("[rel=tooltip]").length&&$("[rel=tooltip]").tooltip(),$("#search-mobile").click(function(){$.root_.addClass("search-mobile")}),$("#cancel-search-js").click(function(){$.root_.removeClass("search-mobile")}),$("#activity").click(function(a){var b=$(this);b.find(".badge").hasClass("bg-color-red")&&(b.find(".badge").removeClassPrefix("bg-color-"),b.find(".badge").text("0")),b.next(".ajax-dropdown").is(":visible")?(b.next(".ajax-dropdown").fadeOut(150),b.removeClass("active")):(b.next(".ajax-dropdown").fadeIn(150),b.addClass("active"));var c=b.next(".ajax-dropdown").find(".btn-group > .active > input").attr("id");b=null,c=null,a.preventDefault()}),$('input[name="activity"]').change(function(){var a=$(this);url=a.attr("id"),container=$(".ajax-notifications"),loadURL(url,container),a=null}),$(document).mouseup(function(a){$(".ajax-dropdown").is(a.target)||0!==$(".ajax-dropdown").has(a.target).length||($(".ajax-dropdown").fadeOut(150),$(".ajax-dropdown").prev().removeClass("active"))}),$("button[data-btn-loading]").on("click",function(){var a=$(this);a.button("loading"),setTimeout(function(){a.button("reset")},3e3)}),$this=$("#activity > .badge"),parseInt($this.text())>0&&($this.addClass("bg-color-red bounceIn animated"),$this=null)},a.mobileCheckActivation=function(){$(window).width()<979?($.root_.addClass("mobile-view-activated"),$.root_.removeClass("minified")):$.root_.hasClass("mobile-view-activated")&&$.root_.removeClass("mobile-view-activated"),debugState&&console.log("mobileCheckActivation")},a}({});initApp.addDeviceType(),initApp.menuPos(),jQuery(document).ready(function(){initApp.SmartActions(),initApp.leftNav(),initApp.domReadyMisc()}),function(a,b,c){function d(){e=b[h](function(){f.each(function(){var b,c,d=a(this),e=a.data(this,j);try{b=d.width()}catch(f){b=d.width}try{c=d.height()}catch(f){c=d.height}(b!==e.w||c!==e.h)&&d.trigger(i,[e.w=b,e.h=c])}),d()},g[k])}var e,f=a([]),g=a.resize=a.extend(a.resize,{}),h="setTimeout",i="resize",j=i+"-special-event",k="delay",l="throttleWindow";g[k]=throttle_delay,g[l]=!0,a.event.special[i]={"setup":function(){if(!g[l]&&this[h])return!1;var b=a(this);f=f.add(b);try{a.data(this,j,{"w":b.width(),"h":b.height()})}catch(c){a.data(this,j,{"w":b.width,"h":b.height})}1===f.length&&d()},"teardown":function(){if(!g[l]&&this[h])return!1;var b=a(this);f=f.not(b),b.removeData(j),f.length||clearTimeout(e)},"add":function(b){function d(b,d,f){var g=a(this),h=a.data(this,j);h.w=d!==c?d:g.width(),h.h=f!==c?f:g.height(),e.apply(this,arguments)}if(!g[l]&&this[h])return!1;var e;return a.isFunction(b)?(e=b,d):(e=b.handler,void(b.handler=d))}}}(jQuery,this),$("#main").resize(function(){initApp.mobileCheckActivation()});var ie=function(){for(var a,b=3,c=document.createElement("div"),d=c.getElementsByTagName("i");c.innerHTML="",d[0];);return b>4?b:a}();if($.fn.extend({"jarvismenu":function(a){var b={"accordion":"true","speed":200,"closedSign":"[+]","openedSign":"[-]"},c=$.extend(b,a),d=$(this);d.find("li").each(function(){0!==$(this).find("ul").size()&&($(this).find("a:first").append(""+c.closedSign+""),"#"==$(this).find("a:first").attr("href")&&$(this).find("a:first").click(function(){return!1}))}),d.find("li.active").each(function(){$(this).parents("ul").slideDown(c.speed),$(this).parents("ul").parent("li").find("b:first").html(c.openedSign),$(this).parents("ul").parent("li").addClass("open")}),d.find("li a").click(function(){0!==$(this).parent().find("ul").size()&&(c.accordion&&($(this).parent().find("ul").is(":visible")||(parents=$(this).parent().parents("ul"),visible=d.find("ul:visible"),visible.each(function(a){var b=!0;parents.each(function(c){return parents[c]==visible[a]?(b=!1,!1):void 0}),b&&$(this).parent().find("ul")!=visible[a]&&$(visible[a]).slideUp(c.speed,function(){$(this).parent("li").find("b:first").html(c.closedSign),$(this).parent("li").removeClass("open")})}))),$(this).parent().find("ul:first").is(":visible")&&!$(this).parent().find("ul:first").hasClass("active")?$(this).parent().find("ul:first").slideUp(c.speed,function(){$(this).parent("li").removeClass("open"),$(this).parent("li").find("b:first").delay(c.speed).html(c.closedSign)}):$(this).parent().find("ul:first").slideDown(c.speed,function(){$(this).parent("li").addClass("open"),$(this).parent("li").find("b:first").delay(c.speed).html(c.openedSign)}))})}}),jQuery.fn.doesExist=function(){return jQuery(this).length>0},$.navAsAjax||$(".google_maps")){var gMapsLoaded=!1;window.gMapsCallback=function(){gMapsLoaded=!0,$(window).trigger("gMapsLoaded")},window.loadGoogleMaps=function(){if(gMapsLoaded)return window.gMapsCallback();var a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("src","http://maps.google.com/maps/api/js?sensor=false&callback=gMapsCallback"),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}}$.navAsAjax&&($("nav").length&&checkURL(),$(document).on("click",'nav a[href!="#"]',function(a){a.preventDefault();var b=$(a.currentTarget);b.parent().hasClass("active")||b.attr("target")||($.root_.hasClass("mobile-view-activated")?($.root_.removeClass("hidden-menu"),$("html").removeClass("hidden-menu-mobile-lock"),window.setTimeout(function(){window.location.search?window.location.href=window.location.href.replace(window.location.search,"").replace(window.location.hash,"")+"#"+b.attr("href"):window.location.hash=b.attr("href")},150)):window.location.search?window.location.href=window.location.href.replace(window.location.search,"").replace(window.location.hash,"")+"#"+b.attr("href"):window.location.hash=b.attr("href"))}),$(document).on("click",'nav a[target="_blank"]',function(a){a.preventDefault();var b=$(a.currentTarget);window.open(b.attr("href"))}),$(document).on("click",'nav a[target="_top"]',function(a){a.preventDefault();var b=$(a.currentTarget);window.location=b.attr("href")}),$(document).on("click",'nav a[href="#"]',function(a){a.preventDefault()}),$(window).on("hashchange",function(){checkURL()})),$("body").on("click",function(a){$('[rel="popover"], [data-rel="popover"]').each(function(){$(this).is(a.target)||0!==$(this).has(a.target).length||0!==$(".popover").has(a.target).length||$(this).popover("hide")})}),$("body").on("hidden.bs.modal",".modal",function(){$(this).removeData("bs.modal")});