/* [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','2101',jdecode('Home'),jdecode(''),'/2101.html','true',[],'',''],
	['PAGE','2601',jdecode('About+Us'),jdecode(''),'/2601/index.html','true',[ 
		['PAGE','2622',jdecode('What+is+SMILE'),jdecode(''),'/2601/2622.html','true',[],'',''],
		['PAGE','2643',jdecode('Directors'),jdecode(''),'/2601/2643.html','true',[],'',''],
		['PAGE','5601',jdecode('History'),jdecode(''),'/2601/5601.html','true',[],'',''],
		['PAGE','2664',jdecode('Our+Awards'),jdecode(''),'/2601/2664.html','true',[],'',''],
		['PAGE','2685',jdecode('Billy+Awards'),jdecode(''),'/2601/2685.html','true',[],'',''],
		['PAGE','8601',jdecode('Publications'),jdecode(''),'/2601/8601.html','true',[],'',''],
		['PAGE','3143',jdecode('Calendar+of+Events'),jdecode(''),'/2601/3143.html','true',[],'',''],
		['PAGE','3164',jdecode('Brag+Book'),jdecode(''),'/2601/3164.html','true',[],'',''],
		['PAGE','17401',jdecode('Watch+our+video'),jdecode(''),'/2601/17401.html','true',[],'','']
	],'',''],
	['PAGE','2727',jdecode('Membership'),jdecode(''),'/2727/index.html','true',[ 
		['PAGE','2748',jdecode('Join'),jdecode(''),'/2727/2748.html','true',[],'',''],
		['PAGE','6901',jdecode('Newsletter'),jdecode(''),'/2727/6901.html','true',[],'',''],
		['PAGE','3101',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/2727/3101.html','true',[],'','']
	],'',''],
	['PAGE','22022',jdecode('Conference'),jdecode(''),'/22022/index.html','true',[ 
		['PAGE','23301',jdecode('2010+Conference'),jdecode(''),'/22022/23301.html','true',[],'',''],
		['PAGE','23322',jdecode('2009+Conference'),jdecode(''),'/22022/23322.html','true',[],'',''],
		['PAGE','23343',jdecode('2008+Conference'),jdecode(''),'/22022/23343.html','true',[],'',''],
		['PAGE','22001',jdecode('2007+Conference+'),jdecode(''),'/22022/22001.html','true',[],'',''],
		['PAGE','3269',jdecode('2006+Conference'),jdecode(''),'/22022/3269.html','true',[],'',''],
		['PAGE','22043',jdecode('2005+Conference'),jdecode(''),'/22022/22043.html','true',[],'',''],
		['PAGE','22064',jdecode('2004+Conference'),jdecode(''),'/22022/22064.html','true',[],'',''],
		['PAGE','23364',jdecode('2003+Conference'),jdecode(''),'/22022/23364.html','true',[],'',''],
		['PAGE','23385',jdecode('2002+Conference'),jdecode(''),'/22022/23385.html','true',[],'',''],
		['PAGE','23406',jdecode('2001+Conference'),jdecode(''),'/22022/23406.html','true',[],'',''],
		['PAGE','23427',jdecode('2000+Conference'),jdecode(''),'/22022/23427.html','true',[],'',''],
		['PAGE','23448',jdecode('1999+Conference'),jdecode(''),'/22022/23448.html','true',[],'','']
	],'',''],
	['PAGE','13001',jdecode('FundRaising'),jdecode(''),'/13001.html','true',[],'',''],
	['PAGE','3206',jdecode('Training'),jdecode(''),'/3206/index.html','true',[ 
		['PAGE','3248',jdecode('Quarterly'),jdecode(''),'/3206/3248.html','true',[],'',''],
		['PAGE','3227',jdecode('On+the+Road'),jdecode(''),'/3206/3227.html','true',[],'',''],
		['PAGE','3290',jdecode('Instructors'),jdecode(''),'/3206/3290.html','true',[],'','']
	],'',''],
	['PAGE','3311',jdecode('Store'),jdecode(''),'/3311.html','true',[],'',''],
	['PAGE','3353',jdecode('Fun+Stuff'),jdecode(''),'/3353/index.html','true',[ 
		['PAGE','3374',jdecode('Just+4+Kids'),jdecode(''),'/3353/3374.html','true',[],'',''],
		['PAGE','3395',jdecode('Just+4+Parents'),jdecode(''),'/3353/3395.html','true',[],'','']
	],'',''],
	['PAGE','25401',jdecode('Members+Only'),jdecode(''),'/25401/index.html','true',[ 
		['PAGE','32222',jdecode('Newsletters'),jdecode(''),'/25401/32222.html','true',[],'',''],
		['PAGE','32243',jdecode('PowerPoints'),jdecode(''),'/25401/32243.html','true',[],'',''],
		['PAGE','34301',jdecode('Forum'),jdecode(''),'/25401/34301.html','true',[],'','']
	],'',''],
	['PAGE','3416',jdecode('Contact+Us'),jdecode(''),'/3416.html','true',[],'',''],
	['PAGE','34322',jdecode('Guestbook'),jdecode(''),'/34322.html','true',[],'',''],
	['PAGE','3437',jdecode('Links'),jdecode(''),'/3437.html','true',[],'',''],
	['PAGE','20801',jdecode('Privacy'),jdecode(''),'/20801.html','true',[],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='000099';
theSitetree.keyvisualId='9242';
theSitetree.keyvisualName='kv4.swf';
theSitetree.fontsetId='17363';
theSitetree.graphicsetId='12755';
theSitetree.contentColor='000099';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'000099',
				keyvisualId: 	'9242',
				keyvisualName: 	'kv4.swf',
				fontsetId: 		'17363',
				graphicsetId: 	'12755',
				contentColor: 	'000099',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100221-211301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20100221-211706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32222',
internalId:  '',
customField: '20100220-142512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22022',
internalId:  '',
customField: '20100214-140459'
};
webappMappings['7008']=webappMappings['7008-6069']={
webappId:    '7008',
documentId:  '3416',
internalId:  '6069',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-avfl30inhw4r126f2782250']={
webappId:    '1003',
documentId:  '34301',
internalId:  'avfl30inhw4r126f2782250',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3206',
internalId:  '',
customField: '20100221-221842'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2101',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-15037259']={
webappId:    '1501',
documentId:  '2101',
internalId:  '15037259',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3416',
internalId:  '',
customField: '20100101-234337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3311',
internalId:  '',
customField: '20090402-010936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2622',
internalId:  '',
customField: '20100221-221726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2643',
internalId:  '',
customField: '20100215-143644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20100101-223430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2727',
internalId:  '',
customField: '20100221-163336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2664',
internalId:  '',
customField: '20100215-230704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2748',
internalId:  '',
customField: '20100215-165715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20090531-005030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20100215-231114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3164',
internalId:  '',
customField: '20100215-231728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3227',
internalId:  '',
customField: '20090530-235035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3248',
internalId:  '',
customField: '20090531-144329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3269',
internalId:  '',
customField: '20100118-145704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3290',
internalId:  '',
customField: '20090402-010936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20100221-164226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20100215-230546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20100215-151852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2685',
internalId:  '',
customField: '20100215-230938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3395',
internalId:  '',
customField: '20090402-010936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20100117-125915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3143',
internalId:  '',
customField: '20090402-010934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3353',
internalId:  '',
customField: '20100215-224214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3374',
internalId:  '',
customField: '20100215-230300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3437',
internalId:  '',
customField: '20090402-010937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20100115-174643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20100118-142356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22043',
internalId:  '',
customField: '20100118-151642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22064',
internalId:  '',
customField: '20100118-152746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23343',
internalId:  '',
customField: '20100118-153417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23322',
internalId:  '',
customField: '20100118-153536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20100118-153007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23364',
internalId:  '',
customField: '20100118-165014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23385',
internalId:  '',
customField: '20100118-173525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23406',
internalId:  '',
customField: '20100118-213640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23427',
internalId:  '',
customField: '20100118-215008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23448',
internalId:  '',
customField: '20100118-222522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32243',
internalId:  '',
customField: '20100220-114331'
};
webappMappings['1002']=webappMappings['1002-34322avfl30inhw4r']={
webappId:    '1002',
documentId:  '34322',
internalId:  '34322avfl30inhw4r',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34322',
internalId:  '',
customField: '20100221-164135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20100221-164456'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHW4R';
var companyName   = 'Safety+Messages+In+Life+Education';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
