var _ocm = {
name: null,
domain: null,
cookies: new Array(),
_in: function(n, d) {
this.name = n;
var cookdom='';
var reg = /([^.]+\.([^.]{2,3}\.[^.]{2,3}|[^.]+))$/;
var ar = reg.exec(d);
if(ar != null){
	cookdom='.'+ar[1];
}
this.domain = (d == ''?'':'; domain='+cookdom);
this.loadCookies();
},
isEnable: function() {
this.setCookie(_occe, 'true', 60);
this.loadCookies();
return this.getCookie(_occe) == 'true';
},
setCookie: function(n, v, t) {
if (typeof n != 'undefined' && typeof v != 'undefined' && typeof t != 'undefined') {
this.cookies[n] = {name:n,value:escape(v),expireOn:Math.ceil(t + new Date().getTime()/1000)};
this.saveCookies();
}
},
getCookie: function(n) {
var r = this.cookies[n];
if (typeof r == 'undefined' || r == null) {
return null;
}
return unescape(r.value);
},
deleteCookie: function(n) {
var obj = new Object();
for (i in this.cookies) {
if (i != n) {
obj[i] = this.cookies[i];
}
}
this.cookies = obj;
this.saveCookies();
},
getCookieNames: function(n) {
var res = new Array();
for (i in this.cookies) {
if (i.indexOf(n) == 0) {
res[res.length] = i;
}
}
return res;
},
loadCookies: function() {
this.cookies = new Object();
var n = doc.cookie.indexOf(this.name + "=");
if (n != -1) {
var p = doc.cookie.indexOf(";", n);
if (p == -1) {
p = doc.cookie.indexOf(",", n);
if (p == -1) {
p = doc.cookie.length;
}
}
var c = doc.cookie.substring(n + this.name.length + 1, p).split("|");
var t = Math.ceil(new Date().getTime() / 1000);
for(var i=0; i<c.length; i++) {
var pz = c[i].split("#");
if (t <= pz[2]) {
this.cookies[pz[0]] = {name:pz[0], value:pz[1], expireOn:pz[2]};
}
}
}
},
saveCookies: function() {
var res = new Array();
var t = 0;
for (i in this.cookies) {
if (this.cookies[i] != null) {
res[res.length] = this.cookies[i].name + '#' + this.cookies[i].value + '#' + this.cookies[i].expireOn;
if (t < this.cookies[i].expireOn) {
t = this.cookies[i].expireOn;
}
}
}
var dt = new Date(t * 1000);
doc.cookie = this.name +'='+ res.join('|') +'; expires='+ dt.toGMTString() +'; path=/'+ this.domain;
}
};
var _os = {
idArg: null,
cookieName: null,
expireTime: null,
newSession: false,
id: null,
_in: function(id, n, exT, t) {
this.idArg = id;
this.cookieName = n;
this.expireTime = exT;
this.id = _oU.getPageParameter(id);
if (this.id == null || this.id.length == 0) {
this.id = _ocm.getCookie(_osic);
if (this.id == null || this.id.length == 0) {
this.id = id;
this.newSession = true;
}
}
_ocm.setCookie(_osic, this.id, t);
},
getId: function() {
return this.id;
},
isNew: function() {
return this.newSession;
},
reset: function() {
this.id = _oU._ogi();
_ocm.setCookie(this.cookieName, this.id, this.expireTime);
},
forceId: function(fId, isNew) {
this.id = fId;
if (typeof isNew == 'undefined') {
if (_ocm.getCookie(_osic) == fId) {
this.newSession = false;
} else {
this.newSession = true;
}
} else {
this.newSession = isNew;
}
_ocm.setCookie(this.cookieName, this.id, this.expireTime);
}
};
var _oU = {
_ogi: function() {
return (new Date()).getTime() + "-" + Math.floor(Math.random() * 999999);
},
getPageParameter: function(name) {
var temp = null;
var reg = new RegExp(name + '=([^\&]*)');
var res = reg.exec(document.location);
if (res != null && res.length >=2) {
temp = res[1];
}
return temp;
},
globalParameters: function() {
for (var i = 0; i < arguments.length; i++) {
if (_oga != '') {
_oga += '&';
}
_oga += arguments[i];
}
}
};
var ORBPc = {
cookieName: null,
expireTime: null,
id:null,
_in: function(id, n, exT) {
this.cookieName = n;
this.expireTime = exT;
this.id = _ocm.getCookie(n);
if (this.id == null || this.id.length == 0) {
this.id = this.getOldPC();
}
this.deleteOldPC();
if (this.id == null || this.id.length == 0) {
this.id = id;
}
},
getId: function() {
_ocm.setCookie(ORBPCIdCookie, this.id, this.expireTime);
return this.id;
},
forceId: function(fId) {
if (this.id != fId) {
this.id = fId;
_ocm.setCookie(this.cookieName, this.id, this.expireTime);
return true;
}
return false;
},
getOldPC: function() {
var n = doc.cookie.indexOf('ORBPC=');
if (n != -1) {
var p = doc.cookie.indexOf(';', n);
if (p == -1) {
p = doc.cookie.indexOf(',', n);
if (p == -1) {
p = doc.cookie.length;
}
}
return unescape(doc.cookie.substring(n + 'ORBPC='.length, p));
}
return null;
},
deleteOldPC: function() {
doc.cookie = 'ORBPC=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/';
}
};
var ORBPlatform = {
ie: null,
mac: null,
supported: null,
_in: function() {
this.ie = window.navigator.appVersion.indexOf("MSIE") != -1;
this.mac = window.navigator.appVersion.indexOf("Mac") != -1;
var opera = window.navigator.userAgent.indexOf("Opera") != -1;
var knq = window.navigator.userAgent.indexOf("Konqueror") != -1;
var ie4 = this.ie && (window.navigator.appVersion.indexOf("MSIE 4.") != -1);
var ns = (navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4);
if(opera) opera = !opera;
this.supported = _ois && !(ns || ie4 || opera || knq);
},
isSupported: function() {
return this.supported;
},
supportsReplace: function() {
return !(this.ie && this.mac);
}
};
var ORBSafeOnload = {
temp: new Array(),
orderFirst: null,
orderMiddle: null,
orderLast: null,
el: null,
actionStarted: false,
ev: null,
_in: function(el) {
this.orderFirst = 0;
this.orderMiddle = 500;
this.orderLast = 1000;
this.el = el;
if (typeof _Functions == "undefined") {
_Functions = new Array();
}
var offset = _Functions.length;
_Functions[offset] = this;
this.ev = new Function('event','_Functions['+offset+'].action(event);');
this.setup();
},
add: function(v) {
this.sortedAdd(v, this.orderMiddle);
},
sortedAdd: function(a,o) {
var res = new Array();
res.order = o;
res.action = a;
this.temp[this.temp.length] = res;
},
setup: function() {
if (this.el.onload != this.ev) {
if (this.el.onload) {
this.add(this.el.onload);
}
this.el.onload = this.ev;
}
},
action: function(v) {
if (this.actionStarted == true) {
return;
}
this.actionStarted = true;
this.temp.sort(this.orderSort);
for (var i = 0; i < this.temp.length; i++) {
this.el.onload = this.temp[i].action;
this.el.onload(v);
}
this.el.onload = this.ev;
},
orderSort: function(a1, a2) {
return a1.order - a2.order;
}
};
var ORBDebug = {
debugCookie: null,
action: null,
show: null,
mode: null,
start: null,
debugName: null,
_in: function(dc, name, obj) {
this.debugCookie = dc;
this.action = null;
var param = _oU.getPageParameter(name);
if (param == null) {
param = _ocm.getCookie(this.debugCookie);
}
if (param != null) {
if (param.indexOf("x") == 0) {
var ORBServerHost = _osu.substring(0,_osu.indexOf("/core/content.js"));
this.actionNone();
doc.write('<script language="Javascript1.2" src="' + ORBServerHost + '/admin/ORB/ORB_debug_' + param + '.js' + '"><' + '\/script>');
}else if (param.indexOf("log") == 0) {
this.actionLog(param);
}else if (param == "reset") {
param = null;
}else {
this.actionDefault();
}
}
if (this.show != null) {
if (obj.platform.isSupported()) {
obj.getORBSafeOnload();
obj.safe.sortedAdd(this.displayDebugInfo,obj.safe.orderLast);
obj.safe.setup();
}else {
alert("ORB functionality is not supported on this browser");
this.disable();
}
}
if (param != null) {
_ocm.setCookie(this.debugCookie, param, 45 * 60);
}else {
this.disable()
}
},
displayDebugInfo: function() {
ORBDebug.show();
},
isEnabled: function() {
return this.action != null;
},
disable: function() {
_ocm.deleteCookie(this.debugCookie);
},
debugShow: function() {
if (this.action != null) {
this.action.show();
}
},
setShowAction: function(obj) {
this.action = obj;
},
actionNone: function() {
this.show = this.actionDefaultShow;
},
actionLog: function(mode) {
this.mode = mode;
this.start = (new Date()).getTime();
this.show = this.actionLogShow;
},
actionLogShow: function() {
var end = (new Date()).getTime();
var win = this.debugWindow('Debug Log');
var ORBServerHost = _osu.substring(0, _osu.indexOf('/boxserver/content.js'));
this.putPageStart(win);
this.dWPut(win,"<img src='" + ORBServerHost + "/admin/images/spacer.gif" + "?ORBDebug=" + this.mode + "&ORBClient=" + _occ + "&pageLoadTime=" + (end - this.start) + "&ORBCount=" + ORBCount + "&_osc=" + _osc + "'>");
this.dWPut(win,'<br />');
this.putCloseButton(win);
this.putEndPage(win);
},
actionDefault: function() {
this.show = this.actionDefaultShow;
},
actionNoneShow: function() {
alert('ORBDebugAction not defined');
},
actionDefaultShow: function() {
var win = this.debugWindow('Debug_window');
this.putPageStart(win);
this.dWPut(win,"  <b>ORB Debug Window (version:" + ORBVersion + ")</b></br>");
this.dWPut(win,"<p/>");
this.dWPut(win,"<b>Page</b>: " + doc.location);
this.dWPut(win," <ul>");
if (_oe.isEnabled()) {
this.dWPut(win,"  <li>Enabled: true</li>");
} else {
this.dWPut(win,'  <li>Enabled: <span style="color:red"><b>false</b></span></li>');
}
this.dWPut(win,"  <li>Cookies enabled: " + _ocm.isEnable() + "</li>");
this.dWPut(win,"  <li>Global arguments: '" + _oga + "'</li>");
this.dWPut(win,"  <li>Referring URL: '" + doc.referrer + "'</li>");
this.dWPut(win,"  <li>Page URL: '" + doc.location + "'</li>");
this.dWPut(win,"  <li>Cookies: '" + doc.cookie + "'</li>");
this.dWPut(win,"  <li>Page Id: " + _opi + "</li>");
for (var i in ORBs) {
this.dWPut(win,"  <li>ORB: '" + ORBs[i].id + "'");
this.dWPut(win,"   <ul>");
if (ORBs[i].error) {
this.dWPut(win,'   <li><span style="color: red"><b>Error: ' + ORBs[i].error + '</b></span></li>');
}
var el = doc.getElementById(_omn(ORBs[i].id));
if (el == null) {
this.dWPut(win,'    <li><span style="color: red">' + '<b>Error: can not find ORB in dom</b></span></li>');
} else {
this.dWPut(win,"    <li>has ORBDefault content div tags: " + (ORBs[i].defaultDiv != null) + "</li>");
var time = ORBs[i].time;
var temp;
for (x in time) {
if (x.indexOf("show.end") >= 0 || x.indexOf("hide.end") >= 0) {
temp = time[x];
break;
}
}
this.dWPut(win,"    <li>show time: " + (temp - time['put.start']) + " ms</li>");
}
this.dWPut(win,'    <li><a href="' + ORBs[i].url + '">' + ORBs[i].url + '</a></li>');
this.dWPut(win,"   </ul>");
this.dWPut(win,"  </li>");
}
this.dWPut(win," </ul>");
this.putCloseButton(win);
this.putEndPage(win);
},
debugWindow: function(name) {
this.debugName = name + " " + doc.location.hostname;
var rep = /\W/g;
var res = this.debugName.replace(rep, '_');
var obj = window.open("", "ORBDebugWindow" + res,"width=600,height=300,resizable,scrollbars=yes,toolbar=yes");
if (obj == null) {
alert("Unable to open DLPO's ORBDebugWindow Window.\nAre you blocking popups?\n");
return;
}
return obj;
},
dWPut: function(obj, con) {
if (obj == null) {
return;
}
obj.document.writeln(con);
obj.scrollBy(0, 1000);
},
putPageStart: function(obj) {
this.dWPut(obj,"<html><head>");
this.dWPut(obj," <title>" + this.debugName + "</title>");
this.dWPut(obj,"  <script>");
this.dWPut(obj,"   function DebugWindowOnClose() {");
this.dWPut(obj,"       window.opener.ORBDebug.disable();");
this.dWPut(obj,"   }");
this.dWPut(obj,"   ");
this.dWPut(obj,"   function debugWindowClose() {");
this.dWPut(obj,"     try {");
this.dWPut(obj,"       window.opener.ORBDebug.disable();");
this.dWPut(obj,"     } catch(e) {");
this.dWPut(obj,"       alert('Could not disable debug mode.\\n'");
this.dWPut(obj,"         + 'Browse to a page containing an ORB and\\n'");
this.dWPut(obj,"         + 'click on close link.');");
this.dWPut(obj,"     }");
this.dWPut(obj,"     window.close();");
this.dWPut(obj,"   }");
this.dWPut(obj,"  </" + "script>");
this.dWPut(obj," </head>");
this.dWPut(obj," <body onunload='DebugWindowOnClose()'>");
},
putCloseButton: function(obj) {
this.dWPut(obj,'<a href="javascript:debugWindowClose();">click here to close debug window</a>');
},
putEndPage: function(obj) {
this.dWPut(obj,"</body></html>");
obj.document.close();
}
};
var _oE = {
platform: null,
safe: null,
status: true,
_in: function(param) {
this.platform = ORBPlatform;
this.platform._in();
this.status = this.platform.isSupported();
if (_oU.getPageParameter(param) != null) {
this.status = false;
}
if (!_ocm.isEnable()) {
this.status = false;
}
if (_ocm.getCookie(_odc) == 'true') {
this.status = false;
}
if (this.isAdmin()) {
this.enable();
}
},
isEnabled: function() {
return this.status;
},
getORBSafeOnload: function() {
if (this.safe == null) {
this.safe = ORBSafeOnload;
this.safe._in(window);
}
return this.safe;
},
disable: function(duration) {
if (typeof duration == 'undefined') {
duration = 60 * 10;
}
if (!this.isAdmin()) {
this.status = false;
_ocm.setCookie(_odc, 'true', duration);
}
},
enable: function() {
this.status = true;
_ocm.deleteCookie(_odc);
},
isAdmin: function() {
return doc.location.href.indexOf(_oea) != -1;
},
limitTraffic: function(level, duration) {
if (typeof level == 'undefined') {
return;
}
var tCookie = _ocm.getCookie(_otsc);
if (this.isAdmin()) {
tCookie = true;
_ocm.setCookie(_otlc, level, duration);
_ocm.setCookie(_otsc, tCookie, duration);
}else if (tCookie == null || _ocm.getCookie(_otlc) != level) {
tCookie = (Math.random() * 100) <= level;
_ocm.setCookie(_otlc, level, duration);
_ocm.setCookie(_otsc, tCookie, duration);
}
if (tCookie) {
this.enable();
}else {
this.disable();
}
}
};
var ORBSetup = {
_in: function(arg) {
if (!_oe.platform.isSupported()) {
return;
}
_oe.safe.setup();
var res = new Array();
name_temp=arg;
res[0] = _ona + '=' + arg+count_param;
for (var i = 1; i < arguments.length; i++) {
res[i] = arguments[i];
}
var obj = new ORB();
obj._in(arg+count_param, res);
obj.put();
count_param++;
},
defaultDisplayNone: function () {
doc.write('<style>.' + _oddc + ' { visibility:hidden; }</style>');
}
};
var doc = document;
var ORBCopyright = 'Copyright 2005 IOIX, Inc. All Rights Reserved. http://ioix.com';
var count_param=1;
var name_temp='';
if (typeof ORBIncluded == 'undefined') {
var ORBIncluded = true;
var ORBVersion = 1;
var _occ = '153';


var _osu = 'http://web1.dlpo.jp/orb/content.js';
if (typeof _ocd == 'undefined') {
var _ocd = '';
var _oidre = /[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;
if (!_oidre.exec(doc.location.host)) {
/*var ORBBaseDomainRegExp = /[^\.]+\.[^\.]+$/;
var _obd = ORBBaseDomainRegExp.exec(doc.location.hostname);
if (_obd) {
_ocd = _obd[0];
}*/
_ocd = doc.location.hostname;
}
}
if (typeof _ot == 'undefined') {
var _ot = 5000;
}
if (typeof _otlp == 'undefined') {
var _otlp;
}
if (typeof _otd == 'undefined') {
var _otd = 3 * 30 * 24 * 60 * 60;
}
if (typeof _oxd == 'undefined') {
var _oxd = false;
}
if (typeof _ois == 'undefined') {
var _ois = true;
}
if (typeof _opiet == 'undefined') {
var _opiet = 7776000;
}
_ocm._in('ORB', _ocd);
var _osic = 'session';
var ORBPCIdCookie = 'PC';
var _odc = 'disable';
var _occe = 'check';
var _odmc = 'debug';
var _otlc='level';
var _otsc='traffic';
var _oxda = 'ORBXDomain';
var _ona = 'ORB';
var _occa = 'ORBClient';
var _opiA = 'ORBPC';
var _osia = 'ORBSession';
var _ofpiva = 'ORBFirstPageInVisit';
var _opia = 'ORBPage';
var _oha = 'ORBHost';
var _oua = 'ORBURL';
var _ouan = 'ORBURL_NEW';
var _ora = 'ORBReferrer';
var _ova = 'ORBVersion';
var _oca = 'ORBCount';
var _oea = 'envId';
var _omdp = 'ORBMarker-';
var _oidp = 'ORBImported-';
var _oddc = 'ORBDefault';
var _osp = 'signal-';
var _opi = _oU._ogi();
var _osid = _os;
_osid._in(_opi, _osia, _osic, 31 * 60);
var _opid = ORBPc;
_opid._in(_opi, ORBPCIdCookie, _opiet);
var ORBs = new Object();
var _oga = '';
var ORBCount = 0;
var _osc = 0;
var _ocsv = 0;
var _oC = new Array();
var _oe = _oE;
_oe._in('ORBDisable');
var ORBDebugInfo = ORBDebug;
ORBDebugInfo._in(_odmc, 'ORBDebug', _oe);
if (_oe.platform.isSupported()) {
if(_oe.safe == null) {
_oe.getORBSafeOnload();
}
_oe.safe.add(_ocA);
_oe.limitTraffic(_otlp, _otd);
if (_oe.isEnabled()) {

ORBSetup.defaultDisplayNone();
}else {}
}
}
function ORBCreate(arg) {
var argum = new Array();
for(var i=0; i < arguments.length; i++) {
argum[i] = 'arguments['+i+']';
}
eval('ORBSetup._in('+argum.join(',')+');');
}
function _ocA() {
for (var i in ORBs) {
ORBs[i].finalize();
}
}
function _omn(id) {
return ORBs[id].markerName();
}
function ORBActivateById(id) {
ORBs[id].activate();
}
function _octbi(id) {
ORBs[id].activate();
if (!ORBs[id].isActivated()) {
_oe.disable();
window.location.reload(false);
}
}
function ObjProperties(obj){
var text="\r\n";
var i=0;
for (p in obj){
if(i++%3==0){
text+="\r\n";
}
text+=p+"     ";
}
alert(text);
}
function ORB() {
}
ORB.prototype = {
id: null,
url: null,
timeout: null,
activated: 0,
defaultDiv: null,
offer: null,
time: new Array(),
activateCount: 0,
error: null,
_in: function(id, url) {
url[url.length] = _oca + '=' + ++ORBCount;
this.id = id;
this.url = this.buildUrl(url);
this.offer = ORBOfferContent;
if (ORBs[id]) {
this.error = 'Multiple ORB with the id "' + id + '" exist on this page';
this.put = this.putNothing;
this.activateAction = this.hide;
}
ORBs[id] = this;
},
put: function() {
var status = false;
var url = doc.URL;
if(url.indexOf('previewBox') > -1 && url.indexOf('previewOffer') > -1) {
status = true;
}
if (_oe.isEnabled() || status) {
this.setEventTime('put.start');
doc.write('<div id="' + this.markerName() + '" style="visibility:hidden;display:none">' + '<script language="JavaScript">' + 'ORBs["' + this.id + '"].startTimeout(' + _ot + ');' + '<' + '\/script>' + '<script src="' + this.url + '" language="JavaScript"><'+ '\/script>' + '</div>');
this.setEventTime('put.end');
}else {
doc.write('<div id="' + this.markerName() + '"></div>');
}
},
putNothing: function() {
doc.write('<div id="' + this.markerName() + '"></div>');
},
hide: function() {
this.setEventTime('hide.start');
var el = doc.getElementById(this.markerName());
if (el != null) {
el.style.visibility = 'hidden';
el.style.display = 'none';
}
var el = this.getDefaultDiv();
if (el != null) {
el.style.visibility = 'visible';
el.style.display = '';
this.setEventTime('hide.end.ok');
return 1;
}
this.setEventTime('hide.end.fail');
return 0;
},
show: function() {
this.setEventTime('show.start');
var result = this.offer.show(this);
this.setEventTime(result == 1 ? 'show.end.ok' : 'show.end');
return result;
},
activateAction: function() {
return this.show();
},
showContent: function(obj) {
if (obj == null) {
return 0;
}
var el = this.getDefaultDiv();
if (_oe.platform.supportsReplace()) {
if (el != null) {
el.parentNode.replaceChild(obj, el);
}else {
var div = doc.getElementById(this.markerName());
if (div == null) {
return 0;
}
this.visible(div);
}
}else {
var div = doc.getElementById(this.markerName());
if (div == null) {
return 0;
}
if (el != null) {
this.invisible(el);
}
this.visible(div);
}
this.visible(obj);
return 1;
},
invisible: function(el) {
el.style.visibility = 'hidden';
el.style.display = 'none';
},
visible: function(el) {
el.style.visibility = 'visible';
el.style.display = '';
},
startTimeout: function(time) {
this.timeout = window.setTimeout('_octbi("' + this.id + '")', time);
},
cancelTimeout: function() {
if (this.timeout != null) {
window.clearTimeout(this.timeout);
}
},
getDefaultDiv: function() {
if (this.defaultDiv != null) {
return this.defaultDiv;
}
var node = doc.getElementById(this.markerName());
while (node != null) {
if ((node.nodeType == 1) && (node.nodeName == 'DIV')) {
if (node.className.indexOf(_omdp) > 0) {
return null;
} else if (node.className == _oddc) {
this.defaultDiv = node;
return node;
}
}
node = node.previousSibling;
}
return null;
},
activate: function() {
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;
},
isActivated: function() {
return this.activated;
},
markerName: function() {
return _omdp + this.id;
},
importName: function() {
return _oidp + this.id;
},
importDiv: function() {
return doc.getElementById(this.importName());
},
finalize: function() {
this.setEventTime('finalize.start');
this.cancelTimeout();
if (!this.activate()) {
this.hide();
this.setEventTime('finalize.end.hide');
}
this.setEventTime('finalize.end.ok');
},
parameters: function() {
var url = this.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;
},
setActivateAction: function(ac) {
this.activateAction = ac;
},
setOffer: function(off) {
this.offer = off;
},
setEventTime: function(ev) {
this.time[ev] = (new Date()).getTime();
},
buildUrl: function(param) {
var sUrl = _osu;
if (doc.location.protocol == 'https:') {
sUrl = sUrl.replace('http:', 'https:')
}
sUrl += '?' + _occa + '=' + _occ;
sUrl += '&' + _oha + '=' + doc.location.hostname;
param[0]='ORB='+name_temp;
for (var i = 0; i < param.length; i++) {
sUrl += '&' + param[i];
}
if (_oga.length > 0) {
sUrl += '&' + _oga;
}
if (sUrl.indexOf(_osia) == -1) {
sUrl += '&' + _osia + '=' + _osid.getId();
}
if (_osid.isNew()) {
sUrl += '&' + _ofpiva + '=' + true;
}
var _ora_real = escape(doc.referrer);
var _oua_real = escape(doc.location);
if(top.frames.length>0)
{
_ora_real = escape(top.document.referrer);
_oua_real = escape(top.document.location);
}
return sUrl + '&' + _opiA + '=' + _opid.getId()
+ '&' + _opia + '=' + _opi
+ '&' + _oua + '=' + _oua_real
+ '&' + _ora + '=' + _ora_real
+ '&' + _ouan + '=' + escape(document.location)
+ (_oxd ? '&' + _oxda + '=true' : '')
+ '&' + _ova + '=' + ORBVersion;
}
};
var ORBOfferContent = {
show: function(obj) {
if(obj.importDiv()){
var div = obj.importDiv();
var inner = div.innerHTML;
var cook_ = '';
var aCookie = document.cookie.split("; ");
for (var i=0; i < aCookie.length; i++){
	var aCrumb = aCookie[i].split("=");
  if ("ORB" == aCrumb[0]){
  	//cook_ = encodeURIComponent(aCrumb[1]);
		cook_ =escape(aCrumb[1]);
	//	cook_ = aCrumb[1];
		break;
  }
}
if(inner.indexOf("ORBClientCode_sufle") >0){
	while(inner.indexOf("ORBClientCode_sufle") >0){
  var er1 = "ORBClientCode_sufle";
	inner = inner.replace(er1, _occ);
	er1 = "ORB_sufle";
  inner = inner.replace(er1, obj.id);
  er1 = "ORBSession_sufle";
	inner = inner.replace(er1, _osid.getId());
	er1 = "ORBPC_sufle";
  inner = inner.replace(er1, _opid.getId());
	er1 = "ORBCook_sufle";
  inner = inner.replace(er1, cook_);
  div.innerHTML = inner;
	}
}
}else {
var div = obj.importDiv();
}
return obj.showContent(div);
}
}
