/* [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 theSitetree=[ 
	['PAGE','141',jdecode('Home'),jdecode(''),'/141.html','true',[],''],
	['PAGE','162',jdecode('Meet+The+Divas'),jdecode(''),'/162/index.html','true',[ 
		['PAGE','2976',jdecode('Destiny'),jdecode(''),'/162/2976.html','true',[],''],
		['PAGE','3594',jdecode('Cash%26%23x27%3Be'),jdecode(''),'/162/3594.html','true',[],'']
	],''],
	['PAGE','180',jdecode('Services'),jdecode(''),'/180.html','true',[],''],
	['PAGE','503',jdecode('Book+an+appointment'),jdecode(''),'/503/index.html','true',[ 
		['PAGE','794',jdecode('Book+an+appointment+%28follow+up+page%29'),jdecode(''),'/503/794.html','false',[],'']
	],''],
	['PAGE','189',jdecode('Employment+opportunities'),jdecode(''),'/189/index.html','true',[ 
		['PAGE','781',jdecode('Employment+oppertunities+%28follow+up+page%29'),jdecode(''),'/189/781.html','false',[],'']
	],''],
	['PAGE','800',jdecode('Write+a+review'),jdecode(''),'/800.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='AD73CE';
theSitetree.keyvisualId='6879';
theSitetree.keyvisualName='kv_6879.jpg';
theSitetree.fontsetId='11212';
theSitetree.graphicsetId='12033';
theSitetree.contentColor='662F85';
theSitetree.contentBGColor='BD8ADB';
var theTemplate={
				name: 			'Angkor',
				paletteFamily: 	'AD73CE',
				keyvisualId: 	'6879',
				keyvisualName: 	'kv_6879.jpg',
				fontsetId: 		'11212',
				graphicsetId: 	'12033',
				contentColor: 	'662F85',
				contentBGColor: 'BD8ADB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'BD8ADB',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1001']=webappMappings['1001-ahw050in376p7b2e06f18b4f0e34']={
webappId:    '1001',
documentId:  '189',
internalId:  'ahw050in376p7b2e06f18b4f0e34',
customField: ''
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '141',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-ahw050in376p7b2e06f18b4f0e34']={
webappId:    '1001',
documentId:  '781',
internalId:  'ahw050in376p7b2e06f18b4f0e34',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-ahw050in376pd32a39ac4fac53bf']={
webappId:    '1001',
documentId:  '503',
internalId:  'ahw050in376pd32a39ac4fac53bf',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050in376pd32a39ac4fac53bf']={
webappId:    '1001',
documentId:  '794',
internalId:  'ahw050in376pd32a39ac4fac53bf',
customField: 'followUp'
};
webappMappings['1003']=webappMappings['1003-ahw050in376p11b4796c63d']={
webappId:    '1003',
documentId:  '800',
internalId:  'ahw050in376p11b4796c63d',
customField: 'en:US:'
};
webappMappings['7060']=webappMappings['7060-0278f709143cf23e513c2d8ea6b67096']={
webappId:    '7060',
documentId:  '2976',
internalId:  '0278f709143cf23e513c2d8ea6b67096',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-9c5097cb2eceb3ccc71f0596f16b9fb1']={
webappId:    '7060',
documentId:  '3594',
internalId:  '9c5097cb2eceb3ccc71f0596f16b9fb1',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141',
internalId:  '',
customField: '20080316-122443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162',
internalId:  '',
customField: '20060905-034859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2976',
internalId:  '',
customField: '20060905-034207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3594',
internalId:  '',
customField: '20070716-084100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180',
internalId:  '',
customField: '20060905-153038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '503',
internalId:  '',
customField: '20080316-122641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20060904-173651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189',
internalId:  '',
customField: '20060910-135108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '781',
internalId:  '',
customField: '20060610-052715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '800',
internalId:  '',
customField: '20060904-172505'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050IN376P';
var companyName   = 'Focus+Divine+Divas';
var htmlTitle	  = 'Focus+Divine+Divas';
var metaKeywords  = 'sex%2C+escorts%2C+call+girls%2C+tits%2C+ass%2C+fetish';
var metaContents  = 'escort+service+for+all+your+fantasy+needs+and+fulfullments.';
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();
};
