/* [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','17601',jdecode('HOME'),jdecode(''),'/17601/index.html','true',[ 
		['PAGE','10794',jdecode('Adverse+Reactions+to+Singulair'),jdecode(''),'/17601/10794.html','true',[],'',''],
		['PAGE','37901',jdecode('FDA+Safety+Review+of+Singulair'),jdecode(''),'/17601/37901.html','true',[],'',''],
		['PAGE','10701',jdecode('What+Everyone+Should+Know'),jdecode(''),'/17601/10701.html','true',[],'',''],
		['PAGE','10857',jdecode('Guidelines+for+Parents'),jdecode(''),'/17601/10857.html','true',[],'',''],
		['PAGE','16101',jdecode('Guidelines+for+Physicians'),jdecode(''),'/17601/16101.html','true',[],'',''],
		['PAGE','62801',jdecode('Recovery+Stories'),jdecode(''),'/17601/62801.html','true',[],'',''],
		['PAGE','58201',jdecode('Survey'),jdecode(''),'/17601/58201.html','true',[],'',''],
		['PAGE','13101',jdecode('News'),jdecode(''),'/17601/13101.html','true',[],'',''],
		['PAGE','44301',jdecode('Links+and+Resources'),jdecode(''),'/17601/44301.html','true',[],'',''],
		['PAGE','44364',jdecode('Write+Your+Representative'),jdecode(''),'/17601/44364.html','true',[],'',''],
		['PAGE','44343',jdecode('Printable+Side+Effect+Alert'),jdecode(''),'/17601/44343.html','true',[],'',''],
		['PAGE','57601',jdecode('FDA+Petition'),jdecode(''),'/17601/57601.html','false',[],'','']
	],'',''],
	['PAGE','10899',jdecode('ABOUT+US'),jdecode(''),'/10899.html','true',[],'',''],
	['PAGE','44322',jdecode('CONTACT+US'),jdecode(''),'/44322.html','true',[],'',''],
	['PAGE','45601',jdecode('VOLUNTEER'),jdecode(''),'/45601.html','true',[],'',''],
	['PAGE','64601',jdecode('BECOME+A+MEMBER'),jdecode(''),'/64601.html','true',[],'',''],
	['PAGE','155012',jdecode('When+Will+Side+Effects+Resolve%3F'),jdecode(''),'/155012.html','false',[],'',''],
	['PAGE','155033',jdecode('Are+There+Withdrawal+Symptoms%3F'),jdecode(''),'/155033.html','false',[],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Craft';
theSitetree.paletteFamily='398840';
theSitetree.keyvisualId='5720';
theSitetree.keyvisualName='kv_5720.jpg';
theSitetree.fontsetId='11049';
theSitetree.graphicsetId='11807';
theSitetree.contentColor='398840';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Craft',
				paletteFamily: 	'398840',
				keyvisualId: 	'5720',
				keyvisualName: 	'kv_5720.jpg',
				fontsetId: 		'11049',
				graphicsetId: 	'11807',
				contentColor: 	'398840',
				contentBGColor: 'FFFFFF',
				a_color: 		'398840',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20091205-025734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10794',
internalId:  '',
customField: '20100521-190025'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '17601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37901',
internalId:  '',
customField: '20100220-003436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10857',
internalId:  '',
customField: '20091205-023605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10899',
internalId:  '',
customField: '20100220-003523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20090106-125931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44322',
internalId:  '',
customField: '20090926-155915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20100219-225340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20100103-151111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20100220-003343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44301',
internalId:  '',
customField: '20090919-121432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44364',
internalId:  '',
customField: '20091205-030412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58201',
internalId:  '',
customField: '20091206-155634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45601',
internalId:  '',
customField: '20090926-164504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44343',
internalId:  '',
customField: '20090917-122925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155012',
internalId:  '',
customField: '20100219-221449'
};
webappMappings['1003']=webappMappings['1003-aendu0ine41q11cb1799b8f']={
webappId:    '1003',
documentId:  '62801',
internalId:  'aendu0ine41q11cb1799b8f',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155033',
internalId:  '',
customField: '20100219-221449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62801',
internalId:  '',
customField: '20091206-155846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64601',
internalId:  '',
customField: '20090926-164556'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INE41Q';
var companyName   = 'Parents+United+for+Pharmaceutical+Safety+and+Accountability';
var htmlTitle	  = 'Parents+United+for+Pharmaceutical+Safety+and+Accountability';
var metaKeywords  = 'Parents+United+for+Pharmaceutical+Safety+and+Accountability%2C+Singulair+side+effects%2C+Singulair+adverse+reactions%2C+Singulair+behavior+problems%2C+is+Singulair+safe%2C+singulair+depression%2C+singulair+suicide%2C+singulair+FDA%2C+singulair+american+lung+association%2C+adverse+event+reporting%2C+medication+reform%2C+singulair+education%2C+singulair+resources%2C+singulair+resource%2C+attention+deficit+hyperactivity+disorder%2C+ADHD%2C+oppositional+defiant+disorder%2C+ODD%2C+obsessive+compulsive+disorder%2C+OCD%2C+anxiety%2C+anxiety+disorder%2C+post+traumatic+stress+disorder%2C+misdiagnosis%2C+suicide%2C+depression%2C+childhood+depression%2C+drug+induced+depression%2C+iatrogenic%2C+iatrogenic+disease%2C+iatrogenic+disorder%2C+behavioral+disorders%2C+behavior+disoreder%2C+safety+of+singulair%2C+medication+side+effects%2C+singulair%2C+asthma%2C+allergies%2C+asthma+drugs%2C+allergy+drugs%2C+asthma+medications%2C+allergy+medications%2C+food+and+drug+administration%2C+Jenna+Markle%2C+Parents+for+safety%2C+parentsforsafety.org%2C+parentsforsafety.com%2C+questions+about+singulair%2C+singulair+autism%2C+autism%2C+singulair+aspergers%2C+singulair+aspergers%2C++aspergers%2C+aspergers%2C+autistic+spectrum+disorder%2C+singulair+recovery%2C+my+child+hates+himself%2C+my+child+wants+to+die%2C+Singulair+recovery%2C+recovery+from+adverse+reaction+to+Singulair%2C+recovery+from+Singulair+side+effects';
var metaContents  = 'A+comprehensive+resource+for+information+and+explanations+of+the+side+effects+of+Singulair.';
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();
};
