/* [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','1701',jdecode('HOMEPAGE'),jdecode(''), jdecode('%2F1701.html'), 'true',[],'',''],
	['PAGE','45612',jdecode('OUR+FACILITY'),jdecode(''), jdecode('%2F45612.html'), 'true',[],'',''],
	['PAGE','53712',jdecode('CLASSES%2FPROGRAMS'),jdecode(''), jdecode('%2F53712%2Findex.html'), 'true',[ 
		['PAGE','55612',jdecode('Rockdale+Program'),jdecode(''), jdecode('%2F53712%2F55612.html'), 'true',[],'',''],
		['PAGE','52612',jdecode('Madison+Program'),jdecode(''), jdecode('%2F53712%2F52612.html'), 'true',[],'',''],
		['PAGE','27112',jdecode('Monroe+Program'),jdecode(''), jdecode('%2F53712%2F27112.html'), 'true',[],'','']
	],'',''],
	['PAGE','35812',jdecode('PARENT%26%23x27%3BS+NIGHT+OUT%21%21'),jdecode(''), jdecode('%2F35812.html'), 'true',[],'',''],
	['PAGE','65212',jdecode('BIRTHDAY+PARTY'),jdecode(''), jdecode('%2F65212.html'), 'true',[],'',''],
	['PAGE','7022',jdecode('GYMNASTICS+TEAM'),jdecode(''), jdecode('%2F7022%2Findex.html'), 'true',[ 
		['PAGE','40112',jdecode('LEVEL+2+%26+3'),jdecode(''), jdecode('%2F7022%2F40112.html'), 'true',[],'',''],
		['PAGE','40133',jdecode('PREP+OP'),jdecode(''), jdecode('%2F7022%2F40133.html'), 'true',[],'',''],
		['PAGE','40154',jdecode('LEVEL+7+%26+8'),jdecode(''), jdecode('%2F7022%2F40154.html'), 'true',[],'',''],
		['PAGE','40175',jdecode('LEVEL+9+%26+10'),jdecode(''), jdecode('%2F7022%2F40175.html'), 'true',[],'',''],
		['PAGE','49012',jdecode('Floor+Music%21'),jdecode(''), jdecode('%2F7022%2F49012.html'), 'true',[],'','']
	],'',''],
	['PAGE','7322',jdecode('SUMMER+SCHEDULE'),jdecode(''), jdecode('%2F7322%2Findex.html'), 'true',[ 
		['PAGE','32133',jdecode('Summer+Sports+Day+Camp'),jdecode(''), jdecode('%2F7322%2F32133.html'), 'true',[],'',''],
		['PAGE','34912',jdecode('Fairy+Tale+Camp'),jdecode(''), jdecode('%2F7322%2F34912.html'), 'true',[],'',''],
		['PAGE','34933',jdecode('Swimming+Lessons+'),jdecode(''), jdecode('%2F7322%2F34933.html'), 'true',[],'',''],
		['ITEM','58112',jdecode('Summer+Gymnastics'),jdecode(''), jdecode('http%3A%2F%2Fwww.rockdalegymnastics.com%2F53712%2F55612.html'), 'true',[],'',''],
		['PAGE','34975',jdecode('Summer+Dance+Classes'),jdecode(''), jdecode('%2F7322%2F34975.html'), 'true',[],'',''],
		['PAGE','51112',jdecode('Cheer%2FDay+Camp'),jdecode(''), jdecode('%2F7322%2F51112.html'), 'true',[],'','']
	],'',''],
	['PAGE','7301',jdecode('FALL%2FSPRING+SCHEDULE'),jdecode(''), jdecode('%2F7301.html'), 'true',[],'',''],
	['PAGE','7001',jdecode('MEETS'),jdecode(''), jdecode('%2F7001%2Findex.html'), 'true',[ 
		['PAGE','70012',jdecode('Summer+Sizzler'),jdecode(''), jdecode('%2F7001%2F70012.html'), 'true',[],'',''],
		['PAGE','66112',jdecode('Freedom+Fest'),jdecode(''), jdecode('%2F7001%2F66112.html'), 'true',[],'',''],
		['PAGE','45112',jdecode('Hilton+Head+Invite'),jdecode(''), jdecode('%2F7001%2F45112.html'), 'true',[],'',''],
		['PAGE','7101',jdecode('Smokey+Mt.+Classic'),jdecode(''), jdecode('%2F7001%2F7101.html'), 'true',[],'',''],
		['PAGE','45133',jdecode('Courtney+Kupets+Invite'),jdecode(''), jdecode('%2F7001%2F45133.html'), 'true',[],'','']
	],'',''],
	['ITEM','55112',jdecode('CALENDAR'),jdecode(''), jdecode('http%3A%2F%2Frockdalegymnastics.com%2Fcalendar8%2F'), 'true',[],'','_blank'],
	['PAGE','1773',jdecode('CONTACT'),jdecode(''), jdecode('%2F1773%2Findex.html'), 'true',[ 
		['PAGE','1794',jdecode('Email+Us'),jdecode(''), jdecode('%2F1773%2F1794.html'), 'true',[],'','']
	],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='CC3333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='439';
theSitetree.graphicsetId='495';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='e47272';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp13-cbeyon',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Round',
				paletteFamily: 	'CC3333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'439',
				graphicsetId: 	'495',
				contentColor: 	'FFFFFF',
				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['7008']=webappMappings['7008-15025']={
webappId:    '7008',
documentId:  '1794',
internalId:  '15025',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20110517-190340'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20110517-202018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20110126-205203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20100812-083129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1773',
internalId:  '',
customField: '20110105-230459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1794',
internalId:  '',
customField: '20100217-182116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20110425-164946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20101118-151257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27112',
internalId:  '',
customField: '20110105-230140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32133',
internalId:  '',
customField: '20110517-190504'
};
webappMappings['1501']=webappMappings['1501-16032904']={
webappId:    '1501',
documentId:  '1701',
internalId:  '16032904',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35812',
internalId:  '',
customField: '20100513-141204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34912',
internalId:  '',
customField: '20110419-143526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34933',
internalId:  '',
customField: '20110419-141955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65212',
internalId:  '',
customField: '20100628-142413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34975',
internalId:  '',
customField: '20100520-123404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40112',
internalId:  '',
customField: '20101118-151317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40133',
internalId:  '',
customField: '20100513-135932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40154',
internalId:  '',
customField: '20100513-140001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40175',
internalId:  '',
customField: '20100513-140044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45112',
internalId:  '',
customField: '20110201-195509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45133',
internalId:  '',
customField: '20110103-192332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45612',
internalId:  '',
customField: '20100624-231302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49012',
internalId:  '',
customField: '20100624-230622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51112',
internalId:  '',
customField: '20100520-184818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52612',
internalId:  '',
customField: '20100701-124857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53712',
internalId:  '',
customField: '20100525-115514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55612',
internalId:  '',
customField: '20110420-153203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66112',
internalId:  '',
customField: '20100701-124756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70012',
internalId:  '',
customField: '20101025-123013'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7C7KK';
var companyName   = 'Rockdale+Gymnastics%2C+Cheerleading+%26+Dance';
var htmlTitle	  = 'Rockdale+Gymnastics%2C+Cheerleading%2C+and+Dance';
var metaKeywords  = 'Rockdale+Conyers++gymnast+gymnastics+vault+beam+bars+gym+dance+karate+swim+lessons+teaching+teach+instructor+dancers+classes+Walton+county+Newton+Covington+kids+activities+birthday+parties+party+summer+camp+sports+tricking+bboy+bboying+breakdance+breakdancing+break+power+tumbling+Loganville+Madison+Monroe+squad+cheer+cheerleading+cheerlead+recreational+recreation+flyer+flying+stunt+base+stunter+high+school+middle+mommy+mom+trickster+camp+workshop+jumps+motions+beginner+intermediate+advanced+swimming+Atlanta+sports+Atl+George+Madison+GA+Georgia+';
var metaContents  = 'Rockdale+Gymnastics%2C+Cheerleading%2C+and+Dance.+Providing+gymnastics+for+kids+of+all+ages+for+more+than+25+years.';
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();
};

