/* AddEvent; Add to Calendar, v1.6.1 Copyright (C) 2012-2017 AddEvent(R), Inc. @author Michael Nilsson */ function $d(e){return document.getElementById(e)}var addeventatc=function(){var e,t,a,o,n,d,c,i,r=!1,s=1,l=!1,p=!0,u=!1,v=!1,m=!1,g=1,h="",f=!0,b=!0,w=!0,x=!0,k=!0,y=!0,_="Apple Calendar",T="Google (online)",z="Outlook",E="Outlook.com (online)",N="Yahoo (online)",I="Facebook Event",C=null,$=null,L=null,A=null,H=null,R=null,M=!1;return{initialize:function(){if(!r){r=!0;try{addeventasync()}catch(e){}t=(e="https:")+"//"+(a="addevent.com"),o="undefined"!=typeof SVGRect?"https://www.addevent.com/gfx/icon-calendar-t1.svg":"https://www.addevent.com/gfx/icon-calendar-t5.png",addeventatc.trycss(),addeventatc.generate()}},generate:function(){for(var e=document.getElementsByTagName("*"),t=0;t'+_+""),b&&"google"==p[u]&&(r+=''+T+""),w&&"outlook"==p[u]&&(r+=''+z+""),(x&&"hotmail"==p[u]||x&&"outlookcom"==p[u])&&(r+=''+E+""),k&&"yahoo"==p[u]&&(r+=''+N+""),i&&"facebook"==p[u]&&y&&"facebook"==p[u]&&(r+=''+I+"");if(addeventatc.getlicense(n)||(r+='AddEvent.com'),!$d(a+"-drop")){var v=document.createElement("span");v.id=a+"-drop",v.className="addeventatc_dropdown",v.setAttribute("aria-hidden","true"),v.setAttribute("aria-labelledby",a),v.innerHTML=r,o.appendChild(v)}$d(a+"-appleical")&&($d(a+"-appleical").onclick=function(){addeventatc.click({button:a,service:"appleical",id:t.id})}),$d(a+"-google")&&($d(a+"-google").onclick=function(){addeventatc.click({button:a,service:"google",id:t.id})}),$d(a+"-outlook")&&($d(a+"-outlook").onclick=function(){addeventatc.click({button:a,service:"outlook",id:t.id})}),$d(a+"-outlookcom")&&($d(a+"-outlookcom").onclick=function(){addeventatc.click({button:a,service:"outlookcom",id:t.id})}),$d(a+"-yahoo")&&($d(a+"-yahoo").onclick=function(){addeventatc.click({button:a,service:"yahoo",id:t.id})}),$d(a+"-facebook")&&($d(a+"-facebook").onclick=function(){addeventatc.click({button:a,service:"facebook",id:t.id})}),$d(a+"-home")&&($d(a+"-home").onclick=function(){addeventatc.click({button:a,service:"home",id:t.id})}),addeventatc.show(a,t)}return d=o,!1}},click:function(e){var t,a,o,n=location.origin,d=!0;if(void 0===location.origin&&(n=location.protocol+"//"+location.host),t=$d(e.button)){if("home"==e.service)o="https://www.addevent.com";else{a=addeventatc.getburl({id:e.button,facebook:!1}),o="https://www.addevent.com/create/?service="+e.service+a+"&reference="+n,"outlook"!=e.service&&"appleical"!=e.service||(d=!1,addeventatc.usewebcal()&&(o="webcal://www.addevent.com/create/?uwc=on&service="+e.service+a+"&reference="+n));var c=t.getAttribute("data-id");null!==c&&(o="https://www.addevent.com/event/?"+c+"+"+e.service)}if(!$d("atecllink")){var i=document.createElement("a");i.id="atecllink",i.rel="external",i.setAttribute("data-role","none"),i.innerHTML="{addeventatc-ghost-link}",i.style.display="none",document.body.appendChild(i)}var r=$d("atecllink");if(r.target=d?"_blank":"_self",r.href=o,addeventatc.eclick("atecllink"),addeventatc.track({typ:"click",cal:e.service}),null!=R){addeventatc.trigger("button_dropdown_click",{id:e.button,service:e.service});try{(event||window.event).stopPropagation()}catch(e){}}}},mouseout:function(e,t){m=!1,addeventatc.hideandreset(),null!=L&&addeventatc.trigger("button_mouseout",{id:t.id})},show:function(e,t){var a=$d(e),o=$d(e+"-drop");if(a&&o)if("block"==addeventatc.getstyle(o,"display"))addeventatc.hideandreset();else{addeventatc.hideandreset(!0),o.style.display="block",a.style.outline="0",a.style.zIndex=g+1,a.className=a.className+" addeventatc-selected",a.className=a.className.replace(/\s+/g," "),a.setAttribute("aria-expanded","true"),o.setAttribute("aria-hidden","false"),t.keynav&&addeventatc.keyboard(this,{type:"keyboard",id:e,key:"down"});var n=a.getAttribute("data-dropdown-x"),d=a.getAttribute("data-dropdown-y"),c="auto",i="auto";null!=n&&(i=n),null!=d&&(c=d),o.style.left="0px",o.style.top="0px",o.style.display="block";var r=parseInt(a.offsetHeight),s=parseInt(a.offsetWidth),l=parseInt(o.offsetHeight),p=parseInt(o.offsetWidth),u=addeventatc.viewport(),v=parseInt(u.w),m=parseInt(u.h),h=parseInt(u.x),f=parseInt(u.y),b=addeventatc.elementposition(o),w=parseInt(b.x),x=parseInt(b.y)+l,k=m+f,y=w+p,_=v+h,T=0,z=0;"down"==c&&"left"==i?(T="0px",z=r+"px"):"up"==c&&"left"==i?(T="0px",z=-l+"px"):"down"==c&&"right"==i?(T=-(p-s)+"px",z=r+"px"):"up"==c&&"right"==i?(T=-(p-s)+"px",z=-l+"px"):"auto"==c&&"left"==i?(T="0px",z=x>k?-l+"px":r+"px"):"auto"==c&&"right"==i?(T=-(p-s)+"px",z=x>k?-l+"px":r+"px"):(z=x>k?-l+"px":r+"px",T=y>_?-(p-s)+"px":"0px"),o.style.left=T,o.style.top=z,"click"==t.type&&null!=C&&addeventatc.trigger("button_click",{id:e}),null!=A&&addeventatc.trigger("button_dropdown_show",{id:e})}},hide:function(e){var t=!1;("string"==typeof e&&""!==e||e instanceof String&&""!==e)&&(e.indexOf("addeventatc")>-1||e.indexOf("atc_node")>-1)&&(t=!0),t||addeventatc.hideandreset()},hideandreset:function(e){for(var t="",a=document.getElementsByTagName("*"),o=0;oe&&(e=o)}return e},viewport:function(){var e=0,t=0,a=0,o=0;return"number"==typeof window.innerWidth?(e=window.innerWidth,t=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(e=document.body.clientWidth,t=document.body.clientHeight),document.all?(o=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,a=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop):(o=window.pageXOffset,a=window.pageYOffset),{w:e,h:t,x:o,y:a}},elementposition:function(e){var t=0,a=0;if(e.offsetParent)for(t=e.offsetLeft,a=e.offsetTop;e=e.offsetParent;)t+=e.offsetLeft,a+=e.offsetTop;return{x:t,y:a}},getstyle:function(e,t){var a,o=e;return o.currentStyle?a=o.currentStyle[t]:window.getComputedStyle&&(a=document.defaultView.getComputedStyle(o,null).getPropertyValue(t)),a},getlicense:function(e){var t=location.origin,a=!1;if(void 0===location.origin&&(t=location.protocol+"//"+location.host),e){var o=e.substring(0,1),n=e.substring(9,10),d=e.substring(17,18);"a"==o&&"z"==n&&"m"==d&&(a=!0)}return(-1==t.indexOf("addevent.com")&&"aao8iuet5zp9iqw5sm9z"==e||-1==t.indexOf("addevent.to")&&"aao8iuet5zp9iqw5sm9z"==e||-1==t.indexOf("addevent.com")&&"aao8iuet5zp9iqw5sm9z"==e)&&(a=!0),a},refresh:function(){for(var e=document.getElementsByTagName("*"),t=[],a=0;a=d?c=1:c++:1==c?c=d:c--,d=0;for(i=0;i0||window.navigator.msMaxTouchPoints>0;window.addEventListener?(document.addEventListener("click",addeventatc.documentclick,!1),ate_touch_capable&&document.addEventListener("touchend",addeventatc.documentclick,!1)):window.attachEvent?(document.attachEvent("onclick",addeventatc.documentclick),ate_touch_capable&&document.attachEvent("ontouchend",addeventatc.documentclick)):document.onclick=function(){addeventatc.documentclick(event)},addeventReady(function(){addeventatc.initialize(),setTimeout("addeventatc.initialize();",200)});