
<!--
// write out the VBScript for MSIE Windows
var WM_startTagFix = '</';
var msie_windows = 0;
if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)){
  msie_windows = 1;
  document.writeln('<script language="VBscript">');
  document.writeln('Dim WM_detect_through_vb');
  document.writeln('WM_detect_through_vb = 0');
  document.writeln('If ScriptEngineMajorVersion >= 2 then');
  document.writeln('  WM_detect_through_vb = 1');
  document.writeln('End If');
  document.writeln('Function winIEActiveXDetect(activeXname)');
  document.writeln('  on error resume next');
  document.writeln('  If ScriptEngineMajorVersion >= 2 then');
  document.writeln('     winIEActiveXDetect = False');
  document.writeln('     winIEActiveXDetect = IsObject(CreateObject(activeXname))');
  document.writeln('     If (err) then');
  document.writeln('        winIEActiveXDetect = False');
  document.writeln('     End If');
  document.writeln('   Else');
  document.writeln('     winIEActiveXDetect = False');
  document.writeln('   End If');
  document.writeln('End Function');
  document.writeln(WM_startTagFix+'script>');
}
function pluginCheck(plugindescription, pluginxtension, pluginmime, activeXname){
var i,plugin_undetectable=0;
if (msie_windows && WM_detect_through_vb){
plugin_undetectable = 0;
} else {
plugin_undetectable = 1;
}


if((msie_windows == 1) && !plugin_undetectable){
// Check all other browers
return winIEActiveXDetect(activeXname);
} else if(navigator.userAgent){
// Check all other browers
   for(i=0; i < navigator.plugins.length; i++) {
   currentPlugin=navigator.plugins[i].name
   if (currentPlugin.match(plugindescription)) {
   return navigator.plugins.length;
   }
   }
   return 0;
   } 
   return 0;
}

// this function will detect the plugin passed if plugin exists the user will link to the jumpTo URL 
//
//
// @Param	whichPlugin			(String) plung in to check flash/director...
// @Param	jumpTo				(String) URL to go to if plugin exists
// @Param	openWin				(Boolean) if true (1) open new window when there is // no plugin and if false same window
//

function startDetect(whichPlugin, jumpTo, openNewWin) {
    // defines the mimetypes & activeX names
    var isItThere = 0;
    var noPluginPage="/uro/no" + whichPlugin + ".shtml";
    if( (whichPlugin == 'flash') || (whichPlugin == 'Flash') ) {
    isItThere = pluginCheck('Flash', 'swf', 'application/x-shockwave-flash', 'ShockwaveFlash.ShockwaveFlash');
    } else if( (whichPlugin == 'director') || (whichPlugin == 'Director') ) {
    isItThere = pluginCheck('Shockwave', 'dcr', 'application/x-director', 'SWCtl.SWCtl.1');
    } else if( (whichPlugin == 'quicktime') || (whichPlugin == 'Quicktime') || (whichPlugin == 'QuickTime') ) {
    isItThere = pluginCheck('QuickTime', 'mov', 'video/quicktime', '');
    } else if( (whichPlugin == 'real') || (whichPlugin == 'Realaudio') || (whichPlugin == 'RealAudio') ) {
    isItThere = (pluginCheck('RealPlayer', 'rpm', 'audio/x-pn-realaudio-plugin', 'RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)')) || (pluginCheck('RealPlayer', 'rpm', 'audio/x-pn-realaudio-plugin','rmocx.RealPlayer G2 Control')) || (pluginCheck('RealPlayer', 'rpm', 'audio/x-pn-realaudio-plugin','RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)')) || (pluginCheck('RealPlayer', 'rpm', 'audio/x-pn-realaudio-plugin','RealVideo.RealVideo(tm) ActiveX Control (32-bit)'))
    } else {
    alert('You need specify which plug-in to look for:\n\n' 
      + ' startDetect(\'flash\')\n' 
        + ' startDetect(\'director\')\n' 
	  + ' startDetect(\'quicktime\')\n' 
	    + ' startDetect(\'realaudio\')');
    }

     if(isItThere)  {
    document.location = jumpTo
    } else if(openNewWin) {
	window.open( noPluginPage, 'noplugin', "width=650,height=515,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=no,resizable=1")
	} else {
    document.location =  noPluginPage }
} 
// -->




