/* [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','93201',jdecode('Home'),jdecode(''),'/93201.html','true',[],''],
	['PAGE','126001',jdecode('Fired+up%2Clets+go+'),jdecode(''),'/126001.html','true',[],''],
	['PAGE','93001',jdecode('magazine'),jdecode(''),'/93001.html','true',[],''],
	['PAGE','14643',jdecode('Can+we+survive+man'),jdecode(''),'/14643.html','true',[],''],
	['PAGE','91101',jdecode('Aging%2C+A+lifelong+trek+to+nirvana'),jdecode(''),'/91101.html','true',[],''],
	['PAGE','128401',jdecode('FINDERS+SERVICE+'),jdecode(''),'/128401.html','true',[],''],
	['PAGE','100201',jdecode('CATALOG'),jdecode(''),'/100201.html','true',[],''],
	['PAGE','100901',jdecode('Votes+for+Contest+'),jdecode(''),'/100901.html','true',[],''],
	['PAGE','111201',jdecode('Bread+basket'),jdecode(''),'/111201.html','true',[],''],
	['PAGE','79901',jdecode('Poetry+%26+short+story'),jdecode(''),'/79901.html','true',[],''],
	['PAGE','87601',jdecode('challenge'),jdecode(''),'/87601.html','true',[],''],
	['PAGE','13201',jdecode('CONTACT'),jdecode(''),'/13201.html','true',[],''],
	['PAGE','14664',jdecode('About+us'),jdecode(''),'/14664/index.html','true',[ 
		['PAGE','14685',jdecode('Our+team'),jdecode(''),'/14664/14685.html','true',[],'']
	],''],
	['PAGE','14706',jdecode('How+to+find+us'),jdecode(''),'/14706.html','false',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='3F7177';
theSitetree.keyvisualId='2418';
theSitetree.keyvisualName='gesundes_leben.jpg';
theSitetree.fontsetId='399';
theSitetree.graphicsetId='447';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3F7177';
var theTemplate={
				name: 			'Amaze',
				paletteFamily: 	'3F7177',
				keyvisualId: 	'2418',
				keyvisualName: 	'gesundes_leben.jpg',
				fontsetId: 		'399',
				graphicsetId: 	'447',
				contentColor: 	'FFFFFF',
				contentBGColor: '3F7177',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3F7177',
				b_color: 		'2F5358',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14706',
internalId:  '',
customField: '20091023-060632'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '93201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91101',
internalId:  '',
customField: '20091201-061623'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '93201',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111201',
internalId:  '',
customField: '20091023-103001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79901',
internalId:  '',
customField: '20091109-111911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14664',
internalId:  '',
customField: '20091002-130125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14643',
internalId:  '',
customField: '20100121-094015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128401',
internalId:  '',
customField: '20100111-085718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93001',
internalId:  '',
customField: '20091209-084828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20091203-065209'
};
webappMappings['7005']=webappMappings['7005-458']={
webappId:    '7005',
documentId:  '91101',
internalId:  '458',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14685',
internalId:  '',
customField: '20091023-060506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93201',
internalId:  '',
customField: '20100110-045751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100201',
internalId:  '',
customField: '20100121-103117'
};
webappMappings['1501']=webappMappings['1501-4718569']={
webappId:    '1501',
documentId:  '93201',
internalId:  '4718569',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100901',
internalId:  '',
customField: '20091201-115616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87601',
internalId:  '',
customField: '20090919-171631'
};
webappMappings['1003']=webappMappings['1003-ahw050inljv31262065bb38']={
webappId:    '1003',
documentId:  '128401',
internalId:  'ahw050inljv31262065bb38',
customField: 'en:US'
};
webappMappings['7050']=webappMappings['7050-908']={
webappId:    '7050',
documentId:  '100901',
internalId:  '908',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126001',
internalId:  '',
customField: '20100109-095525'
};
webappMappings['1002']=webappMappings['1002-93201ahw050inljv3']={
webappId:    '1002',
documentId:  '93201',
internalId:  '93201ahw050inljv3',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-5793']={
webappId:    '7008',
documentId:  '93001',
internalId:  '5793',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INLJV3';
var companyName   = 'NOSTAW+SERVICES+LLC';
var htmlTitle	  = 'nostawltd.com';
var metaKeywords  = 'aging%2C+immigration%2C+retirement%2C+vacation%2Cworkshops%2Cseminars%2C+public+speakers%2Cfree%2C+challenge%2C+H1N1%2C+SCHOOL%2C+SANITIZERS%2C+emergency%2C+medical+records%2C+emergency+contactsmagicians%2Csingers%2Centertainers+wanted%2Centertainers+needed%2Ccomedians%2Cactors+musicians+and+dancers+needed.++FREE+VACATION%2C+REGGAE+MUSIC%2C+NEGRIL%2C+JAMAICA%2CPOETRY%2C+SHORT+STORY%2C+QUIZ%2C+BATH+FOUNTAIN%2C+MAGAZINE%2C+finders+service%2C+adult+books%2C+sex';
var metaContents  = 'Information+on+immigration+and+aging.+This+text+is+not+an+indictment+of+any+government+or+people+but+a+call+to+dialogue.protect+your+children+against+H1N1%2C+get+handi-sani.+its+perfect+for+school.magicians%2Csingers%2Centertainers+wanted%2Centertainers+needed%2Ccomedians%2Cactors+musicians+and+dancers+needed.FREE+VACATION%2C+REGGAE+MUSIC%2C+NEGRIL%2C+JAMAICA%2CPOETRY%2C+SHORT+STORY%2C+QUIZ%2C+BATH+FOUNTAIN%2C+MAGAZINE%2C+finders+service%2C+adult+toys%2C+adult+books%2C+sex+';
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();
};
