/* [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','2201',jdecode('Main+Page'),jdecode(''),'/2201.html','true',[],'',''],
	['PAGE','119501',jdecode('BFM-HOME'),jdecode(''),'/119501/index.html','true',[ 
		['PAGE','16501',jdecode('About+the+BFM'),jdecode(''),'/119501/16501.html','true',[],'',''],
		['PAGE','126001',jdecode('Folklore'),jdecode(''),'/119501/126001.html','true',[],'',''],
		['PAGE','12501',jdecode('The+History'),jdecode(''),'/119501/12501.html','true',[],'',''],
		['PAGE','125601',jdecode('The+Costumes'),jdecode(''),'/119501/125601.html','true',[],'',''],
		['PAGE','125622',jdecode('The+Music'),jdecode(''),'/119501/125622.html','true',[],'',''],
		['PAGE','125643',jdecode('The+Lighting+%26+Scenery'),jdecode(''),'/119501/125643.html','true',[],'',''],
		['PAGE','125664',jdecode('The+Performances'),jdecode(''),'/119501/125664.html','true',[],'','']
	],'',''],
	['PAGE','16522',jdecode('BFM-Directors'),jdecode(''),'/16522/index.html','true',[ 
		['PAGE','18501',jdecode('Carlos+Moreno-S.'),jdecode(''),'/16522/18501.html','true',[],'',''],
		['PAGE','18522',jdecode('Carlos+Moreno-G.'),jdecode(''),'/16522/18522.html','true',[],'','']
	],'',''],
	['PAGE','12585',jdecode('BFM-Events+Calendar'),jdecode(''),'/12585/index.html','true',[ 
		['PAGE','125301',jdecode('Cultural+Exchange+'),jdecode(''),'/12585/125301.html','true',[],'',''],
		['PAGE','16627',jdecode('Fiesta+Folklorica+'),jdecode(''),'/12585/16627.html','true',[],'',''],
		['PAGE','16648',jdecode('Danzantes+Unidos+'),jdecode(''),'/12585/16648.html','true',[],'',''],
		['PAGE','16690',jdecode('Navidad+en+Mexico+'),jdecode(''),'/12585/16690.html','true',[],'','']
	],'',''],
	['PAGE','132060',jdecode('BFM-Photo+Galleries'),jdecode(''),'/132060/index.html','true',[ 
		['PAGE','33901',jdecode('BFM-2005'),jdecode(''),'/132060/33901.html','true',[],'',''],
		['PAGE','131946',jdecode('BFM-2006'),jdecode(''),'/132060/131946.html','true',[],'',''],
		['PAGE','131934',jdecode('BFM-2007'),jdecode(''),'/132060/131934.html','true',[],'','']
	],'',''],
	['PAGE','120201',jdecode('BFM+Store'),jdecode(''),'/120201/index.html','true',[ 
		['PAGE','120222',jdecode('BFM+DVD'),jdecode(''),'/120201/120222/index.html','true',[ 
			['PAGE','121001',jdecode('BFM+DVD+%28follow+up+page%29'),jdecode(''),'/120201/120222/121001.html','false',[],'','']
		],'',''],
		['PAGE','16585',jdecode('BFM+Online+Store'),jdecode(''),'/120201/16585.html','true',[],'','']
	],'',''],
	['PAGE','116701',jdecode('IBFM-HOME'),jdecode(''),'/116701/index.html','true',[ 
		['PAGE','117801',jdecode('History+of+IBFM'),jdecode(''),'/116701/117801.html','true',[],'','']
	],'',''],
	['PAGE','23901',jdecode('Dance+Classes'),jdecode(''),'/23901/index.html','true',[ 
		['PAGE','58201',jdecode('Kids+Classes+'),jdecode(''),'/23901/58201.html','true',[],'',''],
		['PAGE','58222',jdecode('Teen+Classes'),jdecode(''),'/23901/58222.html','true',[],'',''],
		['PAGE','80901',jdecode('Adult+Classes'),jdecode(''),'/23901/80901.html','true',[],'',''],
		['PAGE','58243',jdecode('Resident+Company'),jdecode(''),'/23901/58243.html','true',[],'',''],
		['PAGE','58264',jdecode('Touring+Company'),jdecode(''),'/23901/58264.html','true',[],'','']
	],'',''],
	['PAGE','77801',jdecode('Dance+Workshops'),jdecode(''),'/77801/index.html','true',[ 
		['PAGE','121701',jdecode('Dance+Workshops+%28follow+up+page%29'),jdecode(''),'/77801/121701.html','false',[],'',''],
		['PAGE','121801',jdecode('Workshop+Fees'),jdecode(''),'/77801/121801.html','true',[],'',''],
		['PAGE','121822',jdecode('Workshop+Application+'),jdecode(''),'/77801/121822.html','true',[],'',''],
		['PAGE','121843',jdecode('Workshop+Packet+'),jdecode(''),'/77801/121843.html','true',[],'','']
	],'',''],
	['PAGE','119101',jdecode('BFM+Casting+Call'),jdecode(''),'/119101/index.html','true',[ 
		['PAGE','122601',jdecode('Dance+Auditions+%28follow+up+page%29'),jdecode(''),'/119101/122601.html','false',[],'','']
	],'',''],
	['PAGE','16606',jdecode('Casa+Folklorica'),jdecode(''),'/16606.html','true',[],'',''],
	['PAGE','20412',jdecode('BFM+Guestbook'),jdecode(''),'/20412/index.html','true',[ 
		['PAGE','20407',jdecode('Read+Guestbook'),jdecode(''),'/20412/20407.html','false',[],'','']
	],'',''],
	['PAGE','12606',jdecode('Contact+Us'),jdecode(''),'/12606/index.html','true',[ 
		['PAGE','19701',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/12606/19701.html','false',[],'','']
	],'',''],
	['PAGE','127301',jdecode('The+Insider'),jdecode(''),'/127301/index.html','true',[ 
		['PAGE','127901',jdecode('The+Insider+%28follow+up+page%29'),jdecode(''),'/127301/127901.html','false',[],'','']
	],'',''],
	['PAGE','43001',jdecode('Map'),jdecode(''),'/43001.html','true',[],'','']];
var siteelementCount=48;
theSitetree.topTemplateName='Easy';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='50';
theSitetree.graphicsetId='51';
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: 			'Easy',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'50',
				graphicsetId: 	'51',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-0fc5740d3925b91089d360d891ab75b5']={
webappId:    '7060',
documentId:  '131946',
internalId:  '0fc5740d3925b91089d360d891ab75b5',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-20412AHW050INE5KN']={
webappId:    '1002',
documentId:  '20412',
internalId:  '20412AHW050INE5KN',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-948626']={
webappId:    '1501',
documentId:  '2201',
internalId:  '948626',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '43001',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['7060']=webappMappings['7060-c7b1e7ef885ce30e2d3dba112b0d5e6d']={
webappId:    '7060',
documentId:  '33901',
internalId:  'c7b1e7ef885ce30e2d3dba112b0d5e6d',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-7847']={
webappId:    '7008',
documentId:  '77801',
internalId:  '7847',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-7848']={
webappId:    '7008',
documentId:  '120222',
internalId:  '7848',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-7849']={
webappId:    '7008',
documentId:  '119101',
internalId:  '7849',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-7850']={
webappId:    '7008',
documentId:  '127301',
internalId:  '7850',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-af4396a4a8df29177f58878d36cf555c']={
webappId:    '7060',
documentId:  '131934',
internalId:  'af4396a4a8df29177f58878d36cf555c',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-df0e8186541f185e23a6b84c1fb106ea']={
webappId:    '7060',
documentId:  '131946',
internalId:  'df0e8186541f185e23a6b84c1fb106ea',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20100707-214602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119501',
internalId:  '',
customField: '20080325-150141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20080218-201151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126001',
internalId:  '',
customField: '20080331-003217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20080224-075250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125601',
internalId:  '',
customField: '20080331-001027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125622',
internalId:  '',
customField: '20080331-002925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125643',
internalId:  '',
customField: '20080331-003018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125664',
internalId:  '',
customField: '20080331-003108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16522',
internalId:  '',
customField: '20080126-030518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20071028-020121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18522',
internalId:  '',
customField: '20071028-021006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12585',
internalId:  '',
customField: '20100707-203605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125301',
internalId:  '',
customField: '20090104-170346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16627',
internalId:  '',
customField: '20100707-212959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16648',
internalId:  '',
customField: '20080330-234957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16690',
internalId:  '',
customField: '20100728-211833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132060',
internalId:  '',
customField: '20080821-233300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20080822-095631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131946',
internalId:  '',
customField: '20080822-095140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131934',
internalId:  '',
customField: '20080822-095537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120201',
internalId:  '',
customField: '20080325-160834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120222',
internalId:  '',
customField: '20080325-161658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121001',
internalId:  '',
customField: '20080325-161501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16585',
internalId:  '',
customField: '20080325-161312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116701',
internalId:  '',
customField: '20080325-174523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117801',
internalId:  '',
customField: '20080325-140814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20080325-141006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58201',
internalId:  '',
customField: '20080325-141711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58222',
internalId:  '',
customField: '20080325-141842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80901',
internalId:  '',
customField: '20080426-000123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58243',
internalId:  '',
customField: '20080426-000847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58264',
internalId:  '',
customField: '20080812-171745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77801',
internalId:  '',
customField: '20080325-162855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121701',
internalId:  '',
customField: '20080325-162739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121801',
internalId:  '',
customField: '20080327-231752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121822',
internalId:  '',
customField: '20080326-135554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121843',
internalId:  '',
customField: '20080325-163432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119101',
internalId:  '',
customField: '20081008-222645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122601',
internalId:  '',
customField: '20080325-164037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16606',
internalId:  '',
customField: '20070607-013824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20412',
internalId:  '',
customField: '20080218-202606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20407',
internalId:  '',
customField: '20070312-234959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12606',
internalId:  '',
customField: '20080325-164844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20070312-233716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127301',
internalId:  '',
customField: '20080401-013207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127901',
internalId:  '',
customField: '20080401-013410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43001',
internalId:  '',
customField: '20070320-011237'
};
webappMappings['7008']=webappMappings['7008-7846']={
webappId:    '7008',
documentId:  '12606',
internalId:  '7846',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INE5KN';
var companyName   = 'Ballet+Folklorico+Mexicano+de+Carlos+Moreno';
var htmlTitle	  = 'Ballet+Folklorico+Mexicano+de+Carlos+Moreno';
var metaKeywords  = 'Ballet+Folklorico+Mexicano+Oakland+CA+Carlos+Moreno';
var metaContents  = 'Ballet+Folklorico+Mexicano';
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();
};
