/* [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','11',jdecode('Quem+somos'),jdecode(''),'/11/index.html','true',[ 
		['PAGE','3205',jdecode('O+que+fazemos'),jdecode(''),'/11/3205.html','true',[],'',''],
		['PAGE','6397',jdecode('Diretoria'),jdecode(''),'/11/6397.html','true',[],'',''],
		['PAGE','115701',jdecode('Estatuto'),jdecode(''),'/11/115701.html','true',[],'','']
	],'',''],
	['PAGE','49401',jdecode('Abandono'),jdecode(''),'/49401.html','true',[],'',''],
	['PAGE','7133',jdecode('Ado%C3%A7%C3%A3o'),jdecode(''),'/7133/index.html','true',[ 
		['PAGE','91501',jdecode('Ser+diferente'),jdecode(''),'/7133/91501.html','true',[],'',''],
		['PAGE','117301',jdecode('%22In+Memorian%22'),jdecode(''),'/7133/117301.html','true',[],'','']
	],'',''],
	['PAGE','6990',jdecode('Adotados%21'),jdecode(''),'/6990.html','true',[],'',''],
	['PAGE','2947',jdecode('O+abrigo'),jdecode(''),'/2947/index.html','true',[ 
		['PAGE','45801',jdecode('Abrigo+n%C3%A3o+%C3%A9+solu%C3%A7%C3%A3o'),jdecode(''),'/2947/45801.html','true',[],'','']
	],'',''],
	['PAGE','51001',jdecode('Achados+e+perdidos'),jdecode(''),'/51001.html','true',[],'',''],
	['PAGE','113',jdecode('P%C3%A9rolas+animais'),jdecode(''),'/113.html','true',[],'',''],
	['PAGE','6764',jdecode('Den%C3%BAncias'),jdecode(''),'/6764.html','true',[],'',''],
	['PAGE','68',jdecode('Legisla%C3%A7%C3%A3o'),jdecode(''),'/68/index.html','true',[ 
		['PAGE','1287',jdecode('Maus-tratos'),jdecode(''),'/68/1287.html','true',[],'',''],
		['PAGE','1296',jdecode('%C3%89tica+em+pesquisa'),jdecode(''),'/68/1296.html','true',[],'',''],
		['PAGE','1305',jdecode('Ambiental'),jdecode(''),'/68/1305.html','true',[],'',''],
		['PAGE','1314',jdecode('Abate+de+animais'),jdecode(''),'/68/1314.html','true',[],'','']
	],'',''],
	['PAGE','77',jdecode('Pesquisa+c%2Fanimais'),jdecode(''),'/77/index.html','true',[ 
		['PAGE','5958',jdecode('Enquete'),jdecode(''),'/77/5958.html','true',[],'',''],
		['PAGE','1323',jdecode('Obje%C3%A7%C3%A3o+de+consci%C3%AAncia'),jdecode(''),'/77/1323.html','true',[],'',''],
		['PAGE','1332',jdecode('Laborat%C3%B3rio+%C3%A9tico'),jdecode(''),'/77/1332.html','true',[],'',''],
		['PAGE','1341',jdecode('Legisla%C3%A7%C3%A3o'),jdecode(''),'/77/1341.html','true',[],'',''],
		['PAGE','1350',jdecode('Eutan%C3%A1sia'),jdecode(''),'/77/1350.html','true',[],'','']
	],'',''],
	['PAGE','86',jdecode('Tr%C3%A1fico+-+a+morte'),jdecode(''),'/86/index.html','true',[ 
		['PAGE','1359',jdecode('Paran%C3%A1'),jdecode(''),'/86/1359.html','true',[],'',''],
		['PAGE','68201',jdecode('Cuidado%2C+passarinho%21'),jdecode(''),'/86/68201.html','true',[],'','']
	],'',''],
	['PAGE','3878',jdecode('Cria%C3%A7%C3%A3o+e+abate'),jdecode(''),'/3878.html','true',[],'',''],
	['PAGE','6456',jdecode('Animal+apartamento'),jdecode(''),'/6456.html','true',[],'',''],
	['PAGE','95',jdecode('Educa%C3%A7%C3%A3o+ambiental'),jdecode(''),'/95/index.html','true',[ 
		['PAGE','1112',jdecode('Fauna+urbana'),jdecode(''),'/95/1112.html','true',[],'',''],
		['PAGE','3729',jdecode('Macacos+de+Maring%C3%A1'),jdecode(''),'/95/3729.html','true',[],'',''],
		['PAGE','1368',jdecode('As+%22amargosinhas%22'),jdecode(''),'/95/1368.html','true',[],'','']
	],'',''],
	['PAGE','1152',jdecode('Associe-se'),jdecode(''),'/1152.html','true',[],'',''],
	['PAGE','5552',jdecode('Links+para+ver'),jdecode(''),'/5552.html','true',[],'',''],
	['PAGE','2466',jdecode('Blog'),jdecode(''),'/2466.html','true',[],'',''],
	['PAGE','1188',jdecode('Livro+de+visitas'),jdecode(''),'/1188/index.html','true',[ 
		['PAGE','1187',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''),'/1188/1187.html','true',[],'',''],
		['PAGE','122',jdecode('Contato'),jdecode(''),'/1188/122.html','true',[],'',''],
		['PAGE','6940',jdecode('Contato'),jdecode(''),'/1188/6940.html','true',[],'','']
	],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Vienna';
theSitetree.paletteFamily='CBE1FC';
theSitetree.keyvisualId='11876';
theSitetree.keyvisualName='kv_11876.jpg';
theSitetree.fontsetId='33185';
theSitetree.graphicsetId='14091';
theSitetree.contentColor='223144';
theSitetree.contentBGColor='d6e7fe';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vienna',
				paletteFamily: 	'CBE1FC',
				keyvisualId: 	'11876',
				keyvisualName: 	'kv_11876.jpg',
				fontsetId: 		'33185',
				graphicsetId: 	'14091',
				contentColor: 	'223144',
				contentBGColor: 'd6e7fe',
				a_color: 		'D6E7FE',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-1188AVEC10IN2UXT']={
webappId:    '1002',
documentId:  '1188',
internalId:  '1188AVEC10IN2UXT',
customField: 'icq=false'
};
webappMappings['7005']=webappMappings['7005-529']={
webappId:    '7005',
documentId:  '11',
internalId:  '529',
customField: 'language:pt;country:BR;'
};
webappMappings['1501']=webappMappings['1501-847554']={
webappId:    '1501',
documentId:  '11',
internalId:  '847554',
customField: '1501'
};
webappMappings['7050']=webappMappings['7050-1352']={
webappId:    '7050',
documentId:  '2466',
internalId:  '1352',
customField: 'language:pt;country:BR;'
};
webappMappings['7005']=webappMappings['7005-530']={
webappId:    '7005',
documentId:  '5958',
internalId:  '530',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-4d0609915ae6abff4a46d6cb4bf924d7']={
webappId:    '7060',
documentId:  '117301',
internalId:  '4d0609915ae6abff4a46d6cb4bf924d7',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-5631']={
webappId:    '7008',
documentId:  '77',
internalId:  '5631',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-5632']={
webappId:    '7008',
documentId:  '51001',
internalId:  '5632',
customField: 'language:pt;country:BR;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-4bccb02dc23ff744809c7ef60a8d25a5']={
webappId:    '7060',
documentId:  '6990',
internalId:  '4bccb02dc23ff744809c7ef60a8d25a5',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-42065a8f7ba161ce4160d1eda1c74cfa']={
webappId:    '7060',
documentId:  '7133',
internalId:  '42065a8f7ba161ce4160d1eda1c74cfa',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-5633']={
webappId:    '7008',
documentId:  '1152',
internalId:  '5633',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-5634']={
webappId:    '7008',
documentId:  '6764',
internalId:  '5634',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20100717-194259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3205',
internalId:  '',
customField: '20080106-081700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6397',
internalId:  '',
customField: '20091025-090505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115701',
internalId:  '',
customField: '20091025-090234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49401',
internalId:  '',
customField: '20081109-140216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7133',
internalId:  '',
customField: '20100714-100716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91501',
internalId:  '',
customField: '20080203-155214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117301',
internalId:  '',
customField: '20071006-144154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6990',
internalId:  '',
customField: '20090319-175006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2947',
internalId:  '',
customField: '20100327-192150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45801',
internalId:  '',
customField: '20061207-093923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51001',
internalId:  '',
customField: '20100714-095835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113',
internalId:  '',
customField: '20061203-102152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6764',
internalId:  '',
customField: '20070310-214448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68',
internalId:  '',
customField: '20061121-213514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1287',
internalId:  '',
customField: '20061121-214203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1296',
internalId:  '',
customField: '20061121-214902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1305',
internalId:  '',
customField: '20061121-215043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1314',
internalId:  '',
customField: '20061121-215340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77',
internalId:  '',
customField: '20070310-215525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5958',
internalId:  '',
customField: '20061121-220035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1323',
internalId:  '',
customField: '20061121-220330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1332',
internalId:  '',
customField: '20070330-155914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1341',
internalId:  '',
customField: '20070330-160010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1350',
internalId:  '',
customField: '20060914-183949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86',
internalId:  '',
customField: '20070110-192558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1359',
internalId:  '',
customField: '20070330-160100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20070110-203610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3878',
internalId:  '',
customField: '20070330-160148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6456',
internalId:  '',
customField: '20090607-120229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95',
internalId:  '',
customField: '20061116-205939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1112',
internalId:  '',
customField: '20090604-132400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3729',
internalId:  '',
customField: '20070330-160612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1368',
internalId:  '',
customField: '20070330-160728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1152',
internalId:  '',
customField: '20090602-171209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5552',
internalId:  '',
customField: '20070706-144039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2466',
internalId:  '',
customField: '20090319-145357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1188',
internalId:  '',
customField: '20061005-163238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1187',
internalId:  '',
customField: '20061116-205401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122',
internalId:  '',
customField: '20100122-104737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6940',
internalId:  '',
customField: '20060925-173932'
};
webappMappings['7008']=webappMappings['7008-7163']={
webappId:    '7008',
documentId:  '122',
internalId:  '7163',
customField: 'language:pt;country:BR;'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2UXT';
var companyName   = 'SOCIEDADE+PROTETORA+DOS+ANIMAIS+DE+MARING%C3%81';
var htmlTitle	  = 'Sociedade+Protetora+dos+Animais+de+Maring%C3%A1';
var metaKeywords  = 'c%C3%A3es%2C+gatos%2C+ado%C3%A7%C3%A3o%2C+prote%C3%A7%C3%A3o+de+animais%2C+maus-tratos+a+animais%2C+ado%C3%A7%C3%A3o+de+c%C3%A3es%2C+ado%C3%A7%C3%A3o+de+gatos%2C+esteriliza%C3%A7%C3%A3o+animal%2C+animais+em+experimentos%2C+experimenta%C3%A7%C3%A3o+animal%2C+tr%C3%A1fico+animais+silvestres%2C+animais+silvestres%2C+animais+urbanos%2C+animais+dom%C3%A9sticos%2C+fauna+urbana%2C+educa%C3%A7%C3%A3o+ambiental%2C+animais+em+apartamento%2C+centro+de+controle+de+zoonoses%2C+ccz%2C+animais+de+estima%C3%A7%C3%A3o%2C+legisla%C3%A7%C3%A3o+ambiental%2C+sociedade+protetora+de+animais';
var metaContents  = 'prote%C3%A7%C3%A3o+de+animais%2C+maus-tratos+a+animais%2C+ado%C3%A7%C3%A3o+de+c%C3%A3es%2C+ado%C3%A7%C3%A3o+de+gatos%2C+esteriliza%C3%A7%C3%A3o+de+c%C3%A3es+e+gatos%2C+uso+de+animais+em+experimentos%2C+experimenta%C3%A7%C3%A3o+animal%2C+tr%C3%A1fico+de+animais+silvestres%2C+animais+silvestres%2C+animais+urbanos%2C+animais+dom%C3%A9sticos%2C+fauna+urbana%2C+educa%C3%A7%C3%A3o+ambiental%2C+animais+em+apartamento%2C+centro+de+controle+de+zoonoses%2C+ccz%2C+animais+de+estima%C3%A7%C3%A3o%2C+legisla%C3%A7%C3%A3o+ambiental%2C+sociedade+protetora+de+animais';
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();
};
