/* [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','1601',jdecode('Home'),jdecode(''),'/1601.html','true',[],'',''],
	['PAGE','1652',jdecode('About+us'),jdecode(''),'/1652.html','true',[],'',''],
	['PAGE','1673',jdecode('Calendar'),jdecode(''),'/1673.html','true',[],'',''],
	['PAGE','1694',jdecode('Conference'),jdecode(''),'/1694/index.html','true',[ 
		['PAGE','35412',jdecode('Major+Speakers'),jdecode(''),'/1694/35412.html','true',[],'',''],
		['PAGE','48112',jdecode('Conference+Brochure'),jdecode(''),'/1694/48112.html','true',[],'',''],
		['PAGE','47012',jdecode('Presentations'),jdecode(''),'/1694/47012.html','true',[],'',''],
		['PAGE','41312',jdecode('Hotel+Information'),jdecode(''),'/1694/41312.html','true',[],'',''],
		['PAGE','46012',jdecode('Other+Area+Hotels'),jdecode(''),'/1694/46012.html','true',[],'',''],
		['PAGE','61443',jdecode('Registration'),jdecode(''),'/1694/61443.html','true',[],'','']
	],'',''],
	['PAGE','62060',jdecode('Conference+Proceedings'),jdecode(''),'/62060.html','true',[],'',''],
	['PAGE','38612',jdecode('Join+Our+Email+List'),jdecode(''),'/38612.html','true',[],'',''],
	['PAGE','1715',jdecode('Vendors%2FSponsors'),jdecode(''),'/1715/index.html','true',[ 
		['PAGE','13701',jdecode('Vendors%2FSponsors+%28follow+up+page%29'),jdecode(''),'/1715/13701.html','false',[],'','']
	],'',''],
	['PAGE','1757',jdecode('Submissions'),jdecode(''),'/1757.html','true',[],'',''],
	['PAGE','1778',jdecode('Board+Members'),jdecode(''),'/1778.html','true',[],'',''],
	['PAGE','3906',jdecode('Guestbook'),jdecode(''),'/3906/index.html','true',[ 
		['PAGE','3901',jdecode('Read+Guestbook'),jdecode(''),'/3906/3901.html','false',[],'','']
	],'',''],
	['PAGE','15901',jdecode('Conference+Photos'),jdecode(''),'/15901/index.html','true',[ 
		['PAGE','51912',jdecode('2007'),jdecode(''),'/15901/51912.html','true',[],'',''],
		['PAGE','33312',jdecode('2006'),jdecode(''),'/15901/33312.html','true',[],'',''],
		['PAGE','32812',jdecode('2005'),jdecode(''),'/15901/32812.html','true',[],'','']
	],'',''],
	['PAGE','13101',jdecode('Forum'),jdecode(''),'/13101.html','true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-3906AHW050IN2YY1']={
webappId:    '1002',
documentId:  '3906',
internalId:  '3906AHW050IN2YY1',
customField: 'icq=false'
};
webappMappings['7005']=webappMappings['7005-257']={
webappId:    '7005',
documentId:  '1694',
internalId:  '257',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-ahw050in2yy111adf086767']={
webappId:    '1003',
documentId:  '13101',
internalId:  'ahw050in2yy111adf086767',
customField: 'en:US:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62060',
internalId:  '',
customField: '20100226-110529'
};
webappMappings['1501']=webappMappings['1501-636527']={
webappId:    '1501',
documentId:  '1601',
internalId:  '636527',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-0cac6fcf3b45fa319c4ada3759516dfb']={
webappId:    '7060',
documentId:  '32812',
internalId:  '0cac6fcf3b45fa319c4ada3759516dfb',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-cb33cfd777817085d6e5f6441e6a5a31']={
webappId:    '7060',
documentId:  '33312',
internalId:  'cb33cfd777817085d6e5f6441e6a5a31',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-2de90d316ff50a911014e2420c57cf3c']={
webappId:    '7060',
documentId:  '51912',
internalId:  '2de90d316ff50a911014e2420c57cf3c',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-8063']={
webappId:    '7008',
documentId:  '1715',
internalId:  '8063',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1601',
internalId:  '',
customField: '20100511-074826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1652',
internalId:  '',
customField: '20100818-082204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1673',
internalId:  '',
customField: '20090921-104227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1694',
internalId:  '',
customField: '20100511-075011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35412',
internalId:  '',
customField: '20100818-085714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48112',
internalId:  '',
customField: '20100830-134310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47012',
internalId:  '',
customField: '20100511-075400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41312',
internalId:  '',
customField: '20100511-075737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46012',
internalId:  '',
customField: '20100830-134500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38612',
internalId:  '',
customField: '20070803-174018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1715',
internalId:  '',
customField: '20071012-164048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20070718-204222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61443',
internalId:  '',
customField: '20100830-134421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1757',
internalId:  '',
customField: '20100818-083421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1778',
internalId:  '',
customField: '20100511-075932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3906',
internalId:  '',
customField: '20070703-221250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20070703-221250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20070719-122758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51912',
internalId:  '',
customField: '20080604-113850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33312',
internalId:  '',
customField: '20070725-091802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32812',
internalId:  '',
customField: '20070725-091738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20070718-203355'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050IN2YY1';
var companyName   = 'GCEA';
var htmlTitle	  = 'Gulf+Coast+Economics+Association';
var metaKeywords  = 'economics%2C+teaching%2C+conference%2C+seminar%2C+presentations%2C+workshop';
var metaContents  = 'economics+teaching+conference';
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();
};
