!function(e,t){"use strict";e.RumbleTalkChat||(e.RumbleTalkChat={init:function(t){return 1===t.toolbar?e.RumbleTalkChat.initToolbar(t):e.RumbleTalkChat.initEmbed(t)}}),e.RumbleTalkChat.initToolbar||(e.RumbleTalkChat.initToolbar=function(i){if(e.RumbleTalkChat[i.hash])throw new Error("Trying to create a duplicate chat with code: "+i.hash);var o=navigator.userAgent.toUpperCase(),a={mainDiv:null,messageInterval:0,showInterval:0,moveInterval:0,moveStep:0,moveLimit:0,moveStop:0,server:0,hash:0,bounce:5,width:750,height:500,iframe:null,chatDiv:0,counterDiv:0,protocol:"https://",mobile:-1!=o.indexOf("MOBILE")||-1!=o.indexOf("ANDROID")||-1!=o.indexOf("IOS"),init:function(e){t.all&&"complete"!==t.readyState||!t.body?setTimeout(function(){a.init(e)},100):a.setup(e)},setup:function(i){e.addEventListener?(e.addEventListener("message",a.info,!1),a.mobile||e.addEventListener("keyup",a.escClose)):(e.attachEvent("onmessage",a.info),a.mobile||e.attachEvent("onkeyup",a.escClose)),i.oppositeSide=1===i.side?"right":"left",i.side=0===i.side?"right":"left",a.width=i.width||a.width,a.height=i.height||a.height,a.bounce=i.bounce,a.server=i.server,a.hash=i.hash,a.mainDiv=t.createElement("div"),a.mainDiv.id="floating-"+i.divId,a.mainDiv.className="rumbletalk-floating-"+i.side,a.mainDiv.style.position=/MSIE\s6/i.test(navigator.userAgent)||/MSIE/i.test(navigator.userAgent)&&"CSS1Compat"!==t.compatMode?"absolute":"fixed",a.mainDiv.style.bottom="5px",a.mainDiv.style[i.side]="5px",a.mainDiv.style.zIndex=2147483647,a.mainDiv.style.lineHeight="12px";var o=t.createElement("div");o.style.position="absolute",o.style.bottom=0,o.style[i.side]=0,o.style.cursor="pointer",o.title="Click to join the conversation",o.onclick=a.mobile?a.mobileChat:a.toggle,o.onmouseover=a.stop;var n=new Image;if(n.src=i.image,n.style.maxWidth="none",n.alt=o.title,o.appendChild(n),!a.mobile){a.chatDiv=t.createElement("div"),a.chatDiv.style.position="absolute",a.chatDiv.style.bottom="75px",a.chatDiv.style[i.side]=0,a.chatDiv.style.visibility="hidden",a.chatDiv.style.overflow="hidden",a.chatDiv.style.padding=0,a.chatDiv.style.height=0;var l=new Image;l.src=i.cdn+"images/c.png",l.style.cursor="pointer",l.style.position="absolute",l.style.top="-9px",l.style[i.oppositeSide]="-8px",l.onclick=function(){a.toggle(!0)},a.chatDiv.appendChild(l);var s=t.createElement("div");s.style.width=a.width+"px",s.style.height=a.height+"px",s.style.overflow="hidden",a.iframe=t.createElement("iframe"),a.iframe.src=a.protocol+a.server+"/"+a.hash+"/",a.iframe.frameBorder=0,a.iframe.allow="microphone; camera",a.iframe.setAttribute("allowtransparency","true"),a.iframe.style.width="100%",a.iframe.style.height="100%",a.iframe.style.overflow="hidden",a.iframe.style.bottom=0,a.iframe.style.backgroundColor="transparent",n.onload=function(){a.chatDiv.style.bottom=n.height+"px"},s.appendChild(a.iframe),a.chatDiv.appendChild(s),o.appendChild(a.chatDiv),i.showDetails&&(a.counterDiv=t.createElement("div"),a.counterDiv.style.position="absolute",a.counterDiv.style.bottom="42px",a.counterDiv.style.left="23px",a.counterDiv.style.width="28px",a.counterDiv.style.textAlign="center",a.counterDiv.style.font="bold 12px arial",a.counterDiv.style.color="#000",(l=new Image).src=i.cdn+"images/toolbar/mini_wait.gif",l.alt="loading",a.counterDiv.appendChild(l),o.appendChild(a.counterDiv))}a.mainDiv.appendChild(o),t.body.appendChild(a.mainDiv),a.messageInterval=setInterval(a.query,1e3),a.bounce>0&&a.start()},start:function(){a.moveStop||a.bounce<=0||(a.bounce-=1,a.moveStep=5,a.moveLimit=30,a.moveInterval=setInterval(a.move,30))},stop:function(){a.moveStop=1,a.mainDiv.style.bottom="5px",clearInterval(a.moveInterval)},move:function(){var e=parseInt(a.mainDiv.style.bottom)+a.moveStep;e>=a.moveLimit?(e=a.moveLimit,a.moveStep*=-1,a.moveStep-=Math.abs(a.moveStep)%2):e<=5&&(a.moveStep=Math.abs(a.moveStep)-1,a.moveLimit-=4,a.moveLimit<=0&&(clearInterval(a.moveInterval),setTimeout(a.start,2e3)),e=5),a.mainDiv.style.bottom=e+"px"},toggle:function(e){clearInterval(a.showInterval);var t=-100;"hidden"===a.chatDiv.style.visibility&&!0!==e&&(t*=-1,a.chatDiv.style.width=0,a.chatDiv.style.height=0,a.chatDiv.style.visibility="visible",a.chatDiv.style.overflow="visible"),a.showInterval=setInterval(function(){a.show(a.chatDiv,t)},1)},mobileChat:function(){a.iframe=e.open("https://www.rumbletalk.com/client/chat.php?"+a.hash),a.iframe.onbeforeunload=function(){delete a.iframe}},show:function(e,t){var i=e.offsetWidth+t,o=e.offsetHeight+t,n=0;i<0&&(i=0),o<0&&(o=0),i>=0&&o>=0&&(i<=a.width?n=1:i=a.width,o<=a.height?n=1:o=a.height,e.style.width=i+"px",e.style.height=o+"px"),(!n||i<=0||o<=0)&&(clearInterval(a.showInterval),i<a.width&&(e.style.visibility="hidden",a.chatDiv.style.overflow="hidden"))},query:function(){try{a.iframe.contentWindow.postMessage("toolbar",a.protocol+a.server)}catch(e){}},info:function(e){("?"===e.data||/^http(s)?:\/\/.+\.rumbletalk\.net(:4433)?$/.test(e.origin)&&isFinite(e.data))&&(clearInterval(a.messageInterval),a.counterDiv.innerHTML=e.data)},escClose:function(e){27===(e.keyCode||e.which)&&a.toggle(!0)}};return a.init(i),a})}(window,document);window.RumbleTalkChat['s_zY_U:e'] = window.RumbleTalkChat.init({"hash":"s_zY_U:e","server":"service1.rumbletalk.net","url":null,"divId":"rt-7ec813b619494f2e91bf7bf4455d5e95","side":0,"toolbar":1,"cdn":"\/\/d1pfint8izqszg.cloudfront.net\/","width":750,"height":500,"bounce":4,"image":"http:\/\/autismbrainstorm.org\/images\/AB-orange chat_bubble.png","showDetails":0});