/* [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 theSitetree=[ 
	['PAGE','52901',jdecode('IBPI+-+Temas'),jdecode(''),'/52901.html','true',[],''],
	['PAGE','42715',jdecode('Revista+Eletr%C3%B4nica+do+IBPI'),jdecode(''),'/42715/home.html','true',[ 
		['PAGE','42666',jdecode('%C3%8Dndice+REVEL'),jdecode(''),'/42715/42666.html','true',[],''],
		['PAGE','42902',jdecode('%C3%8Dndice+Revel+Especial'),jdecode(''),'/42715/42902.html','true',[],'']
	],''],
	['PAGE','44072',jdecode('Propriedade+Intelectual'),jdecode(''),'/44072.html','false',[],''],
	['PAGE','44083',jdecode('Academia+do+IBPI'),jdecode(''),'/44083/home.html','true',[ 
		['PAGE','43441',jdecode('Associados+Acad%C3%AAmicos'),jdecode(''),'/44083/43441.html','true',[],'']
	],''],
	['PAGE','45601',jdecode('Blog'),jdecode(''),'/45601.html','false',[],''],
	['PAGE','40693',jdecode('Contato'),jdecode(''),'/40693/home.html','true',[ 
		['PAGE','55101',jdecode('Textos+digitais'),jdecode(''),'/40693/55101.html','false',[],''],
		['PAGE','64901',jdecode('A+interface'),jdecode(''),'/40693/64901.html','false',[],''],
		['PAGE','59201',jdecode('Textos+EPUB'),jdecode(''),'/40693/59201.html','false',[],'']
	],'']];
var siteelementCount=12;
theSitetree.topTemplateName='TOI_Smoothsurface';
theSitetree.paletteFamily='97A8CD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33402';
theSitetree.graphicsetId='14263';
theSitetree.contentColor='3A3A3A';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Smoothsurface',
				paletteFamily: 	'97A8CD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33402',
				graphicsetId: 	'14263',
				contentColor: 	'3A3A3A',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42666',
internalId:  '',
customField: '20110531-095503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42715',
internalId:  '',
customField: '20111105-110532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44072',
internalId:  '',
customField: '20101012-183457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55101',
internalId:  '',
customField: '20111113-205037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40693',
internalId:  '',
customField: '20110830-134840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42902',
internalId:  '',
customField: '20110115-143343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44083',
internalId:  '',
customField: '20110115-143627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43441',
internalId:  '',
customField: '20111105-112006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52901',
internalId:  '',
customField: '20111113-213757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64901',
internalId:  '',
customField: '20110830-133717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59201',
internalId:  '',
customField: '20110115-144604'
};
webappMappings['7050']=webappMappings['7050-56078']={
webappId:    '7050',
documentId:  '45601',
internalId:  '56078',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45601',
internalId:  '',
customField: '20100807-230129'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IR7E8J';
var companyName   = 'IBPI+-+INSTITUTO+BRASILEIRO+DE+PROPRIEDADE+INTELECTUAL+-+REVISTA+ELETR%C3%94NICA+DO+IBPI';
var htmlTitle	  = 'Revel+-+Revista+Eletr%C3%B4nica+do+IBPI';
var metaKeywords  = 'Propriedade+Intelectual%2C+Direito+de+Marcas%2C+Direito+Autoral%2C+Patentes%2C+Desenho+Industrial%2C+direito+sobre+bens+intelectuais%2C+propriedade+industrial%2C+biotecnologia%2C+cultivares%2C+CADE%2C+concorr%C3%AAncia%2C+antitruste%2C+sham+litigation%2C+Sortenschutz%2C+Biotechnologie%2C+Markenrecht';
var metaContents  = 'A+Revista+Eletr%C3%B4nica+do+IBPI+%C3%A9+um+peri%C3%B3dico+semestral%2C+publicado+em+meio+digital+gratuitamente.+Ela+%C3%A9+destinada+a+divulgar+a+produ%C3%A7%C3%A3o+acad%C3%AAmica%2C+em+particular+dos+autores+participantes+dos+programas+de+p%C3%B3s-gradua%C3%A7%C3%A3o+relativos+%C3%A0+Propriedade+Intelectual%2C+Desenvolvimento+e+Inova%C3%A7%C3%A3o%2C+como+pesquisadores%2C+discentes+ou+docentes.';
					                                                                    
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) {														 
    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();
}
/* EOF */					                                                            

