#63 JavaScript::Eval (size: 37911, repeated: 1) var JSON;
if (!JSON) {
JSON = {};
}(function() {
"use strict";
function f(n) {
return n < 10 ? '0' + n : n;
}
if (typeof Date.prototype.toJSON !== 'function') {
Date.prototype.toJSON = function(key) {
return isFinite(this.valueOf()) ? this.getUTCFullYear() + '-' + f(this.getUTCMonth() + 1) + '-' + f(this.getUTCDate()) + 'T' + f(this.getUTCHours()) + ':' + f(this.getUTCMinutes()) + ':' + f(this.getUTCSeconds()) + 'Z' : null;
};
String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function(key) {
return this.valueOf();
};
}
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
gap, indent, meta = {
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'"': '\\"',
'\\': '\\\\'
},
rep;
function quote(string) {
escapable.lastIndex = 0;
return escapable.test(string) ? '"' + string.replace(escapable, function(a) {
var c = meta[a];
return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
}) + '"' : '"' + string + '"';
}
function str(key, holder) {
var i, k, v, length, mind = gap,
partial, value = holder[key];
if (value && typeof value === 'object' && typeof value.toJSON === 'function') {
value = value.toJSON(key);
}
if (typeof rep === 'function') {
value = rep.call(holder, key, value);
}
switch (typeof value) {
case 'string':
return quote(value);
case 'number':
return isFinite(value) ? String(value) : 'null';
case 'boolean':
case 'null':
return String(value);
case 'object':
if (!value) {
return 'null';
}
gap += indent;
partial = [];
if (Object.prototype.toString.apply(value) === '[object Array]') {
length = value.length;
for (i = 0; i < length; i += 1) {
partial[i] = str(i, value) || 'null';
}
v = partial.length === 0 ? '[]' : gap ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : '[' + partial.join(',') + ']';
gap = mind;
return v;
}
if (rep && typeof rep === 'object') {
length = rep.length;
for (i = 0; i < length; i += 1) {
if (typeof rep[i] === 'string') {
k = rep[i];
v = str(k, value);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
} else {
for (k in value) {
if (Object.prototype.hasOwnProperty.call(value, k)) {
v = str(k, value);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
}
v = partial.length === 0 ? '{}' : gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : '{' + partial.join(',') + '}';
gap = mind;
return v;
}
}
if (typeof JSON.stringify !== 'function') {
JSON.stringify = function(value, replacer, space) {
var i;
gap = '';
indent = '';
if (typeof space === 'number') {
for (i = 0; i < space; i += 1) {
indent += ' ';
}
} else if (typeof space === 'string') {
indent = space;
}
rep = replacer;
if (replacer && typeof replacer !== 'function' && (typeof replacer !== 'object' || typeof replacer.length !== 'number')) {
throw new Error('JSON.stringify');
}
return str('', {
'': value
});
};
}
if (typeof JSON.parse !== 'function') {
JSON.parse = function(text, reviver) {
var j;
function walk(holder, key) {
var k, v, value = holder[key];
if (value && typeof value === 'object') {
for (k in value) {
if (Object.prototype.hasOwnProperty.call(value, k)) {
v = walk(value, k);
if (v !== undefined) {
value[k] = v;
} else {
delete value[k];
}
}
}
}
return reviver.call(holder, key, value);
}
text = String(text);
cx.lastIndex = 0;
if (cx.test(text)) {
text = text.replace(cx, function(a) {
return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
});
}
if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
j = eval('(' + text + ')');
return typeof reviver === 'function' ? walk({
'': j
}, '') : j;
}
throw new SyntaxError('JSON.parse');
};
}
}());
(function() {
var _ = s_sv_globals,
B = _.config,
P = _.execContext || "",
N, M, $j, E, L, U, R, $e, Z, $a, $n, Y, F, $, O, $k = "s_sv_",
$B = 2048,
$5 = 0,
A = {},
$y = [],
$9 = false,
$_2 = 0;
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) == 0) {
return c.substring(nameEQ.length, c.length);
}
}
return null;
}
function writeCookie(name, value, expireIn, domain) {
domain = domain || B.sd;
if (expireIn) {
var date = new Date();
date.setTime(date.getTime() + (expireIn * 1000));
var expires = "; expires=" + date.toGMTString();
} else {
var expires = "";
}
document.cookie = name + "=" + value + expires + "; path=/" + (domain ? "; domain=" + domain : "");
}
function $_9(c, reason) {
var v;
if (c.expiration) {
v = (typeof c.expiration == 'object' ? c.expiration[reason] : c.expiration);
if (v === null || isNaN(parseInt(v))) return false;
return parseInt(v);
} else if (c.suppressDays) {
v = (typeof c.suppressDays == 'object' ? c.suppressDays[reason] : c.suppressDays);
if (v === null || isNaN(parseInt(v))) return false;
return parseInt(v) * 86400;
}
return false;
}
function $H(reason) {
var cookiesToWrite = B.suppressionSettings.cookies;
if (cookiesToWrite) {
for (var i = 0; i < cookiesToWrite.length; i++) {
var c = cookiesToWrite[i];
var expireIn = $_9(c, reason);
if (expireIn !== false) {
writeCookie(c.name, c.value ? c.value : expireIn, expireIn, c.domain);
}
}
}
}
function areSurveysSuppressed() {
if (B.suppressionSettings.suppressTriggeredSurveys) return true;
if (B.suppressionSettings.suppressOnCallback) {
try {
if (B.suppressionSettings.suppressOnCallback()) return true;
} catch (e) {}
}
var cookiesToCheck = B.suppressionSettings.suppressIfCookieExists;
if (cookiesToCheck) {
for (var i = 0; i < cookiesToCheck.length; i++) {
if (readCookie(cookiesToCheck[i])) return true;
}
}
return false;
}
function shouldBlockManualSurveys() {
return B.suppressionSettings.suppressManualLaunchesIfBlocked ? true : false;
}
function $T(s) {
if (!$u(s)) return;
$e.set((new Date()).getTime());
}
function $N() {
if (typeof s_sv_denyCallback == 'function') {
_.denyCallback = s_sv_denyCallback;
} else {
_.denyCallback = function() {}
}
if (!$R()) {
_.denyCallback('browser');
_.stop = 1;
return;
}
if (!P) {
G("sd", "");
G("metadata", {});
G("maxbridge", 500);
G("maxpersist", 1);
G("sessiononly", false);
G("maxcookiesize", 1500);
G("debug", 0);
G("context", "");
G("exitCheckText", "<p>Survey exit check</p>");
G("suppressionSettings", {});
G("anonymousURL", "/adobe-survey-anonymous.html");
if (!navigator.appVersion.match(/AppleWebKit/)) B.anonymousURL = "";
if (!B.sd) {
B.sd = $L();
}
B.context = B.context.toLowerCase().replace(/[^a-z0-9_-]/g, "").substr(0, 15);
}
var i, s, cookieNameBase = $k + (_.dataCenter ? _.dataCenter + "_" : ""),
sessionCookie = (_.previewMode ? "" : cookieNameBase + "s"),
persistCookie = (_.previewMode ? "" : cookieNameBase + "p");
N = new $7(sessionCookie, B.sd, 0, 1, $z);
M = new $7(persistCookie, B.sd, 1, B.maxpersist, $z);
E = new J(N, "l", 1, X);
L = new J(N, "n");
U = new J(N, "t");
Z = new J(N, "a", 1);
T = new J(N, "p");
$a = new W(Z, 1);
$n = new W(Z, 2);
$j = new W(Z, 3);
Y = new W(Z, 4);
F = new J(M, "d", 1, X);
$ = new J(M, "s", 1, X);
R = new J(M, "e", 1, X);
$e = new J(M, "f", 1, X);
if (B.sessiononly || !M.test()) {
M.duration = 0;
}
if (!N.test()) {
_.denyCallback('session-cookie');
_.stop = 1;
return;
}
_.execute = $o;
_.error = K;
_.addEventHandler = $t;
_.generateCompoundId = $m;
_.getGatherUrl = $D;
_.submitData = $X;
_.submitEvent = $l;
_.resetSurvey = $C;
_.writeCookies = $H;
_.cookieLater = E;
_.cookieNext = L;
_.cookieTrigger = U;
_.cookieDone = F;
_.cookieSample = $;
_.cookieAlive = Y;
_.acceptDelayedLaunch = $_5;
_.declineDelayedLaunch = $_$;
_.previewSurvey = $J;
_.renderOverlay = $p;
_.handleTimedSurveys = $q;
_.onPreviewLoaded = $V;
_.onRenderLoaded = $S;
_.onSurveyLoaded = $_3;
_.executeRetryCounter = $_2;
if (!R.get()) {
R.set(1);
}
_.debug = $Y;
if (Y.get() && !P) $8();
function requestPopupSurvey() {
var s;
$v();
for (var i in A) {
s = A[i];
if (s.preview) {
$i();
} else {
H(s, 0);
}
return;
}
}
switch (P) {
case "exit_check":
setTimeout(function() {
$F(1);
}, 100);
break;
case "delayed_launch_check":
requestPopupSurvey();
setTimeout(function() {
$d(parseInt(_.exitTimeout, 10) * 1000);
}, 100);
break;
case "popup":
requestPopupSurvey();
break;
case "":
if ($j.get()) {
B.debug = 1;
}
var count = parseInt(R.get(), 10) + 1;
R.set(count);
if (_.dataCenter) {
$__();
}
if (_.session) {
$n.set(_.session);
}
$t(window, "unload", function() {
if (navigator.userAgent.match(/Chrome/)) return;
_.unloaded = 1;
if ($9) return;
var p = $x(),
l = $_4(p),
f, t, i, j, s, w;
if (l[0].length) {
try {
f = opener || {};
f = !f.closed && f.s_sv_globals || {};
f = !f.unloaded && f.module || {};
if (f.launch && f.launch(l[0])) {
t = 1;
}
} catch (e) {}
}
l = p && (!l[0].length || t) ? l[2] : l[0].concat(l[1], l[2]);
t = -1;
for (j = 0; j < l.length; ++j) {
i = l[j];
s = A[i];
if (t < s.exitcheckTimeout) {
t = s.exitcheckTimeout;
}
}
if (t < 0) return;
w = open(B.anonymousURL, "ExitCheck", "left=3000,location=no,top=3000," + "height=100,width=200,toolbar=no,status=no," + "resizable=no,scrollbars=no,location=no");
if (!w) return;
try {
if (w.outerWidth) {
w.moveTo(screen.width - w.outerWidth, screen.height - w.outerHeight);
} else {
w.moveTo(screen.width, screen.height);
}
} catch (e) {}
var c = '<div style="background-color:#F1F6E9; height: 46px;"><img src="' + _.commonUrl + '/surv_exit_check_header.png" style="margin: 10px;"></div>';
c += '<div style="padding-left: 10px;">' + B.exitCheckText + '</div>';
$4(w, "exit_check", l, {
exitTimeout: t,
exitStamp: (new Date()).getTime()
}, c, "style='font: 12px arial; margin: 0px;'", "");
focus();
});
$o();
break;
default:
K("Internal error: Unknown execution context '" + P + "'");
return;
}
}
function G(n, v) {
if (typeof B[n] == "undefined") B[n] = typeof window[$k + n] == "undefined" ? v : window[$k + n];
}
function $Y() {
var s = "Config:\n",
n, o, i, p, q;
for (n in B) s += " " + n + ": " + $3(B[n]) + "\n";
s += "\nSurveys:\n";
for (n in A) {
o = A[n];
i = (o.requested ? "1" : "0") + (o.loaded ? "1" : "0") + (o.launch ? "1" : "0") + (o.open ? "1" : "0");
p = {
"0000": "Boot",
"1010": "Loading",
"1110": "Launching",
"1101": "Open",
"1100": "Closed"
}[i] || "Unknown[" + i + "]";
if (F.contains(n)) q = "Done";
else if (E.contains(n)) q = "Displayed";
else if (U.contains(n)) q = "Triggered";
else if (L.contains(n)) q = "Excited";
else if ($.contains(n)) q = "Sampled";
else q = "New";
s += " " + n + ": name='" + o.name + "', suite='" + o.reportSuite + "', page-state='" + p + "', site-state='" + q + "'\n";
}
B.debug = 1;
$j.set(1);
K(s);
}
function $__() {
var i, j, p = "s_sv_" + _.dataCenter + "_bridge",
b = $M(p);
if (!b) return;
i = b.indexOf(".");
if (i < 0 || parseInt(b.substring(0, i)) != b.length - i - 1) {
K("Input error: Bad '" + p + "' parameter");
return;
}
j = b.indexOf("%13", ++i);
if (j < 0) return;
M.applyBridge(b.substring(i, j));
N.applyBridge(b.substring(j + 3));
}
function $z() {
var p = "s_sv_" + _.dataCenter + "_bridge=",
l = B.maxbridge - p.length - 8,
v = M.getBridge(l) + "%13";
v += N.getBridge(l - v.length);
window.CSbridge = window.s_sv_bridge = p + v.length + "." + v;
}
function X(c, v) {
c.add(v);
}
function $R() {
if (P) return true;
var g = navigator,
n = g.appName.toLowerCase(),
a = g.userAgent,
v = g.appVersion,
m;
return ((m = a.match(/Firefox\/([0-9]+)/i)) ? m[1] > 2 : (m = a.match(/Version\/([0-9]+)([.0-9a-z]+)? (Safari|Mobile)/i)) ? m[1] > 3 : (m = a.match(/AppleWebKit\/[.0-9]+ \(KHTML, like Gecko\) Mobile/)) ? m : (m = a.match(/Chrome\/([0-9]+)/i)) ? m[1] > 4 : (m = a.match(/Opera[ \/]?([0-9]+).[0-9]+/i)) ? m[1] > 8 : (m = a.match(/BlackBerry[0-9a-z]+\/([0-9]+).[0-9]+/i)) ? m[1] > 3 : n == "microsoft internet explorer" && !v.match(/macintosh/i) && (m = v.match(/msie ([0-9]+)/i)) && m[1] > 5);
}
function $o() {
if (_.pending) {
if (_.executeRetryCounter < 20) {
_.executeRetryCounter++;
setTimeout("s_sv_globals.execute()", 100);
}
return;
}
$_8();
var e, i, j, l, s;
for (i in A) {
s = A[i];
i = s.id;
if (F.contains(i) || E.contains(i)) {
_.denyCallback('done', i);
continue;
}
if (U.contains(i)) H(s, 0);
if (s.launchOn == "site_entry") H(s, 0);
}
$q();
if (_.pageImpressions) {
l = _.pageImpressions;
_.pageImpressions = [];
for (j = 0; j < l.length; ++j) {
e = l[j];
for (i in A) {
s = A[i];
if (s.preview || (s.launchOn != "page_exit" && s.launchOn != "page_flow") || !L.contains(i) || F.contains(i) || E.contains(i) || V(e, s, s.patterns["start"], s.patterns["start_match_all"])) continue;
if (s.launchOn == "page_flow" && L.contains(i)) {
var f = V(e, s, s.patterns["end"], s.patterns["end_match_all"]);
if (s.pageFlow == "broken" ? f : !f) continue;
}
H(s, 0);
}
L.manip(function(v) {
return v.length ? [] : 0;
});
var icon_trigger = false;
for (i in A) {
s = A[i];
if (s.preview || F.contains(i) || E.contains(i)) {
_.denyCallback('done', i);
continue;
}
if (s.launchOn == "icon_trigger") {
if (!areSurveysSuppressed() && (s.iconTriggerDefaultView === 0 || V(e, s, s.patterns["start"], s.patterns["start_match_all"])) && !icon_trigger) {
(function(s) {
$p(s.iconTriggerLocation, s.iconTriggerLanguage, s.iconTriggerImage, function() {
_.module.launch(s.id, null, function f() {
var div = document.getElementById('adobe-survey-feedback-link-overlay');
}, function() {}, false);
});
})(s);
icon_trigger = true;
}
continue;
}
if (s.launchOn == "page_entry") {
if (V(e, s, s.patterns["start"], s.patterns["start_match_all"])) {
if (s.timeOnPage > 0) {
(function(s) {
setTimeout(function() {
H(s, 0);
}, s.timeOnPage * 1000);
})(s);
} else {
H(s, 0);
}
}
continue;
}
if (s.launchOn == "page_exit" || s.launchOn == "page_flow") {
if (!V(e, s, s.patterns["start"], s.patterns["start_match_all"])) continue;
L.add(i);
continue;
}
if (s.launchOn == "page_time") {
if (V(e, s, s.patterns["start"], s.patterns["start_match_all"])) {
L.add(i);
var now = (new Date()).getTime();
var start = T.retrieve(i);
if (!start) {
start = now;
T.put(i, start);
} else {
start = parseInt(start);
}
var time_on_page_conditions = s.timeOnPage * 1000 - (now - start);
if (time_on_page_conditions > 0) {
(function(s) {
setTimeout(function() {
H(s, 0);
}, time_on_page_conditions);
})(s);
(function(i) {
setTimeout(function() {
T.remove(i);
}, time_on_page_conditions);
})(i);
} else {
T.remove(i);
if (time_on_page_conditions > -60000) {
H(s, 0);
}
}
} else {
T.remove(i);
}
continue;
}
}
}
}
if (_.manualTriggers) {
l = _.manualTriggers;
_.manualTriggers = [];
for (j = 0; j < l.length; ++j) {
e = l[j];
i = e.i;
if (!A[i] || A[i].preview) {
K("Attempt to manually launch undefined survey: '" + i + "'");
_.denyCallback('inactive', i);
continue;
}
if (F.contains(i) || E.contains(i)) {
_.denyCallback('done', i);
continue;
}
s = A[i];
if (!$1(e.l, s.reportSuite)) {
K("Attempt to manually launch inaccessible survey: '" + i + "'");
continue;
}
var c = e.e;
if (c) {
s.embedContainerId = c;
s.restrictToTriggerPage = 1;
}
s.onClose = e.c;
s.onOpen = e.o;
s.force_popup = e.f && !s.restrictToTriggerPage;
H(s, 1);
}
}
}
function $_1(s) {
$5 = false;
var v = $e.get(),
b = s.timeBetween * 3600 * 1000,
t = (new Date()).getTime();
if (v && t - b < v) $5 = true;
}
function $u(s) {
if (s.ignoreSurveySuppression) return false;
if (s.launchOn == "manual_trigger" || s.launchOn == "hosted") return false;
return true;
}
function $_8() {
if (_.incomingLists) {
var e, i, j, k, l = _.incomingLists,
r, s;
_.incomingLists = [];
for (i = 0; i < l.length; ++i) {
e = l[i];
for (j = 0; j < e.l.length; ++j) {
r = e.l[j];
k = r.id;
r.reportSuite = e.r;
r.url = _.suites[e.r].url + "/" + k + "/" + _.bulkRevision + "." + r.revision;
s = new $g(r);
if (j == 0) $_1(s);
if ($5 && $u(s)) continue;
if (F.contains(k) || E.contains(k)) {
_.denyCallback('done', k);
continue;
}
if (!$.contains(k)) {
if (1 / s.sampleOneIn <= Math.random()) {
$l(s, "discarded");
F.add(k);
continue;
}
$l(s, "selected");
$.add(k);
}
A[k] = s;
}
}
}
}
function $v(r) {
var i, l = _.surveys,
s;
for (i = 0; i < l.length; ++i) {
s = new $g(l[i]);
if (r && r[s.reportSuite]) continue;
A[s.id] = s;
}
}
function $J(i, m, e) {
if (A[i] && A[i].open) return;
if (e) {
if (!_.previewEmbed) _.previewEmbed = {};
_.previewEmbed[i] = e;
}
$i();
++$_;
var r = new Date().getTime() + Math.round(Math.random() * 100000);
var url = _.previewURL + '&s=' + i + '&p=' + m + '&r=' + r;
$2(url);
}
function window_height() {
var winH = 460;
if (document.body && document.body.offsetWidth) {
winH = document.body.offsetHeight;
}
if (document.compatMode == 'CSS1Compat' && document.documentElement && document.documentElement.offsetWidth) {
winH = document.documentElement.offsetHeight;
}
if (window.innerWidth && window.innerHeight) {
winH = window.innerHeight;
}
return winH;
}
function parseUri(sourceUri) {
var uriPartNames = ["source", "protocol", "authority", "domain", "port", "path", "directoryPath", "fileName", "query", "anchor"],
uriParts = new RegExp("^(?:([^:/?#.]+):)?(?://)?(([^:/?#]*)(?::(\\d*))?)((/(?:[^?#](?![^?#/]*\\.[^?#/.]+(?:[\\?#]|$)))*/?)?([^?#/]*))?(?:\\?([^#]*))?(?:#(.*))?").exec(sourceUri),
uri = {};
for (var i = 0; i < 10; i++) {
uri[uriPartNames[i]] = (uriParts[i] ? uriParts[i] : "");
} /* Always end directoryPath with a trailing backslash if a path was present in the source URINote that a trailing backslash is NOT automatically inserted within or appended to the "path" key */
if (uri.directoryPath.length > 0) {
uri.directoryPath = uri.directoryPath.replace(/\/?$/, "/");
}
return uri;
}
function getUserAgent() {
return navigator.userAgent.toLowerCase();
}
function $p(location, language, image, funct) {
if (document.getElementById('adobe-survey-feedback-link-overlay')) {
document.getElementById('adobe-survey-feedback-link-overlay').destroySelf();
}
var more_styles = '';
var fileName = '';
var extraFile = '';
switch (image) {
case 'white':
case 'black':
fileName = image + '_' + location + '_' + language + '.png';
break;
default:
break;
}
var feedbackLinkObject = {};
feedbackLinkObject.url = _.commonUrl + "/feedback_links/" + fileName;
if (location === 'right') {
feedbackLinkObject.location = 'right';
feedbackLinkObject.widthOrHeight = 'width';
} else {
feedbackLinkObject.location = 'bottom';
feedbackLinkObject.widthOrHeight = 'height';
}
var div = document.createElement('div');
div.id = 'adobe-survey-feedback-link-overlay';
div.className = 'adobe-survey-feedback-link-overlay-class';
div.onmouseover = function(event) {
this.style[feedbackLinkObject.widthOrHeight] = feedbackLinkObject.hoverSize + "px";
};
div.onmouseout = function(event) {
this.style[feedbackLinkObject.widthOrHeight] = feedbackLinkObject.normalSize + "px";
};
div.style.display = 'none';
var innerDiv = document.createElement('div');
innerDiv.id = 'adobe-survey-feedback-link-icon';
innerDiv.onclick = funct;
div.appendChild(innerDiv);
document.body.appendChild(div);
feedbackLinkObject.iconHolderNode = div;
feedbackLinkObject.iconNode = innerDiv;
var img = new Image();
img.onload = function() {
feedbackLinkObject.width = this.width;
feedbackLinkObject.height = this.height;
feedbackLinkObject.normalSize = Math.min(feedbackLinkObject.width, feedbackLinkObject.height, 100) - 3;
feedbackLinkObject.hoverSize = Math.min(feedbackLinkObject.width, feedbackLinkObject.height, 100);
$s(feedbackLinkObject);
};
img.src = feedbackLinkObject.url;
var f = function() {
var innerDiv = document.getElementById('adobe-survey-feedback-link-overlay');
if (innerDiv.style.display == 'none') {
return;
}
$s(feedbackLinkObject);
return true;
};
div.destroySelf = function() {
if (feedbackLinkObject.styleNode) {
feedbackLinkObject.styleNode.parentNode.removeChild(feedbackLinkObject.styleNode);
}
if (feedbackLinkObject.iconHolderNode) {
feedbackLinkObject.iconHolderNode.parentNode.removeChild(feedbackLinkObject.iconHolderNode);
}
if (typeof(window.removeEventListener) != "undefined") {
window.removeEventListener('resize', f);
} else {
window.detachEvent('onresize', f);
}
};
if (typeof(window.addEventListener) != "undefined") {
window.addEventListener('resize', f);
} else {
window.attachEvent("onresize", f);
}
}
function $s(feedbackLinkObject) {
feedbackLinkObject.iconNode.style.width = feedbackLinkObject.width + 'px';
feedbackLinkObject.iconNode.style.height = feedbackLinkObject.height + 'px';
var extraStyles;
switch (feedbackLinkObject.location) {
case 'right':
var middle = window_height() / 2;
var middle_top = middle - feedbackLinkObject.height / 2;
extraStyles = 'width: ' + feedbackLinkObject.normalSize + 'px; top:' + middle_top + 'px; right: 0px;' + '_top:expression(eval(document.compatMode && document.compatMode=="CSS1Compat") ? documentElement.scrollTop +(documentElement.clientHeight-this.clientHeight) - ' + middle_top + ' : document.body.scrollTop +(document.body.clientHeight-this.clientHeight) - ' + middle_top + '); ';
break;
case 'bottom':
extraStyles = 'height: ' + feedbackLinkObject.normalSize + 'px; bottom:0px; right: 10px;' + '_top:expression(eval(document.compatMode && document.compatMode=="CSS1Compat") ? documentElement.scrollTop +(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop +(document.body.clientHeight-this.clientHeight));';
}
var css = ".adobe-survey-feedback-link-overlay-class{\n" + "padding:0px; margin:0px; z-index: 10000; overflow:hidden; position: fixed; _position: absolute; cursor:pointer; " + extraStyles + "-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=80)'; filter: alpha(opacity=80); -moz-opacity: 0.8; -khtml-opacity: 0.8; opacity: 0.8;\n" + "} \n" + ".adobe-survey-feedback-link-overlay-class div{padding:0px; margin:0px; background: url(" + feedbackLinkObject.url + ") top left no-repeat;\n" + "filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + feedbackLinkObject.url + "');\n" + "}\n" + ".adobe-survey-feedback-link-overlay-class:hover{-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; filter: alpha(opacity=100); -moz-opacity: 1; -khtml-opacity: 1; opacity: 1;" + "}";
feedbackLinkObject.styleNode = $_6(css, feedbackLinkObject.styleNode);
feedbackLinkObject.iconHolderNode.style.display = 'block';
}
function $_6(css, style_node) {
if (!style_node) {
style_node = document.createElement('STYLE');
}
document.body.appendChild(style_node);
if (style_node.styleSheet) {
style_node.styleSheet.cssText = css;
} else {
style_node.innerHTML = css;
}
return style_node;
}
function H(s, manual) {
if (s.launch || s.open) return;
if (areSurveysSuppressed() && (shouldBlockManualSurveys() || !manual)) return;
if (!s.restrictToTriggerPage) U.add(s.id);
s.launch = true;
if (!manual) {
if ($9) return;
$9 = 1;
}
if (P != 'exit_check') {
$H("onShow");
$T(s);
}
if (s.requested) {
setTimeout(function() {
$c(s);
}, 1000);
return;
}
s.requested = true;
$i();
++$_;
if (navigator.userAgent.match(/Opera/i)) {
setTimeout(function() {
$2(s.url + "/def.js");
}, 10);
} else {
$2(s.url + "/def.js");
}
}
function $_5(s) {
var w, c;
E.add(s.id);
$8();
var x = 2 * s.windowContentsMargin;
w = open(B.anonymousURL, "DelayedLaunchWaitingWindow", "height=" + (s.windowHeight + x) + ",width=" + (s.windowWidth + x) + ",resizable=" + (s.enableResize ? "yes" : "no") + ",toolbar=no,status=no,scrollbars=no,location=no");
if (!w) return;
$4(w, "delayed_launch_check", [s.id], {
exitTimeout: s.exitcheckTimeout || 2
}, c, "style='margin:0px;' id='bodyid'", s.inviteWaitingPageTitle);
if (!_.previewMode) focus();
}
function $_$(s) {
F.add(s.id);
for (var i in A) {
E.add(i);
}
}
function $8() {
Y.set((new Date()).getTime());
setTimeout(function() {
$8();
}, 100);
}
function $d(t, x) {
var v = Y.get(),
lv = parseInt(_.lastDelayedLaunchCheck, 10) || -1;
if (v == lv) {
if (x) {
for (var i in A) {
_.displayPage(A[i], 3);
focus();
}
return;
}
setTimeout(function() {
$d(t, true);
}, t);
} else {
setTimeout(function() {
$d(t, false);
}, 200);
}
_.lastDelayedLaunchCheck = v;
}
function $i() {
if (!$E) {
$E = 1;
++$_;
$2(_.commonUrl + "/render.js");
}
}
var $E;
function $V(o, p) {
var i = o.id;
if (A[i] && A[i].open) return;
o.preview = 1 + p;
var s = A[i] = new $g(o);
if (_.previewEmbed) {
var e = _.previewEmbed[i];
if (e) s.embedContainerId = e;
}
$h();
}
function $S() {
$h();
}
function $_3(i, o) {
var s = A[i];
for (var p in o) s[p] = o[p];
for (var q in o) s.original[q] = o[q];
s.loaded = true;
$h();
}
var $_ = 0;
function $h() {
if (--$_) return;
var i, s, l = {};
for (i in A) {
s = A[i];
if (s.loaded && s.launch) l[i] = A[i];
}
switch (P) {
case "exit_check":
for (i in l) {
$b(l[i]);
}
close();
break;
case "delayed_launch_check":
for (i in l) {
oc = l[i].onClose;
l[i].onClose = function() {
if (oc) oc();
close();
};
l[i].embedContainerId = "bodyid";
$c(l[i]);
}
break;
default:
for (i in l) {
s = l[i];
if (s.preview && (s.preview == 2 || s.preview == 3 && s.launchOn == "site_exit") && P != "popup") $b(s);
else $c(s);
}
}
}
function $c(s) {
if (s.force_popup && P == "") {
$b(s);
return;
}
_.openSurvey(s);
}
function $b(s) {
s.launch = false;
$C(s);
var x = 2 * s.windowContentsMargin,
w = open(B.anonymousURL, "", "height=" + (s.windowHeight + x) + ",width=" + (s.windowWidth + x) + ",resizable=" + (s.enableResize ? "yes" : "no") + ",scrollbars=no,toolbar=no,location=no");
if (!w) return;
$4(w, "popup", [s.id], {}, "", "style='margin:0px;'", "");
}
function $g(s) {
for (var p in s) this[p] = s[p];
this.original = s;
if (s.preview) this.requested = this.loaded = this.launch = 1;
}
function $C(s) {
var p, o = s.original;
s = {};
for (p in o) s[p] = o[p];
s.original = o;
A[s.id] = s;
}
function $F(n) {
var count = R.get();
if (count && (count != window.s_sv_exit_counter)) {
close();
return;
}
var s = $x(),
i, d, r = true;
try {
d = window.opener && window.opener.document;
if (d && (!d.readyState || !/complete/.test(d.readyState))) {
r = false;
}
} catch (e) {
r = true;
}
n += 1;
if (s || (r && 10 * _.exitTimeout < n)) {
$v(s);
s = 0;
for (i in A) {
if (A[i].launchOn == "page_time") {
T.remove(i);
continue;
}
H(A[i], 0);
s = 1;
}
if (!s) close();
return;
}
setTimeout(function() {
$F(n);
}, 100);
}
function $x() {
var o, g, s, t, i;
try {
o = opener || 0;
if (o && !o.closed) {
g = o.s_sv_globals || 0;
if (g && !g.unloaded && g.suites) {
t = {};
for (i in o.s_sv_globals.suites) t[i] = 1;
s = t;
}
}
} catch (e) {}
return s;
}
function $_4(e) {
var l = [
[],
[],
[]
],
i, s;
if (areSurveysSuppressed()) return l;
if (!e) e = {};
for (i in A) {
s = A[i];
if (s.preview || s.delayedLaunch || F.contains(i) || E.contains(i)) {
_.denyCallback('done', i);
continue;
}
if (s.launchOn == "page_exit" && L.contains(i) || s.launchOn == "page_flow" && s.pageFlow == "broken" && L.contains(i) || U.contains(i)) I(l[e[s.reportSuite] ? 0 : 2], i);
else if (s.launchOn == "page_time" && L.contains(i)) I(l[e[s.reportSuite] ? 0 : 2], i);
else if (s.launchOn == "site_exit") I(l[e[s.reportSuite] ? 1 : 2], i);
}
return l;
}
function $q() {
var now = (new Date()).getTime(),
start = $a.get();
if (!start) {
start = now;
$a.set(start);
} else start = parseInt(start);
var timeOnSite = now - start;
if (timeOnSite < 0) timeOnSite = 0;
var nextCheck = 0;
for (var i in A) {
var s = A[i];
if (s.preview || s.launchOn != "timeout" || F.contains(i) || E.contains(i)) continue;
var t = s.timeOnSite * 1000;
if (t <= timeOnSite) {
H(s, 0);
continue;
}
if (!nextCheck || t < nextCheck) nextCheck = t;
}
if (nextCheck) setTimeout("s_sv_globals.handleTimedSurveys()", nextCheck - timeOnSite);
}
function $4(w, c, l, p, b, a, title) {
try {
var i, q, d = w.document,
g = {
commonUrl: _.commonUrl,
gatherUrl: _.gatherUrl || "",
previewMode: _.previewMode,
dataCenter: _.dataCenter || "",
config: B,
execContext: c,
surveys: []
};
if (g.previewMode) {
g.previewURL = _.previewURL;
g.previewImageURL = _.previewImageURL;
}
for (i = 0; i < l.length; ++i) I(g.surveys, A[l[i]].original);
for (q in p) g[q] = p[q];
var triggerRoot = (_.hosted_js_root ? _.hosted_js_root : _.commonUrl);
try {
var ser = $Q();
} catch (e) {
w.close();
}
d.open();
d.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>\n<html><head><title>" + (title || "") + "</title></head><body" + (a ? " " + a : "") + "><script type=\"text/javascript\">" + ser + "window.s_sv_globals=" + $3(g) + "; if(typeof window.s === 'undefined'){window.s = {};} window.s_sv_globals.module=window.s.Survey=new Object();window.s_sv_globals.module.s=window.s||{};window.s_sv_exit_counter=" + ~~R.get() + ";</script><script type=\"text/javascript\" src=\"" + triggerRoot + "/trigger.js\"></script>" + (b || "") + "</body></html>");
d.close();
} catch (e) {};
}
function $Q() {
var m = _.module || 0;
if (!m || !m.s) return '';
var s = m.s,
i, k, v, c = s_gi + 'var s=s_gi("' + s.oun + '");s.sa("' + s.un + '");';
for (i = 0; i < s.va_g.length; i++) {
k = s.va_g[i];
v = s[k];
if (v != undefined) {
c += 's.' + k + '=' + window.JSON.stringify(v) + ';';
}
}
c += "s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';";
return c;
}
function $3(v) {
switch (typeof v) {
case "string":
return $A(v);
case "boolean":
return v ? "true" : "false";
case "null":
return "null";
case "undefined":
return "undefined";
case "function":
return v.toString();
case "number":
if (isNaN(v)) return "Number.NaN";
switch (v) {
case Number.MIN_VALUE:
return "Number.MIN_VALUE";
case Number.MAX_VALUE:
return "Number.MIN_VALUE";
case Number.NEGATIVE_INFINITY:
return "Number.NEGATIVE_INFINITY";
case Number.POSITIVE_INFINITY:
return "Number.POSITIVE_INFINITY";
default:
return String(v);
}
case "object":
if (v == null) return "null";
var r = "",
i;
switch (v.constructor) {
case RegExp:
return String(v);
case Date:
return "new Date(" + v.getFullYear() + "," + v.getMonth() + "," + v.getDate() + "," + v.getHours() + "," + v.getMinutes() + "," + v.getSeconds() + "," + v.getMilliseconds() + ")";
case Array:
for (i = 0; i < v.length; ++i) if (typeof v[i] != "undefined") {
if (r) r += ",";
r += $3(v[i]);
}
return "[" + r + "]";
default:
for (i in v) if (typeof v[i] != "undefined") {
var p = String(i);
if (!p.match(/^[a-z0-9$_]+$/i)) p = $A(p);
p += ":";
if (r) r += ",";
r += p + $3(v[i]);
}
return "{" + r + "}";
}
}
throw "Unknown type of value in toSource";
}
function $A(s) {
s = String(s);
var r = "";
for (var i = 0; i < s.length; ++i) {
var c = s.substr(i, 1);
switch (c) {
case "\'":
r += "\\\'";
break;
case "\"":
r += "\\\"";
break;
case "\n":
r += "\\n";
break;
case "\r":
r += "\\r";
break;
case "\t":
r += "\\t";
break;
case "\\":
r += "\\\\";
break;
default:
r += c;
break;
}
}
return "\"" + r + "\"";
}
function $m() {
var i, a = [];
var date = new Date();
a.push(parseInt(date.getMilliseconds() / 4));
a.push(parseInt((date.getSeconds() * date.getMinutes() * date.getHours()) / 340));
for (i = 0; i < 10; ++i) a.push(parseInt(256 * Math.random()));
return $I(a);
}
function $l(s, m) {}
function $X(s, l, c, j) {
if (s.preview) {
if (c) setTimeout(function() {
c();
}, 1500);
return;
}
if (!l.length) {
if (c) c();
return;
}
var a = [],
x = s.contextEnabled ? B.context + "||" : "",
i, p, q, t = "",
m, u = $D(s) + "?yp1&",
n;
q = (j || $m()) + $w(s.id, D, 1);
n = u.length + 6 + q.length;
for (i = 0; i < l.length; ++i) {
p = "&" + $0(l[i][0]) + "=" + x + $0(l[i][1]);
m = n + p.length;
if ($B < m) {
K("Key-value pair too big for URL: " + p);
continue;
}
if ($B < t.length + m) {
I(a, t);
t = "";
}
t += p;
}
if (t) I(a, t);
n = a.length;
if (64 < n) {
K("Too many parts in compound: " + n);
a = a.slice(0, n = 64);
}
q = D[n - 1] + q;
for (i = 0; i < n; ++i) {
var m = new Image(3, 7);
$y[$y.length] = m;
if (c) m.onload = m.onerror = m.onabort = function() {
if (window.s_sv_globals && !--n) c();
};
t = D[i] + q + a[i];
m.src = u + $w($Z(t), D, 4) + t;
K("Load: " + m.src);
}
}
function $D(s) {
var url = _.gatherUrl;
if (!url || (url.indexOf('2o7.net/') != -1 && url.indexOf('sbx1.2o7.net/') === -1)) {
url = location.protocol + "//collection." + s.dataCenterId + ".sv.omtrdc.net/survey/gather";
}
return url;
}
function $Z(s, h) {
if (!h) h = 0;
for (var i = 0; i < s.length; ++i) h = (h << 5 | h >>> 27) ^ s.charCodeAt(i);
return (h < 0 ? h + 0x100000000 : h) % 16777213;
}
function $K(p, ignoreCase) {
this.ignoreCase = ignoreCase;
if (ignoreCase) p = p.toUpperCase();
this.chunks = [];
var chunkIndex = 0,
i = 0;
for (;;) {
var j = p.indexOf("*", i);
if (j < 0) break;
this.chunks[chunkIndex++] = p.substring(i, j);
i = j + 1;
}
this.chunks[chunkIndex] = p.substring(i);
this.match = function(s) {
if (this.ignoreCase) s = s.toUpperCase();
if (this.chunks.length == 1) return this.chunks[0] == s;
var c = this.chunks[0];
if (s.substring(0, c.length) != c) return false;
s = s.substring(this.chunks[0].length);
c = this.chunks[this.chunks.length - 1];
var l = s.length - c.length;
if (s.substring(l) != c) return false;
s = s.substring(0, l);
var i = 0;
for (var chunkIndex = 1; chunkIndex < this.chunks.length - 1; ++chunkIndex) {
c = this.chunks[chunkIndex];
var j = s.indexOf(c, i);
if (j < 0) return false;
i = j + c.length;
}
return true;
};
}
function $P(i, s, p, t) {
var m, j, v = _.module.version || 10000;
if (v == 10000) {
i.pageName = i.n;
i.pageURL = i.u;
i.referrer = i.r;
i.campaign = i.c;
}
m = i[t] || "";
if (!$1(i.l, s.reportSuite) || !p || !m) return 0;
for (j = 0; j < p.length; ++j) if (new $K(p[j], 1).match(m)) return 1;
return 0;
}
function V(i, s, c, x) {
var r, f;
for (f in c) {
r = $P(i, s, c[f], f);
if (r && !x) return 1;
if (!r && x) return 0;
}
return (x ? 1 : 0);
}
function $L() {
var d = document.domain;
if (d.match(/\.[0-9]{1,3}$/)) return "";
var i = d.lastIndexOf(".");
if (i < 0) return "";
i = d.lastIndexOf(".", i - 1);
if (-1 < i && d.toLowerCase().match(/.*[.](co|com|net|org|ltd|gov)[.][A-Za-z]*$/)) i = d.lastIndexOf(".", i - 1);
if (0 < i) d = d.substring(i);
return d;
}
function $_a(u) {
if (u.match(/^[a-z]+:\/\//i)) return u;
var r = location.protocol + "//" + location.host;
if (u.match(/^\//)) return r + u;
var p = location.pathname;
if (!p.match(/^\//)) p = "/" + p;
return r + p.substring(0, p.lastIndexOf("/") + 1) + u;
}
function W(c, i) {
this.cookie = c;
this.index = i;
}
var $G = W.prototype;
$G.get = function() {
return this.cookie.getAt(this.index);
};
$G.set = function(v) {
this.cookie.setAt(v, this.index);
};
function J(s, n, b, a) {
this.stash = s;
this.name = $0(n);
this.bridge = b;
this.applyBridge = a;
this.value = [];
s.register(this);
}
var C = J.prototype;
C.getArray = function() {
this.stash.read();
var i, v = this.value,
l = [];
for (i = 0; i < v.length; ++i) I(l, $_0(v[i]));
return l;
};
C.get = function() {
return this.getAt(0);
};
C.setArray = function(v) {
this.stash.read();
this.setArrayFast(v);
};
C.set = function(v) {
this.setArray([v + ""]);
};
C.manip = function(f) {
var v = f(this.getArray());
if (v) this.setArrayFast(v);
};
C.contains = function(e) {
return $1(this.getArray(), e + "");
};
C.add = function(v) {
if (!$r(v)) v = [v + ""];
this.manip(function(w) {
return $f(w, v);
});
};
C.sub = function(v) {
if (!$r(v)) v = [v + ""];
this.manip(function(w) {
return $f(w, v, 1);
});
};
C.getAt = function(i) {
return this.getArray()[i] || "";
};
C.setAt = function(e, i) {
this.manip(function(w) {
w[i] = "" + e;
return w;
});
};
C.setArrayFast = function(v) {
var i, l = [];
for (i = 0; i < v.length; ++i) I(l, $0(v[i] || ""));
this.value = l;
this.stash.write(this.bridge);
};
C.put = function(key, value) {
this.add(key + ":" + value);
};
C.retrieve = function(key) {
var value = '';
var values = this.getArray();
for (var index = 0; index < values.length; index++) {
if (values[index].split(":")[0] == key) {
value = values[index].split(":")[1];
break;
}
}
return value;
};
C.remove = function(key) {
var value = '';
var values = this.getArray();
for (var index = 0; index < values.length; index++) {
if (values[index].split(":")[0] == key) {
value = values[index].split(":")[1];
break;
}
}
if (index != values.length) this.manip(function(v) {
v.splice(index, 1);
return v;
});
};
function $7(n, d, p, m, b) {
this.domain = d;
this.cookieList = [];
this.cookieMap = {};
this.oldParts = 0;
this.prefix = n;
this.duration = p ? 1000 * 60 * 60 * 24 * 365 * 2 : 0;
this.maxCookies = m;
this._test = new J(this, "_");
this.bridgeFunc = b;
}
var S = $7.prototype;
S.register = function(c) {
I(this.cookieList, c);
this.cookieMap[c.name] = c;
};
S.test = function() {
var v = parseInt(10000 * Math.random()) + "";
this._test.set(v);
var w = this._test.get();
this._test.set("");
return v == w;
};
S.read = function() {
var c = document.cookie,
i, j, k, l, m = 0,
n, p = this.prefix,
r = [];
if (!p) return;
for (i = 0; i < this.cookieList.length; ++i) this.cookieList[i].value = [];
this.oldParts = 0;
i = 0;
while (i < c.length) {
if (c.charCodeAt(i) == 32) {
++i;
continue;
}
j = i;
i = c.indexOf(";", i);
if (i < 0) i = c.length;
++i;
if (i - j <= p.length) continue;
k = j + p.length;
if (c.substring(j, k) != p) continue;
j = c.indexOf("=", k);
if (j < 0) continue;
k = parseInt(c.substring(k, j)) - 1;
if (k < 0) continue;
l = c.substring(j + 1, i - 1).split("@");
j = k ? 1 : 2;
if (l.length != j + 1 || parseInt(l[j - 1]) != l[j].length) continue;
if (!k) m = parseInt(l[0]);
r[k] = l[j];
if (this.oldParts <= k) this.oldParts = k + 1;
}
if (!m) return;
for (i = 0; i < m; ++i) if (!r[i]) return;
r = r.slice(0, m).join("").split("&");
for (i = 0; i < r.length; ++i) {
l = r[i].split("/");
n = l[0];
if (this.cookieMap[n]) this.cookieMap[n].value = l.slice(1);
}
};
S.write = function(b) {
var c, i, j, k, p = this.prefix,
l = B.maxcookiesize - p.length,
n = l * this.maxCookies,
r, s, v = [];
if (!p) return;
for (i = 0; i < this.cookieList.length; ++i) {
c = this.cookieList[i];
s = c.value.join("/").replace(/\/*$/, "");
if (s) I(v, c.name + "/" + s);
}
s = v.join("&");
if (n < s.length) {
s = s.substring(0, n + 1);
s = s.replace(/(&|(&[^&\/]*)?\/+)?[^&\/]*$/, "");
}
n = parseInt((s.length + l - 1) / l);
r = this._getCookieParams(this.duration);
j = 0;
for (i = 0; i < n; ++i) {
k = j;
j += l;
if (s.length < j) j = s.length;
v = (j - k) + "@" + s.substring(k, j);
if (!i) v = n + "@" + v;
document.cookie = p + (i + 1) + "=" + v + r;
}
r = this._getCookieParams(-1);
for (; i < this.oldParts; ++i) document.cookie = p + (i + 1) + "=" + r;
if (b && this.bridgeFunc) this.bridgeFunc();
};
S._getCookieParams = function(d) {
var e;
if (d) {
e = new Date();
e.setTime(e.getTime() + d);
}
return (e ? "; expires=" + e.toGMTString() : "") + "; path=/" + (this.domain ? "; domain=" + this.domain : "");
};
S.getBridge = function(m) {
var s = "";
for (var i = 0; i < this.cookieList.length; ++i) {
var c = this.cookieList[i];
if (!c.bridge) continue;
var v = c.value;
for (var j = 0; j < v.length; ++j) {
var q = "";
if (!j) {
if (s) q += "%12";
q += c.name;
}
q += "%11" + (typeof v[j] == "undefined" ? "" : v[j]);
if (m < s.length + q.length) break;
s += q;
}
}
return s;
};
S.applyBridge = function(v) {
var l = v.split("%12");
for (var i = 0; i < l.length; ++i) {
var m = l[i].split("%11");
if (1 < m.length && m[0] && this.cookieMap[m[0]]) {
var w = [];
for (var j = 1; j < m.length; ++j) w[j - 1] = m[j];
var c = this.cookieMap[m[0]];
if (c.applyBridge) c.applyBridge(c, w);
else c.value = w;
}
}
this.write(1);
};
function $r(x) {
return x && x.constructor && x.constructor == Array;
}
function I(a, e) {
a[a.length] = e;
}
function $1(a, e) {
for (var i = 0; i < a.length; ++i) if (a[i] == e) return 1;
return 0;
}
function $f(a, b, d) {
var c = d ? [] : $f(b, [], 1);
for (var i = 0; i < a.length; ++i) {
var e = a[i];
if (!$1(b, e)) I(c, e);
}
return c;
}
function $_7(n, u) {
var j = 0;
for (;;) {
var i = u.toLowerCase().indexOf(n + "=", j);
if (i < 0) break;
j = i + n.length + 1;
if (0 < i) {
var c = u.charAt(i - 1);
if (c != "#" && c != "&" && c != "?") continue;
}
var k = u.indexOf("#", j);
if (k < 0) k = u.length;
var l = u.indexOf("&", j);
if (l < 0) l = u.length;
if (l < k) k = l;
return [i, j, k];
}
return "";
}
function $M(n, u) {
if (!u) u = "" + location;
var p = $_7(n, u);
return p ? u.substring(p[1], p[2]) : "";
}
function $w(v, c, m) {
var s = "",
n = 0;
while (v || n < m) {
s = c[v % c.length] + s;
v = parseInt(v / c.length);
++n;
}
return s;
}
function $0(s) {
var c, i = 0,
j, l, n = s.length,
t = "";
do {
j = i;
while (j < n && 0 <= Q(s, j))++j;
if (i < j) t += s.substring(i, j);
if (j == n) break;
i = j;
c = s.charCodeAt(i);
if (c < 256) {
if (c < 128) t += "~" + D[c - (c < 45 ? 0 : c < 48 ? 1 : c < 65 ? 11 : c < 95 ? 37 : c < 97 ? 38 : 64)];
else t += (c < 192 ? "!" : "$") + D[c - (c < 192 ? 128 : 192)];
++i;
continue;
}
j = -1;
l = [c >> 8];
do {
l.push(c & 255);++i;++j;
} while (i < n && j < 64 && (c = s.charCodeAt(i)) >> 8 == l[0]);
t += (j ? "*" + D[j - 1] : ".") + $I(l);
} while (i < n);
return t;
}
function $_0(s) {
var c, d = "~!$.*",
e, i = 0,
j, l, n = s.length,
p, t = "",
x = function() {
K("Yber decoding error");
t += "\uFFFD";
};
do {
j = i;
while (j < n && 0 <= Q(s, j))++j;
if (i < j) t += s.substring(i, j);
if (j == n) break;
i = j;
e = d.indexOf(s.charAt(i++));
if (e < 3) {
if (e < 0 || i == n) x();
else {
c = Q(s, i++);
if (c < 0) x();
else t += String.fromCharCode(c + (e ? e < 2 ? 128 : 192 : c < 45 ? 0 : c < 47 ? 1 : c < 54 ? 11 : c < 58 ? 37 : c < 59 ? 38 : 64));
}
continue;
}
if (e < 4) m = 2;
else {
if (i == n) {
x();
continue;
}
m = Q(s, i++) + 3;
if (m < 3) {
x();
continue;
}
}
j = i + parseInt((m * 4 + 2) / 3);
if (n < j) x();
else {
l = $U(s.substring(i, j));
i = j;
p = l[0];
if (p < 0) x();
else {
p <<= 8;
for (j = 1; j < m; ++j) {
c = l[j];
if (c < 0) x();
else t += String.fromCharCode(p | c);
}
}
}
} while (i < n);
return t;
}
var D = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");
var $6 = [];
(function() {
var i;
for (i = 0; i < 128; ++i) $6[i] = -1;
for (i = 0; i < D.length; ++i) $6[D[i].charCodeAt(0)] = i;
})();
function Q(s, i) {
var c = s.charCodeAt(i);
return c < 128 ? $6[c] : -1;
}
function $O(a, b, c) {
return D[a >> 2] + D[(a & 3) << 4 | b >> 4] + D[(b & 15) << 2 | c >> 6] + D[c & 63];
}
function $W(s, i, l) {
var a = Q(s, i),
b = Q(s, i + 1),
c = Q(s, i + 2),
d = Q(s, i + 3);
if (a < 0 || b < 0 || c < 0 || d < 0) {
K("Invalid base-64 character");
l.push(-1, -1, -1);
} else l.push(a << 2 | b >> 4, (b & 15) << 4 | c >> 2, (c & 3) << 6 | d);
}
function $I(l) {
var i, s = "",
n = l.length,
m = n % 3;
if (m) l = l.concat([0, 0]);
for (i = 0; i < n; i += 3) s += $O(l[i], l[i + 1], l[i + 2]);
return s.substring(0, s.length - [0, 2, 1][m]);
}
function $U(s) {
var i, l = [],
n = s.length,
m = n % 4;
if (m) s += "AAA";
for (i = 0; i < n; i += 4) $W(s, i, l);
return l.slice(0, l.length - [0, 2, 2, 1][m]);
}
function K(m) {
if (!B.debug) return;
m = "" + m;
if (!O || O.closed) {
O = open(B.anonymousURL, "_Omniture_errorWindow", "height=300,width=400,resizable=yes,scrollbars=yes");
if (!O) {
alert(m);
return;
}
if (O.booted) O.document.body.innerHTML += "<hr/>";
else {
var d = O.document;
d.open();
d.write("<html><body><b>InstantSurvey debug log:</b></body></html>");
d.close();
O.booted = 1;
}
}
O.document.body.innerHTML += "<pre>" + m.replace(/&/g, "&").replace(/</g, "<") + "</pre>";
}
function $t(e, n, h) {
if (e.addEventListener) e.addEventListener(n, h, 0);
else if (e.attachEvent) e.attachEvent("on" + n, h);
else {
var p = e["on" + n];
e["on" + n] = function(v) {
var a = p(v);
return h(v) && a;
}
}
}
function $2(u) {
var e = document.createElement("script");
e.type = "text/javascript";
e.src = u;
document.getElementsByTagName("head")[0].appendChild(e);
}
$N();
})(); |