home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 March / PCgo 2008-03 (CD).iso / interface / contents / msservicepackloader_3458 / 12185 / files / d / m.js < prev    next >
Encoding:
JavaScript  |  2008-01-16  |  1.5 KB  |  52 lines

  1. /* MenuBox Script Header File - Version 3.00 */
  2. /* Copyright ⌐ 2002-2004 Cloanto Corporation */
  3. /* Free to Redistribute as per Software EULA */
  4. /* MenuBox Home Page: http://www.menubox.com */
  5.  
  6. var menubox_version = 0;
  7. if (window.external) if (window.external.menuboxversion) menubox_version = window.external.menuboxversion;
  8.  
  9. function menubox_close()
  10. {
  11.  if (menubox_version >= 200) window.external.close();
  12.  else window.close();
  13. }
  14.  
  15. function menubox_execute(file, parameters, directory, verb, show, absolutepath, wait)
  16. {
  17.  if (menubox_version >= 200) window.external.execute(file, parameters, directory, verb, show, absolutepath, wait);
  18.  else if (window.location) if (window.location.href) if (navigator.userAgent) if (file.length > 0)
  19.    {
  20.          if (file.charAt(file.length-1) == "\\" && navigator.userAgent.indexOf("MSIE 3") == -1) window.open(file,"_blank");
  21.         else window.location.href = file;
  22.    }
  23. }
  24.  
  25. function menubox_exists(file)
  26. {
  27.  if (menubox_version >= 230) return window.external.exists(file);
  28.  else return false;
  29. }
  30.  
  31. function menubox_language()
  32. {
  33.  if (menubox_version >= 230) return window.external.language;
  34.  else return "en";
  35. }
  36.  
  37. function menubox_title(title)
  38. {
  39.  if (menubox_version >= 232) window.external.title = title;
  40. }
  41.  
  42. function menubox_finddrive(path, message)
  43. {
  44.  if (menubox_version >= 300) return window.external.finddrive(path, message);
  45.  else { alert(message); return ""; }
  46. }
  47.  
  48. function menubox_playsound(file, wait)
  49. {
  50.  if (menubox_version >= 300) window.external.playsound(file, wait);
  51. }
  52.