/* [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','1901',jdecode('Home'),jdecode(''),'/1901.html','true',[],'',''],
	['PAGE','2101',jdecode('About'),jdecode(''),'/2101/index.html','true',[ 
		['PAGE','2201',jdecode('Mission'),jdecode(''),'/2101/2201.html','true',[],'',''],
		['PAGE','2122',jdecode('Charles+T.+Hirshon'),jdecode(''),'/2101/2122.html','true',[],'',''],
		['PAGE','17012',jdecode('Elisabeth+Leontieff-Hirshon'),jdecode(''),'/2101/17012.html','true',[],'',''],
		['PAGE','57112',jdecode('Ankur+Gupta'),jdecode(''),'/2101/57112.html','false',[],'','']
	],'',''],
	['PAGE','2801',jdecode('Contact'),jdecode(''),'/2801.html','true',[],'',''],
	['PAGE','3901',jdecode('Press+Releases'),jdecode(''),'/3901.html','true',[],'',''],
	['PAGE','3601',jdecode('Projects%3A+International'),jdecode(''),'/3601/index.html','true',[ 
		['PAGE','3643',jdecode('Carlton+Hills%2C+Tahiti%2C+FP'),jdecode(''),'/3601/3643.html','true',[],'',''],
		['PAGE','3801',jdecode('Carlton+Plage%2C+Tahiti%2C+FP'),jdecode(''),'/3601/3801.html','true',[],'',''],
		['PAGE','57012',jdecode('Kanaloa+World+Resorts'),jdecode(''),'/3601/57012.html','false',[],'',''],
		['PAGE','3622',jdecode('Tiahura+Estate%2C+Moorea%2C+FP'),jdecode(''),'/3601/3622.html','true',[],'','']
	],'',''],
	['PAGE','3201',jdecode('Projects%3A+USA'),jdecode(''),'/3201/index.html','true',[ 
		['PAGE','57033',jdecode('Ashiana+Villas%2C+Orlando%2C+FL'),jdecode(''),'/3201/57033.html','false',[],'',''],
		['PAGE','38312',jdecode('Ashton+Lofts%2C+Chicago%2C+IL'),jdecode(''),'/3201/38312.html','true',[],'',''],
		['PAGE','3401',jdecode('Film+Exchange+Lofts%2C+Chicago%2C+IL'),jdecode(''),'/3201/3401.html','true',[],'',''],
		['PAGE','3422',jdecode('Park+1500+Lofts%2C+Chicago%2C+IL'),jdecode(''),'/3201/3422.html','true',[],'',''],
		['PAGE','3501',jdecode('Skytech+Lofts%2C+Chicago%2C+IL'),jdecode(''),'/3201/3501.html','true',[],'',''],
		['PAGE','38012',jdecode('Village+Center%2C+Phoenix%2C+AZ'),jdecode(''),'/3201/38012.html','true',[],'',''],
		['PAGE','52012',jdecode('Wabash+Lofts%2C+Chicago%2C+IL'),jdecode(''),'/3201/52012.html','true',[],'','']
	],'',''],
	['PAGE','9801',jdecode('Resources'),jdecode(''),'/9801.html','true',[],'',''],
	['PAGE','4601',jdecode('Services'),jdecode(''),'/4601/index.html','true',[ 
		['PAGE','4622',jdecode('Investor+Relations'),jdecode(''),'/4601/4622.html','true',[],'',''],
		['PAGE','4701',jdecode('Project+Management'),jdecode(''),'/4601/4701.html','true',[],'',''],
		['PAGE','4801',jdecode('Real+Estate+Development'),jdecode(''),'/4601/4801.html','true',[],'','']
	],'',''],
	['PAGE','2901',jdecode('Employees'),jdecode(''),'/2901.html','false',[],'',''],
	['PAGE','3001',jdecode('Employment'),jdecode(''),'/3001.html','false',[],'',''],
	['PAGE','3101',jdecode('FAQ'),jdecode(''),'/3101.html','false',[],'',''],
	['PAGE','4901',jdecode('Privacy+Policy'),jdecode(''),'/4901.html','false',[],'',''],
	['PAGE','5101',jdecode('Site+Map'),jdecode(''),'/5101.html','true',[],'',''],
	['PAGE','5001',jdecode('Terms+and+Conditions'),jdecode(''),'/5001.html','false',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Vita02';
theSitetree.paletteFamily='88A6B5';
theSitetree.keyvisualId='11284';
theSitetree.keyvisualName='kv_11284.jpg';
theSitetree.fontsetId='32120';
theSitetree.graphicsetId='13936';
theSitetree.contentColor='204459';
theSitetree.contentBGColor='F6FBFE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vita02',
				paletteFamily: 	'88A6B5',
				keyvisualId: 	'11284',
				keyvisualName: 	'kv_11284.jpg',
				fontsetId: 		'32120',
				graphicsetId: 	'13936',
				contentColor: 	'204459',
				contentBGColor: 'F6FBFE',
				a_color: 		'000000',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100129-150916'
};
webappMappings['7008']=webappMappings['7008-4991']={
webappId:    '7008',
documentId:  '2801',
internalId:  '4991',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100128-222253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2122',
internalId:  '',
customField: '20100129-012625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20100128-222452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38312',
internalId:  '',
customField: '20091006-213046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17012',
internalId:  '',
customField: '20100129-012732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100128-223138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20090227-181239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20090227-181307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20090227-181352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20100128-223200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20100204-133617'
};
webappMappings['7060']=webappMappings['7060-6718ad9cfcc375d2d8ed3d0b9ed4cbda']={
webappId:    '7060',
documentId:  '38012',
internalId:  '6718ad9cfcc375d2d8ed3d0b9ed4cbda',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38012',
internalId:  '',
customField: '20091006-213145'
};
webappMappings['7060']=webappMappings['7060-0d02b3e179778f7e37ec487ae8616d9f']={
webappId:    '7060',
documentId:  '38312',
internalId:  '0d02b3e179778f7e37ec487ae8616d9f',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-bec24ddb867c9a50765cd246a84fee9b']={
webappId:    '7060',
documentId:  '3801',
internalId:  'bec24ddb867c9a50765cd246a84fee9b',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20100129-113906'
};
webappMappings['7060']=webappMappings['7060-170517bc9089c8ca54b873226a698194']={
webappId:    '7060',
documentId:  '3643',
internalId:  '170517bc9089c8ca54b873226a698194',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3401',
internalId:  '',
customField: '20091006-213101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3422',
internalId:  '',
customField: '20091006-213116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20091006-213131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20100128-223224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3622',
internalId:  '',
customField: '20091006-213021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3643',
internalId:  '',
customField: '20091006-212934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3801',
internalId:  '',
customField: '20091006-213004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20100128-223444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4622',
internalId:  '',
customField: '20100128-223516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20100128-223540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20100204-135428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20100128-223635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20100318-133946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100318-133723'
};
webappMappings['1501']=webappMappings['1501-13633752']={
webappId:    '1501',
documentId:  '1901',
internalId:  '13633752',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-6a078d8491b96b59e1c4d5848a414558']={
webappId:    '7060',
documentId:  '52012',
internalId:  '6a078d8491b96b59e1c4d5848a414558',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52012',
internalId:  '',
customField: '20091006-213452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57112',
internalId:  '',
customField: '20100128-190854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57012',
internalId:  '',
customField: '20100128-190752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57033',
internalId:  '',
customField: '20100128-190752'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH1P1';
var companyName   = 'MANAVA+INTERNATIONAL';
var htmlTitle	  = 'Manava+specializes+in+International+Real+Estate+Developments%2C+Project+Management+and+Investor+Relations';
var metaKeywords  = 'Manava%2C+T.+Charles+Hirshon%2C+Elisabeth+R.+Hirshon%2C+International+Real+Estate+Developments%2C+Project+Management%2C+Investors+Relations%2C+US%2C+South+Pacific%2C+Central+America.';
var metaContents  = 'Welcome+to+MANAVA.US%21+We+specialize+in+International+Real+Estate+Developments%2C+Project+Management+and+Investors+Relations+programs+throughout+the+US%2C+South+Pacific+and+now+Central+America.';
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();
};
