/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('About+Us'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','473',jdecode('The+Team'),jdecode(''),'/452/473.html','true',[],''],
		['PAGE','494',jdecode('Our+Philosophy'),jdecode(''),'/452/494.html','true',[],''],
		['PAGE','515',jdecode('Why+Finzel+PR'),jdecode(''),'/452/515.html','true',[],'']
	],''],
	['PAGE','536',jdecode('Networks'),jdecode(''),'/536.html','true',[],''],
	['PAGE','557',jdecode('Services'),jdecode(''),'/557/index.html','true',[ 
		['PAGE','578',jdecode('Media+Relations'),jdecode(''),'/557/578.html','true',[],''],
		['PAGE','599',jdecode('Public+Relations'),jdecode(''),'/557/599.html','true',[],''],
		['PAGE','620',jdecode('Content+Management'),jdecode(''),'/557/620.html','true',[],''],
		['PAGE','641',jdecode('Marketing+Support'),jdecode(''),'/557/641.html','true',[],'']
	],''],
	['PAGE','662',jdecode('Clients'),jdecode(''),'/662/index.html','true',[ 
		['PAGE','683',jdecode('Technology'),jdecode(''),'/662/683.html','true',[],''],
		['PAGE','704',jdecode('Tourism+and+Travel'),jdecode(''),'/662/704.html','true',[],''],
		['PAGE','725',jdecode('Industry+%26+B2B'),jdecode(''),'/662/725.html','true',[],''],
		['PAGE','746',jdecode('Others'),jdecode(''),'/662/746.html','true',[],'']
	],''],
	['PAGE','767',jdecode('Contact'),jdecode(''),'/767.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='333399';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='87';
theSitetree.graphicsetId='105';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Global',
				paletteFamily: 	'333399',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'87',
				graphicsetId: 	'105',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'242E8A',
				b_color: 		'FF9900',
				c_color: 		'000000',
				d_color: 		'EAEAEA',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20081205-184304'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090205-185039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090205-190252'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090205-185437'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20081027-192735'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090205-191548'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20081027-194805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20081027-195254'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20090126-001024'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20081027-200344'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20081027-200607'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20090205-184631'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20090126-001626'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20081205-192114'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20090126-002405'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20090126-002009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20090126-002800'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020IN205O';
var companyName   = 'FINZEL+PUBLIC+RELATIONS';
var htmlTitle	  = 'Public+Relations+Agency%2C+Madrid+%28SPAIN%29+-+Finzel+PR';
var metaKeywords  = 'Public+Relations+in+Spain%2C+PR+agency+in+Spain%2C+Technology+PR+agency+in+Spain%2C+Travel+and+Tourism+PR+agency+in+Spain%2C+Web+content+agency+in+Spain%2C+Member+of+Whiteoaks+International+Network%2C+B2B+PR+agency+in+Spain%2C+Media+Relations+in+Spain%2C+PR+agency+in+Madrid';
var metaContents  = 'Description+of+the+services+offered+and+provided+by+Finzel+Public+Relations+%28Madrid%2C+SPAIN%29';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
