

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 = 16;

 var mboxClientCode = 'toshiba';
 var mboxServerURL = 'http://mbox3.offermatica.com/boxserver/content.js';

 var mboxTrafficDuration = 10368000;
 var mboxXDomain = false;

 if (typeof mboxPCIdExpireTime == 'undefined') {
 
 
 var mboxPCIdExpireTime = 2 * 365 * 24 * 60 * 60;
 }

 
 function mboxCookiePageDomain() {
 var f0 = document.location.host;
 var n1 = /[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;
 if (!n1.exec(document.location.host)) {
 var l2 = /[^\.]+\.[^\.]+$/;
 var v3 = l2.exec(document.location.hostname);
 if (v3) {
 f0 = v3[0];
 }
 }
 return f0;
 }
 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(d4 ) {
 if (!mboxEnv.platform.isSupported()) {
 return;
 }
 mboxEnv.getSafeBodyOnload().setup();

 var g5 = new Array();
 g5[0] = mboxNameArg + '=' + d4;
 for (var i = 1; i < arguments.length; i++) {
 g5[i] = arguments[i];
 }

 var l6 = new mbox(d4, g5);
 l6.put();
}


function mboxGlobalParameters() {
 for (var c7 = 0; c7 < arguments.length; c7++) {
 if (mboxGlobalArguments != "") {
 mboxGlobalArguments = mboxGlobalArguments + "&";
 } 
 mboxGlobalArguments = mboxGlobalArguments + arguments[c7];
 }
}


function mboxBase(p8, y9) {
 this.id = p8;
 this.url = y9;
 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 Array();
 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, g5) {
 this.base = mboxBase;
 g5[g5.length] = mboxCountArg + "=" + ++mboxCount;
 this.base(p8, mboxBuildURL(g5));
}

function mboxSignalMbox(p8, g5) {
 this.base = mboxBase;
 g5[g5.length] = mboxCountArg + "=" + --mboxSignalCount;
 this.base(p8, mboxBuildURL(g5));
}


function mbox_getParams() {
 return mboxGetArrayFromQueryString(this.url);
}

function mboxGetArrayFromQueryString(url) {
 var position = url.indexOf("?");

 if (position == -1 || position == (url.length - 1)) {
 return new Array();
 }

 var queryString = url.substring(position + 1);
 var pairs = queryString.split("&");
 var queryArray = new Array();
 for (var i = 0; i < pairs.length; i++) {
 var pair = pairs[i].split("=");
 if (pair.length < 2 || pair[0] == "" || pair[1] == "") {
 continue;
 } else {
 queryArray[pair[0]] = pair[1];
 }
 }
 return queryArray;
}


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(s10) {
 this.activateAction = s10;
}


function mbox_setOffer(r11) {
 this.offer = r11;
}


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(o12) {
 
 if (o12 == null) {
 return 0;
 }

 var g13 = this.getDefaultDiv();

 if (mboxEnv.platform.supportsReplace()) {
 if (g13 != null) {
 g13.parentNode.replaceChild(o12, g13);
 }
 
 
 else {
 var z14 = document.getElementById(this.markerName());

 
 if (z14 == null) {
 return 0;
 }

 mboxMakeDivVisible(z14);
 }
 }
 
 
 else {
 var z14 = document.getElementById(this.markerName());

 
 if (z14 == null) {
 return 0;
 }

 if (g13 != null) {
 mboxMakeDivInvisible(g13);
 }

 mboxMakeDivVisible(z14);
 }

 mboxMakeDivVisible(o12);

 
 
 return 1;
}

function mboxMakeDivVisible(e15) {
 e15.style.visibility = "visible";
 e15.style.display = "block";
}

function mboxMakeDivInvisible(e15) {
 e15.style.visibility = "hidden";
 e15.style.display = "none";
}


function mbox_hide() {
 this.setEventTime('hide.start');

 var z14 = document.getElementById(this.markerName());
 if (z14 != null) {
 z14.style.visibility = "hidden";
 z14.style.display = "none";
 }

 var g13 = this.getDefaultDiv();

 if (g13 != null) {
 g13.style.visibility = "visible";
 g13.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(k16) {
 this.timeout =
 setTimeout('mboxCheckTimeoutById("' + this.id + '")', k16);
}

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(p17) {
 var o12 = p17.importDiv();

 return p17.showContent(o12);
}

function mboxOfferDefault() {
 this.show = mboxOfferDefault_show;
}

function mboxOfferDefault_show(p17) {
 return p17.hide();
}


function mboxBuildURL(g5) {
 var t18 = mboxServerURL;

 if (document.location.protocol == "https:") {
 t18 = t18.replace("http:", "https:")
 }
 t18 += "?" + mboxClientCodeArg + "=" + mboxClientCode;
 t18 += "&" + mboxHostArg + "=" + document.location.hostname;

 for (var c7 = 0; c7 < g5.length; c7++) {
 t18 += "&" + g5[c7];
 }

 if (mboxGlobalArguments.length > 0) {
 t18 += "&" + mboxGlobalArguments;
 }

 if (t18.indexOf(mboxSessionIdArg) == -1) {
 t18 += "&" + mboxSessionIdArg + "=" + mboxSessionId.getId();
 }

 if (mboxSessionId.isNew()) {
 t18 += "&" + mboxFirstPageInVisitArg + "=" + true;
 }

 return t18 + "&" + mboxPCIdArg + "=" + mboxPCId.getId()
 + "&" + mboxPageIdArg + "=" + mboxPageId
 + "&" + mboxURLArg + "=" + escape(document.location)
 + "&" + mboxReferrerArg + "=" + escape(document.referrer)
 
 + "&" + mboxVersionArg + "=" + mboxVersion;
}


function mboxEnvironment(i19) {
 this.platform = new mboxPlatform();
 this.t20 = null;

 this.h21 = this.platform.isSupported();

 if (mboxGetPageParameter(i19) != null) {
 this.h21 = false;
 }

 
 if (!mboxCookies.isEnabled()) {
 this.h21 = false;
 }
 if (mboxCookies.getCookie(mboxDisableCookie) == "true") {
 this.h21 = 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.h21;
}

function mboxEnvironment_getSafeBodyOnload() {
 if (this.t20 == null) {
 this.t20 = new mboxSafeOnload(window);
 }

 return this.t20;
}

function mboxEnvironment_disable(duration) {
 if (typeof duration == 'undefined') {
 duration = 60 * 60;
 }
 if (!this.isAdmin()) {
 this.h21 = false;
 mboxCookies.setCookie(mboxDisableCookie, "true", duration);
 }
}

function mboxEnvironment_enable() {
 this.h21 = true;
 mboxCookies.deleteCookie(mboxDisableCookie);
}

function mboxEnvironment_isAdmin() {
 return document.location.href.indexOf(mboxEnvironmentArg) != -1;
}

function mboxEnvironment_limitTraffic(level, duration) {
 if (level == 100) {
 return;
 }

 var n22 = mboxCookies.getCookie(mboxTrafficStateCookie);

 if (this.isAdmin()) {
 n22 = true;
 mboxCookies.setCookie(mboxTrafficLevelCookie, level, duration);
 mboxCookies.setCookie(mboxTrafficStateCookie, n22, duration);
 }
 else if (n22 == null || mboxCookies.getCookie(mboxTrafficLevelCookie) != level) {
 n22 = (Math.random() * 100) <= level;
 mboxCookies.setCookie(mboxTrafficLevelCookie, level, duration);
 mboxCookies.setCookie(mboxTrafficStateCookie, n22, duration);
 }

 if (n22) {
 this.enable();
 }
 else {
 this.disable();
 }
}

function mboxCookieManager(g23, f0) {
 this.name = g23;

 if (f0.indexOf(".") == -1) {
 
 f0 = "";
 }

 this.domain = f0 == "" ? "" : "; domain=" + f0;

 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(g23, q24, k16) {
 if (typeof g23 != 'undefined' &&
 typeof q24 != 'undefined' &&
 typeof k16 != 'undefined') {

 this.cookies[g23] = {
 name:g23,
 value:escape(q24),
 
 expireOn:Math.ceil(k16 + new Date().getTime() / 1000)
 }
 this.saveCookies();
 }
}

function mboxCookieManager_getCookie(g23) {
 var v25 = this.cookies[g23];
 if (typeof v25 == 'undefined' || v25 == null) {
 return null;
 }
 return unescape(v25.value);
}

function mboxCookieManager_deleteCookie(g23) {
 var v26 = new Object();
 for (v25 in this.cookies) {
 if (v25 != g23) {
 v26[v25] = this.cookies[v25];
 }
 }
 this.cookies = v26;
 this.saveCookies();
}

function mboxCookieManager_getCookieNames(a27) {
 var y28 = new Array();
 for (v25 in this.cookies) {
 if (v25.indexOf(a27) == 0) {
 y28[y28.length] = v25;
 }
 }
 return y28;
}

function mboxCookieManager_loadCookies() {
 this.cookies = new Object();
 var u29 = document.cookie.indexOf(this.name + "=");
 if (u29 != -1) {
 var w30 = document.cookie.indexOf(";", u29);
 if (w30 == -1) {
 w30 = document.cookie.indexOf(",", u29);
 if (w30 == -1) {
 w30 = document.cookie.length;
 }
 }

 var q31 = document.cookie.substring(
 u29 + this.name.length + 1, w30).split("|");

 var x32 = Math.ceil(new Date().getTime() / 1000);
 for (i in q31) {
 var v25 = q31[i].split("#");
 if (x32 <= v25[2]) {
 this.cookies[v25[0]] =
 {name:v25[0], value:v25[1], expireOn:v25[2]}
 }
 }
 }
}

function mboxCookieManager_saveCookies() {
 var h33 = new Array();
 var y34 = 0;
 for (v25 in this.cookies) {
 if (this.cookies[v25] != null) {
 h33[h33.length] = this.cookies[v25].name + "#" +
 this.cookies[v25].value + "#" + this.cookies[v25].expireOn;

 if (y34 < this.cookies[v25].expireOn) {
 y34 = this.cookies[v25].expireOn;
 }
 }
 }

 var m35 = new Date(y34 * 1000);
 document.cookie = this.name + "=" + h33.join("|")
 + "; expires=" + m35.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(d4) {
 return mboxs[d4].getDefaultDiv();
}


function mboxMarkerName(d4) {
 return mboxs[d4].markerName();
}


function mboxImportName(d4) {
 return mboxs[d4].importName();
}


function mboxSetupSignal(x36, d4 ) {
 var g5 = new Array();
 for (var i = 1; i < arguments.length; i++) {
 g5[i-1] = arguments[i];
 }
 mboxCookies.setCookie(mboxSignalPrefix + x36, g5.join("&"), 45 * 60);
}


function mboxSignal() {
 var k37 = mboxCookies.getCookieNames(mboxSignalPrefix);
 for (g38 in k37) {
 var f39 = mboxCookies.getCookie(k37[g38]);
 var g5 = f39.split("&");
 var d4 = g5[0];
 g5[0] = mboxNameArg + '=' + d4;
 var h40 = new mboxSignalMbox(d4, g5);
 h40.put();
 mboxCookies.deleteCookie(k37[g38]);
 }
}


function mboxDefaultContentDisplayNone() {
 document.write("<style>." + mboxDefaultDivClass
 + " { visibility:hidden; }</style>");
}


function mboxArg(i41, q24) {
 return i41 + "=" + escape(q24);
}


function mboxSession(q42, d43, r44, v45) {
 this.idArg = d43;
 this.cookieName = r44;
 this.expireTime = v45;

 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 = q42;
 this.newSession = true;
 }
 }

 mboxSetCookie(mboxSessionIdCookie, this.id, v45);

 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(q42, r44, v45) {
 this.cookieName = r44;
 this.expireTime = v45;

 this.id = mboxCookies.getCookie(this.cookieName);

 
 if (this.id == null || this.id.length == 0) {
 this.id = mboxGetOldPCCookie();
 }
 mboxDeleteOldPCCookie();
 

 if (this.id == null || this.id.length == 0) {
 this.id = q42;
 }

 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 t18 = null;

 var u46 = new RegExp(name + "=([^\&]*)");
 var h47 = u46.exec(document.location);
 if (h47 != null && h47.length >=2) {
 t18 = h47[1];
 }

 return t18;
}

function mboxDisplayDebugInfo() {
 mboxDebugInfo.show();
}

function mboxDebug(m48, r49, q50) {
 this.debugCookie = m48;

 this.isEnabled = mboxDebug_isEnabled;
 this.disable = mboxDebug_disable;
 this.show = mboxDebug_show;
 this.setShowAction = mboxDebug_setShowAction;
 this.action = null;

 var c51 = mboxGetPageParameter(r49);
 if (c51 == null) {
 c51 = mboxCookies.getCookie(this.debugCookie);
 }

 if (c51 != null) {
 if (c51.indexOf("x") == 0) {
 
 this.action = new mboxDebugActionNone();

 document.write('<script language="Javascript1.2" src="'
 + 'http://mbox3.offermatica.com/admin/mbox/mbox_debug_' + c51 + '.js'
 + '"><' + '\/script>');
 }
 else if (c51.indexOf("log") == 0) {
 this.action = new mboxDebugActionLog(c51);
 }
 else if (c51 == "reset") {
 c51 = null;
 }
 else {
 this.action = new mboxDebugActionDefault();
 }
 }

 if (this.action != null) {
 if (q50.platform.isSupported()) {
 q50.getSafeBodyOnload().sortedAdd(mboxDisplayDebugInfo,
 q50.getSafeBodyOnload().orderLast);
 }
 else {
 alert("mbox functionality is not supported on this browser");
 mboxDebugInfo.disable();
 }
 }

 if (c51 != null) {
 mboxCookies.setCookie(this.debugCookie, c51, 45 * 60);
 }
 else {
 this.disable()
 }
}

function mboxDebug_isEnabled() {
 return this.action != null;
}


function mboxDebug_disable() {
 mboxCookies.deleteCookie(this.debugCookie);
}

function mboxDebug_setShowAction(s10) {
 this.action = s10;
}

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 (d4 in mboxs) {
 window.put("  <li>mbox: '" + mboxs[d4].id + "'");
 window.put("   <ul>");

 if (mboxs[d4].error) {
 window.put('   <li><span style="color: red"><b>Error: '
 + mboxs[d4].error + '</b></span></li>');
 }

 var z14 = document.getElementById(mboxMarkerName(mboxs[d4].id));
 if (z14 == 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[d4].defaultDiv != null) + "</li>");

 var j52 = mboxs[d4].time;

 var n53;

 for (u54 in j52) {
 if (u54.indexOf("show.end") >= 0
 || u54.indexOf("hide.end") >= 0) {
 n53 = j52[u54];
 break;
 }
 }
 }

 window.put('    <li><a href="' + mboxs[d4].url + '">'
 + mboxs[d4].url + '</a></li>');

 window.put("   </ul>");
 window.put("  </li>");
 }

 window.put(" </ul>");

 window.putCloseButton()
 window.putPageEnd();
}

function mboxDebugWindow(name) {
 this.g23 = name + " " + document.location.hostname;

 var k55 = /\W/g;
 var h56 = this.g23.replace(k55, '_');

 this.put = mboxDebugWindow_put;
 this.putCloseButton = mboxDebugWindow_putCloseButton;
 this.putPageStart = mboxDebugWindow_putPageStart;
 this.putPageEnd = mboxDebugWindow_putPageEnd;

 this.window = window.open("", "mboxDebugWindow" + h56,
 "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(k58) {
 if (this.window == null) {
 return;
 }
 this.window.document.writeln(k58);
 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.g23 + "</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.x59 = 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.s60 = new Function("event",
 "mboxSafeOnloadFunctions[" + offset + "].action(event)");

 this.setup();
}

function mboxSafeOnload_setup() {
 if (this.element.onload != this.s60) {
 if (this.element.onload) {
 this.add(this.element.onload);
 }

 this.element.onload = this.s60;
 }
}

function mboxSafeOnload_add(i61) {
 this.sortedAdd(i61, this.orderMiddle)
}

function mboxSafeOnload_sortedAdd(i61, b62) {
 var s60 = new Array()
 s60.order = b62;
 s60.action = i61;
 this.x59[this.x59.length] = s60;
}


function mboxSafeOnload_action(u54) {
 if (this.actionStarted == true) {
 return;
 }
 this.actionStarted = true;

 this.x59.sort(mboxSafeOnload_orderSort);

 for (var c7 = 0; c7 < this.x59.length; c7++) {
 
 
 this.element.onload = this.x59[c7].action;
 this.element.onload(u54);
 }
 this.element.onload = this.s60
}

function mboxSafeOnload_orderSort(n63, t64) {
 return n63.order - t64.order;
}


function mboxSetCookie(g23, q24, k16) {
 mboxCookies.setCookie(g23, q24, k16);
}


function mboxGetCookie(g23) {
 return mboxCookies.getCookie(g23);
}


function mboxDeleteCookie(g23) {
 mboxCookies.deleteCookie(g23);
}


function mboxGetCookieNames(a27) {
 return mboxCookies.getCookieNames(a27);
}


function mboxGetOldPCCookie() {
 var u29 = document.cookie.indexOf("mboxPC=");
 if (u29 != -1) {
 var w30 = document.cookie.indexOf(";", u29);
 if (w30 == -1) {
 w30 = document.cookie.indexOf(",", u29);
 if (w30 == -1) {
 w30 = document.cookie.length;
 }
 }
 return unescape(document.cookie.substring(
 u29 + "mboxPC=".length, w30));
 }
 return null;
}


function mboxDeleteOldPCCookie() {
 document.cookie =
 "mboxPC=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/"
}


function mboxCookieIsEnabled() {
 mboxCookies.setCookie(mboxCheckCookie, "true", 60);
 return mboxCookies.getCookie(mboxCheckCookie) == "true";
}

function mboxIsSupported() {
 return true;
}

function mboxPlatform() {
 this.h65 = window.navigator.appVersion.indexOf("Mac") != -1;
 this.b66 = window.navigator.appVersion.indexOf("MSIE") != -1;

 var r67 = window.navigator.userAgent.indexOf("Opera") != -1;
 var v68 = window.navigator.userAgent.indexOf("Konqueror") != -1;
 var p69 = this.b66 &&
 (window.navigator.appVersion.indexOf("MSIE 4.") != -1);
 var a70 = (navigator.appName == 'Netscape') &&
 (parseInt(navigator.appVersion) == 4);

 this.supported = mboxIsSupported() &&
 !(a70 || p69 || r67 || v68);

 this.isSupported = mboxPlatform_isSupported;
 this.supportsReplace = mboxPlatform_supportsReplace;
}

function mboxPlatform_isSupported() {
 return this.supported;
}

function mboxPlatform_supportsReplace() {
 return !(this.b66 && this.h65)
}


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]);
 }
}

