var activex = ((navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('MSIE') != -1) && (parseInt(navigator.appVersion) >= 4 )); var CantDetect = ((navigator.userAgent.indexOf('Safari') != -1) || (navigator.userAgent.indexOf('Opera') != -1)); function oopsPopup() { if((navigator.language && navigator.language.indexOf("ja") != -1) || (navigator.systemLanguage && navigator.systemLanguage.indexOf("ja") != -1) || (navigator.userLanguage && navigator.userLanguage.indexOf("ja") != -1)) { var URLtoOpen = "https://rollins-law.com/wp-content/plugins/skype-online-status/oops/oops_ja.html"; } else { var URLtoOpen = "https://rollins-law.com/wp-content/plugins/skype-online-status/oops/oops.html"; } var windowName = "oops"; var popW = 540, popH = 305; var scrollB = 'no'; w = screen.availWidth; h = screen.availHeight; var leftPos = (w-popW)/2, topPos = (h-popH)/2; oopswindow = window.open(URLtoOpen, windowName,'width=' + popW + ',height=' + popH + ',scrollbars=' + scrollB + ',screenx=' +leftPos +',screeny=' +topPos +',top=' +topPos +',left=' +leftPos); return false; } if(typeof(detected) == "undefined" && activex) { document.write( [''].join("\n") ); } function skypeCheck() { if(CantDetect) { return true; } else if(!activex) { var skypeMime = navigator.mimeTypes["application/x-skype"]; detected = true; if(typeof(skypeMime) == "object") { return true; } else { return oopsPopup(); } } else { if(isSkypeInstalled()) { detected = true; return true; } } detected = true; return oopsPopup(); } function loadDetection() { if(document.getElementById && document.getElementsByTagName) { if (window.addEventListener) window.addEventListener('load', addDetection, false); else if (window.attachEvent) window.attachEvent('onload', addDetection); } } function addDetection() { var pageLinks = document.getElementsByTagName("a"); for (var i=0; i