/* [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','2001',jdecode('Home'),jdecode(''), jdecode('%2F2001.html'), 'true',[],'',''],
	['PAGE','142837',jdecode('Current+Events'),jdecode(''), jdecode('%2F142837.html'), 'true',[],'',''],
	['PAGE','127237',jdecode('What+Is+TKD%3F'),jdecode(''), jdecode('%2F127237.html'), 'true',[],'',''],
	['PAGE','42401',jdecode('Master+Yu'),jdecode(''), jdecode('%2F42401%2Findex.html'), 'true',[ 
		['PAGE','120837',jdecode('Master+Yu%26%23x27%3Bs+Gallery'),jdecode(''), jdecode('%2F42401%2F120837.html'), 'true',[],'','']
	],'',''],
	['PAGE','110501',jdecode('Self+Control'),jdecode(''), jdecode('%2F110501.html'), 'true',[],'',''],
	['PAGE','15601',jdecode('Our+Classes'),jdecode(''), jdecode('%2F15601%2Findex.html'), 'true',[ 
		['PAGE','116737',jdecode('Little+Dragons'),jdecode(''), jdecode('%2F15601%2F116737.html'), 'true',[],'',''],
		['PAGE','116758',jdecode('Fire'),jdecode(''), jdecode('%2F15601%2F116758.html'), 'true',[],'',''],
		['PAGE','116779',jdecode('Wind'),jdecode(''), jdecode('%2F15601%2F116779.html'), 'true',[],'',''],
		['PAGE','116800',jdecode('Water'),jdecode(''), jdecode('%2F15601%2F116800.html'), 'true',[],'',''],
		['PAGE','116821',jdecode('Earth'),jdecode(''), jdecode('%2F15601%2F116821.html'), 'true',[],'','']
	],'',''],
	['PAGE','15485',jdecode('Contact+Us'),jdecode(''), jdecode('%2F15485.html'), 'true',[],'',''],
	['PAGE','113756',jdecode('Belt+Testing'),jdecode(''), jdecode('%2F113756.html'), 'true',[],'',''],
	['PAGE','113777',jdecode('Student+Resources'),jdecode(''), jdecode('%2F113777%2Findex.html'), 'true',[ 
		['PAGE','113798',jdecode('Dojang+Rules+%26+Conduct'),jdecode(''), jdecode('%2F113777%2F113798.html'), 'true',[],'',''],
		['PAGE','113840',jdecode('Glossary+of+Terms'),jdecode(''), jdecode('%2F113777%2F113840.html'), 'true',[],'',''],
		['PAGE','121737',jdecode('Korean+Counting'),jdecode(''), jdecode('%2F113777%2F121737.html'), 'true',[],'',''],
		['PAGE','118837',jdecode('T%26%23x27%3Bae+Geuk+Ki'),jdecode(''), jdecode('%2F113777%2F118837.html'), 'true',[],'',''],
		['PAGE','113861',jdecode('WTF+Poomse+%28Forms%29'),jdecode(''), jdecode('%2F113777%2F113861.html'), 'true',[],'','']
	],'',''],
	['PAGE','15622',jdecode('Pictures'),jdecode(''), jdecode('%2F15622%2Findex.html'), 'true',[ 
		['PAGE','30601',jdecode('October+2009+Belt+Test'),jdecode(''), jdecode('%2F15622%2F30601.html'), 'true',[],'',''],
		['PAGE','51101',jdecode('February+2010+Belt+Test'),jdecode(''), jdecode('%2F15622%2F51101.html'), 'true',[],'',''],
		['PAGE','107301',jdecode('April+2010+Belt+Test'),jdecode(''), jdecode('%2F15622%2F107301.html'), 'true',[],'',''],
		['PAGE','112901',jdecode('August+2010+Belt+Test'),jdecode(''), jdecode('%2F15622%2F112901.html'), 'true',[],'',''],
		['PAGE','136237',jdecode('Ninja+Night+2010'),jdecode(''), jdecode('%2F15622%2F136237.html'), 'true',[],'',''],
		['PAGE','140937',jdecode('Ninja+Night+3%2C+Feb+2011'),jdecode(''), jdecode('%2F15622%2F140937.html'), 'true',[],'',''],
		['PAGE','139037',jdecode('January+2011+Belt+Test'),jdecode(''), jdecode('%2F15622%2F139037.html'), 'true',[],'','']
	],'',''],
	['PAGE','148737',jdecode('Just+pictures'),jdecode(''), jdecode('%2F148737.html'), 'true',[],'',''],
	['PAGE','113101',jdecode('Videos'),jdecode(''), jdecode('%2F113101.html'), 'true',[],'',''],
	['PAGE','142437',jdecode('Summer+Camp+Info'),jdecode(''), jdecode('%2F142437.html'), 'true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Logg';
theSitetree.paletteFamily='3D4B78';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='422';
theSitetree.graphicsetId='467';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3D4B78';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Logg',
				paletteFamily: 	'3D4B78',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'422',
				graphicsetId: 	'467',
				contentColor: 	'FFFFFF',
				contentBGColor: '3D4B78',
				a_color: 		'3D4B78',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20110412-105217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113798',
internalId:  '',
customField: '20100823-224343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142437',
internalId:  '',
customField: '20110405-084921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15485',
internalId:  '',
customField: '20091029-181757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140937',
internalId:  '',
customField: '20110403-160028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113756',
internalId:  '',
customField: '20100902-102158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20120116-134635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15622',
internalId:  '',
customField: '20110214-135558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113777',
internalId:  '',
customField: '20100825-132156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120837',
internalId:  '',
customField: '20110214-112948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127237',
internalId:  '',
customField: '20100901-140152'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20100825-143131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42401',
internalId:  '',
customField: '20100826-130442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136237',
internalId:  '',
customField: '20101227-190138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20100825-153609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112901',
internalId:  '',
customField: '20100821-111214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107301',
internalId:  '',
customField: '20100825-153758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110501',
internalId:  '',
customField: '20100821-101801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113101',
internalId:  '',
customField: '20100821-111807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142837',
internalId:  '',
customField: '20120116-135013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113840',
internalId:  '',
customField: '20100827-111316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113861',
internalId:  '',
customField: '20100831-154228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116737',
internalId:  '',
customField: '20101221-105517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116758',
internalId:  '',
customField: '20101221-105954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116779',
internalId:  '',
customField: '20101221-105937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116800',
internalId:  '',
customField: '20101221-105838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116821',
internalId:  '',
customField: '20101221-105920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148737',
internalId:  '',
customField: '20110821-224115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118837',
internalId:  '',
customField: '20100825-133010'
};
webappMappings['7060']=webappMappings['7060-c6fd56b5cd659ab17f40e9651e7dbcde']={
webappId:    '7060',
documentId:  '15622',
internalId:  'c6fd56b5cd659ab17f40e9651e7dbcde',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-7d70044851fb6e94029640f7ccdfaed0']={
webappId:    '7060',
documentId:  '30601',
internalId:  '7d70044851fb6e94029640f7ccdfaed0',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-2e39cd6462b7c1e3ded43b5d96e54719']={
webappId:    '7060',
documentId:  '139037',
internalId:  '2e39cd6462b7c1e3ded43b5d96e54719',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-0fa1251f92bc4f36cefd17c9e36183d3']={
webappId:    '7060',
documentId:  '51101',
internalId:  '0fa1251f92bc4f36cefd17c9e36183d3',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-9320edd306fabf2b0faf377a306360aa']={
webappId:    '7060',
documentId:  '107301',
internalId:  '9320edd306fabf2b0faf377a306360aa',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-0ebdded450406e0e5206148faa8c0c6b']={
webappId:    '7060',
documentId:  '112901',
internalId:  '0ebdded450406e0e5206148faa8c0c6b',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121737',
internalId:  '',
customField: '20100827-155354'
};
webappMappings['7060']=webappMappings['7060-5634d0f0de42741cc141a548c81163ef']={
webappId:    '7060',
documentId:  '120837',
internalId:  '5634d0f0de42741cc141a548c81163ef',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139037',
internalId:  '',
customField: '20110307-101605'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHTVU';
var companyName   = 'New+Revolution+Tae+Kwon+Do';
var htmlTitle	  = 'New+Revolution+Tae+Kwon+Do%2C+Athens%2C+GA';
var metaKeywords  = '';
var metaContents  = '';
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();
};

