/* [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','85',jdecode('Home'),jdecode(''),'/85.html','true',[],'',''],
	['PAGE','73045',jdecode('About+us'),jdecode(''),'/73045/index.html','true',[ 
		['PAGE','4614',jdecode('Faculty'),jdecode(''),'/73045/4614.html','true',[],'',''],
		['PAGE','33501',jdecode('Testimonials'),jdecode(''),'/73045/33501.html','true',[],'',''],
		['PAGE','32001',jdecode('Community+Outreach'),jdecode(''),'/73045/32001.html','true',[],'','']
	],'',''],
	['PAGE','73066',jdecode('Getting+Started'),jdecode(''),'/73066/index.html','true',[ 
		['PAGE','133',jdecode('Registration'),jdecode(''),'/73066/133.html','true',[],'',''],
		['PAGE','47523',jdecode('Summer+Registration'),jdecode(''),'/73066/47523.html','true',[],'',''],
		['PAGE','40812',jdecode('Fall+Registration'),jdecode(''),'/73066/40812.html','true',[],'',''],
		['PAGE','73087',jdecode('Galleries'),jdecode(''),'/73066/73087.html','true',[],'',''],
		['PAGE','3054',jdecode('Registration+Packet+Request'),jdecode(''),'/73066/3054.html','true',[],'',''],
		['PAGE','115',jdecode('Policies'),jdecode(''),'/73066/115.html','true',[],'',''],
		['PAGE','10636',jdecode('Annual+Performance'),jdecode(''),'/73066/10636.html','true',[],'',''],
		['PAGE','106',jdecode('Calendar'),jdecode(''),'/73066/106.html','true',[],'','']
	],'',''],
	['PAGE','124',jdecode('Schedules'),jdecode(''),'/124.html','true',[],'',''],
	['PAGE','62523',jdecode('Adult+Classes'),jdecode(''),'/62523/index.html','true',[ 
		['PAGE','62544',jdecode('Class+Descriptions'),jdecode(''),'/62523/62544.html','true',[],'',''],
		['PAGE','62565',jdecode('Rates+%26+Registration'),jdecode(''),'/62523/62565.html','true',[],'',''],
		['PAGE','62586',jdecode('Meet+The+Instructors+'),jdecode(''),'/62523/62586.html','true',[],'','']
	],'',''],
	['PAGE','65023',jdecode('Salsa+Babies'),jdecode(''),'/65023.html','true',[],'',''],
	['PAGE','1771',jdecode('Innovation+Dance+Company'),jdecode(''),'/1771/index.html','true',[ 
		['PAGE','59723',jdecode('Jr%2FSr+Company'),jdecode(''),'/1771/59723.html','true',[],'',''],
		['PAGE','60023',jdecode('Audition+Information+'),jdecode(''),'/1771/60023.html','true',[],'',''],
		['PAGE','21401',jdecode('Competition+Schedule'),jdecode(''),'/1771/21401.html','true',[],'',''],
		['PAGE','11119',jdecode('Competition+Fee+Schedule'),jdecode(''),'/1771/11119.html','true',[],'',''],
		['PAGE','50023',jdecode('Competition+Results'),jdecode(''),'/1771/50023.html','true',[],'','']
	],'',''],
	['PAGE','73108',jdecode('Galleries'),jdecode(''),'/73108/index.html','true',[ 
		['PAGE','2968',jdecode('Photo+Gallery'),jdecode(''),'/73108/2968.html','true',[],'',''],
		['PAGE','66934',jdecode('Video+Gallery'),jdecode(''),'/73108/66934.html','true',[],'','']
	],'',''],
	['PAGE','11227',jdecode('Pay+Online'),jdecode(''),'/11227.html','true',[],'',''],
	['PAGE','5079',jdecode('Contact+Us'),jdecode(''),'/5079/index.html','true',[ 
		['PAGE','1807',jdecode('Locations'),jdecode(''),'/5079/1807.html','true',[],'',''],
		['PAGE','4112',jdecode('Location+Photo%26%23x27%3Bs'),jdecode(''),'/5079/4112.html','true',[],'',''],
		['PAGE','8552',jdecode('Directions'),jdecode(''),'/5079/8552.html','true',[],'',''],
		['PAGE','20201',jdecode('Employment+Opportunities'),jdecode(''),'/5079/20201.html','true',[],'',''],
		['PAGE','73245',jdecode('Links'),jdecode(''),'/5079/73245.html','true',[],'','']
	],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Macao';
theSitetree.paletteFamily='A982BF';
theSitetree.keyvisualId='6467';
theSitetree.keyvisualName='kv_6467.jpg';
theSitetree.fontsetId='11168';
theSitetree.graphicsetId='11981';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D3BADF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Macao',
				paletteFamily: 	'A982BF',
				keyvisualId: 	'6467',
				keyvisualName: 	'kv_6467.jpg',
				fontsetId: 		'11168',
				graphicsetId: 	'11981',
				contentColor: 	'000000',
				contentBGColor: 'D3BADF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '85',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '8552',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62523',
internalId:  '',
customField: '20090730-144634'
};
webappMappings['7060']=webappMappings['7060-f96375265599b7a23398bc94015ccdd4']={
webappId:    '7060',
documentId:  '4112',
internalId:  'f96375265599b7a23398bc94015ccdd4',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-550']={
webappId:    '7008',
documentId:  '3054',
internalId:  '550',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73066',
internalId:  '',
customField: '20100330-143936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59723',
internalId:  '',
customField: '20100408-205721'
};
webappMappings['7008']=webappMappings['7008-551']={
webappId:    '7008',
documentId:  '3054',
internalId:  '551',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85',
internalId:  '',
customField: '20100212-112924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20090909-152004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11227',
internalId:  '',
customField: '20081230-140441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106',
internalId:  '',
customField: '20091106-113152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115',
internalId:  '',
customField: '20091106-115822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124',
internalId:  '',
customField: '20100511-110142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133',
internalId:  '',
customField: '20100331-163525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40812',
internalId:  '',
customField: '20091106-112456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47523',
internalId:  '',
customField: '20091106-112515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3054',
internalId:  '',
customField: '20081230-142125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1771',
internalId:  '',
customField: '20080625-084543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60023',
internalId:  '',
customField: '20100406-103843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50023',
internalId:  '',
customField: '20100511-110442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73045',
internalId:  '',
customField: '20100330-142744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20090904-142422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11119',
internalId:  '',
customField: '20091106-114406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10636',
internalId:  '',
customField: '20090812-132323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2968',
internalId:  '',
customField: '20090911-225737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73087',
internalId:  '',
customField: '20100212-120250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73108',
internalId:  '',
customField: '20100330-144010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4614',
internalId:  '',
customField: '20090805-004546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1807',
internalId:  '',
customField: '20091106-114442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4112',
internalId:  '',
customField: '20060829-185018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5079',
internalId:  '',
customField: '20090713-135612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8552',
internalId:  '',
customField: '20070618-043057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20080730-234203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20100330-142757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73245',
internalId:  '',
customField: '20100212-120501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66934',
internalId:  '',
customField: '20090911-074245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62544',
internalId:  '',
customField: '20091029-155301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62565',
internalId:  '',
customField: '20090730-144047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62586',
internalId:  '',
customField: '20090812-132234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65023',
internalId:  '',
customField: '20090909-145253'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INX247';
var companyName   = 'Vaughan+Dance+Academy';
var htmlTitle	  = 'Vaughan+Dance+Studio+Academy+Plainfield+Illinois+Ballet+Jazz+Tap+Lessons';
var metaKeywords  = 'Innovation%2C+Dance+Studio%2C+Vaughan%2C+Plainfield%2C+Joliet%2C+Oswego%2C+Ballet%2C+Jazz%2C+Tap%2C+Lyrical%2C+Modern%2C+competitive%2C+Company%2C+Sandy%2C+Vikki%2C+Samantha%2C++';
var metaContents  = 'Dance+Studio+in+Plainfield+and+Oswego+Illinois+with+competitive+company.++Teaching+Ballet%2C+Jazz%2C+Tap%2C+Lyrical.+Hip+Hop.';
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();
};

