/*! mypxappsmartbanner.rslib 1.1.1 2019-05-13 16:29:59 */ var MyPxAppSmartBanner=function(a,b){"use strict";var c=function(b,c){if(!document.getElementById(a)&&!i()&&j()){var d=e(c);d&&(g(d,!0),h("impression"))}},d=function(b){b.style.display="none";var c=document.getElementById(a+"Css");c&&c.parentNode.removeChild(c)},e=function(b){var c=document.createElement("div");return c.setAttribute("id",a),c.innerHTML='
%close
\"\"
%content

%link

'.replace("%content","

"+b.content+"

").replace("%link",''+b.btn+"").replace("%close",''),document.body.insertBefore(c,document.body.firstChild),f(c),c},f=function(b){var c=b.clientHeight,d=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style"),f="#%id { position: fixed; background: #fff; width: 100%; z-index: 999; } .rs-header-wrapper { margin-top: %marginToppx; }".replace(/%id/g,a).replace(/%marginTop/g,c);if(e.type="text/css",e.id=a+"Css",d.appendChild(e),e.styleSheet)return void(e.styleSheet.cssText=f);e.appendChild(document.createTextNode(f))},g=function(a,b){for(var c=a.querySelectorAll("[data-action]"),d=0,e=c.length;d