var pluginFound1=false;var pluginFound2=false;var pluginFound3=false;function plugin_check(A){(navigator.userAgent.indexOf("Win")!=-1)?plugin_check_win(A):plugin_check_mac(A);if(pluginFound1||pluginFound2||pluginFound3){return true}else{return false}}function plugin_check_mac(A){if(A){detectHDS()}return true}function detectHDS(){pluginFound1=detectPlugin("ISIplugin");pluginFound2=detectPlugin("HDSchem");if(pluginFound1||pluginFound2){pluginFound3="1"}else{pluginFound3="0"}}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("'this next function will detect most plugins");document.writeln("Function plugin_ie()");document.writeln("  on error resume next");document.writeln("  dim obj");document.writeln('  set obj = CreateObject("ChemATL.ChemServer.1")');document.writeln("  plugin_ie = IsObject(obj)");document.writeln("  set obj = Nothing");document.writeln("  obj = Empty");document.writeln("End Function");document.writeln("<\/script>")}function plugin_check_win(A){if(A){var B=navigator.plugins["Hampden Data Services Ltd. Development"];if(navigator.appName=="Microsoft Internet Explorer"){if(plugin_ie()){pluginFound3=1}}else{if(B){pluginFound3=1}}}return pluginFound3};
