var navigator2 = {
appName: 'Netscape',
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1'
};
var window2 = {
ASN1 : null,
Base64 : null,
Hex : null,
crypto : null,
href : null
};
var KJUR = null;
if (typeof YAHOO == "undefined" || !YAHOO) {
var YAHOO = {};
}
YAHOO.namespace = function() {
var b = arguments,
g = null,
e, c, f;
for (e = 0; e < b.length; e = e + 1) {
f = ("" + b[e]).split(".");
g = YAHOO;
for (c = (f[0] == "YAHOO") ? 1 : 0; c < f.length; c = c + 1) {
g[f[c]] = g[f[c]] || {};
g = g[f[c]];
}
}
return g;
};
YAHOO.log = function(d, a, c) {
var b = YAHOO.widget.Logger;
if (b && b.log) {
return b.log(d, a, c);
} else {
return false;
}
};
YAHOO.register = function(a, f, e) {
var k = YAHOO.env.modules,
c, j, h, g, d;
if (!k[a]) {
k[a] = {
versions: [],
builds: []
};
}
c = k[a];
j = e.version;
h = e.build;
g = YAHOO.env.listeners;
c.name = a;
c.version = j;
c.build = h;
c.versions.push(j);
c.builds.push(h);
c.mainClass = f;
for (d = 0; d < g.length; d = d + 1) {
g[d](c);
}
if (f) {
f.VERSION = j;
f.BUILD = h;
} else {
YAHOO.log("mainClass is undefined for module " + a, "warn");
}
};
YAHOO.env = YAHOO.env || {
modules: [],
listeners: []
};
YAHOO.env.getVersion = function(a) {
return YAHOO.env.modules[a] || null;
};
YAHOO.env.parseUA = function(d) {
var e = function(i) {
var j = 0;
return parseFloat(i.replace(/\./g,
function() {
return (j++==1) ? "": ".";
}));
},
h = navigator2,
g = {
ie: 0,
opera: 0,
gecko: 0,
webkit: 0,
chrome: 0,
mobile: null,
air: 0,
ipad: 0,
iphone: 0,
ipod: 0,
ios: null,
android: 0,
webos: 0,
caja: h && h.cajaVersion,
secure: false,
os: null
},
c = d || (navigator2 && navigator2.userAgent),
f = window2 && window2.location,
b = f && f.href,
a;
g.secure = b && (b.toLowerCase().indexOf("https") === 0);
if (c) {
if ((/windows|win32/i).test(c)) {
g.os = "windows";
} else {
if ((/macintosh/i).test(c)) {
g.os = "macintosh";
} else {
if ((/rhino/i).test(c)) {
g.os = "rhino";
}
}
}
if ((/KHTML/).test(c)) {
g.webkit = 1;
}
a = c.match(/AppleWebKit\/([^\s]*)/);
if (a && a[1]) {
g.webkit = e(a[1]);
if (/ Mobile\//.test(c)) {
g.mobile = "Apple";
a = c.match(/OS ([^\s]*)/);
if (a && a[1]) {
a = e(a[1].replace("_", "."));
}
g.ios = a;
g.ipad = g.ipod = g.iphone = 0;
a = c.match(/iPad|iPod|iPhone/);
if (a && a[0]) {
g[a[0].toLowerCase()] = g.ios;
}
} else {
a = c.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);
if (a) {
g.mobile = a[0];
}
if (/webOS/.test(c)) {
g.mobile = "WebOS";
a = c.match(/webOS\/([^\s]*);/);
if (a && a[1]) {
g.webos = e(a[1]);
}
}
if (/ Android/.test(c)) {
g.mobile = "Android";
a = c.match(/Android ([^\s]*);/);
if (a && a[1]) {
g.android = e(a[1]);
}
}
}
a = c.match(/Chrome\/([^\s]*)/);
if (a && a[1]) {
g.chrome = e(a[1]);
} else {
a = c.match(/AdobeAIR\/([^\s]*)/);
if (a) {
g.air = a[0];
}
}
}
if (!g.webkit) {
a = c.match(/Opera[\s\/]([^\s]*)/);
if (a && a[1]) {
g.opera = e(a[1]);
a = c.match(/Version\/([^\s]*)/);
if (a && a[1]) {
g.opera = e(a[1]);
}
a = c.match(/Opera Mini[^;]*/);
if (a) {
g.mobile = a[0];
}
} else {
a = c.match(/MSIE\s([^;]*)/);
if (a && a[1]) {
g.ie = e(a[1]);
} else {
a = c.match(/Gecko\/([^\s]*)/);
if (a) {
g.gecko = 1;
a = c.match(/rv:([^\s\)]*)/);
if (a && a[1]) {
g.gecko = e(a[1]);
}
}
}
}
}
}
return g;
};
YAHOO.env.ua = YAHOO.env.parseUA(); (function() {
YAHOO.namespace("util", "widget", "example");
if ("undefined" !== typeof YAHOO_config) {
var b = YAHOO_config.listener,
a = YAHOO.env.listeners,
d = true,
c;
if (b) {
for (c = 0; c < a.length; c++) {
if (a[c] == b) {
d = false;
break;
}
}
if (d) {
a.push(b);
}
}
}
})();
YAHOO.lang = YAHOO.lang || {}; (function() {
var f = YAHOO.lang,
a = Object.prototype,
c = "[object Array]",
h = "[object Function]",
i = "[object Object]",
b = [],
g = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'",
"/": "/",
"`": "`"
},
d = ["toString", "valueOf"],
e = {
isArray: function(j) {
return a.toString.apply(j) === c;
},
isBoolean: function(j) {
return typeof j === "boolean";
},
isFunction: function(j) {
return (typeof j === "function") || a.toString.apply(j) === h;
},
isNull: function(j) {
return j === null;
},
isNumber: function(j) {
return typeof j === "number" && isFinite(j);
},
isObject: function(j) {
return (j && (typeof j === "object" || f.isFunction(j))) || false;
},
isString: function(j) {
return typeof j === "string";
},
isUndefined: function(j) {
return typeof j === "undefined";
},
_IEEnumFix: (YAHOO.env.ua.ie) ?
function(l, k) {
var j, n, m;
for (j = 0; j < d.length; j = j + 1) {
n = d[j];
m = k[n];
if (f.isFunction(m) && m != a[n]) {
l[n] = m;
}
}
}: function() {},
escapeHTML: function(j) {
return j.replace(/[&<>"'\/`]/g,
function(k) {
return g[k];
});
},
extend: function(m, n, l) {
if (!n || !m) {
throw new Error("extend failed, please check that " + "all dependencies are included.");
}
var k = function() {},
j;
k.prototype = n.prototype;
m.prototype = new k