/* [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','41031',jdecode('K%C3%BCchen-Service'),jdecode(''),'/41031/home.html','true',[ 
		['PAGE','45501',jdecode('Schmidt+Einbauk%C3%BCchen'),jdecode(''),'/41031/45501.html','true',[],''],
		['PAGE','41591',jdecode('K%C3%BCchenmontage'),jdecode(''),'/41031/41591.html','true',[],''],
		['PAGE','41546',jdecode('K%C3%BCchenumzug'),jdecode(''),'/41031/41546.html','true',[],''],
		['PAGE','59001',jdecode('K%C3%BCchen+Arbeitsplatten'),jdecode(''),'/41031/59001.html','true',[],''],
		['PAGE','56701',jdecode('K%C3%BCchenger%C3%A4te'),jdecode(''),'/41031/56701.html','true',[],''],
		['PAGE','41073',jdecode('K%C3%BCchenbilder'),jdecode(''),'/41031/41073.html','true',[],''],
		['PAGE','41555',jdecode('Backbrett'),jdecode(''),'/41031/41555.html','true',[],''],
		['PAGE','41656',jdecode('Hilfsarbeitsfl%C3%A4che'),jdecode(''),'/41031/41656.html','true',[],'']
	],''],
	['PAGE','41004',jdecode('Schreiner-Service'),jdecode(''),'/41004/home.html','true',[ 
		['PAGE','41013',jdecode('Einbaum%C3%B6bel'),jdecode(''),'/41004/41013.html','true',[],''],
		['PAGE','41245',jdecode('Bilder+Einbaum%C3%B6bel'),jdecode(''),'/41004/41245.html','true',[],''],
		['PAGE','49801',jdecode('Bilder+Schreinerarbeiten'),jdecode(''),'/41004/49801.html','true',[],'']
	],''],
	['PAGE','41646',jdecode('%C3%9Cber+Uns'),jdecode(''),'/41646.html','true',[],''],
	['PAGE','41058',jdecode('Kontakt+%2B+R%C3%BCckmeldungen'),jdecode(''),'/41058.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='TOI_Smoothsurface';
theSitetree.paletteFamily='97A8CD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33402';
theSitetree.graphicsetId='14263';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Smoothsurface',
				paletteFamily: 	'97A8CD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33402',
				graphicsetId: 	'14263',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41546',
internalId:  '',
customField: '20101106-163104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20111214-191335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41004',
internalId:  '',
customField: '20101119-212908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41058',
internalId:  '',
customField: '20110624-093836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41013',
internalId:  '',
customField: '20100503-204413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41031',
internalId:  '',
customField: '20111008-083246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41555',
internalId:  '',
customField: '20111212-073508'
};
webappMappings['1007']=webappMappings['1007-12034b47d8f']={
webappId:    '1007',
documentId:  '41073',
internalId:  '12034b47d8f',
customField: 'g.140qb3mlt.3h7jbosbi9g.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41073',
internalId:  '',
customField: '20100614-205523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41245',
internalId:  '',
customField: '20100503-204748'
};
webappMappings['1007']=webappMappings['1007-1236ca3049b']={
webappId:    '1007',
documentId:  '41245',
internalId:  '1236ca3049b',
customField: 'g.14dma2ssf.6v5tsn0gdd.3o'
};
webappMappings['1008']=webappMappings['1008-63545634']={
webappId:    '1008',
documentId:  '41058',
internalId:  '63545634',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56701',
internalId:  '',
customField: '20110308-220526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59001',
internalId:  '',
customField: '20110624-154719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41591',
internalId:  '',
customField: '20101106-162904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45501',
internalId:  '',
customField: '20111008-090538'
};
webappMappings['1007']=webappMappings['1007-12aae0bc9d9']={
webappId:    '1007',
documentId:  '49801',
internalId:  '12aae0bc9d9',
customField: 'g.15an0hn6v.2ncgpje0ak.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41646',
internalId:  '',
customField: '20111218-144311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41656',
internalId:  '',
customField: '20100424-124436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49801',
internalId:  '',
customField: '20100826-140900'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0I72R7H';
var companyName   = 'Ihr+Schreiner+von+nebenan';
var htmlTitle	  = 'Schmid-Schreiner-Service';
var metaKeywords  = 'Schmid+Tischlerei+Scheiner+Innenausbau+Schreinerei+Montage+Einbau+M%C3%B6bel+Schmidt+K%C3%BCchen+K%C3%BCchenarbeitsplatten+Holz+Stein+Kunststoff+Metall+GlasM%C3%B6bel%C3%A4nderung+M%C3%B6belreparatur+Fenster+Dachfenster+Glaserei+Verglasungen+T%C3%BCren+Zimmert%C3%BCren+Windfang+Ganzglast%C3%BCren+Ganzglastrennwand+Ganzglast%C3%BCranlagen+Umzug+K%C3%BCchenumzug+Tisch+Auszugstisch+Ausziehtisch+Eckbank+Dachschr%C3%A4ge++';
var metaContents  = 'Willkommen+bei++Schmid-Schreiner-Service+und+Schmidt+K%C3%BCchen+Fachgesch%C3%A4ft';
					                                                                    
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 */					                                                            

