/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','15',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0%E3%83%BBTOP'),jdecode(''), jdecode('%2F15.html'), 'true',[],'',''],
	['PAGE','1370',jdecode('%E5%80%B6%E6%A5%BD%E9%83%A8%E6%A1%88%E5%86%85%E3%83%BBGUIDE'),jdecode(''), jdecode('%2F1370.html'), 'true',[],'',''],
	['PAGE','5482',jdecode('%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E6%83%85%E5%A0%B1%E3%83%BBINFO%EF%BC%8E+'),jdecode(''), jdecode('%2F5482.html'), 'true',[],'',''],
	['PAGE','5473',jdecode('%E5%B1%A5+%E6%AD%B4%E3%83%BB%E4%BC%9A%E5%93%A1%E3%81%AE%E5%A3%B0+'),jdecode(''), jdecode('%2F5473.html'), 'true',[],'',''],
	['PAGE','36',jdecode('%E5%8B%9F%E3%80%80%E9%9B%86'),jdecode(''), jdecode('%2F36.html'), 'true',[],'',''],
	['PAGE','72',jdecode('%E3%81%8A%E5%95%8F%E5%90%88%E3%81%9B%E3%83%BB%E8%B3%87%E6%96%99%E8%AB%8B%E6%B1%82'),jdecode(''), jdecode('%2F72%2Findex.html'), 'true',[ 
		['PAGE','5467',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%81%9B+%28%E3%83%95%E3%82%A9%E3%83%AD%E3%83%BC%E3%82%A2%E3%83%83%E3%83%97%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%29'),jdecode(''), jdecode('%2F72%2F5467.html'), 'false',[],'','']
	],'',''],
	['PAGE','81',jdecode('%E3%81%8A%E5%BE%97%E6%83%85%E5%A0%B1%E3%83%BB%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''), jdecode('%2F81.html'), 'true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Easy';
theSitetree.paletteFamily='006666';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='13728';
theSitetree.graphicsetId='53';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'ja',
  country: 'JP'
};
var prodDef={
  wl_name: 'ocn',
  product: 'WSCSYSSSSLYTC2JY'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easy',
				paletteFamily: 	'006666',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'13728',
				graphicsetId: 	'53',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'006666',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'MS PGothic',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '15',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-4923207']={
webappId:    '1501',
documentId:  '15',
internalId:  '4923207',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '1370',
internalId:  '-',
customField: '20120218-031838'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '15',
internalId:  '-',
customField: '20111209-232525'
};
webappMappings['7008']=webappMappings['7008-3363']={
webappId:    '7008',
documentId:  '72',
internalId:  '3363',
customField: 'language:ja;country:JP;'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '5482',
internalId:  '-',
customField: '20120218-022615'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '5473',
internalId:  '-',
customField: '20120218-015908'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '36',
internalId:  '-',
customField: '20120218-020330'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '72',
internalId:  '-',
customField: '20120218-225829'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '5467',
internalId:  '-',
customField: '20080313-103510'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '81',
internalId:  '-',
customField: '20111120-214632'
};
var webAppHostname = 'diycgi.cluster.mlpsca01.us.diy-servers.net:80';
var canonHostname = 'diywk02.cluster.mlpsca01.us.diy-servers.net';
var accountId     = 'AVESJ0INES6R';
var companyName   = '++RLC+++%E3%83%AD%E3%83%BC%E3%82%BA%E3%83%A9%E3%82%A4%E3%83%95%E5%80%B6%E6%A5%BD%E9%83%A8%E3%83%BB%E5%A4%A7%E9%98%AA++';
var htmlTitle	  = '%E3%83%90%E3%83%A9%E8%89%B2%E3%81%AE%E4%BA%BA%E7%94%9F%E3%82%92%E6%8F%90%E6%A1%88%E3%81%99%E3%82%8B%E3%83%AD%E3%83%BC%E3%82%BA%E3%83%A9%E3%82%A4%E3%83%95%E5%80%B6%E6%A5%BD%E9%83%A8%E3%83%BB%E5%A4%A7%E9%98%AA';
var metaKeywords  = '%E5%A9%9A%E6%B4%BB%2C%E3%83%96%E3%83%A9%E3%82%A4%E3%83%80%E3%83%AB%2C%E3%83%AD%E3%83%BC%E3%82%BA%E3%83%A9%E3%82%A4%E3%83%95%E5%80%B6%E6%A5%BD%E9%83%A8%E5%A4%A7%E9%98%AA%2C%E4%B8%AD%E9%AB%98%E5%B9%B4%E5%87%BA%E4%BC%9A%E3%81%84%2C%E7%8B%AC%E8%BA%AB%2C%E3%82%B7%E3%83%B3%E3%82%B0%E3%83%AB%2C%E5%9B%BD%E9%9A%9B%E4%BA%A4%E6%B5%81%E5%80%B6%E6%A5%BD%E9%83%A8%2C%E7%A4%BE%E4%BA%A4%E5%80%B6%E6%A5%BD%E9%83%A8%2C%E3%83%90%E3%83%A9%E8%89%B2%E3%81%AE%E4%BA%BA%E7%94%9F%2C%E8%A6%AA%E7%9D%A6%2C%E4%BA%A4%E5%8F%8B%2C%E4%BA%A4%E6%B5%81%2C%E5%87%BA%E4%BC%9A%E3%81%84%2C%E7%94%9F%E3%81%8D%E7%94%B2%E6%96%90%2C%E5%92%8C%E3%81%A8%E8%BC%AA%2C%E6%86%A9%E3%81%84%2C%E3%83%91%E3%83%BC%E3%83%88%E3%83%8A%E3%83%BC%2C%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%2C%E3%82%B5%E3%83%AD%E3%83%B3%2C%E5%A4%A7%E9%98%AA%E3%81%AE%E5%A9%9A%E6%B4%BB%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%2C%E5%A4%A7%E9%98%AA%E3%81%AE%E3%83%96%E3%83%A9%E3%82%A4%E3%83%80%E3%83%AB%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%2C%E7%B5%86%2C++rose+life+club%2Cinternational+interchange+club%2Csingle%2Cmiddleage%2Cwelfare%2Cculture%2Camenity%2Cmeeting%2Cevent%2Csaloon%2Cbridal+support%2C';
var metaContents  = '%E4%B8%AD%E9%AB%98%E5%B9%B4%E3%81%AE%E7%8B%AC%E8%BA%AB%E8%80%85%E3%81%8C%E4%B8%AD%E5%BF%83%E3%81%AE%E8%A6%AA%E7%9D%A6%E5%80%B6%E6%A5%BD%E9%83%A8%E3%80%82%E5%9B%BD%E9%9A%9B%E4%BA%A4%E6%B5%81%E5%80%B6%E6%A5%BD%E9%83%A8%EF%BC%88%E7%A4%BE%E4%BA%A4%E5%80%B6%E6%A5%BD%E9%83%A8%EF%BC%89%E3%80%82%E3%83%90%E3%83%A9%E8%89%B2%E3%81%AE%E4%BA%BA%E7%94%9F%E3%82%92%E6%8F%90%E6%A1%88%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E5%90%84%E7%A8%AE%E3%81%AE%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%81%A7%E8%A6%AA%E7%9D%A6%E3%83%BB%E4%BA%A4%E6%B5%81%E3%81%AE%E5%A0%B4%E3%81%AE%E3%83%97%E3%83%AD%E3%83%87%E3%83%A5%E3%83%BC%E3%82%B9%E3%81%AB%E3%82%88%E3%82%8A%E6%98%8E%E3%82%8B%E3%81%8F%E3%80%81%E6%A5%BD%E3%81%97%E3%81%8F%E3%81%97%E3%81%8C%E3%82%89%E3%81%BF%E3%81%AE%E3%81%AA%E3%81%84%E5%87%BA%E4%BC%9A%E3%81%84%E3%81%A8%E7%94%9F%E3%81%8D%E7%94%B2%E6%96%90%E3%81%AE%E3%81%82%E3%82%8B%E4%BA%BA%E7%94%9F%E3%82%92%E9%80%81%E3%81%A3%E3%81%A6%E3%81%84%E3%81%9F%E3%81%A0%E3%81%8F%E3%81%8A%E6%89%8B%E4%BC%9D%E3%81%84%E3%82%92%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E6%96%B0%E8%A8%AD%E3%80%8C%E3%83%96%E3%83%A9%E3%82%A4%E3%83%80%E3%83%AB%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E3%80%8D%E3%82%B3%E3%83%BC%E3%82%B9%E3%81%AF%E4%BC%9A%E5%93%A1%E7%94%A8%E3%81%AE%E7%89%B9%E5%85%B8%E3%81%AE%E3%81%82%E3%82%8B%E5%A9%9A%E6%B4%BB%E9%83%A8%E9%96%80%E3%81%A7%E3%81%99%E3%80%82';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};

