2 * Ext JS Library 2.2.1
\r
3 * Copyright(c) 2006-2009, Ext JS, LLC.
\r
4 * licensing@extjs.com
\r
6 * http://extjs.com/license
\r
9 // Copyright 2007 Google Inc. All Rights Reserved.
\r
11 // Sets up google.gears.*, which is *the only* supported way to access Gears.
\r
13 // Circumvent this file at your own risk!
\r
15 // In the future, Gears may automatically define google.gears.* without this
\r
16 // file. Gears may use these objects to transparently fix bugs and compatibility
\r
17 // issues. Applications that use the code below will continue to work seamlessly
\r
18 // when that happens.
\r
21 // We are already defined. Hooray!
\r
22 if (window.google && google.gears) {
\r
29 if (typeof GearsFactory != 'undefined') {
\r
30 factory = new GearsFactory();
\r
34 factory = new ActiveXObject('Gears.Factory');
\r
37 if (navigator.mimeTypes["application/x-googlegears"]) {
\r
38 factory = document.createElement("object");
\r
39 factory.style.display = "none";
\r
42 factory.type = "application/x-googlegears";
\r
43 document.documentElement.appendChild(factory);
\r
48 // *Do not* define any objects if Gears is not installed. This mimics the
\r
49 // behavior of Gears defining the objects in the future.
\r
54 // Now set up the objects, being careful not to overwrite anything.
\r
55 if (!window.google) {
\r
59 if (!google.gears) {
\r
60 google.gears = {factory: factory};
\r
64 if (!window.google || !google.gears) {
\r
65 location.href = "http://gears.google.com/?action=install&message=Google%20Gears%20is%20required%20for%20this%20application" +
\r
66 "&return="+window.location.href;
\r