/* [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','3601',jdecode('Home'),jdecode(''), jdecode('%2F3601.html'), 'true',[],'',''],
	['PAGE','3652',jdecode('Onde+estamos'),jdecode(''), jdecode('%2F3652.html'), 'true',[],'',''],
	['PAGE','3715',jdecode('Quem+somos'),jdecode(''), jdecode('%2F3715%2Findex.html'), 'true',[ 
		['PAGE','3736',jdecode('Taiyokan'),jdecode(''), jdecode('%2F3715%2F3736.html'), 'true',[],'',''],
		['PAGE','3757',jdecode('M%C3%A9todo+DKC'),jdecode(''), jdecode('%2F3715%2F3757.html'), 'true',[],'','']
	],'',''],
	['PAGE','82501',jdecode('Federa%C3%A7%C3%B5es'),jdecode(''), jdecode('%2F82501.html'), 'true',[],'',''],
	['PAGE','3673',jdecode('Hor%C3%A1rios+de+aulas'),jdecode(''), jdecode('%2F3673.html'), 'true',[],'',''],
	['PAGE','56001',jdecode('Hor%C3%A1rios+de+funcionamento'),jdecode(''), jdecode('%2F56001.html'), 'true',[],'',''],
	['PAGE','13301',jdecode('M%C3%A9todo+de+ensino'),jdecode(''), jdecode('%2F13301%2Findex.html'), 'true',[ 
		['PAGE','13701',jdecode('Hist%C3%B3ria+do+Karat%C3%AA'),jdecode(''), jdecode('%2F13301%2F13701.html'), 'true',[],'',''],
		['PAGE','13322',jdecode('Gradua%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F13301%2F13322.html'), 'true',[],'',''],
		['PAGE','13343',jdecode('Kata'),jdecode(''), jdecode('%2F13301%2F13343.html'), 'true',[],'',''],
		['PAGE','13364',jdecode('Embusen'),jdecode(''), jdecode('%2F13301%2F13364.html'), 'true',[],'',''],
		['PAGE','31401',jdecode('Bunkai'),jdecode(''), jdecode('%2F13301%2F31401.html'), 'true',[],'',''],
		['PAGE','13385',jdecode('Kihon'),jdecode(''), jdecode('%2F13301%2F13385.html'), 'true',[],'',''],
		['PAGE','13406',jdecode('Kiai'),jdecode(''), jdecode('%2F13301%2F13406.html'), 'true',[],'',''],
		['PAGE','13427',jdecode('Kumite'),jdecode(''), jdecode('%2F13301%2F13427.html'), 'true',[],'','']
	],'',''],
	['PAGE','5243',jdecode('Planos+do+Curso'),jdecode(''), jdecode('%2F5243%2Findex.html'), 'true',[ 
		['PAGE','5264',jdecode('Karate+Infantil+e+Adulto'),jdecode(''), jdecode('%2F5243%2F5264.html'), 'true',[],'','']
	],'',''],
	['PAGE','5601',jdecode('Eventos'),jdecode(''), jdecode('%2F5601.html'), 'true',[],'',''],
	['PAGE','5622',jdecode('Shihan+%C3%89dnei'),jdecode(''), jdecode('%2F5622.html'), 'true',[],'',''],
	['PAGE','5501',jdecode('Album+de+Fotos'),jdecode(''), jdecode('%2F5501%2Findex.html'), 'true',[ 
		['PAGE','93212',jdecode('4+e+5%2F02%2F2012'),jdecode(''), jdecode('%2F5501%2F93212.html'), 'true',[],'',''],
		['PAGE','87401',jdecode('04%2F12%2F2012'),jdecode(''), jdecode('%2F5501%2F87401.html'), 'true',[],'',''],
		['PAGE','86501',jdecode('03%2F12%2F2011'),jdecode(''), jdecode('%2F5501%2F86501.html'), 'true',[],'',''],
		['PAGE','70901',jdecode('24%2F09%2F2011'),jdecode(''), jdecode('%2F5501%2F70901.html'), 'true',[],'',''],
		['PAGE','62001',jdecode('24%2F07%2F2011'),jdecode(''), jdecode('%2F5501%2F62001.html'), 'true',[],'',''],
		['PAGE','51701',jdecode('15%2F06%2F2011'),jdecode(''), jdecode('%2F5501%2F51701.html'), 'true',[],'',''],
		['PAGE','39901',jdecode('06%2F04%2F2011'),jdecode(''), jdecode('%2F5501%2F39901.html'), 'true',[],'',''],
		['PAGE','21101',jdecode('27%2F02%2F2011'),jdecode(''), jdecode('%2F5501%2F21101.html'), 'true',[],'',''],
		['PAGE','32701',jdecode('04%2F07%2F2010'),jdecode(''), jdecode('%2F5501%2F32701.html'), 'true',[],'',''],
		['PAGE','20101',jdecode('30%2F05%2F2010'),jdecode(''), jdecode('%2F5501%2F20101.html'), 'true',[],'',''],
		['PAGE','30284',jdecode('6+e+7%2F02%2F2010'),jdecode(''), jdecode('%2F5501%2F30284.html'), 'true',[],'','']
	],'',''],
	['PAGE','5201',jdecode('Videos'),jdecode(''), jdecode('%2F5201.html'), 'true',[],'',''],
	['PAGE','34301',jdecode('Redes+Sociais'),jdecode(''), jdecode('%2F34301.html'), 'true',[],'',''],
	['PAGE','5523',jdecode('Imprensa'),jdecode(''), jdecode('%2F5523.html'), 'true',[],'',''],
	['PAGE','5222',jdecode('Contato'),jdecode(''), jdecode('%2F5222.html'), 'true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Match';
theSitetree.paletteFamily='8FB7DA';
theSitetree.keyvisualId='2712';
theSitetree.keyvisualName='kv_2712.jpg';
theSitetree.fontsetId='10404';
theSitetree.graphicsetId='10632';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CDE4F7';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Match',
				paletteFamily: 	'8FB7DA',
				keyvisualId: 	'2712',
				keyvisualName: 	'kv_2712.jpg',
				fontsetId: 		'10404',
				graphicsetId: 	'10632',
				contentColor: 	'000000',
				contentBGColor: 'CDE4F7',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'EE0202',
				e_color: 		'707070',
				f_color: 		'707070',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20120210-131254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3652',
internalId:  '',
customField: '20110921-163653'
};
webappMappings['7008']=webappMappings['7008-22670']={
webappId:    '7008',
documentId:  '5222',
internalId:  '22670',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-e2a7b5b933fda79e4dc2ba4a444c57c8']={
webappId:    '7060',
documentId:  '20101',
internalId:  'e2a7b5b933fda79e4dc2ba4a444c57c8',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20110930-135535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5222',
internalId:  '',
customField: '20110921-163604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3673',
internalId:  '',
customField: '20120116-092749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3715',
internalId:  '',
customField: '20110921-145353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3736',
internalId:  '',
customField: '20111112-171941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5243',
internalId:  '',
customField: '20110921-153334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20120108-130623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3757',
internalId:  '',
customField: '20110921-145603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20110921-155441'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-12247219']={
webappId:    '1501',
documentId:  '3601',
internalId:  '12247219',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5264',
internalId:  '',
customField: '20110921-153624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5622',
internalId:  '',
customField: '20110726-172847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5523',
internalId:  '',
customField: '20110921-163402'
};
webappMappings['7060']=webappMappings['7060-070da7bb27c422574badeb48fb5f30f9']={
webappId:    '7060',
documentId:  '39901',
internalId:  '070da7bb27c422574badeb48fb5f30f9',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20110921-153203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13322',
internalId:  '',
customField: '20110921-162416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20110921-162333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13343',
internalId:  '',
customField: '20110921-162438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13385',
internalId:  '',
customField: '20110921-162600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13406',
internalId:  '',
customField: '20110921-162632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13427',
internalId:  '',
customField: '20110216-210518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13364',
internalId:  '',
customField: '20110921-162509'
};
webappMappings['7060']=webappMappings['7060-8bd63491220ddc438943848ce9cb94e3']={
webappId:    '7060',
documentId:  '13364',
internalId:  '8bd63491220ddc438943848ce9cb94e3',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20110921-155927'
};
webappMappings['7060']=webappMappings['7060-de8d9977069ed8458bf44ff68434fbb3']={
webappId:    '7060',
documentId:  '21101',
internalId:  'de8d9977069ed8458bf44ff68434fbb3',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20110921-155745'
};
webappMappings['7060']=webappMappings['7060-baa702ac7d29a06112c25221aa95c653']={
webappId:    '7060',
documentId:  '30284',
internalId:  'baa702ac7d29a06112c25221aa95c653',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30284',
internalId:  '',
customField: '20110921-155951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31401',
internalId:  '',
customField: '20110921-162535'
};
webappMappings['7060']=webappMappings['7060-9b2533426787b03370856144e9ba8ad7']={
webappId:    '7060',
documentId:  '32701',
internalId:  '9b2533426787b03370856144e9ba8ad7',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39901',
internalId:  '',
customField: '20110921-155630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32701',
internalId:  '',
customField: '20110921-155823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20110921-163327'
};
webappMappings['7060']=webappMappings['7060-ea8368cc05d02776c50162aeaa89c2a3']={
webappId:    '7060',
documentId:  '51701',
internalId:  'ea8368cc05d02776c50162aeaa89c2a3',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51701',
internalId:  '',
customField: '20110921-155600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56001',
internalId:  '',
customField: '20111012-124606'
};
webappMappings['7060']=webappMappings['7060-19ca5fc5b33abfb8f0c807263208ef75']={
webappId:    '7060',
documentId:  '62001',
internalId:  '19ca5fc5b33abfb8f0c807263208ef75',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62001',
internalId:  '',
customField: '20110921-155536'
};
webappMappings['7008']=webappMappings['7008-27162']={
webappId:    '7008',
documentId:  '3673',
internalId:  '27162',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-931cce7fd3a654ae5692073adfb558c8']={
webappId:    '7060',
documentId:  '70901',
internalId:  '931cce7fd3a654ae5692073adfb558c8',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70901',
internalId:  '',
customField: '20110927-122059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82501',
internalId:  '',
customField: '20111024-090706'
};
webappMappings['7060']=webappMappings['7060-4e154d2624f20d4eb4edeb41aecff3a0']={
webappId:    '7060',
documentId:  '86501',
internalId:  '4e154d2624f20d4eb4edeb41aecff3a0',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86501',
internalId:  '',
customField: '20111205-103113'
};
webappMappings['7060']=webappMappings['7060-65926bce23c54de328ec99dc57901a18']={
webappId:    '7060',
documentId:  '87401',
internalId:  '65926bce23c54de328ec99dc57901a18',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87401',
internalId:  '',
customField: '20111205-102626'
};
webappMappings['7060']=webappMappings['7060-f6a3a93774fb25a981e7831b7cc73359']={
webappId:    '7060',
documentId:  '93212',
internalId:  'f6a3a93774fb25a981e7831b7cc73359',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93212',
internalId:  '',
customField: '20120210-131517'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7KA4Q';
var companyName   = 'KARATE+TAIYOKAN';
var htmlTitle	  = 'Bem+vindo+ao+KARATE+TAIYOKAN';
var metaKeywords  = 'carate+do+karate+do+carate+shotokan+karate+abc+artes+marciais+karate+games+karate+santo+andre+karate+dojo+karate+club+karate+kata+karate+school+karate+shotokan+arte+marcial+crian%C3%A7as++karate+kid+lutas+kids+karate+karate+sport+school+karate+curso+defesa+pessoal+artigos+para+artes+marciais+lutas+marciais+combate+a+violencia+taiyokan+karate+para+crian%C3%A7as+%C3%A9dnei++albigezi+parque+das+na%C3%A7%C3%B5es+pq+das+na%C3%A7%C3%B5es+arte+marcial+para+crian%C3%A7a+carate+abc+';
var metaContents  = 'Karate+Taiyokan%2C+estilo+de+Karate+derivado+do+estilo+Shotokan%2C+criado+em+18%2F03%2F1993%2C+pelos+professores+%C3%89dnei+Albigezi+e+Cristiano+Verni.++O+Taiyokan+diferencia+dos+demais+estilos+pela+sua+metodologia+pr%C3%B3pria+de+ensino%2C+utilizando+os+m%C3%A9todos+tradicionais%2C+juntamente+com+as+mais+modernas+t%C3%A9cnicas+de+ensino%2C+amparado+de+embasamentos+cient%C3%ADficos+e+modernos%2C+em+prol+de+efic%C3%A1cia+t%C3%A9cnica+e+pr%C3%A1tica+saud%C3%A1vel%21++Venha+fazer+parte+da+Familia+Taiyokan%21%21';
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();
};

