/* [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','4579',jdecode('Textil-Shop+%2F+Angebote'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','42543',jdecode('Textildruck'),jdecode(''),'/42543.html','true',[],''],
	['PAGE','42501',jdecode('Beschriftungen'),jdecode(''),'/42501.html','true',[],''],
	['PAGE','64501',jdecode('Digitaldruck'),jdecode(''),'/64501.html','true',[],''],
	['PAGE','42522',jdecode('Dekorationen'),jdecode(''),'/42522.html','true',[],''],
	['PAGE','20001',jdecode('Dienstleistungen'),jdecode(''),'/20001.html','true',[],''],
	['PAGE','34201',jdecode('Referenzen'),jdecode(''),'/34201.html','true',[],''],
	['PAGE','20022',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/20022.html','true',[],''],
	['PAGE','82201',jdecode('Kontakt'),jdecode(''),'/82201.html','true',[],''],
	['PAGE','94901',jdecode('Impressum'),jdecode(''),'/94901.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Spiegelwand';
theSitetree.paletteFamily='29282B';
theSitetree.keyvisualId='10909';
theSitetree.keyvisualName='kv_10909.jpg';
theSitetree.fontsetId='31885';
theSitetree.graphicsetId='13697';
theSitetree.contentColor='F0F0F0';
theSitetree.contentBGColor='29282B';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Spiegelwand',
				paletteFamily: 	'29282B',
				keyvisualId: 	'10909',
				keyvisualName: 	'kv_10909.jpg',
				fontsetId: 		'31885',
				graphicsetId: 	'13697',
				contentColor: 	'F0F0F0',
				contentBGColor: '29282B',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20080917-220604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20100712-125233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42522',
internalId:  '',
customField: '20080917-111617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42543',
internalId:  '',
customField: '20100619-140612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82201',
internalId:  '',
customField: '20100712-123905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20100619-122748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20022',
internalId:  '',
customField: '20100712-121626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42501',
internalId:  '',
customField: '20080917-220117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94901',
internalId:  '',
customField: '20100817-130647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64501',
internalId:  '',
customField: '20100712-125735'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INETLZ';
var companyName   = '+Maa%C3%9F+-+Werbung.........Ihr+Werbepartner%21';
var htmlTitle	  = 'Beschriftungen+%2C+Dekorationen+%2C+Leuchtk%C3%A4sten+%2C+Textildruck+%2C+Werbetechnik+%2C+Digitaldruck';
var metaKeywords  = 'Beschriftungen%2C+Dekorationen%2C+Banden%2C+Leuchtk%C3%A4sten%2C+Messestandgestaltung+%2C+Schaufenster+%2C+Schaufenstergestaltung+%2C+Textilien+%2C+Textildruck+%2C+Magnetschilder+%2C+Schaukasten+%2C+Werbeagentur+%2C+Aufkleber+%2C+Banner+%2C+Digitaldruck+%2C+Werbetechnik';
var metaContents  = 'Bei+uns+erhalten+Sie+Ihre+gew%C3%BCnschte+Beschriftung+oder+Dekoration%21+Au%C3%9Ferdem+sind+wir+in+den+Bereichen+Leuchtk%C3%A4sten%2C+Digitaldruck%2C+Schilder+aller+Art%2C+Schaukasten%2C+Bannerbeschriftung%2C+Schilderbeschriftung%2C+Messegestaltung%2C+Textildruck%2C+Aufkleber+u.s.w.+t%C3%A4tig%21+Schauen+Sie+einfach+auf+unsere+Homepage%21+Ihr+Werbetechniker+im+Kalletal';
					                                                                    
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 */					                                                            

