window.__lc = window.__lc || {}; 
 window.__lc.license = 1776231; 
 window.__lc.group =  1267; 
 window.__lc.chat_between_groups = false; 
 window.__lc.params = [ 
 { name: 'Business Name', value: 'Musicians Institute' }, 
 { name: 'Groupid', value: 1267 }, 
 { name: 'Clientid', value: 1003 },
 { name: 'Faq Backup', value: 'https://admin.chatsystem.io/iframe/385e56757cbc420e9af419da8fcbd9b111ed1e1d/46eca4c7cf8f7d9aa0fae60087f4642a9e43ee8c' } 
 ];
 ;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},init:function(){var n=t.createElement("script");n.async=!0,n.type="text/javascript",n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))

  LiveChatWidget.on('ready', function(event) {
    var chatWidgetContainer = document.getElementById('chat-widget-container');
    var chatWidget = document.getElementById('chat-widget');
    var client_url = window.location.hostname.replace(/www./g,'');
    var poweredBy = '<span style="font-size:15px;padding-right:10px;color:#ffffff;vertical-align:text-bottom;font-family: Noto Sans, sans-serif;">Powered By</span><a href="https://leadchat.com/?utm_source=chat_window&utm_medium=referral&utm_campaign=' + client_url + '" style="text-decoration: underline;color: #888;cursor:pointer" target="_blank"><img src="https://leadchat-brand-assets.s3.ap-southeast-2.amazonaws.com/logos/logo.svg" alt="" height="30" style="font-family: Lato, sans-serif;text-align: center;height: 30px;line-height: 30px;font-size: 0.6em;cursor:pointer;vertical-align:baseline;"></a>';
    if ('false' === 'true') {
      chatWidget.style.height = 'calc(100% - 11px)';
      if ('true' === 'true') {
        chatWidget.style.height = 'calc(100% + 10px)';
      }
    } else {
      chatWidget.style.height = 'calc(100% + 18px)';
      if ('true' === 'true') {
        chatWidget.style.height = 'calc(100% + 40px)';
      }
    }
    var newPowered = document.getElementById('new-powered');
    if (!newPowered) {
      chatWidgetContainer.insertAdjacentHTML('beforeend', '<div id="new-powered" style="box-shadow:rgba(0, 0, 0, 0.5) 0 0 12px;font-family: Lato, sans-serif;position: absolute;bottom: 0;box-sizing: border-box;text-align: center;height: 30px;line-height: 30px;color: #b4b4b4;font-size: 0.6em;background: #85bf31;width: calc(100% - 30px);border-radius:0 0 10px 10px;right: 0;margin-right: 15px;padding-right: 10px;cursor:default" class="notranslate">'+poweredBy+'</div>');
    }
    newPowered = document.getElementById('new-powered');
    if (window.getComputedStyle(chatWidget).display === 'none' || 'false' !== 'true') {
      newPowered.style.display = 'none';
    }
  })
  
  function onVisibilityChanged(data) {
    var newPowered = document.getElementById('new-powered');

    if ('false' !== 'true') {
        newPowered.style.display = 'none';
    } else {
      switch (data.visibility) {
      case 'maximized':
        newPowered.style.display = 'block';
        break
      case 'minimized':
        newPowered.style.display = 'none';
        break
      case 'hidden':
        newPowered.style.display = 'none';
        break
      }
    }
  }

  LiveChatWidget.on('visibility_changed', onVisibilityChanged); 
