/* [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','801',jdecode('Home'),jdecode(''),'/801.html','true',[],''],
	['PAGE','873',jdecode('Inside-Info'),jdecode(''),'/873/index.html','true',[ 
		['PAGE','19501',jdecode('Team'),jdecode(''),'/873/19501.html','true',[],'']
	],''],
	['PAGE','894',jdecode('Verkauf'),jdecode(''),'/894/index.html','true',[ 
		['PAGE','915',jdecode('Second+Hand'),jdecode(''),'/894/915.html','true',[],'']
	],''],
	['PAGE','936',jdecode('Fotolabor'),jdecode(''),'/936/index.html','true',[ 
		['PAGE','18001',jdecode('Color-Labor'),jdecode(''),'/936/18001.html','true',[],''],
		['PAGE','18022',jdecode('SW-Labor'),jdecode(''),'/936/18022.html','true',[],'']
	],''],
	['PAGE','957',jdecode('Fotostudio'),jdecode(''),'/957/index.html','true',[ 
		['PAGE','17601',jdecode('Passfotos'),jdecode(''),'/957/17601.html','true',[],''],
		['PAGE','17622',jdecode('Hochzeiten+%26+Portraits'),jdecode(''),'/957/17622.html','true',[],''],
		['PAGE','17643',jdecode('Industriephotographie'),jdecode(''),'/957/17643.html','true',[],'']
	],''],
	['PAGE','978',jdecode('Impressum'),jdecode(''),'/978.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Medium';
theSitetree.paletteFamily='01343D';
theSitetree.keyvisualId='2171';
theSitetree.keyvisualName='modernes_lernen.jpg';
theSitetree.fontsetId='356';
theSitetree.graphicsetId='409';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='01343D';
var theTemplate={
				name: 			'Medium',
				paletteFamily: 	'01343D',
				keyvisualId: 	'2171',
				keyvisualName: 	'modernes_lernen.jpg',
				fontsetId: 		'356',
				graphicsetId: 	'409',
				contentColor: 	'FFFFFF',
				contentBGColor: '01343D',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'01343D',
				b_color: 		'8EBFC6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20100814-093846'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20080526-191606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '915',
internalId:  '',
customField: '20100824-133830'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20080619-193509'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20081001-122123'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '936',
internalId:  '',
customField: '20080710-185802'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '957',
internalId:  '',
customField: '20080526-191606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '978',
internalId:  '',
customField: '20100520-092051'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20100614-162832'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20080710-192331'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18022',
internalId:  '',
customField: '20080710-191610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17622',
internalId:  '',
customField: '20080619-185949'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17643',
internalId:  '',
customField: '20080619-185949'
};
var canonHostname = 'cm4all.inode.at';
var accountId     = 'AINOD0INECRB';
var companyName   = 'Foto+Soyka';
var htmlTitle	  = 'Willkommen+bei+FotoSoyka.at';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
