var javascriptVersion1_1=false;javascriptVersion1_1=true;var detectableWithVB=false;var pluginFound=false;function goURL(a){if(javascriptVersion1_1){window.location.replace(a)}else{window.location=a}return}function redirectCheck(a,c,b){if(c&&((a&&b)||(!a&&!b))){goURL(c);return a}else{return a}}function canDetectPlugins(){if(detectableWithVB||(navigator.plugins&&navigator.plugins.length>0)){return true}else{return false}}function detectPDF(b,a){pluginFound=detectPlugin("Adobe","Acrobat");if(!pluginFound&&detectableWithVB){pluginFound=detectActiveXControl("PDF.PdfCtrl.5")}return redirectCheck(pluginFound,b,a)}function detectPlugin(){var c=detectPlugin.arguments;var b=false;if(navigator.plugins&&navigator.plugins.length>0){var a=navigator.plugins.length;for(pluginsArrayCounter=0;pluginsArrayCounter<a;pluginsArrayCounter++){var d=0;for(namesCounter=0;namesCounter<c.length;namesCounter++){if((navigator.plugins[pluginsArrayCounter].name.indexOf(c[namesCounter])>=0)||(navigator.plugins[pluginsArrayCounter].description.indexOf(c[namesCounter])>=0)){d++}}if(d==c.length){b=true;break}}}return b}if((navigator.userAgent.indexOf("MSIE")!=-1)&&(navigator.userAgent.indexOf("Win")!=-1)){document.writeln('<script language="VBscript">');document.writeln("'do a one-time test for a version of VBScript that can handle this code");document.writeln("detectableWithVB = False");document.writeln("If ScriptEngineMajorVersion >= 2 then");document.writeln("  detectableWithVB = True");document.writeln("End If");document.writeln("'this next function will detect most plugins");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("'and the following function handles QuickTime");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("<\/script>")}function PDFdetect(){if(canDetectPlugins()){if(detectPDF()==false){$(".menuInfo").each(function(){$(this).after('&nbsp;<br/><span class="infoMsg">It does not appear that your browser supports viewing PDF files. To view the file please go to <a href="http://get.adobe.com/reader/" target="new">http://get.adobe.com/reader/</a> to download the latest version of Adobe Reader or check your browser settings.</span>')});$(".menu").each(function(){var a=$(this).attr("href").split("?");$(this).attr("href",a[0]);$(this).unbind("click")})}}};
