var ddsmoothmenu={mobilemediaquery:"screen and (max-width: 767px)",arrowimages:{down:["downarrowclass","/Content/ddsmoothmenu/down.png",23],right:["rightarrowclass","/Content/ddsmoothmenu/right.gif",6],left:["leftarrowclass","/Content/ddsmoothmenu/left.gif"]},transition:{overtime:300,outtime:300},mobiletransition:200,shadow:!1,showhidedelay:{showdelay:100,hidedelay:200},zindexvalue:1e3,closeonnonmenuclick:!0,closeonmouseout:!1,overarrowre:/(?=\.(gif|jpg|jpeg|png|bmp))/i,overarrowaddtofilename:"_over",detecttouch:!!("ontouchstart"in window)||!!("ontouchstart"in document.documentElement)||!!window.ontouchstart||!!window.Touch&&!!window.Touch.length||!!window.onmsgesturechange||window.DocumentTouch&&window.document instanceof window.DocumentTouch,detectwebkit:navigator.userAgent.toLowerCase().indexOf("applewebkit")>-1,detectchrome:navigator.userAgent.toLowerCase().indexOf("chrome")>-1,ismobile:navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i)!=null,idevice:/ipad|iphone/i.test(navigator.userAgent),detectie6:function(){var n;return(n=/MSIE (\d+)/.exec(navigator.userAgent))&&n[1]<7}(),detectie9:function(){var n;return(n=/MSIE (\d+)/.exec(navigator.userAgent))&&n[1]>8}(),ie9shadow:function(){},css3support:typeof document.documentElement.style.boxShadow=="string"||!document.all&&document.querySelector,prevobjs:[],menus:null,mobilecontainer:{$main:null,$topulsdiv:null,$toggler:null,hidetimer:null},mobilezindexvalue:2e3,executelink:function(n,t,i){for(var u=t.length,r=i.target;--u>-1;)t[u]===this&&(t.splice(u,1),r.href!==ddsmoothmenu.emptyhash&&r.href&&n(r).is("a")&&!n(r).children("span."+ddsmoothmenu.arrowimages.down[0]+", span."+ddsmoothmenu.arrowimages.right[0]).length&&(r.target&&r.target!=="_self"?window.open(r.href,r.target):window.location.href=r.href,i.stopPropagation()))},repositionv:function(n,t,i,r,u,f,e){e=e||0;var o=0,s=r+u;for(n.css({top:i,display:"block"});n.offset().top<u;)n.css({top:++i}),++o;return!o&&t.offset().top+t.outerHeight()<s&&n.data("height")+n.offset().top>s&&n.css({top:u-t.parents("ul").last().offset().top-t.position().top}),f==="toggle"&&n.css({display:"none"}),i!==e&&n.addClass("repositionedv"),[o,i]},updateprev:function(n,t,i){for(var r=t.length,u,f=i.parents().add(this);--r>-1;)f.index(u=t[r])<0&&(n(u).trigger("click",[1]),t.splice(r,1));t.push(this)},subulpreventemptyclose:function(n){var t=n.target;t.href===ddsmoothmenu.emptyhash&&$(t).parent("li").find("ul").length<1&&(n.preventDefault(),n.stopPropagation())},getajaxmenu:function(n,t,i){var r=n("#"+t.contentsource[0]);r.html("Loading Menu...");n.ajax({url:t.contentsource[1],async:!0,dataType:"html",error:function(n){t.menustate="error";r.html("Error fetching content. Server Response: "+n.responseText)},success:function(u){t.menustate="fetched";r.html(u).find("#"+t.mainmenuid).css("display","block");!!i||ddsmoothmenu.buildmenu(n,t)}})},getajaxmenuMobile:function(n,t){t.mobilemenustate="fetching";n.ajax({url:t.contentsource[1],async:!0,dataType:"html",error:function(n){t.mobilemenustate="error";alert("Error fetching Ajax content "+n.responseText)},success:function(i){var r=n(i).find(">ul");t.mobilemenustate="fetched";ddsmoothmenu.buildmobilemenu(n,t,r)}})},closeall:function(n){var t=ddsmoothmenu,i;if(t.globaltrackopen&&(n.type==="mouseleave"||(n.type==="click"||n.type==="touchstart")&&t.menus.index(n.target)<0))for(i=t.prevobjs.length;--i>-1;)$(t.prevobjs[i]).trigger("click"),t.prevobjs.splice(i,1)},emptyhash:$('<a href="#"><\/a>').get(0).href,togglemobile:function(n,t){if(this.mobilecontainer.$main){clearTimeout(this.mobilecontainer.hidetimer);var i=this.mobilecontainer.$main,t=t||this.mobiletransition;return i.css("visibility")!="hidden"||n&&n!="open"?i.css("visibility")!="visible"||n&&n=="open"||(i.animate({left:"-100%"},t,function(){this.style.visibility="hidden"}),this.mobilecontainer.$toggler.removeClass("open")):(i.css({left:"-100%",visibility:"visible"}).animate({left:0},t),this.mobilecontainer.$toggler.addClass("open")),!1}},buildmobilemenu:function(n,t,i){function s(n,t,i,r){for(var o,h,i=i||function(){},r=r||function(){},s=n.find("ul").parent(),f=t?n.clone():n,e=jQuery(document.createDocumentFragment()),s=f.find("ul").parent(),u=s.length-1;u>=0;u--)o=s.eq(u),h=o.find(">ul").prependTo(e),i(u,o,h);return f.prependTo(e),r(f),e}var l=n("#"+t.mainmenuid),h=i,e=null,c=s(h,!1,function(t,i,r){r.addClass("submenu");var u=n('<li class="breadcrumb" />').html('<img alt="left arrow" src="'+ddsmoothmenu.arrowimages.left[1]+'" class="'+ddsmoothmenu.arrowimages.left[0]+'" />'+i.text()).prependTo(r);i.find("a:eq(0)").append('<img alt="right arrow" src="'+ddsmoothmenu.arrowimages.right[1]+'" class="'+ddsmoothmenu.arrowimages.right[0]+'" />');i.on("click",function(t){var i=n(this).parent("ul");i=i.hasClass("submenu")?i:i.parent();i.css({zIndex:ddsmoothmenu.mobilezindexvalue++,left:0}).animate({left:"-100%"},ddsmoothmenu.mobiletransition);r.css({zIndex:ddsmoothmenu.mobilezindexvalue++,left:"100%"}).animate({left:0},ddsmoothmenu.mobiletransition);t.stopPropagation();t.preventDefault()});u.on("click",function(n){var t=i.parent("ul");t=t.hasClass("submenu")?t:t.parent();t.css({zIndex:ddsmoothmenu.mobilezindexvalue++,left:"-100%"}).animate({left:0},ddsmoothmenu.mobiletransition);r.css({zIndex:ddsmoothmenu.mobilezindexvalue++,left:0}).animate({left:"100%"},ddsmoothmenu.mobiletransition);n.stopPropagation();n.preventDefault()})},function(n){e=n}),f,o,r,u;if(this.mobilecontainer.$main)r=this.mobilecontainer.$main,u=this.mobilecontainer.$topulsdiv;else{r=n('<div class="ddsmoothmobile"><div class="topulsdiv"><\/div><\/div>').appendTo(document.body);r.css({zIndex:this.mobilezindexvalue++,left:"-100%",visibility:"hidden"}).on("click",function(n){ddsmoothmenu.mobilecontainer.hidetimer=setTimeout(function(){ddsmoothmenu.togglemobile("close",0)},50);n.stopPropagation()}).on("touchstart",function(n){n.stopPropagation()});u=r.find("div.topulsdiv");f=n("#ddsmoothmenu-mobiletoggle").css({display:"block"});f.on("click",function(n){ddsmoothmenu.togglemobile();n.stopPropagation()}).on("touchstart",function(n){n.stopPropagation()});o=/(iPad|iPhone|iPod)/g.test(navigator.userAgent)?"touchstart":"click";n(document.body).on(o,function(){r.is(":animated")||ddsmoothmenu.togglemobile("close",0)});this.mobilecontainer.$main=r;this.mobilecontainer.$topulsdiv=u;this.mobilecontainer.$toggler=f}u.append(e).css({zIndex:this.mobilezindexvalue++});r.append(c);t.mobilemenustate="done"},buildmenu:function(n,t){var c=this.detecttouch&&!this.detectchrome||this.detectchrome&&this.ismobile,i=ddsmoothmenu,o,h;i.globaltrackopen=i.closeonnonmenuclick||i.closeonmouseout;var l=0,s=i.globaltrackopen?i.prevobjs:[],e=n("#"+t.mainmenuid).removeClass("ddsmoothmenu ddsmoothmenu-v").addClass(t.classname||"ddsmoothmenu");t.repositionv=t.repositionv!==!1;var r=e.find(">ul"),f=c?"toggle":t.method==="toggle"?"toggle":"hover",a=r.find(">li>ul").parent(),u=t.orientation!="v"?"down":"right",v=n(document.body);r.click(function(n){n.target.href===i.emptyhash&&n.preventDefault()});f==="toggle"&&(i.globaltrackopen&&(i.menus=i.menus?i.menus.add(r.add(r.find("*"))):r.add(r.find("*"))),i.closeonnonmenuclick?(u==="down"&&e.click(function(n){n.stopPropagation()}),n(document).unbind("click.smoothmenu").bind("click.smoothmenu",i.closeall),i.idevice&&(document.removeEventListener("touchstart",i.closeall,!1),document.addEventListener("touchstart",i.closeall,!1))):t.closeonnonmenuclick&&(u==="down"&&e.click(function(n){n.stopPropagation()}),n(document).bind("click."+t.mainmenuid,function(){r.find("li>a.selected").parent().trigger("click")}),i.idevice&&document.addEventListener("touchstart",function(){r.find("li>a.selected").parent().trigger("click")},!1)),i.closeonmouseout?(o=u==="down"?e:r,o.bind("mouseleave.smoothmenu",i.closeall)):t.closeonmouseout&&(o=u==="down"?e:r,o.bind("mouseleave.smoothmenu",function(){r.find("li>a.selected").parent().trigger("click")})),n('style[title="ddsmoothmenushadowsnone"]').length||n("head").append('<style title="ddsmoothmenushadowsnone" type="text/css">.ddsmoothmenushadowsnone{display:none!important;}<\/style>'),n(window).bind("resize scroll",function(){clearTimeout(h);var i=r.find("li>a.selected").parent(),u=n(".ddshadow").addClass("ddsmoothmenushadowsnone");i.eq(0).trigger("click");i.trigger("click");window.matchMedia&&(!window.matchMedia||t.mobilemql.matches)||(h=setTimeout(function(){u.removeClass("ddsmoothmenushadowsnone")},100))}));a.each(function(){function a(){h.removeClass("selected")}var e=n(this).css({zIndex:(t.zindexvalue||i.zindexvalue)+l--}),r=e.children("ul:eq(0)").css({display:"block"}).data("timers",{}),h=e.children("a:eq(0)").css({paddingRight:i.arrowimages[u][2]}).append('<span style="display: block;" class="'+i.arrowimages[u][0]+'"><\/span>'),o={w:h.outerWidth(),h:e.innerHeight(),subulw:r.outerWidth(),subulh:r.outerHeight()},c=u==="down"?o.h:0;r.css({top:c});f==="toggle"&&r.click(i.subulpreventemptyclose);e[f](function(){e.data("headers")||(i.buildsubheaders(n,r,r.find(">li>ul").parent(),t,f,s),e.data("headers",!0).find(">ul").each(function(t,i){var r=n(i);r.data("height",r.outerHeight())}).css({display:"none",visibility:"visible"}));f==="toggle"&&i.updateprev.call(this,n,s,e);clearTimeout(r.data("timers").hidetimer);h.addClass("selected");r.data("timers").showtimer=setTimeout(function(){var s=u==="down"?0:o.w,l=s,a,y,p,k=0,w=e.offset().left,d;if(s=w+s+o.subulw>n(window).width()?u==="down"?-o.subulw+o.w:-o.w:s,u==="right"&&s<0&&(d=window.pageXOffset||(document.documentElement||document.body.parentNode||document.body).scrollLeft,w-o.subulw<0&&(s=0)),l=l!==s,r.css({top:c}).removeClass("repositionedv"),t.repositionv&&h.offset().top+c+r.data("height")>(p=n(window).height())+(y=n(document).scrollTop())&&(a=(u==="down"?0:h.outerHeight())-r.data("height"),k=i.repositionv(r,h,a,p,y,f,c)[0]),r.css({left:s,width:o.subulw}).stop(!0,!0).animate({height:"show",opacity:"show"},i.transition.overtime,function(){this.style.removeAttribute&&this.style.removeAttribute("filter")}),l?r.addClass("repositioned"):r.removeClass("repositioned"),t.shadow){e.data("$shadow")||e.data("$shadow",n("<div><\/div>").addClass("ddshadow toplevelshadow").prependTo(v).css({zIndex:e.css("zIndex")}));i.ie9shadow(e.data("$shadow"));var b=r.offset(),g=b.left,nt=b.top;e.data("$shadow").css({overflow:"visible",width:o.subulw,left:g,top:nt}).stop(!0,!0).animate({height:o.subulh},i.transition.overtime)}},i.showhidedelay.showdelay)},function(t,u){var o=e.data("$shadow");f==="hover"?a():i.executelink.call(this,n,s,t);clearTimeout(r.data("timers").showtimer);r.data("timers").hidetimer=setTimeout(function(){r.stop(!0,!0).animate({height:"hide",opacity:"hide"},u||i.transition.outtime,function(){f==="toggle"&&a()});o&&(!i.css3support&&i.detectwebkit&&o.children("div:eq(0)").css({opacity:0}),o.stop(!0,!0).animate({height:0},u||i.transition.outtime,function(){f==="toggle"&&(this.style.overflow="hidden")}))},i.showhidedelay.hidedelay)});r.css({display:"none"})})},buildsubheaders:function(n,t,i,r,u,f){t.css("display","block");i.each(function(){function c(){o.removeClass("selected")}var i=ddsmoothmenu,e=n(this).css({zIndex:n(this).parent("ul").css("z-index")}),t=e.children("ul:eq(0)").css({display:"block"}).data("timers",{}),h,o,s;u==="toggle"&&t.click(i.subulpreventemptyclose);o=e.children("a:eq(0)").append('<span style="display: block;" class="'+i.arrowimages.right[0]+'"><\/span>');s={w:o.outerWidth(),subulw:t.outerWidth(),subulh:t.outerHeight()};t.css({top:0});e[u](function(){e.data("headers")||(i.buildsubheaders(n,t,t.find(">li>ul").parent(),r,u,f),e.data("headers",!0).find(">ul").each(function(t,i){var r=n(i);r.data("height",r.height())}).css({display:"none",visibility:"visible"}));u==="toggle"&&i.updateprev.call(this,n,f,e);clearTimeout(t.data("timers").hidetimer);o.addClass("selected");t.data("timers").showtimer=setTimeout(function(){var f=s.w,a=f,l,v,y,c=0,p=e.offset().left,w;if(f=p+f+s.subulw>n(window).width()?-s.w:f,f<0&&(w=window.pageXOffset||(document.documentElement||document.body.parentNode||document.body).scrollLeft,p-s.subulw<w&&(f=0)),a=a!==f,t.css({top:0}).removeClass("repositionedv"),r.repositionv&&o.offset().top+t.data("height")>(y=n(window).height())+(v=n(document).scrollTop())&&(l=o.outerHeight()-t.data("height"),c=i.repositionv(t,o,l,y,v,u),l=c[1],c=c[0]),t.css({left:f,width:s.subulw}).stop(!0,!0).animate({height:"show",opacity:"show"},i.transition.overtime,function(){this.style.removeAttribute&&this.style.removeAttribute("filter")}),a?t.addClass("repositioned"):t.removeClass("repositioned"),r.shadow){e.data("$shadow")||(h=e.parents("li:eq(0)").data("$shadow"),e.data("$shadow",n("<div><\/div>").addClass("ddshadow").prependTo(h).css({zIndex:h.css("z-index")})));var d=t.offset(),b=f,k=e.position().top-(l?t.data("height")-o.outerHeight()-c:0);i.detectwebkit&&!i.css3support&&e.data("$shadow").css({opacity:1});e.data("$shadow").css({overflow:"visible",width:s.subulw,left:b,top:k}).stop(!0,!0).animate({height:s.subulh},i.transition.overtime)}},i.showhidedelay.showdelay)},function(r,o){var s=e.data("$shadow");u==="hover"?c():i.executelink.call(this,n,f,r);clearTimeout(t.data("timers").showtimer);t.data("timers").hidetimer=setTimeout(function(){t.stop(!0,!0).animate({height:"hide",opacity:"hide"},o||i.transition.outtime,function(){u==="toggle"&&c()});s&&(!i.css3support&&i.detectwebkit&&s.children("div:eq(0)").css({opacity:0}),s.stop(!0,!0).animate({height:0},o||i.transition.outtime,function(){u==="toggle"&&(this.style.overflow="hidden")}))},i.showhidedelay.hidedelay)})})},initmenu:function(n){function u(){if(!r){if(typeof n.customtheme=="object"&&n.customtheme.length==2){var u=n.orientation=="v"?t:t+", "+t;i.push([u," ul li a {background:",n.customtheme[0],";}\n",t," ul li a:hover {background:",n.customtheme[1],";}"].join(""))}i.push('\n<style type="text/css">');i.reverse();jQuery("head").append(i.join("\n"))}}var f,e;if(n.mobilemql.matches){jQuery(function(t){var r=t("#"+n.mainmenuid),i;r.css({display:"none"});n.$mainulclone||(n.$mainulclone=r.find(">ul").clone());i=n.mobilemenustate;n.contentsource!="markup"||i?n.contentsource=="markup"||i&&i!="error"?t("#ddsmoothmenu-mobiletoggle").css({display:"block"}):ddsmoothmenu.getajaxmenuMobile(t,n):ddsmoothmenu.buildmobilemenu(t,n,n.$mainulclone)});return}if(f=n.menustate,f&&f!="error"){e=$("#"+n.mainmenuid);e.css({display:"block"});this.mobilecontainer.$main&&this.togglemobile("close",0);$("#ddsmoothmenu-mobiletoggle").css({display:"none"});return}if(this.detectie6&&parseFloat(jQuery.fn.jquery)>1.3)return this.initmenu=function(n){return typeof n.contentsource=="object"&&jQuery(function(t){ddsmoothmenu.getajaxmenu(t,n,"nobuild")}),!1},jQuery('link[href*="ddsmoothmenu"]').attr("disabled",!0),jQuery(function(n){alert("You Seriously Need to Update Your Browser!\n\nDynamic Drive Smooth Navigational Menu Showing Text Only Menu(s)\n\nDEVELOPER's NOTE: This script will run in IE 6 when using jQuery 1.3.2 or less,\nbut not real well.");n('link[href*="ddsmoothmenu"]').attr("disabled",!0)}),this.initmenu(n);var t="#"+n.mainmenuid,o,s,i=["<\/style>\n"],r=n.arrowswap?4:2;n.arrowswap&&(o=ddsmoothmenu.arrowimages.right[1].replace(ddsmoothmenu.overarrowre,ddsmoothmenu.overarrowaddtofilename),s=ddsmoothmenu.arrowimages.down[1].replace(ddsmoothmenu.overarrowre,ddsmoothmenu.overarrowaddtofilename),jQuery(new Image).bind("load error",function(f){n.rightswap=f.type==="load";n.rightswap&&i.push([t," ul li a:hover .",ddsmoothmenu.arrowimages.right[0],", ",t," ul li a.selected .",ddsmoothmenu.arrowimages.right[0]," { background-image: url(",this.src,");}"].join(""));--r;u()}).attr("src",o),jQuery(new Image).bind("load error",function(f){n.downswap=f.type==="load";n.downswap&&i.push([t," ul li a:hover .",ddsmoothmenu.arrowimages.down[0],", ",t," ul li a.selected .",ddsmoothmenu.arrowimages.down[0]," { background-image: url(",this.src,");}"].join(""));--r;u()}).attr("src",s));jQuery(new Image).bind("load error",function(n){n.type==="load"&&i.push([t+" ul li a .",ddsmoothmenu.arrowimages.right[0]," { background: url(",this.src,") no-repeat;width:",this.width,"px;height:",this.height,"px;}"].join(""));--r;u()}).attr("src",ddsmoothmenu.arrowimages.right[1]);jQuery(new Image).bind("load error",function(n){n.type==="load"&&i.push([t+" ul li a .",ddsmoothmenu.arrowimages.down[0]," { background: url(",this.src,") no-repeat;width:",this.width,"px;height:",this.height,"px;}"].join(""));--r;u()}).attr("src",ddsmoothmenu.arrowimages.down[1]);n.shadow=this.detectie6&&(n.method==="hover"||n.orientation==="v")?!1:n.shadow||this.shadow;jQuery(document).ready(function(t){var i=t("#"+n.mainmenuid);i.css({display:"block"});ddsmoothmenu.mobilecontainer.$main&&ddsmoothmenu.togglemobile("close",0);t("#ddsmoothmenu-mobiletoggle").css({display:"none"});n.$mainulclone||(n.$mainulclone=i.find(">ul").clone());n.shadow&&ddsmoothmenu.css3support&&t("body").addClass("ddcss3support");typeof n.contentsource=="object"?ddsmoothmenu.getajaxmenu(t,n):ddsmoothmenu.buildmenu(t,n);n.menustate="initialized"})},init:function(n){n.mobilemql=window.matchMedia?window.matchMedia(this.mobilemediaquery):{matches:!1,addListener:function(){}};this.initmenu(n);n.mobilemql.addListener(function(){ddsmoothmenu.initmenu(n)})}};(function(n){var t=!1;try{n('<a href="#"><\/a>').toggle(function(){},function(){t=!0}).trigger("click").trigger("click")}catch(i){}return!t})(jQuery)&&function(){var n=jQuery.fn.toggle;jQuery.extend(jQuery.fn,{toggle:function(t,i){if(!jQuery.isFunction(t)||!jQuery.isFunction(i))return n.apply(this,arguments);var r=arguments,f=t.guid||jQuery.guid++,u=0,e=function(n){var i=(jQuery._data(this,"lastToggle"+t.guid)||0)%u;return jQuery._data(this,"lastToggle"+t.guid,i+1),n.preventDefault(),r[i].apply(this,arguments)||!1};for(e.guid=f;u<r.length;)r[u++].guid=f;return this.click(e)}})}();ddsmoothmenu.detectie9&&function(n){function t(n,t){return parseInt(n)+t+"px"}ddsmoothmenu.ie9shadow=function(i){var u=document.defaultView.getComputedStyle(i.get(0),null),r=u.getPropertyValue("box-shadow").split(" "),f={top:u.getPropertyValue("margin-top"),left:u.getPropertyValue("margin-left")};n("head").append(['\n<style title="ie9shadow" type="text/css">',".ddcss3support .ddshadow {","\tbox-shadow: "+t(r[0],1)+" "+t(r[1],1)+" "+r[2]+" "+r[3]+";","}",".ddcss3support .ddshadow.toplevelshadow {","\topacity: "+(n(".ddcss3support .ddshadow").css("opacity")-.1)+";","\tmargin-top: "+t(f.top,-1)+";","\tmargin-left: "+t(f.left,-1)+";","}","<\/style>\n"].join("\n"));ddsmoothmenu.ie9shadow=function(){}};var i=n.fn.height,r=n.fn.width;n.extend(n.fn,{height:function(){var n=this.get(0);return this.length<1||arguments.length||n===window||n===document?i.apply(this,arguments):parseFloat(document.defaultView.getComputedStyle(n,null).getPropertyValue("height"))},innerHeight:function(){if(this.length<1)return null;var n=this.height(),i=this.get(0),t=document.defaultView.getComputedStyle(i,null);return n+=parseInt(t.getPropertyValue("padding-top")),n+parseInt(t.getPropertyValue("padding-bottom"))},outerHeight:function(n){if(this.length<1)return null;var t=this.innerHeight(),r=this.get(0),i=document.defaultView.getComputedStyle(r,null);return t+=parseInt(i.getPropertyValue("border-top-width")),t+=parseInt(i.getPropertyValue("border-bottom-width")),n&&(t+=parseInt(i.getPropertyValue("margin-top")),t+=parseInt(i.getPropertyValue("margin-bottom"))),t},width:function(){var n=this.get(0);return this.length<1||arguments.length||n===window||n===document?r.apply(this,arguments):parseFloat(document.defaultView.getComputedStyle(n,null).getPropertyValue("width"))},innerWidth:function(){if(this.length<1)return null;var n=this.width(),i=this.get(0),t=document.defaultView.getComputedStyle(i,null);return n+=parseInt(t.getPropertyValue("padding-right")),n+parseInt(t.getPropertyValue("padding-left"))},outerWidth:function(n){if(this.length<1)return null;var t=this.innerWidth(),r=this.get(0),i=document.defaultView.getComputedStyle(r,null);return t+=parseInt(i.getPropertyValue("border-right-width")),t+=parseInt(i.getPropertyValue("border-left-width")),n&&(t+=parseInt(i.getPropertyValue("margin-right")),t+=parseInt(i.getPropertyValue("margin-left"))),t}})}(jQuery);$(document).ready(function(){$(".fullSizeMenu").click(function(){$("#fullSizeMenu").slideDown()});$("#closeFullSizeMenu").click(function(){$("#fullSizeMenu").slideUp()});$("#fullSizeMenu a[role='button']").click(function(n){var t=$(this).next(),i=t.is(":visible");return $("#fullSizeMenu ul ul").hide(),i||t.show(),n.preventDefault(),!1})});$(document).ready(function(){$(".formBuilder").validate({errorPlacement:function(){}});_makeSummernote($("textarea.rich"));$(".formBuilder .datepicker").datepicker();$(".formBuilder .upload").click(function(){$(this).closest("div").find("input[type=file]").click()});$(".formBuilder input[type=file]").fileupload({url:"/Resources/Upload?unassigned=true&displayResource=false",type:"POST",start:function(){var n=$(this).closest("div");n.find(".upload").hide();n.find(".progress").show()},progress:function(n,t){var i=$(this).closest("div"),r=parseInt(t.loaded/t.total*100,10);i.find(".progress div").css("width",r+"%")},done:function(n,t){var i=$(this).closest("div");i.find(".progress").hide();i.find("input[type=hidden]").val(t.result.Filename);i.find("a").text(t.result.Filename).attr("href","/Res/"+t.result.Filename).parent().show()}});$(".formBuilder .removeFile").click(function(){var n=$(this).closest("div");n.find("input[type=hidden]").val("");n.find("a").parent().hide();n.find(".upload").show()});$(".formBuilder .back").click(function(){$(this).closest(".tab-pane").removeClass("active");$(this).closest(".tab-pane").prev().addClass("active");window.location.hash="formtop"});$(".formBuilder .next").click(function(){$(".formBuilder").valid()&&($(this).closest(".tab-pane").removeClass("active"),$(this).closest(".tab-pane").next().addClass("active"),window.location.hash="formtop")});$(".formBuilder").on("click",".submit",function(){$(".formBuilder").valid()&&($(this).closest(".tab-pane").removeClass("active"),$.post("/DT/Form/SubmitForm",$(".formBuilder").serialize(),function(){"_formId"in window&&$.cookie("Form_"+_formId,"Submitted",{expires:60});$(".formBuilder #submission.tab-pane").length>0?$(".formBuilder #submission.tab-pane").show():window.location=$(".formBuilder").data("redirect")}))})});$(document).ready(function(){$("body").on("click",".carousel .image img",function(){var n=$(this).data("href");n!=undefined&&(window.location=n)});$("body").on("click",".carousel .xsdesc",function(){$(this).next().show();$(this).closest(".carousel").carousel("pause");$(this).remove()})});$(document).ready(function(){$(".promoRow div.box").eq(0).css("margin-bottom","30px");$(".promoRow div.box").eq(1).css("margin-bottom","30px");$("li").last().css(" border-bottom","solid 1px #fff;")}),function(n){function s(){return n(this).is(":appeared")}function h(){return!n(this).data("_appear_triggered")}function e(){var t,o,u,e;for(f=!1,t=0,o=r.length;t<o;t++)u=n(r[t]).filter(s),u.filter(h).data("_appear_triggered",!0).trigger("appear",[u]),i[t]&&(e=i[t].not(u),e.data("_appear_triggered",!1).trigger("disappear",[e])),i[t]=u}function c(n){r.push(n);i.push()}var r=[],u=!1,f=!1,o={interval:250,force_process:!1},t=n(window),i=[];n.expr.pseudos.appeared=n.expr.createPseudo(function(){return function(i){var r=n(i);if(!r.is(":visible"))return!1;var u=t.scrollLeft(),f=t.scrollTop(),e=r.offset(),o=e.left,s=e.top;return s+r.height()>=f&&s-(r.data("appear-top-offset")||0)<=f+t.height()&&o+r.width()>=u&&o-(r.data("appear-left-offset")||0)<=u+t.width()?!0:!1}});n.fn.extend({appear:function(t,i){return n.appear(this,i),this}});n.extend({appear:function(t,i){var r=n.extend({},o,i||{}),s;u||(s=function(){f||(f=!0,setTimeout(e,r.interval))},n(window).scroll(s).resize(s),u=!0);r.force_process&&setTimeout(e,r.interval);c(t)},force_appear:function(){return u?(e(),!0):!1}})}(function(){return typeof module!="undefined"?require("jquery"):jQuery}())