/* [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('Foto+-+Gallerie'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','27101',jdecode('Neue+Fotos'),jdecode(''),'/452/27101.html','true',[],''],
		['PAGE','7401',jdecode('Tribals'),jdecode(''),'/452/7401.html','true',[],''],
		['PAGE','13801',jdecode('Symbole+-+Schrift'),jdecode(''),'/452/13801.html','true',[],''],
		['PAGE','8801',jdecode('Diverse+Fotos'),jdecode(''),'/452/8801.html','true',[],''],
		['PAGE','536',jdecode('Cover+up'),jdecode(''),'/452/536.html','true',[],'']
	],''],
	['PAGE','557',jdecode('Studio'),jdecode(''),'/557.html','true',[],''],
	['PAGE','578',jdecode('News+und+Links'),jdecode(''),'/578.html','true',[],''],
	['PAGE','599',jdecode('Kontakt'),jdecode(''),'/599/index.html','true',[ 
		['PAGE','19801',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/599/19801.html','false',[],''],
		['PAGE','16901',jdecode('Anfahrt'),jdecode(''),'/599/16901.html','true',[],'']
	],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='6699CC';
theSitetree.keyvisualId='902';
theSitetree.keyvisualName='feder.jpg';
theSitetree.fontsetId='165';
theSitetree.graphicsetId='186';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Neon',
				paletteFamily: 	'6699CC',
				keyvisualId: 	'902',
				keyvisualName: 	'feder.jpg',
				fontsetId: 		'165',
				graphicsetId: 	'186',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '7401',
internalId:  '10f020fd0a4',
customField: 'g.11s10s792.liq6csq8bk.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '8801',
internalId:  '10f05b57a47',
customField: 'g.11s2qtous.t0cud476q.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '13801',
internalId:  '10f06dc52f5',
customField: 'g.11s3dcvoi.4h0v59leusn.1s'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '16901',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '599',
internalId:  'ahopt0inee4510f0c16b6ea',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '19801',
internalId:  'ahopt0inee4510f0c16b6ea',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '27101',
internalId:  '10fd8ad511b',
customField: 'g.11vcak4sa.mslopm0cg9.1s'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '6746999',
customField: '1501'
};
var canonHostname = 'webomat';
var accountId     = 'AHOPT0INEE45';
var companyName   = 'T+A+T+T+O+O+++-++Bettinas.ch++++041+930+43+85';
var htmlTitle	  = 'Bettinas.ch+-+Tattoo+-+6215+Berom%C3%BCnster';
var metaKeywords  = 'Tattoo%2C+Tattoo+Luzern%2C+Tattoo+Berom%C3%BCnster%2C+Tattoo+Sursee%2C+Tattoo+Aargau%2C+Tattoo+Reinach%2C+Tattoo+Meziken%2C+t%C3%A4towieren%2C+Tattoo-Studios%2C+Tattoo+Studio%2C+Chinesische+Zeichen%2C+Tribals%2C+T%C3%A4towiererin%2C+T%C3%A4towierer%2C+cover+up%2C+Tattoo+Schweiz%2C+Tattoo+entwefen%2C+Tattoo+zeichnen%2C+';
var metaContents  = 'Tattoo+Bettinas.ch+in+Beromuenster+-+das+Studio+und+die+Arbeiten+werden+Fotos+vorgestellt';
					                                                                    
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 */					                                                            
