home *** CD-ROM | disk | FTP | other *** search
- /* MenuBox Script Header File - Version 3.00 */
- /* Copyright ⌐ 2002-2004 Cloanto Corporation */
- /* Free to Redistribute as per Software EULA */
- /* MenuBox Home Page: http://www.menubox.com */
-
- var menubox_version = 0;
- if (window.external) if (window.external.menuboxversion) menubox_version = window.external.menuboxversion;
-
- function menubox_close()
- {
- if (menubox_version >= 200) window.external.close();
- else window.close();
- }
-
- function menubox_execute(file, parameters, directory, verb, show, absolutepath, wait)
- {
- if (menubox_version >= 200) window.external.execute(file, parameters, directory, verb, show, absolutepath, wait);
- else if (window.location) if (window.location.href) if (navigator.userAgent) if (file.length > 0)
- {
- if (file.charAt(file.length-1) == "\\" && navigator.userAgent.indexOf("MSIE 3") == -1) window.open(file,"_blank");
- else window.location.href = file;
- }
- }
-
- function menubox_exists(file)
- {
- if (menubox_version >= 230) return window.external.exists(file);
- else return false;
- }
-
- function menubox_language()
- {
- if (menubox_version >= 230) return window.external.language;
- else return "en";
- }
-
- function menubox_title(title)
- {
- if (menubox_version >= 232) window.external.title = title;
- }
-
- function menubox_finddrive(path, message)
- {
- if (menubox_version >= 300) return window.external.finddrive(path, message);
- else { alert(message); return ""; }
- }
-
- function menubox_playsound(file, wait)
- {
- if (menubox_version >= 300) window.external.playsound(file, wait);
- }
-