/* [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','1901',jdecode('Welcome'),jdecode(''),'/1901.html','true',[],''],
	['PAGE','31801',jdecode('Presenters'),jdecode(''),'/31801/index.html','true',[ 
		['PAGE','32001',jdecode('Proposal'),jdecode(''),'/31801/32001.html','true',[],'']
	],''],
	['PAGE','13001',jdecode('Conference+Hotel'),jdecode(''),'/13001/index.html','true',[ 
		['PAGE','22801',jdecode('Roommate+Finder'),jdecode(''),'/13001/22801.html','true',[],''],
		['PAGE','23001',jdecode('Add+to+Roommate+List'),jdecode(''),'/13001/23001.html','false',[],''],
		['PAGE','23401',jdecode('Remove+from+Roommate+List'),jdecode(''),'/13001/23401.html','false',[],'']
	],''],
	['PAGE','13601',jdecode('2009+Program'),jdecode(''),'/13601/index.html','true',[ 
		['PAGE','14301',jdecode('Program+Schedule'),jdecode(''),'/13601/14301.html','true',[],''],
		['PAGE','13901',jdecode('Keynote+Sessions'),jdecode(''),'/13601/13901.html','true',[],''],
		['PAGE','14101',jdecode('Networking+Sessions'),jdecode(''),'/13601/14101.html','true',[],''],
		['PAGE','14322',jdecode('Breakout+Sessions'),jdecode(''),'/13601/14322.html','true',[],''],
		['PAGE','15401',jdecode('Breakout+Sessions+2'),jdecode(''),'/13601/15401.html','false',[],''],
		['PAGE','16201',jdecode('Breakout+Sessions+3'),jdecode(''),'/13601/16201.html','false',[],''],
		['PAGE','16401',jdecode('Breakout+Sessions+4'),jdecode(''),'/13601/16401.html','false',[],'']
	],''],
	['PAGE','18901',jdecode('Sponsors'),jdecode(''),'/18901.html','false',[],''],
	['PAGE','17501',jdecode('Registration'),jdecode(''),'/17501/index.html','false',[ 
		['PAGE','17522',jdecode('Registration+Form'),jdecode(''),'/17501/17522.html','true',[],''],
		['PAGE','19501',jdecode('Scholarships'),jdecode(''),'/17501/19501.html','true',[],''],
		['PAGE','19801',jdecode('Scholarship+Form'),jdecode(''),'/17501/19801.html','false',[],'']
	],''],
	['PAGE','17901',jdecode('Online+Payment'),jdecode(''),'/17901.html','false',[],''],
	['PAGE','29101',jdecode('Meal+Functions'),jdecode(''),'/29101.html','false',[],''],
	['PAGE','28601',jdecode('Airport+%26+Driving+Info'),jdecode(''),'/28601.html','false',[],''],
	['PAGE','20301',jdecode('Exhibit'),jdecode(''),'/20301/index.html','false',[ 
		['PAGE','21801',jdecode('Exhibitor%26%23x27%3Bs+List'),jdecode(''),'/20301/21801.html','true',[],''],
		['PAGE','20501',jdecode('Exhibit+Space+Terms'),jdecode(''),'/20301/20501.html','true',[],''],
		['PAGE','20901',jdecode('Exhibit+Application'),jdecode(''),'/20301/20901.html','true',[],'']
	],''],
	['PAGE','22301',jdecode('Disney+Tickets'),jdecode(''),'/22301.html','false',[],''],
	['PAGE','23801',jdecode('Past+Programs'),jdecode(''),'/23801.html','true',[],''],
	['PAGE','16901',jdecode('Mailing+List'),jdecode(''),'/16901.html','true',[],''],
	['PAGE','1952',jdecode('Contact'),jdecode(''),'/1952.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Tide';
theSitetree.paletteFamily='03690F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='13625';
theSitetree.graphicsetId='12064';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Tide',
				paletteFamily: 	'03690F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'13625',
				graphicsetId: 	'12064',
				contentColor: 	'FFFFFF',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				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:  '1901',
internalId:  '',
customField: '20100226-115620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20090821-152556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20100226-150550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20090821-204057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20091026-081652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20091026-082432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20091026-081141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14322',
internalId:  '',
customField: '20091026-091104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20091026-084651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20091026-085036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20091026-085340'
};
webappMappings['7008']=webappMappings['7008-20039']={
webappId:    '7008',
documentId:  '16901',
internalId:  '20039',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16901',
internalId:  '',
customField: '20090821-220243'
};
webappMappings['7008']=webappMappings['7008-20052']={
webappId:    '7008',
documentId:  '17522',
internalId:  '20052',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20091101-042633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17522',
internalId:  '',
customField: '20091026-075646'
};
webappMappings['4001']=webappMappings['4001-21565751']={
webappId:    '4001',
documentId:  '17901',
internalId:  '21565751',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17901',
internalId:  '',
customField: '20090825-141222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20090822-141714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20091101-042836'
};
webappMappings['7008']=webappMappings['7008-20062']={
webappId:    '7008',
documentId:  '19801',
internalId:  '20062',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19801',
internalId:  '',
customField: '20090822-150655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20090822-203657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20090823-120123'
};
webappMappings['7008']=webappMappings['7008-20073']={
webappId:    '7008',
documentId:  '20901',
internalId:  '20073',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20090822-195059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20090909-093907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20090823-102130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20090823-101054'
};
webappMappings['7008']=webappMappings['7008-20086']={
webappId:    '7008',
documentId:  '23001',
internalId:  '20086',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20090823-095919'
};
webappMappings['7008']=webappMappings['7008-20088']={
webappId:    '7008',
documentId:  '23401',
internalId:  '20088',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20090823-101256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20090823-113628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28601',
internalId:  '',
customField: '20090916-082045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29101',
internalId:  '',
customField: '20091026-080439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20100224-110307'
};
webappMappings['7008']=webappMappings['7008-26162']={
webappId:    '7008',
documentId:  '32001',
internalId:  '26162',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20100224-104753'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INV1Y3';
var companyName   = 'Safe+Society+Zone%2C+LLC';
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();
};
