home *** CD-ROM | disk | FTP | other *** search
/ All-Terrain Challenge Presented by the Jeep brand / Jeep.iso / fscommand / snowboard mountain / load.js < prev    next >
Encoding:
Text File  |  2001-03-28  |  1.1 KB  |  20 lines

  1.     var DOWNLOAD_URL    = "http://www.wildtangent.com/download/wdriver";
  2.     // MSIE WebDriver Detection code for IE. Used to detect if the driver is installed:
  3.     if ( document.all )
  4.     {
  5.         document.write( '<SCRIPT LANGUAGE="VBScript">\nfunction ieDetectDriver\non error resume next\nDim wtObject\nSet wtObject = CreateObject("WT3D.WT")\nif err.number <> 0 then\nSet wtObject = Nothing\nieDetectDriver = false\nelse\nSet wtObject = Nothing\nieDetectDriver = true\nend if\nend function\n<\/SCRIPT>' );
  6.     }
  7.  
  8.     function webDriverExists()
  9.     {
  10.         return ( ( document.all && ieDetectDriver() ) || ( document.layers && ( navigator.plugins["WildTangent Web Driver Plugin"] && navigator.mimeTypes["application/x-wildtangent-web-driver"] && navigator.mimeTypes["application/x-wildtangent-web-driver"].enabledPlugin ) ) ) != null;
  11.     }
  12.  
  13.     function openDownloadWindow()
  14.     {
  15.         if ( DOWNLOAD_URL != "" && confirm( "It appears that you do not have the latest WildTangent WebDriver installed on your machine.  Would you like to open a new window to download it?" ) )
  16.         {
  17.             open( DOWNLOAD_URL );
  18.         }
  19.     }
  20.