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 _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 = '166';


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)) {
_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 = 31536000;
}
_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');
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();
ORBs[id].finalize();
}
}
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) {
doc.write('<div id="' + this.markerName() + '" style="visibility:hidden;display:none">');
ORBs[this.id].startTimeout(_ot);
doc.write('<script src="' + this.url + '" language="JavaScript"><'+ '\/script></div>');
}else {
doc.write('<div id="' + this.markerName() + '"></div>');
}
},
putNothing: function() {
doc.write('<div id="' + this.markerName() + '"></div>');
},
hide: function() {
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 = '';
return 1;
}
return 0;
},
show: function() {
var result = this.offer.show(this);
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);
this.timeout=null;
}
},
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;
}
if (this.activateAction()) {
this.cancelTimeout();
this.activated = 1;
}
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.cancelTimeout();
if (!this.activate()) {
this.hide();
}
},
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;
},
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_ =escape(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);
}
}