/* [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','96401',jdecode('Home'),jdecode(''),'/96401/index.html','true',[ 
		['PAGE','32801',jdecode('About+Taekwon-Do%3F'),jdecode(''),'/96401/32801.html','true',[],'',''],
		['PAGE','58001',jdecode('The+Technique'),jdecode(''),'/96401/58001.html','true',[],'',''],
		['PAGE','52001',jdecode('Gen.+Choi+Founding+Father'),jdecode(''),'/96401/52001.html','true',[],'',''],
		['PAGE','32843',jdecode('Master+Michael+Daher'),jdecode(''),'/96401/32843.html','true',[],'',''],
		['PAGE','32822',jdecode('Instructor+Profile'),jdecode(''),'/96401/32822.html','true',[],'',''],
		['PAGE','73401',jdecode('Supporters+%26+Friends'),jdecode(''),'/96401/73401.html','true',[],'','']
	],'',''],
	['PAGE','652',jdecode('Classes'),jdecode(''),'/652.html','true',[],'',''],
	['PAGE','32927',jdecode('Packages'),jdecode(''),'/32927/index.html','true',[ 
		['PAGE','32948',jdecode('Introductory+Offer'),jdecode(''),'/32927/32948.html','true',[],'','']
	],'',''],
	['PAGE','673',jdecode('Events+%2F+Calendar'),jdecode(''),'/673/index.html','true',[ 
		['PAGE','32990',jdecode('Tournament+-+CC+ITF'),jdecode(''),'/673/32990.html','true',[],'',''],
		['PAGE','33011',jdecode('Seminar+-+IIC+2008'),jdecode(''),'/673/33011.html','true',[],'',''],
		['PAGE','80201',jdecode('Seminar+-+Ncle+Nov+08'),jdecode(''),'/673/80201.html','true',[],'',''],
		['PAGE','71101',jdecode('Gradings+-+Ncle+Nov+08'),jdecode(''),'/673/71101.html','true',[],'',''],
		['PAGE','55201',jdecode('Fun+Day'),jdecode(''),'/673/55201.html','true',[],'','']
	],'',''],
	['PAGE','33032',jdecode('Student+Diaries'),jdecode(''),'/33032/index.html','true',[ 
		['PAGE','41601',jdecode('Achievement+Awards'),jdecode(''),'/33032/41601.html','true',[],'',''],
		['PAGE','33074',jdecode('Birthdays'),jdecode(''),'/33032/33074.html','true',[],'','']
	],'',''],
	['PAGE','33053',jdecode('Theory+Notes'),jdecode(''),'/33053/index.html','true',[ 
		['PAGE','85001',jdecode('Rules+of+Conduct'),jdecode(''),'/33053/85001.html','true',[],'',''],
		['PAGE','86801',jdecode('White+Belt'),jdecode(''),'/33053/86801.html','true',[],'',''],
		['PAGE','82201',jdecode('White+Belt+%2F+Yellow+Tip'),jdecode(''),'/33053/82201.html','true',[],'',''],
		['PAGE','82222',jdecode('Yellow+Belt'),jdecode(''),'/33053/82222.html','true',[],'',''],
		['PAGE','82243',jdecode('Yellow+Belt+%2F+Green+Tip'),jdecode(''),'/33053/82243.html','true',[],'',''],
		['PAGE','82264',jdecode('Green+Belt'),jdecode(''),'/33053/82264.html','true',[],'',''],
		['PAGE','82285',jdecode('Green+Belt+%2F+Blue+Tip'),jdecode(''),'/33053/82285.html','true',[],'',''],
		['PAGE','82306',jdecode('Blue+Belt'),jdecode(''),'/33053/82306.html','true',[],'',''],
		['PAGE','85801',jdecode('Blue+Belt+%2F+Red+Tip'),jdecode(''),'/33053/85801.html','true',[],'',''],
		['PAGE','85822',jdecode('Red+Belt'),jdecode(''),'/33053/85822.html','true',[],'',''],
		['PAGE','85843',jdecode('Red+Belt+%2F+Red+Tip'),jdecode(''),'/33053/85843.html','true',[],'',''],
		['PAGE','85864',jdecode('1st+Dan+Black+Belt'),jdecode(''),'/33053/85864.html','true',[],'','']
	],'',''],
	['PAGE','65401',jdecode('News'),jdecode(''),'/65401.html','true',[],'',''],
	['PAGE','63801',jdecode('Photo+Gallery'),jdecode(''),'/63801.html','true',[],'',''],
	['PAGE','33137',jdecode('Links'),jdecode(''),'/33137.html','true',[],'',''],
	['PAGE','63306',jdecode('Guestbook'),jdecode(''),'/63306.html','true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Urban';
theSitetree.paletteFamily='FFA521';
theSitetree.keyvisualId='12180';
theSitetree.keyvisualName='kv_12180.jpg';
theSitetree.fontsetId='33332';
theSitetree.graphicsetId='14204';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Urban',
				paletteFamily: 	'FFA521',
				keyvisualId: 	'12180',
				keyvisualName: 	'kv_12180.jpg',
				fontsetId: 		'33332',
				graphicsetId: 	'14204',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Palatino Linotype, Book Antiqua, Palatino, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-52d9fa83aad44bb80a870be66c9b1356']={
webappId:    '7060',
documentId:  '63801',
internalId:  '52d9fa83aad44bb80a870be66c9b1356',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82264',
internalId:  '',
customField: '20100926-221400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82243',
internalId:  '',
customField: '20100926-221029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85801',
internalId:  '',
customField: '20090409-060345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85822',
internalId:  '',
customField: '20090409-060345'
};
webappMappings['1501']=webappMappings['1501-14547967']={
webappId:    '1501',
documentId:  '96401',
internalId:  '14547967',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '96401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32801',
internalId:  '',
customField: '20080816-050911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58001',
internalId:  '',
customField: '20080816-052245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52001',
internalId:  '',
customField: '20080816-050156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32843',
internalId:  '',
customField: '20080817-210235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32822',
internalId:  '',
customField: '20100808-222240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73401',
internalId:  '',
customField: '20100422-175651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20100804-232650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32927',
internalId:  '',
customField: '20100617-060421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32948',
internalId:  '',
customField: '20100808-221034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85001',
internalId:  '',
customField: '20090409-053456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20100926-215931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32990',
internalId:  '',
customField: '20081026-201257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33011',
internalId:  '',
customField: '20080816-054130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80201',
internalId:  '',
customField: '20081116-181628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71101',
internalId:  '',
customField: '20081026-201347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55201',
internalId:  '',
customField: '20080915-222723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33032',
internalId:  '',
customField: '20100808-222057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41601',
internalId:  '',
customField: '20090623-212231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33074',
internalId:  '',
customField: '20090918-050707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33053',
internalId:  '',
customField: '20100926-220146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65401',
internalId:  '',
customField: '20080915-190610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82201',
internalId:  '',
customField: '20100926-220741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82222',
internalId:  '',
customField: '20100926-220915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63801',
internalId:  '',
customField: '20080816-083503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33137',
internalId:  '',
customField: '20080816-054255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63306',
internalId:  '',
customField: '20080829-195613'
};
webappMappings['7008']=webappMappings['7008-3617']={
webappId:    '7008',
documentId:  '96401',
internalId:  '3617',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82285',
internalId:  '',
customField: '20100926-221541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82306',
internalId:  '',
customField: '20100926-221748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85843',
internalId:  '',
customField: '20090409-060345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85864',
internalId:  '',
customField: '20090409-060345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86801',
internalId:  '',
customField: '20100926-220554'
};
webappMappings['1002']=webappMappings['1002-63306aen010inlb20']={
webappId:    '1002',
documentId:  '63306',
internalId:  '63306aen010inlb20',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96401',
internalId:  '',
customField: '20100804-230127'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INLB20';
var companyName   = '%27IL+Shim+Newcastle%27+-+Beat+The+Bullies';
var htmlTitle	  = 'ITF+Taekwon-Do+Newcastle';
var metaKeywords  = 'taekwondo+newcastle%2C+itf+taekwondo%2C+itf+taekwondo+newcastle%2C+martial+arts%2C+kids+sport%2C+fitness+newcastle.';
var metaContents  = 'IL+Shim+Taekwondo+%2F+Prostyle+Fitness+is+a+newly+formed+club+in+the+newcastle+area%2C+for+beginners%2C+children+and+adults%21..+Including+specialty+classes+for+children+as+young+as+4+years%21++A+more+traditional+and+disciplined+class+for+ages+8+years+%2B%2C+plus+an+adults%2C++fun%2C+fitness+and+self+defense+class+for+the+health+conscious+or+just+for+a+social+outing+with+a+kick......';
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();
};

