/* [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','32',jdecode('Home'),jdecode(''), jdecode('%2F32.html'), 'true',[],'',''],
	['PAGE','102308',jdecode('Fast+Facts'),jdecode(''), jdecode('%2F102308.html'), 'true',[],'',''],
	['PAGE','760',jdecode('About+Us'),jdecode(''), jdecode('%2F760%2Findex.html'), 'true',[ 
		['PAGE','5360',jdecode('Who+We+Are'),jdecode(''), jdecode('%2F760%2F5360.html'), 'true',[],'',''],
		['PAGE','1529',jdecode('We+Win+in+the+End'),jdecode(''), jdecode('%2F760%2F1529.html'), 'true',[],'',''],
		['PAGE','2248',jdecode('Mission+%26+Values'),jdecode(''), jdecode('%2F760%2F2248.html'), 'true',[],'','']
	],'',''],
	['PAGE','12456',jdecode('Strategy+%26+Projects'),jdecode(''), jdecode('%2F12456%2Findex.html'), 'true',[ 
		['PAGE','12465',jdecode('Medical+Research'),jdecode(''), jdecode('%2F12456%2F12465.html'), 'true',[],'',''],
		['PAGE','12474',jdecode('Family+Support'),jdecode(''), jdecode('%2F12456%2F12474.html'), 'true',[],'',''],
		['PAGE','12798',jdecode('Newborn+Screening'),jdecode(''), jdecode('%2F12456%2F12798.html'), 'true',[],'','']
	],'',''],
	['PAGE','1267',jdecode('What+Is+MLD%3F'),jdecode(''), jdecode('%2F1267.html'), 'true',[],'',''],
	['PAGE','95197',jdecode('MLD+Treatment'),jdecode(''), jdecode('%2F95197%2Findex.html'), 'true',[ 
		['PAGE','69597',jdecode('In+Utero+Treatment'),jdecode(''), jdecode('%2F95197%2F69597.html'), 'true',[],'',''],
		['PAGE','15835',jdecode('Transplant+Complications'),jdecode(''), jdecode('%2F95197%2F15835.html'), 'true',[],'','']
	],'',''],
	['PAGE','12501',jdecode('MLD+Care'),jdecode(''), jdecode('%2F12501%2Findex.html'), 'true',[ 
		['PAGE','13147',jdecode('Nutrition'),jdecode(''), jdecode('%2F12501%2F13147.html'), 'true',[],'',''],
		['PAGE','13156',jdecode('Symptom+Management'),jdecode(''), jdecode('%2F12501%2F13156.html'), 'true',[],'',''],
		['PAGE','13165',jdecode('Medical+Equipment'),jdecode(''), jdecode('%2F12501%2F13165.html'), 'true',[],'',''],
		['PAGE','13174',jdecode('Medical+Team+%26+Insurance'),jdecode(''), jdecode('%2F12501%2F13174.html'), 'true',[],'',''],
		['PAGE','13183',jdecode('Education'),jdecode(''), jdecode('%2F12501%2F13183.html'), 'true',[],'',''],
		['PAGE','13192',jdecode('Other+Resources'),jdecode(''), jdecode('%2F12501%2F13192.html'), 'true',[],'','']
	],'',''],
	['PAGE','12528',jdecode('MLD+Research'),jdecode(''), jdecode('%2F12528%2Findex.html'), 'true',[ 
		['PAGE','12510',jdecode('Natural+History+and+ERT'),jdecode(''), jdecode('%2F12528%2F12510.html'), 'true',[],'','']
	],'',''],
	['PAGE','71497',jdecode('Other+Research'),jdecode(''), jdecode('%2F71497%2Findex.html'), 'true',[ 
		['PAGE','71518',jdecode('Krabbe'),jdecode(''), jdecode('%2F71497%2F71518.html'), 'true',[],'','']
	],'',''],
	['PAGE','25101',jdecode('MLD+PEP'),jdecode(''), jdecode('%2F25101.html'), 'true',[],'',''],
	['PAGE','7083',jdecode('Newborn+Screening'),jdecode(''), jdecode('%2F7083%2Findex.html'), 'true',[ 
		['PAGE','104308',jdecode('IL+SB1761'),jdecode(''), jdecode('%2F7083%2F104308.html'), 'true',[],'',''],
		['PAGE','104329',jdecode('NM+HB201'),jdecode(''), jdecode('%2F7083%2F104329.html'), 'true',[],'',''],
		['PAGE','48897',jdecode('MO+HB716'),jdecode(''), jdecode('%2F7083%2F48897.html'), 'true',[],'',''],
		['PAGE','5020',jdecode('IL+SB1566'),jdecode(''), jdecode('%2F7083%2F5020.html'), 'true',[],'',''],
		['PAGE','7696',jdecode('LSD+Fact+Sheet'),jdecode(''), jdecode('%2F7083%2F7696.html'), 'true',[],'','']
	],'',''],
	['PAGE','12807',jdecode('Family+Support'),jdecode(''), jdecode('%2F12807%2Findex.html'), 'true',[ 
		['PAGE','2025',jdecode('Jack%26%23x27%3Bs+Library'),jdecode(''), jdecode('%2F12807%2F2025.html'), 'true',[],'',''],
		['PAGE','14432',jdecode('Grants+to+Families'),jdecode(''), jdecode('%2F12807%2F14432.html'), 'true',[],'',''],
		['PAGE','14441',jdecode('Matching+Grants+Program'),jdecode(''), jdecode('%2F12807%2F14441.html'), 'true',[],'','']
	],'',''],
	['PAGE','12537',jdecode('Current+Fundraisers'),jdecode(''), jdecode('%2F12537%2Findex.html'), 'true',[ 
		['PAGE','1600',jdecode('2011+Half+Marathon'),jdecode(''), jdecode('%2F12537%2F1600.html'), 'true',[],'','']
	],'',''],
	['PAGE','12483',jdecode('House+of+Hope'),jdecode(''), jdecode('%2F12483%2Findex.html'), 'true',[ 
		['PAGE','36985',jdecode('House+of+Hope+Photos'),jdecode(''), jdecode('%2F12483%2F36985.html'), 'true',[],'','']
	],'',''],
	['PAGE','787',jdecode('News+%26+Past+Events'),jdecode(''), jdecode('%2F787.html'), 'true',[],'',''],
	['PAGE','2341',jdecode('Donate+or+Help'),jdecode(''), jdecode('%2F2341%2Findex.html'), 'true',[ 
		['PAGE','1276',jdecode('How+You+Can+Help'),jdecode(''), jdecode('%2F2341%2F1276.html'), 'true',[],'',''],
		['PAGE','6422',jdecode('Shop+%26+Search'),jdecode(''), jdecode('%2F2341%2F6422.html'), 'true',[],'',''],
		['PAGE','6535',jdecode('eBay+Sales'),jdecode(''), jdecode('%2F2341%2F6535.html'), 'true',[],'',''],
		['PAGE','34301',jdecode('Vehicle+Donation'),jdecode(''), jdecode('%2F2341%2F34301.html'), 'true',[],'','']
	],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Contrast';
theSitetree.paletteFamily='363C95';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16627';
theSitetree.graphicsetId='12215';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Contrast',
				paletteFamily: 	'363C95',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16627',
				graphicsetId: 	'12215',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104308',
internalId:  '',
customField: '20110319-191949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20110928-154540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12537',
internalId:  '',
customField: '20110927-142030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102308',
internalId:  '',
customField: '20110227-162356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12807',
internalId:  '',
customField: '20110208-113227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12483',
internalId:  '',
customField: '20111227-143811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20100105-130023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104329',
internalId:  '',
customField: '20110227-162236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2341',
internalId:  '',
customField: '20090908-124811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '760',
internalId:  '',
customField: '20101202-182848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5360',
internalId:  '',
customField: '20100311-081927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1529',
internalId:  '',
customField: '20100311-081941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2248',
internalId:  '',
customField: '20100311-082000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12456',
internalId:  '',
customField: '20110208-114511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12465',
internalId:  '',
customField: '20110208-114801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12474',
internalId:  '',
customField: '20110208-115035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12798',
internalId:  '',
customField: '20110208-115638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1267',
internalId:  '',
customField: '20100315-125811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15835',
internalId:  '',
customField: '20100216-143918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20081020-124855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13147',
internalId:  '',
customField: '20090211-132115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13156',
internalId:  '',
customField: '20080429-200059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13165',
internalId:  '',
customField: '20080403-185307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13174',
internalId:  '',
customField: '20080928-153932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13183',
internalId:  '',
customField: '20090211-131639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13192',
internalId:  '',
customField: '20101118-160826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12528',
internalId:  '',
customField: '20110208-113557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12510',
internalId:  '',
customField: '20110208-113624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7083',
internalId:  '',
customField: '20110928-154633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5020',
internalId:  '',
customField: '20091228-163727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7696',
internalId:  '',
customField: '20110208-114431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2025',
internalId:  '',
customField: '20100216-145916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14432',
internalId:  '',
customField: '20100216-150054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14441',
internalId:  '',
customField: '20081104-125836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1600',
internalId:  '',
customField: '20110208-111432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '787',
internalId:  '',
customField: '20101222-133149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1276',
internalId:  '',
customField: '20110207-105637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6422',
internalId:  '',
customField: '20080822-214449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6535',
internalId:  '',
customField: '20061031-193555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20081120-144919'
};
webappMappings['7060']=webappMappings['7060-3fe359183b6bbf9ce28a355732cf69a3']={
webappId:    '7060',
documentId:  '36985',
internalId:  '3fe359183b6bbf9ce28a355732cf69a3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36985',
internalId:  '',
customField: '20090416-145624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48897',
internalId:  '',
customField: '20110227-160817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69597',
internalId:  '',
customField: '20091228-161552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71497',
internalId:  '',
customField: '20100105-132004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71518',
internalId:  '',
customField: '20100115-144423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95197',
internalId:  '',
customField: '20110208-113423'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXS6M';
var companyName   = 'The+Evanosky+Foundation+';
var htmlTitle	  = 'The+Evanosky+Foundation+-+Fighting+MLD+and+Leukodystrophies';
var metaKeywords  = 'MLD%2C+metachromatic+leukodystrophy%2C+leukodystrophy%2C+stem+cell+transplant%2C+Duke+University%2C+metabolic+disorder%2C+stem+cell%2C+Bank+of+America+Chicago+Marathon%2C+Dr.+Joanne+Kurtzberg%2C+Dr.+Suhag+Parikh%2C+MLD+research%2C+metachromatic+leukodystrophy+research%2C+Evanosky%2C+SCT%2C+MLD+treatment%2C+genetic%2C+leukodystrophy%2C+leukodystrophies%2C+ARSA%2C+myelin%2C+arylsulfatase+A+deficiency%2C+neurological+disorder%2C+rare+disorder%2C+lysosomal+storage+disorder%2C+autosomal+recessive+trait%2C+demyelinating+disease%2C+NINDS%2C+Rock+n+Roll+Chicago+Half+Marathon%2C+House+of+Hope+Durham%2C+Chicago+Marathon%2C+Chicago+Distance+Classic';
var metaContents  = 'The+Evanosky+Foundation+-+Fighting+MLD+and+Leukodystrophies';
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();
};

