/* [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','592',jdecode('Home'),jdecode(''),'/592.html','true',[],''],
	['PAGE','85335',jdecode('Events'),jdecode(''),'/85335/index.html','true',[ 
		['PAGE','94035',jdecode('Cliteracy'),jdecode(''),'/85335/94035.html','true',[],''],
		['PAGE','101835',jdecode('Daka%2FDakini+Training'),jdecode(''),'/85335/101835.html','true',[],''],
		['PAGE','94056',jdecode('Gush%21+Female+Ejaculation'),jdecode(''),'/85335/94056.html','true',[],''],
		['PAGE','93035',jdecode('Body+Electric+for+Women'),jdecode(''),'/85335/93035.html','true',[],''],
		['PAGE','89035',jdecode('CommUNITY+Breath+Circle'),jdecode(''),'/85335/89035.html','true',[],''],
		['PAGE','100135',jdecode('Yum%21+Savor+Your+Partner'),jdecode(''),'/85335/100135.html','true',[],''],
		['PAGE','88235',jdecode('Transformational+Breath'),jdecode(''),'/85335/88235.html','true',[],''],
		['PAGE','88256',jdecode('Sexy+Body%2C+Sexy+Mind'),jdecode(''),'/85335/88256.html','true',[],''],
		['PAGE','88277',jdecode('Sensuality+%26+The+Earth'),jdecode(''),'/85335/88277.html','true',[],'']
	],''],
	['PAGE','79935',jdecode('About+Coaching'),jdecode(''),'/79935/index.html','true',[ 
		['PAGE','77235',jdecode('Women'),jdecode(''),'/79935/77235.html','true',[],''],
		['PAGE','79135',jdecode('Men'),jdecode(''),'/79935/79135.html','true',[],''],
		['PAGE','79156',jdecode('Couples'),jdecode(''),'/79935/79156.html','true',[],'']
	],''],
	['PAGE','109635',jdecode('Intimacy+Practicum'),jdecode(''),'/109635.html','true',[],''],
	['PAGE','52977',jdecode('Schedule+an+Appointment'),jdecode(''),'/52977.html','true',[],''],
	['PAGE','82735',jdecode('Coaching+by+Phone%2FSkype'),jdecode(''),'/82735.html','true',[],''],
	['PAGE','643',jdecode('F.A.Q.+'),jdecode(''),'/643.html','true',[],''],
	['PAGE','706',jdecode('Testimonials'),jdecode(''),'/706.html','true',[],''],
	['PAGE','3532',jdecode('About+Robyn'),jdecode(''),'/3532.html','true',[],''],
	['PAGE','727',jdecode('Resources+%26+Links'),jdecode(''),'/727.html','true',[],''],
	['PAGE','85356',jdecode('Inspiration'),jdecode(''),'/85356.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='AC2E53';
theSitetree.keyvisualId='7108';
theSitetree.keyvisualName='kv_7108.jpg';
theSitetree.fontsetId='16395';
theSitetree.graphicsetId='12128';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Blossom',
				paletteFamily: 	'AC2E53',
				keyvisualId: 	'7108',
				keyvisualName: 	'kv_7108.jpg',
				fontsetId: 		'16395',
				graphicsetId: 	'12128',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '592',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-235']={
webappId:    '7008',
documentId:  '52977',
internalId:  '235',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '592',
internalId:  '',
customField: '20090812-141235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85335',
internalId:  '',
customField: '20090812-140640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89035',
internalId:  '',
customField: '20090425-093720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101835',
internalId:  '',
customField: '20090710-230418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100135',
internalId:  '',
customField: '20090425-093753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94035',
internalId:  '',
customField: '20090710-224738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93035',
internalId:  '',
customField: '20090710-230802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94056',
internalId:  '',
customField: '20090812-142500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88235',
internalId:  '',
customField: '20081002-155720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88256',
internalId:  '',
customField: '20080327-232108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88277',
internalId:  '',
customField: '20080813-151753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109635',
internalId:  '',
customField: '20090805-213200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79935',
internalId:  '',
customField: '20090805-174123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77235',
internalId:  '',
customField: '20090710-231822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79135',
internalId:  '',
customField: '20090805-193814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79156',
internalId:  '',
customField: '20090805-193244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52977',
internalId:  '',
customField: '20090805-213251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82735',
internalId:  '',
customField: '20090711-012005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '643',
internalId:  '',
customField: '20090805-213623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '706',
internalId:  '',
customField: '20071205-212544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3532',
internalId:  '',
customField: '20090805-214109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '727',
internalId:  '',
customField: '20090812-141844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85356',
internalId:  '',
customField: '20090711-011858'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INXEM7';
var companyName   = 'The+Present+Sense%3A+Integrating+Eros+%26+Intimacy';
var htmlTitle	  = 'The+Present+Sense';
var metaKeywords  = 'tantra%2C+tantic+massage%2C+sacred+intimate%2C+bodywork%2C+sacred+sexuality%2C+escort%2C+sensual+massage%2C+dakini%2C+courtesan%2C+meditation%2C+consciousness%2C+erotic%2C+sex+education%2C+sex+positive%2C+seattle+escort%2C+seattle+sensual+massage%2C+relaxation';
var metaContents  = 'tantra%2C+tantic+massage%2C+sacred+intimate%2C+bodywork%2C+sacred+sexuality%2C+escort%2C+sensual+massage%2C+dakini%2C+courtesan%2C+meditation%2C+consciousness%2C+erotic%2C+sex+education%2C+sex+positive%2C+seattle+escort%2C+seattle+sensual+massage%2C+relaxation';
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();
};
