/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40627',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40627.html','true',[],''],
	['PAGE','40555',jdecode('Unsere+Leistungsviefalt'),jdecode(''),'/40555.html','true',[],''],
	['PAGE','40600',jdecode('Planung'),jdecode(''),'/40600.html','true',[],''],
	['PAGE','40582',jdecode('Gestaltung+und+Umbau'),jdecode(''),'/40582.html','true',[],''],
	['PAGE','40591',jdecode('Sauna+%2CHamam+und+Fliesen'),jdecode(''),'/40591.html','true',[],''],
	['PAGE','42645',jdecode('Stucco+Veneziano+'),jdecode(''),'/42645.html','true',[],''],
	['PAGE','42123',jdecode('Hier+gibts+was+zu+sehen'),jdecode(''),'/42123.html','true',[],''],
	['PAGE','40609',jdecode('Referenzen'),jdecode(''),'/40609/home.html','true',[ 
		['PAGE','43287',jdecode('Projekte'),jdecode(''),'/40609/43287.html','true',[],'']
	],''],
	['PAGE','40618',jdecode('Kontakt'),jdecode(''),'/40618.html','true',[],''],
	['PAGE','43188',jdecode('Service'),jdecode(''),'/43188.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='TOI_Interieur_02';
theSitetree.paletteFamily='E4E4E4';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33408';
theSitetree.graphicsetId='14270';
theSitetree.contentColor='F4F4F4';
theSitetree.contentBGColor='4B301E';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Interieur_02',
				paletteFamily: 	'E4E4E4',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33408',
				graphicsetId: 	'14270',
				contentColor: 	'F4F4F4',
				contentBGColor: '4B301E',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Palatino Linotype, Book Antiqua, Palatino, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20110414-080727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40627',
internalId:  '',
customField: '20110414-093831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40609',
internalId:  '',
customField: '20110411-100339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20110414-080835'
};
webappMappings['1008']=webappMappings['1008-41604911']={
webappId:    '1008',
documentId:  '40618',
internalId:  '41604911',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40582',
internalId:  '',
customField: '20110419-082234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40591',
internalId:  '',
customField: '20110416-080304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40600',
internalId:  '',
customField: '20110414-094650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40618',
internalId:  '',
customField: '20110411-100355'
};
webappMappings['7060']=webappMappings['7060-78995cb83d205a75f0205c558edfbd25']={
webappId:    '7060',
documentId:  '42123',
internalId:  '78995cb83d205a75f0205c558edfbd25',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42123',
internalId:  '',
customField: '20110411-100327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42645',
internalId:  '',
customField: '20110419-082555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43188',
internalId:  '',
customField: '20110414-095105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43287',
internalId:  '',
customField: '20110414-095517'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0I7PT0H';
var companyName   = 'Savini+Kreativ+Design';
var htmlTitle	  = '%22Savini+Fliesen+Fineartbagno';
var metaKeywords  = 'Savini+%2C+Fliesen%2C+B%C3%A4der+%2CGestaltung+%2CPlanung%2C+Sauna+%2C+Hamam%2C+Dampfbad%2C+Komplettbad+++Ausbautechnik%2C+%2C+Innenausbau%2C+Bau%2C+Renovierung%2C+Decke%2C+Natursteine+%2C+Trockenbau+%2C';
var metaContents  = 'Willkommen+bei+Savini%2C+Ihr+Profi+f%C3%BCr+Umbau+%2CSanierung%2C+Bad+und++Wellness++';
					                                                                    
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 */					                                                            

