function GetURLParameter(n,t){for(var f=n.search.substring(1),u=f.split("&"),r,i=0;i<u.length;i++)if(r=u[i].split("="),r[0]==t)return r[1]}var videos,i,youtube,vDiv,iframe,filetypes,baseHref,hrefRedirect;for(!function(n){var i,u={className:"autosizejs",append:"",callback:!1,resizeDelay:10,placeholder:!0},f='<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',r=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],t=n(f).data("autosize",!0)[0];t.style.lineHeight="99px","99px"===n(t).css("lineHeight")&&r.push("lineHeight"),t.style.lineHeight="",n.fn.autosize=function(f){return this.length?(f=n.extend({},u,f||{}),t.parentNode!==document.body&&n(document.body).append(t),this.each(function(){function a(){var i,r=window.getComputedStyle?window.getComputedStyle(u,null):!1;r?(i=u.getBoundingClientRect().width,0===i&&(i=parseInt(r.width,10)),n.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(n,t){i-=parseInt(r[t],10)})):i=Math.max(e.width(),0),t.style.width=i+"px"}function p(){var o={},h;(i=u,t.className=f.className,s=parseInt(e.css("maxHeight"),10),n.each(r,function(n,t){o[t]=e.css(t)}),n(t).css(o),a(),window.chrome)&&(h=u.style.width,u.style.width="0px",u.offsetWidth,u.style.width=h)}function o(){var r,e;i!==u?p():a(),t.value=!u.value&&f.placeholder?(n(u).attr("placeholder")||"")+f.append:u.value+f.append,t.style.overflowY=u.style.overflowY,e=parseInt(u.style.height,10),t.scrollTop=0,t.scrollTop=9e4,r=t.scrollTop,s&&r>s?(u.style.overflowY="scroll",r=s):(u.style.overflowY="hidden",h>r&&(r=h)),r+=l,e!==r&&(u.style.height=r+"px",w&&f.callback.call(u,u))}function v(){clearTimeout(c),c=setTimeout(function(){var n=e.width();n!==y&&(y=n,o())},parseInt(f.resizeDelay,10))}var s,h,c,u=this,e=n(u),l=0,w=n.isFunction(f.callback),b={height:u.style.height,overflow:u.style.overflow,overflowY:u.style.overflowY,wordWrap:u.style.wordWrap,resize:u.style.resize},y=e.width();e.data("autosize")||(e.data("autosize",!0),("border-box"===e.css("box-sizing")||"border-box"===e.css("-moz-box-sizing")||"border-box"===e.css("-webkit-box-sizing"))&&(l=e.outerHeight()-e.height()),h=Math.max(parseInt(e.css("minHeight"),10)-l||0,e.height()),e.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word",resize:"none"===e.css("resize")||"vertical"===e.css("resize")?"none":"horizontal"}),"onpropertychange"in u?"oninput"in u?e.on("input.autosize keyup.autosize",o):e.on("propertychange.autosize",function(){"value"===event.propertyName&&o()}):e.on("input.autosize",o),f.resizeDelay!==!1&&n(window).on("resize.autosize",v),e.on("autosize.resize",o),e.on("autosize.resizeIncludeStyle",function(){i=null,o()}),e.on("autosize.destroy",function(){i=null,clearTimeout(c),n(window).off("resize",v),e.off("autosize").off(".autosize").css(b).removeData("autosize")}),o())})):this}}(window.jQuery||window.$),document.getElementsByClassName||(document.getElementsByClassName=function(n){for(var f=new RegExp("(?:^|\\s)"+n+"(?:$|\\s)"),e=document.getElementsByTagName("*"),t=[],i="",u=0,r;r=e[u=u+1];)if(i=r.className,i&&i.indexOf(n)!==-1){if(i===n){t[t.length]=r;continue}f.test(i)?t[t.length]=r:0}return t}),videos=$('a[href*="youtube.com"]'),i=0;i<videos.length;i++)youtube=videos[i],vDiv=document.createElement("div"),vDiv.className="video-container",iframe=document.createElement("iframe"),iframe.setAttribute("src","https://www.youtube.com/embed/"+GetURLParameter(youtube,"v")+"?autoplay=0&autohide=1&border=0&wmode=opaque&enablejsapi=1"),youtube.innerHTML="",vDiv.appendChild(iframe),youtube.appendChild(vDiv);if(typeof jQuery!="undefined"){filetypes=/\.(zip|exe|dmg|pdf|doc.*|xls.*|ppt.*|mp3|txt|rar|wma|mov|avi|wmv|flv|wav)$/i,baseHref="",jQuery("base").attr("href")!=undefined&&(baseHref=jQuery("base").attr("href")),hrefRedirect="";jQuery("body").on("click","a",function(){var r=jQuery(this),f=!0,i=typeof r.attr("href")!="undefined"?r.attr("href"):"",o=i.match(document.domain.split(".").reverse()[1]+"."+document.domain.split(".").reverse()[0]),t,e,u;if(!i.match(/^javascript:/i)&&(t=[],t.value=0,t.non_i=!1,i.match(/^mailto\:/i)?(t.category="email",t.action="click",t.label=i.replace(/^mailto\:/i,""),t.loc=i):i.match(filetypes)?(e=/[.]/.exec(i)?/[^.]+$/.exec(i):undefined,t.category="download",t.action="click-"+e[0],t.label=i.replace(/ /g,"-"),t.loc=baseHref+i):i.match(/^https?\:/i)&&!o?(t.category="external",t.action="click",t.label=i.replace(/^https?\:\/\//i,""),t.non_i=!0,t.loc=i):i.match(/^tel\:/i)?(t.category="telephone",t.action="click",t.label=i.replace(/^tel\:/i,""),t.loc=i):f=!1,f))return u=!0,(t.category=="external"||t.category=="download")&&(r.attr("target")==undefined||r.attr("target").toLowerCase()!="_blank")?(hrefRedirect=t.loc,ga("send","event",t.category.toLowerCase(),t.action.toLowerCase(),t.label.toLowerCase(),t.value,{nonInteraction:t.non_i,hitCallback:gaHitCallbackHandler}),u=!1):ga("send","event",t.category.toLowerCase(),t.action.toLowerCase(),t.label.toLowerCase(),t.value,{nonInteraction:t.non_i}),u});gaHitCallbackHandler=function(){window.location.href=hrefRedirect}}