/*************************************************************************/ // Requires the following script libraries. // // /global/apps/mediaplayer/scripts/os_detect.js // /shared/scripts/flash_detect.js // /sitewide/droplets/scripts/detect_overdrive.js // /*************************************************************************/ var od_win; var detectState=""; var fn=""; var ok=""; function launchOverdriveDetect(){ var resultStatus = getOverdriveState().detectState; if (resultStatus == "ok"){ return true; } else{ window.location.href = detectFailUrlWin + "?error=" + resultStatus; } } function launchOverdrive(){ if (getOverdriveState().detectState == "XXXok") { var broadband_parent = parentWindowVar; var url = detectSuccessUrl; var width; var height; var odscrollbars; var odresizable; var purlArray = null; if (getOverdriveState().dim == "lowres"){ width = 800; height = 600; odscrollbars = "yes"; odresizable = "yes"; } else { width = winWidth; height = winHeight; odscrollbars = "no"; odresizable = "no"; } // CONSTRUCT DEEP LINK ARGS var qs = ""; if(arguments.length > 0){ qs = "?"+arguments[0]; for(i=1; i 0)) { docloc = fullLoc.substr(fullLoc.indexOf('#') +1, fullLoc.length).split("?")[0]; } if(qs.length > 0){ qs += "&launchedFrom=" + docloc; } else{ qs += "?launchedFrom=" + docloc; } var path = url+qs; od_win = window.open(path, "player", "width=" + width + ", height=" + height + ", left=" + (Math.round(window.screen.width/2) - Math.round(width/2)) + ", top=" + (Math.round(window.screen.height/2) - Math.round(height/2)) + ",scrollbars=" + odscrollbars + ", resizable=" + odresizable + ", menubar=no, location=no, toolbar=no, status=no, directories=no" ); if (purlArray != null) window.location.href = purlArray[1]; broadbandWindowPopped(od_win, path); } else{ // window.location.href = detectFailUrl; var qs = ""; if(arguments.length > 0){ qs = arguments[0]; for(i=1; i= 8 && GetCookieUtil("sitePreferenceSet") == "false") { var args = ""; if(arguments.length > 0){ args = arguments[0]; for(i=1; i 0) { args = param[0]; if (param.length > 1) { for (i=1; i= 9) { return true; } else { return false; } } catch(e) { return false; } } function hasIE55plus(){ var version=0; if (navigator.appVersion.indexOf("MSIE")!=-1){ temp=navigator.appVersion.split("MSIE"); version=parseFloat(temp[1]); } if (version >= 5.5) { return true; } else { return false; } }