/* [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','4607',jdecode('BlackCatLover'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','4826',jdecode('Web-Kontakt'),jdecode(''),'/4826.html','true',[],''],
	['PAGE','4664',jdecode('Modelle'),jdecode(''),'/4664.html','true',[],''],
	['PAGE','4691',jdecode('Gestaltung'),jdecode(''),'/4691.html','true',[],''],
	['PAGE','4718',jdecode('Tonkunst'),jdecode(''),'/4718.html','true',[],''],
	['PAGE','183739',jdecode('Fotowerke'),jdecode(''),'/183739.html','true',[],''],
	['PAGE','183760',jdecode('Inhalt'),jdecode(''),'/183760.html','true',[],''],
	['PAGE','131079',jdecode('_routeplaner'),jdecode(''),'/131079.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='6699CC';
theSitetree.keyvisualId='873';
theSitetree.keyvisualName='cd_stapel.jpg';
theSitetree.fontsetId='161';
theSitetree.graphicsetId='186';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Neon',
				paletteFamily: 	'6699CC',
				keyvisualId: 	'873',
				keyvisualName: 	'cd_stapel.jpg',
				fontsetId: 		'161',
				graphicsetId: 	'186',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4607',
internalId:  '3164466',
customField: '1501'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '131079',
internalId:  'routing',
customField: 'de_CH'
};
var canonHostname = 'webomat';
var accountId     = 'Ahp010IN2GAV';
var companyName   = 'C+a+t+L+o+v+e+r++-++C+a+t+A+r+t';
var htmlTitle	  = 'CatLover_chats+noirs_marliss+joss';
var metaKeywords  = 'katzenbilder%2C+fotos%2C+schwarze+katzen%2C+midi-music%2C+tiere%2Cchats+noirs%2C+cats%2C+chattes%2C+kater%2C+black+cat%2C+chats+noirs%2C+black-cats%2C+schwarze+katze%2C+hauskatze%2Cschwarz-weiss%2C+kunstfotos%2Cposter%2Ccatart%2C+Art+Cats%2C+cat+prints%2Cwebgestaltung%2C+weberstellung';
var metaContents  = 'catlover_art+felin%3B+info+black-cats%3B+marliss+joss+chats+noirs%3B+schwarz-weiss+Photos%3B+zwei+schwarze+Katzen%3B+pictures+of+cats%3B+cat+photographs+black+and+white%3B+erstellung+von+webseiten+in+telefonischer+zusammenarbeit%3B+';
					                                                                    
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 */					                                                            

