/* Site specific functions These override the functions in detect.js so that each site can have custom behaviors */ function getPluginServerPath(type) { if (type.toLowerCase()=='real') { return 'rtsp://a885.v53946.c5394.g.vr.akamaistream.net/ondemand/7/885/5394/v001/nickcomstor.download.akamai.com/8604/nickelodeon'; } else if (type.toLowerCase()=='wmp') { return 'mms://a1568.v53949.c5394.g.vm.akamaistream.net/7/1568/5394/v001/nickcomstor.download.akamai.com/8604/nickelodeon'; } else if (type.toLowerCase()=='quicktime') { return ''; } } function getAvPluginSrc(srcArray) { var wmpSrc = null; var realSrc = null; var quicktimeSrc = null; var wmp = detect.wmp.installed(); var real = detect.real.installed(); var quicktime = detect.quicktime.installed(); // Check what was passed in for (a in srcArray) { var ext = srcArray[a].substring(srcArray[a].lastIndexOf('.')+1, srcArray[a].length); if ((ext == 'asf')||(ext=='asx')) { wmpSrc = srcArray[a]; } else if ((ext == 'rm')||(ext == 'ram')||(ext == 'ra')) { realSrc = srcArray[a]; } else if (ext == 'mov') { quicktimeSrc = srcArray[a]; } } // See if the user has plugins for the sources that were passed in if ((quicktime)&&(quicktimeSrc!=null)) { return quicktimeSrc; } else if ((real)&&(realSrc!=null)) { return realSrc; } else if ((wmp)&&(wmpSrc!=null)) { return wmpSrc; } else if (quicktimeSrc!=null) { return 'quicktime'; } else if (realSrc!=null) { return 'real'; } else if (wmpSrc!=null) { return 'wmp'; } else { return 'alternateContent'; } } function getquicktimePlugin(version){ var getquicktimePluginPop = window.open("/common/detect/quicktime_dir/","GetQuicktime",'width=380,height=375, toolbar=no,resizeable=no,scrollbars=no') } function getwmpPlugin(version){ var getwmpPluginPop = window.open("/common/detect/wmp_dir/","GetQuicktime",'width=380,height=375, toolbar=no,resizeable=no,scrollbars=no') } function getrealPlugin(version){ var getrealPluginPop = window.open("/common/detect/real_dir/","GetQuicktime",'width=380,height=375, toolbar=no,resizeable=no,scrollbars=no') } /* Override detection. Quicktime will always appear installed as far as detection is concerned. */ function getquicktimeVersion() { return 200; }