var agt=navigator.userAgent.toLowerCase();var ie=(agt.indexOf("msie")!=-1);var ns=(navigator.appName.indexOf("Netscape")!=-1);var win=((agt.indexOf("win")!=-1)||(agt.indexOf("32bit")!=-1));var mac=(agt.indexOf("mac")!=-1);var detectableWithVB=false;var pluginFound=false;pluginlist='';if(self.location.href.indexOf('MediaPreview.aspx')>0){if(ie&& win){pluginlist=detectIE("Adobe.SVGCtl","SVG Viewer")+detectIE("SWCtl.SWCtl.1","Shockwave Director")+detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash")+detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer")+detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime")+detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player")+detectIE("PDF.PdfCtrl.5","Acrobat Reader");}}if(ns||!win){if(mac){if(navigator.userAgent.indexOf('MSIE')!=-1){document.writeln('<script language="VBscript">');document.writeln('detectableWithVB = False');document.writeln('If ScriptEngineMajorVersion >= 2 then');document.writeln('  detectableWithVB = True');document.writeln('End If');document.writeln('Function detectActiveXControl(activeXControlName)');document.writeln('  on error resume next');document.writeln('  detectActiveXControl = False');document.writeln('  If detectableWithVB Then');document.writeln('     detectActiveXControl = IsObject(CreateObject(activeXControlName))');document.writeln('  End If');document.writeln('End Function');document.writeln('Function detectQuickTimeActiveXControl()');document.writeln('  on error resume next');document.writeln('  detectQuickTimeActiveXControl = False');document.writeln('  If detectableWithVB Then');document.writeln('    detectQuickTimeActiveXControl = False');document.writeln('    hasQuickTimeChecker = false');document.writeln('    Set hasQuickTimeChecker = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1")');document.writeln('    If IsObject(hasQuickTimeChecker) Then');document.writeln('      If hasQuickTimeChecker.IsQuickTimeAvailable(0) Then ');document.writeln('        detectQuickTimeActiveXControl = True');document.writeln('      End If');document.writeln('    End If');document.writeln('  End If');document.writeln('End Function');document.writeln('</scr'+'ipt>');}pluginlist='';if(SVGViewer())pluginlist="SVG Viewer,";if(detectDirector())pluginlist+="Shockwave Director,";if(detectFlash())pluginlist+="Shockwave Flash,";if(detectReal())pluginlist+="RealPlayer,";if(detectQuickTime())pluginlist+="QuickTime,";if(detectWindowsMedia())pluginlist+="Windows Media Player,";if(AcrobatReader())pluginlist+="Acrobat Reader,";}else{nse="";for(var i=0;i<navigator.mimeTypes.length;i++)nse+=navigator.mimeTypes[i].type.toLowerCase();pluginlist=detectNS("image/svg-xml","SVG Viewer")+detectNS("application/x-director","Shockwave Director")+detectNS("application/x-shockwave-flash","Shockwave Flash")+detectNS("audio/x-pn-realaudio-plugin","RealPlayer")+detectNS("video/quicktime","QuickTime")+detectNS("application/x-mplayer2","Windows Media Player")+detectNS("application/pdf","Acrobat Reader");}}function detectIE(ClassID,name){result=false;document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("'+ClassID+'"))</SCRIPT>\n');if(result)return name+',';else return '';}function detectNS(ClassID,name){n="";if(nse.indexOf(ClassID)!=-1)if(navigator.mimeTypes[ClassID].enabledPlugin!=null)n=name+",";return n;}pluginlist+=navigator.javaEnabled()?"Java,":"";if(pluginlist.length>0)pluginlist=pluginlist.substring(0,pluginlist.length-1);function detectPlugin(){var daPlugins=detectPlugin.arguments;var pluginFound=false;if(navigator.plugins&& navigator.plugins.length>0){var pluginsArrayLength=navigator.plugins.length;for(pluginsArrayCounter=0;pluginsArrayCounter<pluginsArrayLength;pluginsArrayCounter++){var numFound=0;for(namesCounter=0;namesCounter<daPlugins.length;namesCounter++){if((navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter])>=0)||(navigator.plugins[pluginsArrayCounter].description.indexOf(daPlugins[namesCounter])>=0)){numFound++;}}if(numFound==daPlugins.length){pluginFound=true;break;}}}return pluginFound;}function SVGViewer(redirectURL,redirectIfFound){pluginFound=detectPlugin('SVG Viewer');if(!pluginFound&& detectableWithVB){pluginFound=detectActiveXControl('Adobe.SVGCtl');}return pluginFound;}function AcrobatReader(redirectURL,redirectIfFound){pluginFound=detectPlugin('Acrobat Reader');if(!pluginFound&& detectableWithVB){pluginFound=detectActiveXControl('PDF.PdfCtrl.5');}return pluginFound;}function detectFlash(redirectURL,redirectIfFound){pluginFound=detectPlugin('Shockwave','Flash');if(!pluginFound&& detectableWithVB){pluginFound=detectActiveXControl('ShockwaveFlash.ShockwaveFlash.1');}return pluginFound;}function detectDirector(redirectURL,redirectIfFound){pluginFound=detectPlugin('Shockwave','Director');if(!pluginFound&& detectableWithVB){pluginFound=detectActiveXControl('SWCtl.SWCtl.1');}return pluginFound;}function detectQuickTime(redirectURL,redirectIfFound){pluginFound=detectPlugin('QuickTime');if(!pluginFound&& detectableWithVB){pluginFound=detectQuickTimeActiveXControl();}return pluginFound;}function detectReal(redirectURL,redirectIfFound){pluginFound=detectPlugin('RealPlayer');if(!pluginFound&& detectableWithVB){pluginFound=(detectActiveXControl('rmocx.RealPlayer G2 Control')||detectActiveXControl('RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)')||detectActiveXControl('RealVideo.RealVideo(tm) ActiveX Control (32-bit)'));}return pluginFound;}function detectWindowsMedia(redirectURL,redirectIfFound){pluginFound=detectPlugin('Windows Media');if(!pluginFound&& detectableWithVB){pluginFound=detectActiveXControl('MediaPlayer.MediaPlayer.1');}return pluginFound;}