/* [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','12',jdecode('Home'),jdecode(''),'/12/index.html','true',[ 
		['PAGE','33',jdecode('Quem+somos'),jdecode(''),'/12/33.html','true',[],'',''],
		['PAGE','1081',jdecode('+++++Dra+Mara+Behlau'),jdecode(''),'/12/1081.html','true',[],'',''],
		['PAGE','1090',jdecode('++Me+Gisele+Oliveira'),jdecode(''),'/12/1090.html','true',[],'','']
	],'',''],
	['PAGE','96',jdecode('Cursos'),jdecode(''),'/96/index.html','true',[ 
		['PAGE','1145',jdecode('Especializa%C3%A7%C3%A3o+em+Voz'),jdecode(''),'/96/1145.html','true',[],'',''],
		['PAGE','2245',jdecode('RACC'),jdecode(''),'/96/2245.html','true',[],'',''],
		['PAGE','2254',jdecode('GEPAT'),jdecode(''),'/96/2254.html','true',[],'',''],
		['PAGE','20001',jdecode('COMPOSIUM+DA+IALP'),jdecode(''),'/96/20001.html','true',[],'','']
	],'',''],
	['PAGE','10301',jdecode('Especialistas+do+CEV'),jdecode(''),'/10301/index.html','true',[ 
		['PAGE','11101',jdecode('Monografias+do+CEV'),jdecode(''),'/10301/11101.html','true',[],'','']
	],'',''],
	['PAGE','51',jdecode('Cl%C3%ADnica'),jdecode(''),'/51/index.html','true',[ 
		['PAGE','1620',jdecode('Sa%C3%BAde+vocal'),jdecode(''),'/51/1620.html','true',[],'',''],
		['PAGE','1629',jdecode('Verdades+e+Mitos'),jdecode(''),'/51/1629.html','true',[],'','']
	],'',''],
	['PAGE','1915',jdecode('Empresarial'),jdecode(''),'/1915.html','true',[],'',''],
	['PAGE','69',jdecode('Livros+Publicados'),jdecode(''),'/69.html','true',[],'',''],
	['PAGE','1707',jdecode('Softwares'),jdecode(''),'/1707/index.html','true',[ 
		['PAGE','78',jdecode('Pr%C3%A1tica+cl%C3%ADnica'),jdecode(''),'/1707/78.html','true',[],'',''],
		['PAGE','1716',jdecode('Educacionais'),jdecode(''),'/1707/1716.html','true',[],'','']
	],'',''],
	['PAGE','87',jdecode('Localiza%C3%A7%C3%A3o'),jdecode(''),'/87.html','true',[],'',''],
	['PAGE','1290',jdecode('Galeria+de+Fotos'),jdecode(''),'/1290.html','true',[],'',''],
	['PAGE','1924',jdecode('Links+Interessantes'),jdecode(''),'/1924.html','true',[],'',''],
	['PAGE','2418',jdecode('Fale+conosco'),jdecode(''),'/2418.html','true',[],'',''],
	['PAGE','2593',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''),'/2593/index.html','true',[ 
		['PAGE','2592',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''),'/2593/2592.html','false',[],'','']
	],'',''],
	['PAGE','30701',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/30701.html','true',[],'',''],
	['PAGE','30722',jdecode('Painel+de+informa%C3%A7%C3%A3o'),jdecode(''),'/30722.html','true',[],'',''],
	['PAGE','30743',jdecode('A%C3%A7%C3%B5es'),jdecode(''),'/30743.html','true',[],'',''],
	['PAGE','31101',jdecode('Novo'),jdecode(''),'/31101.html','true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='8CBBD8';
theSitetree.keyvisualId='2055';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='304';
theSitetree.graphicsetId='348';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='8CBBD8';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Architekt',
				paletteFamily: 	'8CBBD8',
				keyvisualId: 	'2055',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'304',
				graphicsetId: 	'348',
				contentColor: 	'000066',
				contentBGColor: '8CBBD8',
				a_color: 		'8CBBD8',
				b_color: 		'338299',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12',
internalId:  '',
customField: '20100107-122257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96',
internalId:  '',
customField: '20100107-134249'
};
webappMappings['1002']=webappMappings['1002-2593AVEC10IN26P5']={
webappId:    '1002',
documentId:  '2593',
internalId:  '2593AVEC10IN26P5',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '12',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-3eeeede56b3cde62ddf242c60eae794c']={
webappId:    '7060',
documentId:  '1290',
internalId:  '3eeeede56b3cde62ddf242c60eae794c',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1145',
internalId:  '',
customField: '20100107-122457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2245',
internalId:  '',
customField: '20100107-135054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33',
internalId:  '',
customField: '20060919-143438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1081',
internalId:  '',
customField: '20070306-082541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1090',
internalId:  '',
customField: '20070620-063132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2254',
internalId:  '',
customField: '20070620-103639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20081201-113434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20090818-163712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20081201-132554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51',
internalId:  '',
customField: '20061025-101422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1620',
internalId:  '',
customField: '20061025-101614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1629',
internalId:  '',
customField: '20060929-180523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1915',
internalId:  '',
customField: '20060920-135244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69',
internalId:  '',
customField: '20060920-132050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1707',
internalId:  '',
customField: '20060919-141310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78',
internalId:  '',
customField: '20070620-104848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1716',
internalId:  '',
customField: '20080403-100654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87',
internalId:  '',
customField: '20061128-082748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1290',
internalId:  '',
customField: '20061101-175643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1924',
internalId:  '',
customField: '20080410-055737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2418',
internalId:  '',
customField: '20060927-105454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2593',
internalId:  '',
customField: '20060929-180652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2592',
internalId:  '',
customField: '20060929-180652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30701',
internalId:  '',
customField: '20081201-134824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30722',
internalId:  '',
customField: '20081201-134824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30743',
internalId:  '',
customField: '20081201-134824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31101',
internalId:  '',
customField: '20081201-135126'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN26P5';
var companyName   = 'CENTRO+DE+ESTUDOS+DA+VOZ';
var htmlTitle	  = 'CEV+-+CENTRO+DE+ESTUDOS+DA+VOZ';
var metaKeywords  = 'FONOAUDIOLOGIA%2C+MARA+BEHLAU%2C+VOZ%2C+CEV%2C+';
var metaContents  = 'Centro+de+Estudos+da+Voz%2C+CEV%2C+Mara+Behlau%2C+Especializa%C3%A7%C3%A3o+em+Voz%2C+Voz%2C+Fonoaudiologia%2C+';
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();
};
