/* [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','4201',jdecode('Home'),jdecode(''), jdecode('%2F4201.html'), 'true',[],'',''],
	['PAGE','4252',jdecode('About+Us'),jdecode(''), jdecode('%2F4252%2Findex.html'), 'true',[ 
		['PAGE','19601',jdecode('Susan+Akin'),jdecode(''), jdecode('%2F4252%2F19601.html'), 'true',[],'',''],
		['PAGE','18601',jdecode('Rene+Giglia'),jdecode(''), jdecode('%2F4252%2F18601.html'), 'true',[],'',''],
		['PAGE','19201',jdecode('Monica+Rumpf'),jdecode(''), jdecode('%2F4252%2F19201.html'), 'true',[],'',''],
		['PAGE','15901',jdecode('Maureen+Brett'),jdecode(''), jdecode('%2F4252%2F15901.html'), 'true',[],'',''],
		['PAGE','19622',jdecode('Bailey+Akin'),jdecode(''), jdecode('%2F4252%2F19622.html'), 'true',[],'',''],
		['PAGE','16801',jdecode('Crystal+Reed'),jdecode(''), jdecode('%2F4252%2F16801.html'), 'true',[],'','']
	],'',''],
	['PAGE','5722',jdecode('Classes+Offered'),jdecode(''), jdecode('%2F5722%2Findex.html'), 'true',[ 
		['PAGE','20906',jdecode('Acro'),jdecode(''), jdecode('%2F5722%2F20906.html'), 'true',[],'',''],
		['PAGE','20843',jdecode('Ballet'),jdecode(''), jdecode('%2F5722%2F20843.html'), 'true',[],'',''],
		['PAGE','20969',jdecode('Contemporary'),jdecode(''), jdecode('%2F5722%2F20969.html'), 'true',[],'',''],
		['PAGE','21053',jdecode('Flex+%26+Stretch'),jdecode(''), jdecode('%2F5722%2F21053.html'), 'true',[],'',''],
		['PAGE','21074',jdecode('Graceful+%26+Gifted'),jdecode(''), jdecode('%2F5722%2F21074.html'), 'true',[],'',''],
		['PAGE','20885',jdecode('Hip+Hop'),jdecode(''), jdecode('%2F5722%2F20885.html'), 'true',[],'',''],
		['PAGE','20801',jdecode('Jazz'),jdecode(''), jdecode('%2F5722%2F20801.html'), 'true',[],'',''],
		['PAGE','21011',jdecode('Lyrical'),jdecode(''), jdecode('%2F5722%2F21011.html'), 'true',[],'',''],
		['PAGE','20927',jdecode('Modern'),jdecode(''), jdecode('%2F5722%2F20927.html'), 'true',[],'',''],
		['PAGE','20948',jdecode('Musical+Theater'),jdecode(''), jdecode('%2F5722%2F20948.html'), 'true',[],'',''],
		['PAGE','20864',jdecode('Pre-Pointe+%26+Pointe'),jdecode(''), jdecode('%2F5722%2F20864.html'), 'true',[],'',''],
		['PAGE','20822',jdecode('Tap'),jdecode(''), jdecode('%2F5722%2F20822.html'), 'true',[],'',''],
		['PAGE','20990',jdecode('Tumble+Tots%2FMommy+%26+Me'),jdecode(''), jdecode('%2F5722%2F20990.html'), 'true',[],'','']
	],'',''],
	['PAGE','5701',jdecode('Class+Schedule'),jdecode(''), jdecode('%2F5701.html'), 'true',[],'',''],
	['PAGE','5401',jdecode('Contact+Us%21'),jdecode(''), jdecode('%2F5401.html'), 'true',[],'',''],
	['PAGE','10101',jdecode('Register+Online'),jdecode(''), jdecode('%2F10101.html'), 'true',[],'',''],
	['PAGE','13201',jdecode('Tuition'),jdecode(''), jdecode('%2F13201.html'), 'true',[],'',''],
	['PAGE','26301',jdecode('Newsletters'),jdecode(''), jdecode('%2F26301.html'), 'true',[],'',''],
	['PAGE','27201',jdecode('History'),jdecode(''), jdecode('%2F27201.html'), 'true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Applicant';
theSitetree.paletteFamily='D85D5D';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='26574';
theSitetree.graphicsetId='13385';
theSitetree.contentColor='4c4c4c';
theSitetree.contentBGColor='fda9a9';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'fatcow',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Applicant',
				paletteFamily: 	'D85D5D',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'26574',
				graphicsetId: 	'13385',
				contentColor: 	'4c4c4c',
				contentBGColor: 'fda9a9',
				a_color: 		'D85D5D',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20120217-195307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4252',
internalId:  '',
customField: '20120217-185604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20120217-184734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5722',
internalId:  '',
customField: '20110731-024131'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20110821-201657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20101012-204053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20110728-003201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20110821-200431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20110725-225355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20110730-212043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20110730-215210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20110821-210032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19622',
internalId:  '',
customField: '20110821-195718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20110730-234530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20822',
internalId:  '',
customField: '20110731-000446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20843',
internalId:  '',
customField: '20110731-005455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20864',
internalId:  '',
customField: '20110731-022355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20885',
internalId:  '',
customField: '20110731-014826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20906',
internalId:  '',
customField: '20110731-004705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20927',
internalId:  '',
customField: '20110731-020229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20948',
internalId:  '',
customField: '20110731-021138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20969',
internalId:  '',
customField: '20110731-012849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20990',
internalId:  '',
customField: '20110731-023028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21011',
internalId:  '',
customField: '20110731-015618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26301',
internalId:  '',
customField: '20120217-194821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21053',
internalId:  '',
customField: '20110731-013542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21074',
internalId:  '',
customField: '20110731-014147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20120217-183411'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INVAL0';
var companyName   = 'Time+To+Dance';
var htmlTitle	  = 'Time+To+Dance';
var metaKeywords  = 'Time+To+Dance%2C+Dance%2C+Studio%2C+Studios%2C+Western+New+York%2C+Niagara+Falls%2C+Lewiston%2C+Wheatfield%2C+Youngstown%2C+Sanborn%2C+14305%2C+14174%2C+14092%2C+WNY+Dance%2C';
var metaContents  = 'Time+To+Dance+is+a+dance+studio+in+Niagara+Falls%2C+NY.';
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();
};

