/* [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','901',jdecode('Home'),jdecode(''),'/901.html','true',[],'',''],
	['PAGE','952',jdecode('About+us'),jdecode(''),'/952/index.html','true',[ 
		['PAGE','973',jdecode('Our+Town'),jdecode(''),'/952/973.html','true',[],'',''],
		['PAGE','8101',jdecode('Board+of+Directors'),jdecode(''),'/952/8101.html','true',[],'','']
	],'',''],
	['PAGE','994',jdecode('Activites'),jdecode(''),'/994.html','true',[],'',''],
	['PAGE','7122',jdecode('Events'),jdecode(''),'/7122/index.html','true',[ 
		['PAGE','83454',jdecode('2009+Cicero+Sidewalk+Sale'),jdecode(''),'/7122/83454.html','false',[],'',''],
		['PAGE','84632',jdecode('Meet+%26+Greet+2010'),jdecode(''),'/7122/84632.html','true',[],'',''],
		['PAGE','86719',jdecode('Summer+Program+2010+'),jdecode(''),'/7122/86719.html','true',[],'','']
	],'',''],
	['PAGE','7601',jdecode('Houby+Festival'),jdecode(''),'/7601/index.html','true',[ 
		['PAGE','39701',jdecode('Houby+Pageant'),jdecode(''),'/7601/39701.html','true',[],'',''],
		['PAGE','42001',jdecode('Parade'),jdecode(''),'/7601/42001.html','true',[],'',''],
		['PAGE','39743',jdecode('Cermak+Road+Business+Vendors'),jdecode(''),'/7601/39743.html','true',[],'',''],
		['PAGE','39722',jdecode('Street+Vendors'),jdecode(''),'/7601/39722.html','true',[],'',''],
		['PAGE','42022',jdecode('Food+Vendors'),jdecode(''),'/7601/42022.html','true',[],'',''],
		['PAGE','81107',jdecode('Arts+%26+Crafts+Vendors'),jdecode(''),'/7601/81107.html','true',[],'',''],
		['PAGE','83772',jdecode('Berwyn+Oasis'),jdecode(''),'/7601/83772.html','true',[],'','']
	],'',''],
	['PAGE','7101',jdecode('The+Hispanic+Business+Foundation'),jdecode(''),'/7101.html','true',[],'',''],
	['PAGE','1015',jdecode('News'),jdecode(''),'/1015.html','true',[],'',''],
	['PAGE','81902',jdecode('Archive'),jdecode(''),'/81902/index.html','true',[ 
		['PAGE','58822',jdecode('2007+Fiesta+Dinner'),jdecode(''),'/81902/58822.html','true',[],'',''],
		['PAGE','80891',jdecode('2007+Annual+Presidential+Address'),jdecode(''),'/81902/80891.html','true',[],'',''],
		['PAGE','64201',jdecode('Houby+2007+Gallery'),jdecode(''),'/81902/64201.html','true',[],'',''],
		['PAGE','36522',jdecode('Houby+2006+Gallery'),jdecode(''),'/81902/36522.html','true',[],'',''],
		['PAGE','58801',jdecode('Interview+With+a+Queen...'),jdecode(''),'/81902/58801.html','true',[],'',''],
		['PAGE','77301',jdecode('2008+Annual+Dinner'),jdecode(''),'/81902/77301.html','true',[],'',''],
		['PAGE','74701',jdecode('2008+Annual+Presidential+Address'),jdecode(''),'/81902/74701.html','true',[],'',''],
		['PAGE','71901',jdecode('2008+Annual+Fiesta+Dinner'),jdecode(''),'/81902/71901.html','true',[],'',''],
		['PAGE','82451',jdecode('2009+Golf+Outing'),jdecode(''),'/81902/82451.html','true',[],'',''],
		['PAGE','84008',jdecode('2009+Annual+Dinner'),jdecode(''),'/81902/84008.html','true',[],'','']
	],'',''],
	['PAGE','1057',jdecode('Contact'),jdecode(''),'/1057/index.html','true',[ 
		['PAGE','45401',jdecode('Map'),jdecode(''),'/1057/45401.html','true',[],'','']
	],'',''],
	['PAGE','36501',jdecode('Employment+Opportunities'),jdecode(''),'/36501.html','true',[],'',''],
	['PAGE','84388',jdecode('Commercial+Space+for+rent'),jdecode(''),'/84388.html','true',[],'',''],
	['PAGE','1078',jdecode('Links'),jdecode(''),'/1078/index.html','true',[ 
		['PAGE','9401',jdecode('Town+of+Cicero'),jdecode(''),'/1078/9401.html','true',[],'','']
	],'',''],
	['PAGE','9422',jdecode('Application+for+Membership'),jdecode(''),'/9422.html','true',[],'',''],
	['PAGE','9443',jdecode('Membership+List'),jdecode(''),'/9443.html','true',[],'',''],
	['PAGE','55401',jdecode('Illinois+State+Government'),jdecode(''),'/55401.html','true',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1743';
theSitetree.keyvisualName='ecommerce.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1743',
				keyvisualName: 	'ecommerce.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-68521']={
webappId:    '1501',
documentId:  '901',
internalId:  '68521',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '45401',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84632',
internalId:  '',
customField: '20100629-115007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82451',
internalId:  '',
customField: '20090624-160310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20100727-142145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '952',
internalId:  '',
customField: '20100727-142327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '973',
internalId:  '',
customField: '20100728-160630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20100728-162524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '994',
internalId:  '',
customField: '20090528-120326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7122',
internalId:  '',
customField: '20100728-165537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80891',
internalId:  '',
customField: '20080630-132347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71901',
internalId:  '',
customField: '20091103-130650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77301',
internalId:  '',
customField: '20080609-183204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81902',
internalId:  '',
customField: '20091103-122135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20100727-142947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39701',
internalId:  '',
customField: '20100719-165845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42001',
internalId:  '',
customField: '20100719-170137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39743',
internalId:  '',
customField: '20100719-170627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39722',
internalId:  '',
customField: '20090806-152706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42022',
internalId:  '',
customField: '20090806-152719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81107',
internalId:  '',
customField: '20100719-171043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64201',
internalId:  '',
customField: '20080107-183201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36522',
internalId:  '',
customField: '20081229-152416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58801',
internalId:  '',
customField: '20070810-180550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20100727-143423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1015',
internalId:  '',
customField: '20100708-114849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74701',
internalId:  '',
customField: '20081229-152601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58822',
internalId:  '',
customField: '20080107-184214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1057',
internalId:  '',
customField: '20100422-135140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20070620-125330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20100415-130537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1078',
internalId:  '',
customField: '20070705-152325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20070619-173330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9422',
internalId:  '',
customField: '20100112-135015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9443',
internalId:  '',
customField: '20100706-152400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55401',
internalId:  '',
customField: '20090604-121155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83454',
internalId:  '',
customField: '20090807-120550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83772',
internalId:  '',
customField: '20090811-124021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84008',
internalId:  '',
customField: '20091103-152921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84388',
internalId:  '',
customField: '20100727-120538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86719',
internalId:  '',
customField: '20100728-155523'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXXPN';
var companyName   = 'Cicero+Chamber+of+Commerce+%26+Industry';
var htmlTitle	  = 'The+Cicero+Chamber+of+Commerce+and+Industry%3A+Building+a+Better+Cicero';
var metaKeywords  = 'Cicero%2C+Chamber%2C+Commerce%2C+Industry%2C+Business';
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();
};
