/* [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(''),'/1701.html','true',[],'',''],
	['PAGE','45612',jdecode('OUR+FACILITY'),jdecode(''),'/45612.html','true',[],'',''],
	['PAGE','53712',jdecode('CLASSES%2FPROGRAMS'),jdecode(''),'/53712/index.html','true',[ 
		['PAGE','55612',jdecode('Rockdale+Program'),jdecode(''),'/53712/55612.html','true',[],'',''],
		['PAGE','52612',jdecode('Madison+Program'),jdecode(''),'/53712/52612.html','true',[],'',''],
		['PAGE','27112',jdecode('Monroe+Program'),jdecode(''),'/53712/27112.html','true',[],'','']
	],'',''],
	['PAGE','35812',jdecode('PARENT%26%23x27%3BS+NIGHT+OUT%21%21'),jdecode(''),'/35812.html','true',[],'',''],
	['PAGE','65212',jdecode('BIRTHDAY+PARTY'),jdecode(''),'/65212.html','true',[],'',''],
	['PAGE','7022',jdecode('GYMNASTICS+TEAM'),jdecode(''),'/7022/index.html','true',[ 
		['PAGE','40112',jdecode('LEVEL+2+%26+3'),jdecode(''),'/7022/40112.html','true',[],'',''],
		['PAGE','40133',jdecode('PREP+OP'),jdecode(''),'/7022/40133.html','true',[],'',''],
		['PAGE','40154',jdecode('LEVEL+7+%26+8'),jdecode(''),'/7022/40154.html','true',[],'',''],
		['PAGE','40175',jdecode('LEVEL+9+%26+10'),jdecode(''),'/7022/40175.html','true',[],'',''],
		['PAGE','49012',jdecode('Floor+Music%21'),jdecode(''),'/7022/49012.html','true',[],'','']
	],'',''],
	['PAGE','7322',jdecode('SUMMER+SCHEDULE'),jdecode(''),'/7322/index.html','true',[ 
		['PAGE','32133',jdecode('Summer+Sports+Day+Camp'),jdecode(''),'/7322/32133.html','true',[],'',''],
		['PAGE','34912',jdecode('Fairy+Tale+Camp'),jdecode(''),'/7322/34912.html','true',[],'',''],
		['PAGE','34933',jdecode('Swimming+Lessons+2010'),jdecode(''),'/7322/34933.html','true',[],'',''],
		['ITEM','58112',jdecode('Summer+Gymnastics'),jdecode(''),'http://www.rockdalegymnastics.com/53712/55612.html','true',[],'',''],
		['PAGE','34975',jdecode('Summer+Dance+Classes'),jdecode(''),'/7322/34975.html','true',[],'',''],
		['PAGE','51112',jdecode('Cheer%2FDay+Camp'),jdecode(''),'/7322/51112.html','true',[],'','']
	],'',''],
	['PAGE','7301',jdecode('FALL%2FSPRING+SCHEDULE'),jdecode(''),'/7301.html','true',[],'',''],
	['PAGE','7001',jdecode('MEETS'),jdecode(''),'/7001/index.html','true',[ 
		['PAGE','66112',jdecode('Freedom+Fest'),jdecode(''),'/7001/66112.html','true',[],'',''],
		['PAGE','45112',jdecode('Hilton+Head+Invite'),jdecode(''),'/7001/45112.html','true',[],'',''],
		['PAGE','7101',jdecode('Smokey+Mt.+Classic'),jdecode(''),'/7001/7101.html','true',[],'',''],
		['PAGE','45133',jdecode('Courtney+Kupets+Invite'),jdecode(''),'/7001/45133.html','true',[],'','']
	],'',''],
	['ITEM','55112',jdecode('CALENDAR'),jdecode(''),'http://rockdalegymnastics.com/calendar8/','true',[],'','_blank'],
	['PAGE','1773',jdecode('CONTACT'),jdecode(''),'/1773/index.html','true',[ 
		['PAGE','1794',jdecode('Email+Us'),jdecode(''),'/1773/1794.html','true',[],'','']
	],'','']];
var siteelementCount=30;
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 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: '20100722-123815'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20100513-124727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20100416-171540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20100219-094024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1773',
internalId:  '',
customField: '20100512-142514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1794',
internalId:  '',
customField: '20100217-182116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20100520-183751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20100624-230314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27112',
internalId:  '',
customField: '20100623-175147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32133',
internalId:  '',
customField: '20100520-124508'
};
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: '20100623-174857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34933',
internalId:  '',
customField: '20100520-113828'
};
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: '20100513-135906'
};
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: '20100708-174607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45133',
internalId:  '',
customField: '20100708-174246'
};
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: '20100520-122752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66112',
internalId:  '',
customField: '20100701-124756'
};
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();
};
