

var mboxCopyright = "Copyright 2003-2005 Offermatica Corporation. All Rights Reserved. This software is the proprietary information of Offermatica Corporation. Use is subject to license terms.";


if (typeof mboxIncluded == 'undefined') {
 var mboxIncluded = true;
 var mboxVersion = 17;

 var mboxClientCode = 'accenture';
 var mboxServerURL = 'http://mbox3.offermatica.com/m2/accenture/mbox/standard';

 var mboxTrafficDuration = 10368000;

 if (typeof mboxPCIdExpireTime == 'undefined') {
 
 
 var mboxPCIdExpireTime = 2 * 365 * 24 * 60 * 60;
 }
 
 
 function mboxCookiePageDomain() {
 var g0 = document.location.host;
 var e1 = /[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;
 if (!e1.exec(document.location.host)) {
 var a2 = /[^\.]+\.[^\.]+$/;
 var x3 = a2.exec(document.location.hostname);
 if (x3) {
 g0 = x3[0];
 }
 }
 return g0;
 }
 var mboxCookies = new mboxCookieManager("mbox", mboxCookiePageDomain());
 
 var mboxSessionIdCookie = "session";
 var mboxPCIdCookie = "PC";
 var mboxDisableCookie = "disable";
 var mboxCheckCookie = "check";
 var mboxDebugModeCookie = "debug";
 var mboxTrafficLevelCookie="level";
 var mboxTrafficStateCookie="traffic";

 var mboxXDomainArg = "mboxXDomain";

 var mboxNameArg = "mbox";
 var mboxClientCodeArg = "mboxClient";
 var mboxPCIdArg = "mboxPC";
 var mboxSessionIdArg = "mboxSession";
 var mboxFirstPageInVisitArg = "mboxFirstPageInVisit";
 var mboxPageIdArg = "mboxPage";
 var mboxHostArg = "mboxHost";
 var mboxURLArg = "mboxURL";
 var mboxReferrerArg = "mboxReferrer";
 var mboxVersionArg = "mboxVersion";
 var mboxCountArg = "mboxCount";
 var mboxEnvironmentArg = "envId";
 var mboxMarkerDivPrefix = "mboxMarker-";
 var mboxImportDivPrefix = "mboxImported-";
 var mboxDefaultDivClass = "mboxDefault";
 var mboxSignalPrefix = "signal-";

 var mboxPageId = mboxGenerateId();
 var mboxSessionId = new mboxSession(mboxPageId, mboxSessionIdArg,
 mboxSessionIdCookie, 31 * 60);
 var mboxPCId = new mboxPC(mboxPageId, mboxPCIdCookie, mboxPCIdExpireTime);

 var mboxs = new Object(); 
 var mboxGlobalArguments = "";
 var mboxCount = 0; 
 var mboxSignalCount = 0;

 var mboxCampaignsStateVersion = 0;
 var mboxCampaigns = new Array();

 var mboxEnv = new mboxEnvironment("mboxDisable");

 var pageLoadStartTime = new Date().getTime();
 var pageLoadEndTime = pageLoadStartTime;
 mboxEnv.getSafeBodyOnload().add(
 new Function("pageLoadEndTime = new Date().getTime()"));

 var mboxDebugInfo = new mboxDebug(mboxDebugModeCookie, "mboxDebug", mboxEnv);

 if (mboxEnv.platform.isSupported()) {
 mboxEnv.getSafeBodyOnload().add(mboxCheckAll);

 mboxEnv.limitTraffic(100, 10368000);

 if (mboxEnv.isEnabled()) {
 mboxSignal();
 mboxDefaultContentDisplayNone();
 }
 else {
 
 }
 } 
}



function mboxCreate(j4 ) {
 if (!mboxEnv.platform.isSupported()) {
 return;
 }
 mboxEnv.getSafeBodyOnload().setup();

 var o5 = new Array();
 o5[0] = mboxNameArg + '=' + j4;
 for (var i = 1; i < arguments.length; i++) {
 o5[i] = arguments[i];
 }

 var g6 = new mbox(j4, o5);
 g6.put();
}


function mboxGlobalParameters() {
 for (var b7 = 0; b7 < arguments.length; b7++) {
 if (mboxGlobalArguments != "") {
 mboxGlobalArguments = mboxGlobalArguments + "&";
 } 
 mboxGlobalArguments = mboxGlobalArguments + arguments[b7];
 }
}


function mboxBase(p8, l9) {
 this.id = p8;
 this.url = l9;
 this.timeout = null;
 this.activated = 0;
 this.defaultDiv = null;

 this.offer = new mboxOfferContent();

 this.put = mbox_put;
 this.show = mbox_show;
 this.showContent = mbox_showContent;
 this.hide = mbox_hide;
 this.startTimeout = mbox_startTimeout;
 this.cancelTimeout = mbox_cancelTimeout;
 this.getDefaultDiv = mbox_getDefaultDiv;
 this.activate = mbox_activate;
 this.isActivated = mbox_isActivated;
 this.markerName = mbox_markerName;
 this.importName = mbox_importName;
 this.importDiv = mbox_getImportDiv;
 this.finalize = mbox_finalize;
 this.parameters = mbox_getParams;

 this.activateAction = mbox_show;
 this.setActivateAction = mbox_setActivateAction;
 this.setOffer = mbox_setOffer;

 this.time = new Object();
 this.activateCount = 0;
 this.setEventTime = mbox_setEventTime;


 this.error = null;

 if (mboxs[p8]) {
 this.error = "multiple mboxes with the id '" + p8 + "' exist on this page";
 this.put = mbox_putNothing;
 this.activateAction = mbox_hide;
 }

 mboxs[p8] = this;
}

function mbox(p8, o5) {
 this.base = mboxBase;
 o5[o5.length] = mboxCountArg + "=" + ++mboxCount;
 this.base(p8, mboxBuildURL(o5));
}

function mboxSignalMbox(p8, o5) {
 this.base = mboxBase;
 o5[o5.length] = mboxCountArg + "=" + --mboxSignalCount;
 this.base(p8, mboxBuildURL(o5));
}


function mbox_getParams() {
 return mboxGetParamsFromQueryString(this.url);
}

function mboxGetParamsFromQueryString(url) {
 var parameters = new Object();

 var position = url.indexOf("?");
 if (position == -1 || position == (url.length - 1)) {
 return parameters;
 }

 var queryString = url.substring(position + 1);
 var pairs = queryString.split("&");
 for (var i = 0; i < pairs.length; i++) {
 var pair = pairs[i].split("=");
 if (pair.length < 2 || pair[0] == "" || pair[1] == "") {
 continue;
 } else {
 parameters[pair[0]] = pair[1];
 }
 }

 return parameters;
}


function mbox_put() {
 if (mboxEnv.isEnabled()) {
 this.setEventTime("put.start");
 document.write(
 '<div id="' + this.markerName()
 + '" style="visibility:hidden;display:none">'
 + '<script language="JavaScript">'
 + 'mboxs["' + this.id + '"].startTimeout(15000);'
 + '<' + '\/script>'
 + '<script src="' + this.url + '" language="JavaScript"><'+ '\/script>'
 + '</div>');

 this.setEventTime("put.end");
 }
 else {
 document.write('<div id="' + this.markerName() + '"></div>');
 }
}

function mbox_putNothing() {
 document.write('<div id="' + this.markerName() + '"></div>');
}


function mbox_activate() {
 if (this.activated) {
 return this.activated;
 }
 this.setEventTime('activate' + ++this.activateCount + '.start');

 if (this.activateAction()) {
 this.cancelTimeout();
 this.activated = 1;
 }

 this.setEventTime('activate' + this.activateCount + '.end');
 return this.activated;
}


function mbox_isActivated() {
 return this.activated;
}


function mbox_setActivateAction(n10) {
 this.activateAction = n10;
}


function mbox_setOffer(v11) {
 this.offer = v11;
}


function mbox_show() {
 this.setEventTime('show.start');

 var result = this.offer.show(this);

 this.setEventTime(result == 1 ? "show.end.ok" : "show.end");

 return result;
}


function mbox_showContent(w12) {
 
 if (w12 == null) {
 return 0;
 }

 var k13 = this.getDefaultDiv();

 if (mboxEnv.platform.supportsReplace()) {
 if (k13 != null) {
 k13.parentNode.replaceChild(w12, k13);
 }
 
 
 else {
 var j14 = document.getElementById(this.markerName());

 
 if (j14 == null) {
 return 0;
 }

 mboxMakeDivVisible(j14);
 }
 }
 
 
 else {
 var j14 = document.getElementById(this.markerName());

 
 if (j14 == null) {
 return 0;
 }

 if (k13 != null) {
 mboxMakeDivInvisible(k13);
 }

 mboxMakeDivVisible(j14);
 }

 mboxMakeDivVisible(w12);

 
 
 return 1;
}

function mboxMakeDivVisible(j15) {
 j15.style.visibility = "visible";
 j15.style.display = "block";
}

function mboxMakeDivInvisible(j15) {
 j15.style.visibility = "hidden";
 j15.style.display = "none";
}


function mbox_hide() {
 this.setEventTime('hide.start');

 var j14 = document.getElementById(this.markerName());
 if (j14 != null) {
 j14.style.visibility = "hidden";
 j14.style.display = "none";
 }

 var k13 = this.getDefaultDiv();

 if (k13 != null) {
 k13.style.visibility = "visible";
 k13.style.display = "block";

 this.setEventTime('hide.end.ok');

 return 1;
 }

 this.setEventTime('hide.end.fail');

 return 0;
}


function mbox_finalize() {
 this.setEventTime('finalize.start');

 this.cancelTimeout();

 if (!this.activate()) {
 this.hide();

 this.setEventTime('finalize.end.hide');
 }

 this.setEventTime('finalize.end.ok');
}

function mbox_startTimeout(l16) {
 this.timeout =
 setTimeout('mboxCheckTimeoutById("' + this.id + '")', l16);
}

function mbox_cancelTimeout() {
 if (this.timeout != null) {
 clearTimeout(this.timeout);
 }
}

function mbox_getImportDiv() {
 return document.getElementById(this.importName());
}

function mbox_getDefaultDiv() {
 if (this.defaultDiv != null) {
 return this.defaultDiv;
 }

 var node = document.getElementById(this.markerName());
 while (node != null) {
 
 if ((node.nodeType == 1) && (node.nodeName == "DIV")) {
 if (node.className.indexOf(mboxMarkerDivPrefix) > 0) {
 return null;
 } else if (node.className == mboxDefaultDivClass) {
 this.defaultDiv = node;

 return node;
 }
 }
 node = node.previousSibling;
 }

 return null;
}


function mbox_setActivateAction(action) {
 this.activateAction = action;
}

function mbox_markerName() {
 return mboxMarkerDivPrefix + this.id
}

function mbox_importName() {
 return mboxImportDivPrefix + this.id
}

function mbox_setEventTime(event) {
 this.time[event] = (new Date()).getTime();
}

function mboxOfferContent() {
 this.show = mboxOfferContent_show;
}

function mboxOfferContent_show(i17) {
 var w12 = i17.importDiv();

 return i17.showContent(w12);
}

function mboxOfferDefault() {
 this.show = mboxOfferDefault_show;
}

function mboxOfferDefault_show(i17) {
 return i17.hide();
}


function mboxBuildURL(o5) {
 var p18 = mboxServerURL;

 if (document.location.protocol == "https:") {
 p18 = p18.replace("http:", "https:")
 }
 p18 += "?" + mboxHostArg + "=" + document.location.hostname;

 for (var b7 = 0; b7 < o5.length; b7++) {
 p18 += "&" + o5[b7];
 }

 if (mboxGlobalArguments.length > 0) {
 p18 += "&" + mboxGlobalArguments;
 }

 if (p18.indexOf(mboxSessionIdArg) == -1) {
 p18 += "&" + mboxSessionIdArg + "=" + mboxSessionId.getId();
 }

 if (mboxSessionId.isNew()) {
 p18 += "&" + mboxFirstPageInVisitArg + "=" + true;
 }

 p18 = p18 + "&" + mboxPCIdArg + "=" + mboxPCId.getId()
 + "&" + mboxPageIdArg + "=" + mboxPageId
 
 + "&" + mboxURLArg + "=" + escape(document.location);

 var f19 = escape(document.referrer);
 if (p18.length + f19.length < 2000) {
 p18 += "&" + mboxReferrerArg + "=" + f19
 }

 return p18 + "&" + mboxVersionArg + "=" + mboxVersion;
}


function mboxEnvironment(j20) {
 this.platform = new mboxPlatform();
 this.r21 = null;

 this.p22 = this.platform.isSupported();

 if (mboxGetPageParameter(j20) != null) {
 this.p22 = false;
 }

 
 
 if (!mboxCookies.isEnabled()) {
 this.p22 = false;
 }
 if (mboxCookies.getCookie(mboxDisableCookie) == "true") {
 this.p22 = false;
 }
 

 this.isEnabled = mboxEnvironment_isEnabled;
 this.disable = mboxEnvironment_disable;
 this.enable = mboxEnvironment_enable;
 this.isAdmin = mboxEnvironment_isAdmin;
 this.limitTraffic = mboxEnvironment_limitTraffic;
 this.getSafeBodyOnload = mboxEnvironment_getSafeBodyOnload;

 if (this.isAdmin()) {
 this.enable();
 }
}

function mboxEnvironment_isEnabled() {
 return this.p22;
}

function mboxEnvironment_getSafeBodyOnload() {
 if (this.r21 == null) {
 this.r21 = new mboxSafeOnload(window);
 }

 return this.r21;
}

function mboxEnvironment_disable(duration) {
 if (typeof duration == 'undefined') {
 duration = 60 * 60;
 }
 if (!this.isAdmin()) {
 this.p22 = false;
 mboxCookies.setCookie(mboxDisableCookie, "true", duration);
 }
}

function mboxEnvironment_enable() {
 this.p22 = true;
 mboxCookies.deleteCookie(mboxDisableCookie);
}

function mboxEnvironment_isAdmin() {
 return document.location.href.indexOf(mboxEnvironmentArg) != -1;
}

function mboxEnvironment_limitTraffic(level, duration) {
 if (level == 100) {
 return;
 }

 var y23 = mboxCookies.getCookie(mboxTrafficStateCookie);

 if (this.isAdmin()) {
 y23 = true;
 mboxCookies.setCookie(mboxTrafficLevelCookie, level, duration);
 mboxCookies.setCookie(mboxTrafficStateCookie, y23, duration);
 }
 else if (y23 == null || mboxCookies.getCookie(mboxTrafficLevelCookie) != level) {
 y23 = (Math.random() * 100) <= level;
 mboxCookies.setCookie(mboxTrafficLevelCookie, level, duration);
 mboxCookies.setCookie(mboxTrafficStateCookie, y23, duration);
 }

 if (y23) {
 this.enable();
 }
 else {
 this.disable();
 }
}

function mboxCookieManager(f24, g0) {
 this.name = f24;

 if (g0.indexOf(".") == -1) {
 
 g0 = "";
 }

 this.domain = g0 == "" ? "" : "; domain=" + g0;

 this.isEnabled = mboxCookieManager_isEnabled;
 this.getCookie = mboxCookieManager_getCookie;
 this.setCookie = mboxCookieManager_setCookie;
 this.deleteCookie = mboxCookieManager_deleteCookie;
 this.getCookieNames = mboxCookieManager_getCookieNames;
 this.loadCookies = mboxCookieManager_loadCookies;
 this.saveCookies = mboxCookieManager_saveCookies;

 this.loadCookies();
}

function mboxCookieManager_isEnabled() {
 this.setCookie(mboxCheckCookie, "true", 60);
 this.loadCookies()
 return this.getCookie(mboxCheckCookie) == "true";
}



function mboxCookieManager_setCookie(f24, t25, l16) {
 if (typeof f24 != 'undefined' &&
 typeof t25 != 'undefined' &&
 typeof l16 != 'undefined') {

 this.cookies[f24] = {
 name:f24,
 value:escape(t25),
 
 expireOn:Math.ceil(l16 + new Date().getTime() / 1000)
 }
 this.saveCookies();
 }
}

function mboxCookieManager_getCookie(f24) {
 var b26 = this.cookies[f24];
 if (typeof b26 == 'undefined' || b26 == null) {
 return null;
 }
 return unescape(b26.value);
}

function mboxCookieManager_deleteCookie(f24) {
 var t27 = new Object();
 for (b26 in this.cookies) {
 if (b26 != f24) {
 t27[b26] = this.cookies[b26];
 }
 }
 this.cookies = t27;
 this.saveCookies();
}

function mboxCookieManager_getCookieNames(c28) {
 var j29 = new Object();
 for (b26 in this.cookies) {
 if (b26.indexOf(c28) == 0) {
 j29[j29.length] = b26;
 }
 }
 return j29;
}

function mboxCookieManager_loadCookies() {
 this.cookies = new Object();
 var k30 = document.cookie.indexOf(this.name + "=");
 if (k30 != -1) {
 var i31 = document.cookie.indexOf(";", k30);
 if (i31 == -1) {
 i31 = document.cookie.indexOf(",", k30);
 if (i31 == -1) {
 i31 = document.cookie.length;
 }
 }

 var r32 = document.cookie.substring(
 k30 + this.name.length + 1, i31).split("|");

 var h33 = Math.ceil(new Date().getTime() / 1000);
 for (var i = 0; i < r32.length; i++) {
 var b26 = r32[i].split("#");
 if (h33 <= b26[2]) {
 this.cookies[b26[0]] =
 {name:b26[0], value:b26[1], expireOn:b26[2]}
 }
 }
 }
}

function mboxCookieManager_saveCookies() {

 var j34 = new Array();
 var x35 = 0;
 for (b26 in this.cookies) {
 if (this.cookies[b26] != null) {
 j34[j34.length] = this.cookies[b26].name + "#" +
 this.cookies[b26].value + "#" + this.cookies[b26].expireOn;

 if (x35 < this.cookies[b26].expireOn) {
 x35 = this.cookies[b26].expireOn;
 }
 }
 }

 var l36 = new Date(x35 * 1000);
 document.cookie = this.name + "=" + j34.join("|")
 + "; expires=" + l36.toGMTString() + "; path=/" + this.domain;

}

function mboxTimedOut() {
 return mboxCookies.getCookie(mboxDisableCookie) == "true";
}

function mboxCancelTimeoutById(id) {
 mboxActivateById(id);
}

function mboxActivateById(id) {
 mboxs[id].activate();
}

function mboxCheckTimeoutById(id) {
 mboxActivateById(id);

 if (!mboxs[id].isActivated()) {
 mboxEnv.disable();
 
 window.location.reload(false);
 }
}


function mboxCheckAll() {
 for (var mbox in mboxs) {
 mboxs[mbox].finalize();
 }
}


function mboxGetDefaultDiv(j4) {
 return mboxs[j4].getDefaultDiv();
}


function mboxMarkerName(j4) {
 return mboxs[j4].markerName();
}


function mboxImportName(j4) {
 return mboxs[j4].importName();
}


function mboxSetupSignal(t37, j4 ) {
 var o5 = new Array();
 for (var i = 1; i < arguments.length; i++) {
 o5[i-1] = arguments[i];
 }
 mboxCookies.setCookie(mboxSignalPrefix + t37, o5.join("&"), 45 * 60);
}


function mboxSignal() {
 var c38 = mboxCookies.getCookieNames(mboxSignalPrefix);
 for (q39 in c38) {
 var b40 = mboxCookies.getCookie(c38[q39]);
 var o5 = b40.split("&");
 var j4 = o5[0];
 o5[0] = mboxNameArg + '=' + j4;
 var t41 = new mboxSignalMbox(j4, o5);
 t41.put();
 mboxCookies.deleteCookie(c38[q39]);
 }
}


function mboxDefaultContentDisplayNone() {
 document.write("<style>." + mboxDefaultDivClass
 + " { visibility:hidden; }</style>");
}


function mboxArg(y42, t25) {
 return y42 + "=" + escape(t25);
}


function mboxSession(x43, l44, p45, x46) {
 this.idArg = l44;
 this.cookieName = p45;
 this.expireTime = x46;

 this.newSession = false;

 this.id = mboxGetPageParameter(this.idArg);

 if (this.id == null || this.id.length == 0) {
 this.id = mboxCookies.getCookie(mboxSessionIdCookie);
 if (this.id == null || this.id.length == 0) {
 this.id = x43;
 this.newSession = true;
 }
 }

 mboxSetCookie(mboxSessionIdCookie, this.id, x46);

 this.getId = mboxSession_getId;
 this.isNew = mboxSession_isNew;
 this.reset = mboxSession_reset;
 this.forceId = mboxSession_forceId;
}


function mboxSession_getId() {
 return this.id;
}


function mboxSession_isNew() {
 return this.newSession;
}

function mboxSession_reset() {
 this.id = mboxGenerateId();

 mboxCookies.setCookie(this.cookieName, this.id, this.expireTime);
}

function mboxSession_forceId(forcedId, isNewSession) {
 this.id = forcedId;

 
 
 
 
 
 
 if (typeof isNewSession == 'undefined') {
 if (mboxCookies.getCookie(mboxSessionIdCookie) == forcedId) {
 this.newSession = false;
 } else {
 this.newSession = true;
 }
 } else {
 this.newSession = isNewSession;
 }

 mboxCookies.setCookie(this.cookieName, this.id, this.expireTime);
}


function mboxPC(x43, p45, x46) {
 this.cookieName = p45;
 this.expireTime = x46;

 this.id = mboxCookies.getCookie(this.cookieName);

 if (this.id == null || this.id.length == 0) {
 this.id = x43;
 }

 this.getId = mboxPC_getId;
 this.forceId = mboxPC_forceId;
}


function mboxPC_getId() {
 
 mboxCookies.setCookie(mboxPCIdCookie, this.id, this.expireTime);

 return this.id;
}


function mboxPC_forceId(forcedId) {
 if (this.id != forcedId) {
 this.id = forcedId;

 mboxCookies.setCookie(this.cookieName, this.id, this.expireTime);

 return true;
 }

 return false;
}

function mboxGenerateId() {
 return (new Date()).getTime() + "-" + Math.floor(Math.random() * 999999);
}

function mboxGetPageParameter(name) {
 var p18 = null;

 var q47 = new RegExp(name + "=([^\&]*)");
 var r48 = q47.exec(document.location);
 if (r48 != null && r48.length >=2) {
 p18 = r48[1];
 }

 return p18;
}

function mboxDisplayDebugInfo() {
 mboxDebugInfo.show();
}

function mboxDebug(n49, l50, r51) {
 this.debugCookie = n49;

 this.isEnabled = mboxDebug_isEnabled;
 this.disable = mboxDebug_disable;
 this.show = mboxDebug_show;
 this.setShowAction = mboxDebug_setShowAction;
 this.action = null;

 var u52 = mboxGetPageParameter(l50);
 if (u52 == null) {
 u52 = mboxCookies.getCookie(this.debugCookie);
 }

 if (u52 != null) {
 if (u52.indexOf("x") == 0) {
 
 this.action = new mboxDebugActionNone();

 document.write('<script language="Javascript1.2" src="'
 + 'http://admin3.offermatica.com/admin/mbox/mbox_debug_' + u52 + '.js'
 + '"><' + '\/script>');
 }
 else if (u52.indexOf("log") == 0) {
 this.action = new mboxDebugActionLog(u52);
 }
 else if (u52 == "reset") {
 u52 = null;
 }
 else {
 this.action = new mboxDebugActionDefault();
 }
 }

 if (this.action != null) {
 if (r51.platform.isSupported()) {
 r51.getSafeBodyOnload().sortedAdd(mboxDisplayDebugInfo,
 r51.getSafeBodyOnload().orderLast);
 }
 else {
 alert("mbox functionality is not supported on this browser");
 mboxDebugInfo.disable();
 }
 }

 if (u52 != null) {
 mboxCookies.setCookie(this.debugCookie, u52, 45 * 60);
 }
 else {
 this.disable()
 }
}

function mboxDebug_isEnabled() {
 return this.action != null;
}


function mboxDebug_disable() {
 mboxCookies.deleteCookie(this.debugCookie);
}

function mboxDebug_setShowAction(n10) {
 this.action = n10;
}

function mboxDebug_show() {
 if (this.action != null) {
 this.action.show();
 }
}

function mboxDebugActionLog(mode) {
 this.mode = mode;
 this.start = (new Date()).getTime();

 this.show = mboxDebugActionLog_show;
}

function mboxDebugActionLog_show() {
 var end = (new Date()).getTime();

 var window = new mboxDebugWindow("Debug Log");

 window.putPageStart();
 window.put("<img src='http://mbox3.offermatica.com/admin/images/spacer.gif"
 + "?mboxDebug=" + this.mode
 + "&mboxClient=" + mboxClientCode
 + "&pageLoadTime=" + (end - this.start)
 + "&mboxCount=" + mboxCount
 + "&mboxSignalCount=" + mboxSignalCount + "'>");

 window.put("<br />");

 window.putCloseButton()
 window.putPageEnd();
}


function mboxDebugActionNone() {
 this.show = mboxDebugActionDefault_show;
}

function mboxDebugActionNone_show() {
 alert("mboxDebugAction not defined");
}

function mboxDebugActionDefault() {
 this.show = mboxDebugActionDefault_show;
}

function mboxDebugActionDefault_show() {
 var window = new mboxDebugWindow("Debug");

 window.putPageStart();
 window.put("  <b>Mbox Debug Window (version:" + mboxVersion + ")</b></br>");

 window.put("<p/>");
 window.put("<b>Page</b>: " + document.location);

 window.put(" <ul>");

 if (mboxEnv.isEnabled()) {
 window.put("  <li>Enabled: true</li>");
 } else {
 window.put(
 '  <li>Enabled: <span style="color:red"><b>false</b></span></li>');
 }

 window.put("  <li>Cookies enabled: " + mboxCookieIsEnabled() + "</li>");
 window.put("  <li>Global arguments: '" + mboxGlobalArguments + "'</li>");
 window.put("  <li>Referring URL: '" + document.referrer + "'</li>");
 window.put("  <li>Page URL: '" + document.location + "'</li>");
 window.put("  <li>Cookies: '" + document.cookie + "'</li>");
 window.put("  <li>Page Id: " + mboxPageId + "</li>");

 for (j4 in mboxs) {
 window.put("  <li>mbox: '" + mboxs[j4].id + "'");
 window.put("   <ul>");

 if (mboxs[j4].error) {
 window.put('   <li><span style="color: red"><b>Error: '
 + mboxs[j4].error + '</b></span></li>');
 }

 var j14 = document.getElementById(mboxMarkerName(mboxs[j4].id));
 if (j14 == null) {
 window.put('    <li><span style="color: red">'
 + '<b>Error: can not find mbox in dom</b></span></li>');
 } else {
 window.put("    <li>has mboxDefault content div tags: "
 + (mboxs[j4].defaultDiv != null) + "</li>");
 }

 window.put('    <li><a href="' + mboxs[j4].url + '">'
 + mboxs[j4].url + '</a></li>');

 window.put("   </ul>");
 window.put("  </li>");
 }

 window.put(" </ul>");

 window.putCloseButton()
 window.putPageEnd();
}

function mboxDebugWindow(name) {
 this.f24 = name + " " + document.location.hostname;

 var h53 = /\W/g;
 var z54 = this.f24.replace(h53, '_');

 this.put = mboxDebugWindow_put;
 this.putCloseButton = mboxDebugWindow_putCloseButton;
 this.putPageStart = mboxDebugWindow_putPageStart;
 this.putPageEnd = mboxDebugWindow_putPageEnd;

 this.window = window.open("", "mboxDebugWindow" + z54,
 "width=600,height=300,resizable,scrollbars=yes,toolbar=yes");

 if (this.window == null) {
 alert("Unable to open Offermatica's mboxDebugWindow Window.\n"
 + "Are you blocking popups?\n");
 return;
 }
}


function mboxDebugWindow_put(z56) {
 if (this.window == null) {
 return;
 }
 this.window.document.writeln(z56);
 this.window.scrollBy(0, 1000);
}

function mboxDebugWindow_putCloseButton() {
 this.put("<a href=\"javascript:mboxDebugWindowClose()\">"
 + "click here to close debug window</a>");
}

function mboxDebugWindow_putPageStart() {
 this.put("<html><head>")
 this.put(" <title>" + this.f24 + "</title>");
 this.put("  <script>");
 this.put("   function mboxDebugWindowOnClose() {");
 this.put("       window.opener.mboxDebugInfo.disable();");
 this.put("   }");
 this.put("   ");
 this.put("   function mboxDebugWindowClose() {");
 this.put("     try {");
 this.put("       window.opener.mboxDebugInfo.disable();");
 this.put("     } catch(e) {");
 this.put("       alert('Could not disable debug mode.\\n'");
 this.put("         + 'Browse to a page containing an mbox and\\n'");
 this.put("         + 'click on close link.');");
 this.put("     }");
 this.put("     window.close();");
 this.put("   }");
 this.put("  </" + "script>");
 this.put(" </head>")
 this.put(" <body onunload='mboxDebugWindowOnClose()'>")
}

function mboxDebugWindow_putPageEnd() {
 this.put("</body></html>");

 this.window.document.close();
}

function mboxSafeOnload(element) {
 this.b57 = new Array()

 this.orderFirst = 0;
 this.orderMiddle = 500;
 this.orderLast = 1000;

 this.add = mboxSafeOnload_add;
 this.sortedAdd = mboxSafeOnload_sortedAdd;
 this.setup = mboxSafeOnload_setup;
 this.action = mboxSafeOnload_action;
 this.element = element;
 this.actionStarted = false;

 
 
 
 if (typeof mboxSafeOnloadFunctions == "undefined") {
 mboxSafeOnloadFunctions = new Array();
 }

 
 
 var offset = mboxSafeOnloadFunctions.length;
 mboxSafeOnloadFunctions[offset] = this;
 this.i58 = new Function("event",
 "mboxSafeOnloadFunctions[" + offset + "].action(event)");

 this.setup();
}

function mboxSafeOnload_setup() {
 if (this.element.onload != this.i58) {
 if (this.element.onload) {
 this.add(this.element.onload);
 }

 this.element.onload = this.i58;
 }
}

function mboxSafeOnload_add(z59) {
 this.sortedAdd(z59, this.orderMiddle)
}

function mboxSafeOnload_sortedAdd(z59, k60) {
 var i58 = new Array()
 i58.order = k60;
 i58.action = z59;
 this.b57[this.b57.length] = i58;
}


function mboxSafeOnload_action(r61) {
 if (this.actionStarted == true) {
 return;
 }
 this.actionStarted = true;

 this.b57.sort(mboxSafeOnload_orderSort);

 for (var b7 = 0; b7 < this.b57.length; b7++) {
 
 
 this.element.onload = this.b57[b7].action;
 this.element.onload(r61);
 }
 this.element.onload = this.i58
}

function mboxSafeOnload_orderSort(w62, l63) {
 return w62.order - l63.order;
}


function mboxSetCookie(f24, t25, l16) {
 mboxCookies.setCookie(f24, t25, l16);
}


function mboxGetCookie(f24) {
 return mboxCookies.getCookie(f24);
}


function mboxDeleteCookie(f24) {
 mboxCookies.deleteCookie(f24);
}


function mboxGetCookieNames(c28) {
 return mboxCookies.getCookieNames(c28);
}

function mboxCookieIsEnabled() {
 mboxCookies.setCookie(mboxCheckCookie, "true", 60);
 return mboxCookies.getCookie(mboxCheckCookie) == "true";
}

function mboxIsSupported() {
 return true;
}

function mboxPlatform() {
 this.i64 = window.navigator.appVersion.indexOf("Mac") != -1;
 this.e65 = window.navigator.appVersion.indexOf("MSIE") != -1;

 var w66 = window.navigator.userAgent.indexOf("Opera") != -1;
 var f67 = window.navigator.userAgent.indexOf("Konqueror") != -1;
 var z68 = this.e65 &&
 (window.navigator.appVersion.indexOf("MSIE 4.") != -1);
 var t69 = (navigator.appName == 'Netscape') &&
 (parseInt(navigator.appVersion) == 4);

 this.supported = mboxIsSupported() &&
 !(t69 || z68 || w66 || f67);

 this.isSupported = mboxPlatform_isSupported;
 this.supportsReplace = mboxPlatform_supportsReplace;
}

function mboxPlatform_isSupported() {
 return this.supported;
}

function mboxPlatform_supportsReplace() {
 return !(this.e65 && this.i64)
}


function mboxForcePCId(forcedId) {
 if (mboxPCId.forceId(forcedId)) {
 mboxSessionId.reset();
 }
}


function mboxSetSessionId() {
 mboxSessionId.forceId(arguments[0],arguments[1]);
}


function mboxSafeBodyOnload() {
 if (arguments.length > 1) {
 mboxEnv.getSafeBodyOnload().add(arguments[0], arguments[1]);
 }
 else {
 mboxEnv.getSafeBodyOnload().add(arguments[0]);
 }
}

