(function() {
/* Copyright 2010 Google Inc. */
if (!("google" in window)) {
window.google = {}
}
if (!("earth" in window.google)) {
window.google.earth = {}
}
;
if (!("google" in window)) {
window.google = {}
}
if (!("idlglue" in window.google)) {
window.google.idlglue = {}
}
window.google.idlglue.BROWSER_FIREFOX = "ff";
window.google.idlglue.BROWSER_IE = "ie";
window.google.idlglue.BROWSER_MOZILLA = "moz";
window.google.idlglue.BROWSER_OPERA = "opera";
window.google.idlglue.BROWSER_NETSCAPE = "netscape";
window.google.idlglue.BROWSER_CHROME = "chrome";
window.google.idlglue.BROWSER_SAFARI = "safari";
window.google.idlglue.BROWSER_GOOGLE_EARTH = "google earth";
window.google.idlglue.supportsNpapi =
function(a) {
var b = window.google.idlglue;
return a == b.BROWSER_FIREFOX || a == b.BROWSER_MOZILLA || a == b.BROWSER_NETSCAPE || a == b.BROWSER_CHROME || a == b.BROWSER_OPERA || a == b.BROWSER_SAFARI || a == b.BROWSER_GOOGLE_EARTH
};
window.google.idlglue.PLATFORM_MAC = "mac";
window.google.idlglue.PLATFORM_LINUX = "linux";
window.google.idlglue.PLATFORM_WINDOWS = "windows";
window.google.idlglue.PLUGIN_MAIN_CLSID = "F9152AEC-3462-4632-8087-EEE3C3CDDA24";
window.google.idlglue.PLUGIN_MAIN_MIMETYPE = "application/geplugin";
window.google.idlglue.findAvailableId =
function(a) {
var b = null;
for (var d = 0; d < 100; d++) {
var e = a + d;
if (!document.getElementById(e)) {
b = e
}
}
return b
};
window.google.idlglue.getPlatform = function() {
var a = navigator.userAgent;
if (a.indexOf("Windows") >= 0) {
return window.google.idlglue.PLATFORM_WINDOWS
}
if (a.indexOf("Macintosh") >= 0) {
return window.google.idlglue.PLATFORM_MAC
}
if (a.indexOf("Linux") >= 0) {
return window.google.idlglue.PLATFORM_LINUX
}
return null
};
window.google.idlglue.getBrowser = function() {
var a = navigator.appName, b = navigator.userAgent, d = window.google.idlglue,
e = d.getPlatform();
if (b.indexOf("Google Earth") >= 0) {
return d.BROWSER_GOOGLE_EARTH
} else if (b.indexOf("Opera") >= 0) {
return d.BROWSER_OPERA
} else if (b.indexOf("Firefox") >= 0 || b.indexOf("Minefield") >= 0) {
return d.BROWSER_FIREFOX
} else if (b.indexOf("Chrome") >= 0) {
return d.BROWSER_CHROME
} else if (b.indexOf("Safari") >= 0) {
return d.BROWSER_SAFARI
} else if (a.indexOf("Internet Explorer") >= 0) {
return d.BROWSER_IE
} else if (a.indexOf("Mozilla") >= 0) {
return d.BROWSER_MOZILLA
} else if (a.indexOf("Netscape") >= 0) {
return d.BROWSER_NETSCAPE
}
return null
};
window.google.idlglue.getIeMajorVersion = function() {
var a = navigator.userAgent, b = a.indexOf("MSIE ");
if (b == -1) {
return 0
} else {
return parseInt(a.substring(b + 5, a.indexOf(";", b)), 10)
}
};
window.google.idlglue.isSupportedPlatform = function(a) {
var b = window.google.idlglue;
return a == b.PLATFORM_WINDOWS || a == b.PLATFORM_MAC
};
window.google.idlglue.isDeprecatedPlatform = function() {
var a = navigator.userAgent, b = a.indexOf("PPC Mac") >= 0, d = false, e = /Mac OS X 10[_.]4[^0-9]/, f = e.exec(a), d = f && f.length > 0;
return b || d
};
window.google.idlglue.isSupportedBrowser =
function(a, b) {
var d = window.google.idlglue;
if (a == d.PLATFORM_WINDOWS) {
return b == d.BROWSER_FIREFOX || b == d.BROWSER_IE || b == d.BROWSER_CHROME || b == d.BROWSER_MOZILLA || b == d.BROWSER_NETSCAPE || b == d.BROWSER_OPERA || b == d.BROWSER_GOOGLE_EARTH
} else if (a == d.PLATFORM_MAC) {
return b == d.BROWSER_FIREFOX || b == d.BROWSER_SAFARI || b == d.BROWSER_CHROME || b == d.BROWSER_OPERA || b == d.BROWSER_GOOGLE_EARTH
} else if (a == d.PLATFORM_LINUX) {
return b == d.BROWSER_FIREFOX || b == d.BROWSER_MOZILLA
}
return false
};
window.google.idlglue.isSupported = function() {
var a =
document.location.hash;
if (a.indexOf("geplugin_browserok") != -1)
return true;
var b = window.google.idlglue, d = b.getPlatform(), e = b.getBrowser();
if (b.isSupportedPlatform(d) && b.isSupportedBrowser(d, e)) {
return true
}
return false
};
window.google.idlglue.logCsi = function(a, b, d, e) {
var f = window.location.protocol == "https:";
window.google.idlglue.logCsi2(a, b, f, d, e)
};
window.google.idlglue.logCsi2 = function(a, b, d, e, f) {
if (e.length) {
var c = "";
for (var i = 0; i < e.length; i++) {
var g = e[i];
if (i > 0) {
c += ","
}
c += g[0] + "." + g[1]
}
var l = "http://csi.gstatic.com/csi";
if (d) {
l = "https://www.google.com/csi"
}
var h = l + "?v=2&s=" + a + "&rls=" + b + "&it=" + c;
if (f) {
h += "&" + f
}
window.google.idlglue.createImageForLogging(h)
}
};
window.google.idlglue.createImageForLogging = function(a) {
var b = new Image, d = window.google.idlglue.createImageForLogging.n++;
window.google.idlglue.createImageForLogging.g[d] = b;
b.onload = (b.onerror = function() {
delete window.google.idlglue.createImageForLogging.g[d]
});
b.src = a;
b = null
};
window.google.idlglue.createImageForLogging.g = {};
window.google.idlglue.createImageForLogging.n =
0;
window.google.idlglue.showError = function(a, b, d) {
var e = window.google.idlglue;
if (!a.pluginDiv) {
return
}
a.pluginDiv.style.left = "" + -screen.width * 2 + "px";
a.pluginDiv.style.top = "" + -screen.height * 2 + "px";
a.messageDiv.style.display = "";
var f = "";
if (d) {
f = "&detail=" + encodeURIComponent(d)
}
a.messageDiv.innerHTML = '<iframe src="' + a.errorUrl + "#error=" + encodeURIComponent(b) + f + '" width="100%" height="100%" frameborder=0></iframe>';
e.doErrorCleanup(a)
};
window.google.idlglue.doErrorCleanup = function(a) {
var b = a.errorCleanupCallbacks;
if (b) {
for (var d = 0; d < b.length; d++) {
b[d]()
}
a.errorCleanupCallbacks = null
}
if (a.pluginDiv.parentNode == a.positioningDiv) {
a.positioningDiv.removeChild(a.pluginDiv)
}
a.iface = null;
a.div = null;
a.pluginDiv = null
};
window.google.idlglue.createPluginAsInnerHTML = function(a, b, d) {
var e = window.google.idlglue;
if (window.google.idlglue.supportsNpapi(a)) {
b.innerHTML = '<embed type="' + e.PLUGIN_MAIN_MIMETYPE + '" style="margin:0px; padding:0px; width:100%; height:100%;"></embed>';
return true
} else if (a == e.BROWSER_IE) {
b.innerHTML =
'<object id="' + d + '" classid="CLSID:' + e.PLUGIN_MAIN_CLSID + '" style="margin:0px; padding:0px; width:100%; height:100%;"></object>';
return true
}
b.innerHTML = "<div></div>";
return false