/* [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','14001',jdecode('Home'),jdecode(''),'/14001.html','true',[],'',''],
	['PAGE','14052',jdecode('O+Artista'),jdecode(''),'/14052.html','true',[],'',''],
	['PAGE','14073',jdecode('Curriculum'),jdecode(''),'/14073.html','true',[],'',''],
	['PAGE','14094',jdecode('Cat%C3%A1logo+de+Obras'),jdecode(''),'/14094/index.html','true',[ 
		['PAGE','14136',jdecode('Abstrato'),jdecode(''),'/14094/14136.html','true',[],'',''],
		['PAGE','59001',jdecode('Urbano'),jdecode(''),'/14094/59001.html','true',[],'',''],
		['PAGE','14115',jdecode('Marinha'),jdecode(''),'/14094/14115.html','true',[],'',''],
		['PAGE','59022',jdecode('Paisagem'),jdecode(''),'/14094/59022.html','true',[],'',''],
		['PAGE','59043',jdecode('Casario'),jdecode(''),'/14094/59043.html','true',[],'',''],
		['PAGE','73812',jdecode('Pessoas'),jdecode(''),'/14094/73812.html','true',[],'','']
	],'',''],
	['PAGE','14157',jdecode('Exposi%C3%A7%C3%B5es'),jdecode(''),'/14157.html','true',[],'',''],
	['PAGE','14178',jdecode('Clipping'),jdecode(''),'/14178.html','true',[],'',''],
	['PAGE','59064',jdecode('Galerias+de+Arte'),jdecode(''),'/59064.html','true',[],'',''],
	['PAGE','59085',jdecode('Cart%C3%B5es+M.+Silper'),jdecode(''),'/59085/index.html','true',[ 
		['PAGE','59106',jdecode('Clientes+Empresarias'),jdecode(''),'/59085/59106.html','true',[],'','']
	],'',''],
	['PAGE','59127',jdecode('Contato'),jdecode(''),'/59127.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='77';
theSitetree.graphicsetId='74';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D0D5DB';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'77',
				graphicsetId: 	'74',
				contentColor: 	'000000',
				contentBGColor: 'D0D5DB',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-e099ef53a1a3b871bfce011cfe72ec81']={
webappId:    '7060',
documentId:  '14115',
internalId:  'e099ef53a1a3b871bfce011cfe72ec81',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-b3fa6cf1aa75afa649ccc991ccfe1856']={
webappId:    '7060',
documentId:  '14136',
internalId:  'b3fa6cf1aa75afa649ccc991ccfe1856',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20100622-155612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14094',
internalId:  '',
customField: '20100622-151155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14136',
internalId:  '',
customField: '20100622-151226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14115',
internalId:  '',
customField: '20100622-151344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14073',
internalId:  '',
customField: '20100622-151055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14052',
internalId:  '',
customField: '20100622-153835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14178',
internalId:  '',
customField: '20100622-154452'
};
webappMappings['7060']=webappMappings['7060-e381843db130ee7751f5cd58288e7dcb']={
webappId:    '7060',
documentId:  '14052',
internalId:  'e381843db130ee7751f5cd58288e7dcb',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59106',
internalId:  '',
customField: '20100622-152422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14157',
internalId:  '',
customField: '20100622-151745'
};
webappMappings['7008']=webappMappings['7008-9529']={
webappId:    '7008',
documentId:  '59127',
internalId:  '9529',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59127',
internalId:  '',
customField: '20100622-152606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59085',
internalId:  '',
customField: '20100622-152322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59064',
internalId:  '',
customField: '20100622-152142'
};
webappMappings['7060']=webappMappings['7060-c02eb84dcd7d363ac7a68fc460a75bb5']={
webappId:    '7060',
documentId:  '59022',
internalId:  'c02eb84dcd7d363ac7a68fc460a75bb5',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59022',
internalId:  '',
customField: '20100622-151448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59001',
internalId:  '',
customField: '20100622-151255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59043',
internalId:  '',
customField: '20100622-151611'
};
webappMappings['7060']=webappMappings['7060-90ce405afc4aacb7509889ff4e651df8']={
webappId:    '7060',
documentId:  '59001',
internalId:  '90ce405afc4aacb7509889ff4e651df8',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-50285ec239dfb3fa26d0367815cbadb7']={
webappId:    '7060',
documentId:  '59043',
internalId:  '50285ec239dfb3fa26d0367815cbadb7',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-bf17866392888d961ff34215a599a3e2']={
webappId:    '7060',
documentId:  '73812',
internalId:  'bf17866392888d961ff34215a599a3e2',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73812',
internalId:  '',
customField: '20100622-151702'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14001',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHIQL';
var companyName   = 'MAURO+SILPER++Artista+Pl%C3%A1stico';
var htmlTitle	  = 'MAURO+SILPER+-+ARTISTA+PL%C3%81STICO+-+PINTURA+E+DESENHO';
var metaKeywords  = 'Arte%2C+artista+pl%C3%A1stico%2C+de+Belo+Horizonte%2C+exposi%C3%A7%C3%A3o%2C+exposi%C3%A7%C3%A3o+imagin%C3%A1rio%2C+ano+da+fran%C3%A7a+no+brasil%2C+pintura+abstrata%2C+quadros%2C+cart%C3%B5es%2C+Natal%2C+acr%C3%ADlica%2C+cat%C3%A1logo+de+obras%2C+lei+5893+de+7+de+Maio+de+1991%2C+cart%C3%A3o+de+Natal%2C+cart%C3%B5es+pintados+%C3%A0+m%C3%A3o%2C+acr%C3%ADlica%2C+gouache%2C+aquarela';
var metaContents  = 'Site+do+artista+pl%C3%A1stico+Mauro+Silper.+Pintura+abstrata.+T%C3%A9cnica+acr%C3%ADlica+s%2F+eucatex.+Pintura+figurativa.+Quadros+abstratos+pintados+em+t%C3%A9cnica+mista+sobre+eucatex%2C+cart%C3%B5es+pintados+a+m%C3%A3o.+Cart%C3%B5es+M.+Silper.+Cat%C3%A1logo+de+obras+do+artista+pl%C3%A1stico+M.Silper.+Lei+5893+de+7+de+Maio+de+1991%2C+inclus%C3%A3o+de+obras+de+arte+em+edifica%C3%A7%C3%B5es.+Decoradores.+Arquitetos.+Galeria+de+arte.+SIAPEMG.+Artistas+pl%C3%A1sticos+profissionais.+Belo+Horizonte.+Atmosfera+campestre.+Cores.+Texturas.+Artes+pl%C3%A1sticas.+Tinta+acr%C3%ADlica.+Estilo+abstrato.+Modo+de+express%C3%A3o.+Exposi%C3%A7%C3%A3o+de+arte.+Papel+de+carta.+Cart%C3%A3o+de+Natal.+Brindes+de+Natal.+Cart%C3%A3o+mini%2C+cart%C3%A3o+pequeno%2C+cart%C3%A3o+of%C3%ADcio%2C+cart%C3%A3o+grande%2C+cart%C3%A3o+comercial%2C+cart%C3%A3o+gift%2C+clientes+empresariais%2C+exposi%C3%A7%C3%B5es+de+arte';
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();
};
