/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','54301',jdecode('About+Us'),jdecode(''),'/54301.html','true',[],'',''],
	['PAGE','68601',jdecode('LENS+%3A+Low+Energy+Neurofeedback+Systems'),jdecode(''),'/68601.html','true',[],'',''],
	['PAGE','66501',jdecode('Neurofeedback+Therapy+'),jdecode(''),'/66501.html','true',[],'',''],
	['PAGE','83801',jdecode('ADHD+Programs+-+AttenGo'),jdecode(''),'/83801.html','true',[],'',''],
	['PAGE','66801',jdecode('Heartmath+Wellness+Program'),jdecode(''),'/66801.html','true',[],'',''],
	['PAGE','66822',jdecode('Training+Archives'),jdecode(''),'/66822.html','true',[],'',''],
	['PAGE','73401',jdecode('Programs+and+Accessories'),jdecode(''),'/73401.html','true',[],'',''],
	['PAGE','66843',jdecode('Contact+Us'),jdecode(''),'/66843.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Aeskulap';
theSitetree.paletteFamily='C65B2D';
theSitetree.keyvisualId='2497';
theSitetree.keyvisualName='naturheiler.jpg';
theSitetree.fontsetId='434';
theSitetree.graphicsetId='489';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'aplus',
  product: 'WSCSYSSSSLYTCPZ2'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Aeskulap',
				paletteFamily: 	'C65B2D',
				keyvisualId: 	'2497',
				keyvisualName: 	'naturheiler.jpg',
				fontsetId: 		'434',
				graphicsetId: 	'489',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-105']={
webappId:    '7008',
documentId:  '66843',
internalId:  '105',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20110123-020639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54301',
internalId:  '',
customField: '20110123-020546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66501',
internalId:  '',
customField: '20110120-045908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66801',
internalId:  '',
customField: '20110120-050047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20110123-020841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66822',
internalId:  '',
customField: '20110120-050424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73401',
internalId:  '',
customField: '20110120-050235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66843',
internalId:  '',
customField: '20110120-050258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83801',
internalId:  '',
customField: '20110120-045956'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '501',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '54301',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '68601',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '66501',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '83801',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '66801',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '66822',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '73401',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '66843',
internalId:  '',
customField: 'language:en;country:US;'
};
var webAppHostname = 'cm4all.aplus.net:80';
var canonHostname = 'cm4all01.carrierzone.com';
var accountId     = 'AAPLU0INLH88';
var companyName   = 'Neuroscience+Research+Centre+Singapore';
var htmlTitle	  = 'Neuroscience+Research+Centre%2C+Singapore+Neurofeedback+and+Complementary+Therapy+practitioner%2C+a+One-stop%2C+Cost+Competitive+solution+for+Autism%2C+ADD%2FADHD+and+Memory.';
var metaKeywords  = 'Neurofeedback%2C+Neurofeedback+Therapy%2C+Neurofeedback+Therapy+in+Singapore%2C+Neurofeedback+Therapy%2C+LENS%2C+Low+Energy+Neurofeedback+System%2C+Dr+Lens+Ochs%2C+Neurotherapy%2C+EEG-Biofeedback%2C+Brainmaster%2C+brainmaster+distributor%2C+cost+effective%2C+best+cost+solution%2C+safe%2C+competitive%2C+Autism%2C+Attengo%2C+ADD%2CADHD%2C+Complementary+Therapy%2C+Neurofeedback+Practitioner+in+Singapore%2C+ADHD+in+singapore%2C+adhd+in+singapore%2C+ADHD%2FADD%2Cdyslexia%2C+OCD%2C+Neuroscience+Research+Centre%2C+Obsessive+Compulsive+Disorder%2C+learning+difficulties%2C+global+delay%2C+globally+delay+child%2C+autism%2C+austistic%2C+biofeedback%2C+heartmath%2C+PSR%2C+Personal+Stress+Reliever%2C+Emwave%2C+Ten20+paste%2C+Nuprep+gel%2C+ADD+child%2C+memory%2C+attention%2C+One+of+the+most+effective+practitioners+in+Singapore%2C+Vibrational+Medicines%2C+Nano+Technology+%2C+Molecule+Frequency%2C+Nano+Technology+LED+Illuminator.+Singapore+neurofeedback+practitioner%2C+Vibrational+Medicines%2C+Nano+Technology+%2C+Molecule+Frequency%2C+Nano+Technology+LED+Illuminator.+Wellness+Program.+Wellness+Medicines%2C+Material+Sciences%2C+Life-Sciences%2C+Traditional+Chinese+Medicines%2C+Flux-Lite%2C+++660+nm%2C+LED%2C+Energy%2C+Light%2C+Flux%2C+Visible%2C+Magnetic+Flux%2C+Compolite+Technologies%2C+Compolite+Technology%2C+Renewable+Energy%2C+Solar+Power%2C+Shield%2C+prevention%2C+Cancer%2C+Kidney%2C+Liver%2C+Environmental+Friendly%2C+Social+Enterprise%2C+weather%2C+UV+Free%2C+Neuroscience+Research+Centre%2C+Neuroscience%2C+Affiliate%2C+Restroom-Lite%2C+Healthy+lifestyle%2C+global+delay%2C+down+syndroms%2C+Heartmath%2C+Brainmaster%2C+Neurofeedback%2C+Bio-feedback%2C+NSRC+Group%2C+NSRC+Pte.+Ltd.%2C+Lea+Chan%2C+Brain+Damage%2C+Stroke%2C+PTSD%2C+Post+Traumatic+Stress+Disorder';
var metaContents  = 'Neurofeedback+Therapy%2C+LENS%2C+Low+Energy+Neurofeedback+System%2C+Dr+Lens+Ochs%2C+Neurotherapy%2C+EEG-Biofeedback%2C++Neurofeedback+Practitioner+in+Singapore%2C+World+Best%2C+Singapore%2C+Best+in+Singapore%2C+Vibrational+Medicines%2C.Material+Sciences%2C+Life-Sciences%2C+Traditional+Chinese+Medicines+and+other+technology+fields.+Wellness+Flux-Lite%2C+Wellness+nano+Technology+LED+Illuminator.+NSRC+WELLNESS+PROGRAM.+Science%2C+Research+and+Technology%2C+Wellness+Medicine+Technology%2C+Neuroscience+Research+Centre%2C+Wellness+Restroom-Lite%2C+Renewable+Energy%2C+Solar+Power%2C+Neurofeedback%2C+Bio-feedback%2C+NSRC+Group%2C+Lea+Chan%2C+Brain+Damage%2C+Stroke%2C+PTSD%2C+Post+Traumatic+Stress+Disorder';
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();
};

