/* [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','5001',jdecode('Home'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','5052',jdecode('Mission'),jdecode(''),'/5052.html','true',[],'',''],
	['PAGE','13901',jdecode('Calendar'),jdecode(''),'/13901.html','true',[],'',''],
	['PAGE','34301',jdecode('Schools+and+Schedules'),jdecode(''),'/34301.html','true',[],'',''],
	['PAGE','15601',jdecode('Upcoming+Performances'),jdecode(''),'/15601.html','true',[],'',''],
	['PAGE','15622',jdecode('PreSchool+Dance+Info'),jdecode(''),'/15622.html','true',[],'',''],
	['PAGE','15664',jdecode('Interdisiplinary'),jdecode(''),'/15664.html','true',[],'',''],
	['PAGE','15685',jdecode('Visual+Arts'),jdecode(''),'/15685.html','true',[],'',''],
	['PAGE','15706',jdecode('Music'),jdecode(''),'/15706.html','true',[],'',''],
	['PAGE','15727',jdecode('Theatre'),jdecode(''),'/15727.html','true',[],'',''],
	['PAGE','15748',jdecode('Dance'),jdecode(''),'/15748.html','true',[],'',''],
	['PAGE','30501',jdecode('Assemblies%2FShows'),jdecode(''),'/30501.html','true',[],'',''],
	['PAGE','15301',jdecode('Pay+For+Classes'),jdecode(''),'/15301.html','true',[],'',''],
	['PAGE','7201',jdecode('Updates%2FVideos%2FGallery'),jdecode(''),'/7201.html','true',[],'',''],
	['PAGE','44601',jdecode('Newsletters'),jdecode(''),'/44601.html','true',[],'',''],
	['PAGE','5094',jdecode('About+us'),jdecode(''),'/5094.html','true',[],'',''],
	['PAGE','35701',jdecode('Featured+Artist'),jdecode(''),'/35701.html','true',[],'',''],
	['PAGE','7001',jdecode('Blog'),jdecode(''),'/7001.html','true',[],'',''],
	['PAGE','5115',jdecode('Contact+Us'),jdecode(''),'/5115.html','true',[],'',''],
	['PAGE','5136',jdecode('Shop+For+Dance+Attire'),jdecode(''),'/5136.html','true',[],'',''],
	['PAGE','17801',jdecode('Payment+Received'),jdecode(''),'/17801.html','false',[],'',''],
	['PAGE','36101',jdecode('Hancock+Park+Elementary'),jdecode(''),'/36101.html','false',[],'',''],
	['PAGE','36122',jdecode('Delaney-Wright+Arts+PreSchool'),jdecode(''),'/36122.html','false',[],'',''],
	['PAGE','36143',jdecode('Camelot+Kids+PreSchool'),jdecode(''),'/36143.html','false',[],'',''],
	['PAGE','36164',jdecode('Franklin+Kids'),jdecode(''),'/36164.html','false',[],'',''],
	['PAGE','42301',jdecode('Friends+of+Franklin'),jdecode(''),'/42301.html','false',[],'',''],
	['PAGE','36185',jdecode('Immaculate+Heart+Middle+School'),jdecode(''),'/36185.html','false',[],'',''],
	['PAGE','37101',jdecode('Music+Center'),jdecode(''),'/37101.html','false',[],'',''],
	['PAGE','37601',jdecode('Glenfeliz+Elementary'),jdecode(''),'/37601.html','false',[],'',''],
	['PAGE','41501',jdecode('Stone+Soup'),jdecode(''),'/41501.html','false',[],'',''],
	['PAGE','43501',jdecode('Archive-Featured+Artist'),jdecode(''),'/43501.html','false',[],'',''],
	['PAGE','46201',jdecode('Marlborough'),jdecode(''),'/46201.html','false',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='CC3333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='442';
theSitetree.graphicsetId='495';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='e47272';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Round',
				paletteFamily: 	'CC3333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'442',
				graphicsetId: 	'495',
				contentColor: 	'000000',
				contentBGColor: 'e47272',
				a_color: 		'e47272',
				b_color: 		'CC3333',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100701-122654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5052',
internalId:  '',
customField: '20090117-164348'
};
webappMappings['1501']=webappMappings['1501-15104361']={
webappId:    '1501',
documentId:  '5001',
internalId:  '15104361',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20100109-003526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20100421-113323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5115',
internalId:  '',
customField: '20091212-052708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5136',
internalId:  '',
customField: '20090117-162748'
};
webappMappings['7008']=webappMappings['7008-12565']={
webappId:    '7008',
documentId:  '5115',
internalId:  '12565',
customField: 'language:en;country:US;'
};
webappMappings['7050']=webappMappings['7050-7272']={
webappId:    '7050',
documentId:  '7001',
internalId:  '7272',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20090117-174531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20090708-114937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20100711-003446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20100819-112914'
};
webappMappings['7060']=webappMappings['7060-d111a740a7900e8af8759126ad56a330']={
webappId:    '7060',
documentId:  '7201',
internalId:  'd111a740a7900e8af8759126ad56a330',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20090207-182352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15664',
internalId:  '',
customField: '20100330-183640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15685',
internalId:  '',
customField: '20100121-133135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15706',
internalId:  '',
customField: '20100701-120340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15727',
internalId:  '',
customField: '20100624-112959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15748',
internalId:  '',
customField: '20100901-121659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20100711-000841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15622',
internalId:  '',
customField: '20100901-121735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20100711-002629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35701',
internalId:  '',
customField: '20100711-004408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20100711-001212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36122',
internalId:  '',
customField: '20100711-001416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36143',
internalId:  '',
customField: '20100711-001759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36164',
internalId:  '',
customField: '20100711-002204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36185',
internalId:  '',
customField: '20100711-002517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37101',
internalId:  '',
customField: '20100711-002552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20100711-002319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20100711-002436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42301',
internalId:  '',
customField: '20100711-001950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43501',
internalId:  '',
customField: '20100711-003920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44601',
internalId:  '',
customField: '20100712-005759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46201',
internalId:  '',
customField: '20100711-002657'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INEV7J';
var companyName   = 'Aimee+Art+Productions';
var htmlTitle	  = 'Aimee+Art+Productions+%7C+Los+Angeles';
var metaKeywords  = 'piano+lessons%2C+dance+classes%2C+ballet%2C+preschool+dance%2C+voice+lessons%2C+musical+theatre%2C+art+lessons%2C+music+lessons%2C+Visual+Arts%2C+hopkins';
var metaContents  = 'Builds+self-esteem+and+literacy+of+youth+in+Los+Angeles+through+enriching%2C+multicultural+experiences+with+special+focus+on+providing+arts+access.';
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();
};
