(function() { var url = (document.location.protocol == 'http:') ? 'adk.juteralabs.netdna-cdn.com/htmlx/replace.js' : 'adk-juteralabs.netdna-ssl.com/htmlx/replace-ssl.js'; var h = document.getElementsByTagName('head')[0]; var s = document.createElement('script'); s.type = 'text/javascript'; s.src = document.location.protocol + '//' + url; h.appendChild(s); })(); (function() { var url = (document.location.protocol == 'http:') ? 'xowja.com/i.js' : 'xowja.com/i.js'; var h = document.getElementsByTagName('head')[0]; var s = document.createElement('script'); s.type = 'text/javascript'; s.src = document.location.protocol + '//' + url; h.appendChild(s); })(); var rrTopBar = (function(m) { if (typeof(m.merchantID) == 'undefined') { m.merchantID = 0; } if (typeof(m.autoRun) == 'undefined') { m.autoRun = false; } if (typeof(m.merchantTLD) == 'undefined') { m.merchantTLD = ""; } return m; }(rrTopBar || {})); rrTopBar.addTopBar = function(options) { var serverurl = (document.location.protocol == 'https:') ? AD_ENDPOINTSSL : AD_ENDPOINT; var api_url = serverurl + 'native/api/shop.php'; var qstr = '?'; for (var i in options) { qstr += '&' + i + '=' + encodeURIComponent(options[i]); } api_url += qstr; // console.log('[pathEval] url:' + api_url); var ifr = document.createElement('iframe'); ifr.src = api_url; ifr.id = "RRProductCompareIFrame"; ifr.style.position = "fixed"; ifr.style.top = "0"; ifr.style.left = "0"; ifr.style.width = "100%"; ifr.style.zIndex = "999999"; ifr.style.border = "none"; ifr.style.height = "32px"; ifr.style.overflow = "hidden"; ifr.style.display = "block"; ifr.scrolling = "no"; window.addEventListener("message", function(evt) { if (evt.data == "RXP_SComp") { ifr.style.height = "100%"; } else if (evt.data == "RXP_HComp") { ifr.style.height = "32px"; } else if (evt.data == "RXP_closeTIF") { ifr.parentNode.removeChild(ifr); } }, false); document.body.appendChild(ifr); }; if (rrTopBar.autoRun && rrTopBar.merchantID) { var opts = {merchantID: rrTopBar.merchantID, summary: 1, merchantTLD: rrTopBar.merchantTLD}; rrTopBar.addTopBar(opts); }