var dvF = ""; if(window.navigator.userAgent.toLowerCase().includes('mac') && window.navigator.userAgent.toLowerCase().includes('safari') && (window.innerWidth == 768 || window.innerWidth == 1024) && navigator.vendor.toLowerCase().includes("apple")){ dvF = "1"; } console.log('rms_1.58'); window['rmsclient_8708499553fcb7a71567e7d21edc8b41'] = window.location.href; window['rmsScriptUrl_8708499553fcb7a71567e7d21edc8b41'] = '//s4.richmediastudio.com/rmsCre/7nvw0dwXyT/?hasConsent=0&stid=0&adc=&cd='+encodeURIComponent(window['rmsclient_8708499553fcb7a71567e7d21edc8b41'])+'&rnd=8708499553fcb7a71567e7d21edc8b41'+'&mediaType='+'&rmsCont=8708499553fcb7a71567e7d21edc8b41&dvF=' + dvF +''; window['rmsOOPContent_8708499553fcb7a71567e7d21edc8b41'] = document.createElement('script'); window['rmsOOPContent_8708499553fcb7a71567e7d21edc8b41'].setAttribute('type', 'text/javascript'); window['rmsOOPContent_8708499553fcb7a71567e7d21edc8b41'].setAttribute('src', window['rmsScriptUrl_8708499553fcb7a71567e7d21edc8b41']); window['rmsOOPtracking_8708499553fcb7a71567e7d21edc8b41'] = document.createElement('div'); window['rmsOOPtracking_8708499553fcb7a71567e7d21edc8b41'].setAttribute('id', '8708499553fcb7a71567e7d21edc8b41'); try { if (window == window.parent) { if (typeof rms_oop_have_skin == 'undefined') { var rms_oop_have_skin = true; document.body.appendChild(window['rmsOOPContent_8708499553fcb7a71567e7d21edc8b41']); document.body.appendChild(window['rmsOOPtracking_8708499553fcb7a71567e7d21edc8b41']); console.log('rms_oop_have_skin: '+rms_oop_have_skin); } else { console.log('rms_oop_have_skin: '+rms_oop_have_skin); } } else { targetIframe = null; if(window.parent.window.parent != window.parent) { targetIframe = window.parent.window.parent; subTargetIframe = window.parent; } else { targetIframe = window.parent; subTargetIframe = window; } if(targetIframe != targetIframe.window.parent){ subTargetIframe = targetIframe; targetIframe = targetIframe.window.parent; } pnetFound = ""; var i,ifcnt=targetIframe.frames.length; for(i = 0; i < ifcnt; i++) { try { if (targetIframe.frames[i]==subTargetIframe.self) { pnetFound=i;break; } } catch(e) {} } if (window.frameElement) { for(i = 0; i < ifcnt; i++){ try { if(targetIframe.frames[pnetFound].frameElement===targetIframe.document.getElementsByTagName('IFRAME')[i]){ pnetFound=i;break; } }catch(e){ } } } pnetIframeExt = targetIframe.document.getElementsByTagName('IFRAME')[pnetFound]; if(typeof pnetIframeExt !== "undefined"){ pnetIframeExt.style.width = "0px"; pnetIframeExt.style.height = "0px"; pnetIframeExt.style.display = "none"; } if (typeof targetIframe.rms_oop_have_skin == 'undefined') { targetIframe.rms_oop_have_skin = true; targetIframe.document.body.appendChild(window['rmsOOPContent_8708499553fcb7a71567e7d21edc8b41']); targetIframe.document.body.appendChild(window['rmsOOPtracking_8708499553fcb7a71567e7d21edc8b41']); console.log('rms_oop_have_skin: '+ targetIframe.rms_oop_have_skin); } else { console.log('rms_oop_have_skin: '+ targetIframe.rms_oop_have_skin); } } } catch(e) { console.log(e); }