/* [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('Ambissoires'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41393',jdecode('Ambissoires+-+Events'),jdecode(''),'/41393.html','true',[],''],
	['PAGE','40376',jdecode('Ambissoires+-+Ihre+Auswahl'),jdecode(''),'/40376/home.html','true',[ 
		['PAGE','40385',jdecode('Fr%C3%BChjahr+%26+Sommer'),jdecode(''),'/40376/40385.html','true',[],''],
		['PAGE','40394',jdecode('Herbst+%26+Winter+%2F+Weihnachtszeit'),jdecode(''),'/40376/40394.html','true',[],'']
	],''],
	['PAGE','40439',jdecode('Kontakt'),jdecode(''),'/40439.html','true',[],''],
	['PAGE','40448',jdecode('Impressum'),jdecode(''),'/40448.html','true',[],''],
	['PAGE','40457',jdecode('AGBs'),jdecode(''),'/40457.html','true',[],''],
	['PAGE','40743',jdecode('G%C3%A4stebuch'),jdecode(''),'/40743/home.html','true',[ 
		['PAGE','40742',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40743/40742.html','true',[],'']
	],''],
	['PAGE','41422',jdecode('Anfahrt'),jdecode(''),'/41422.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Panorama';
theSitetree.paletteFamily='EC9639';
theSitetree.keyvisualId='10883';
theSitetree.keyvisualName='kv_10883.jpg';
theSitetree.fontsetId='31878';
theSitetree.graphicsetId='13682';
theSitetree.contentColor='38322C';
theSitetree.contentBGColor='EC9639';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Panorama',
				paletteFamily: 	'EC9639',
				keyvisualId: 	'10883',
				keyvisualName: 	'kv_10883.jpg',
				fontsetId: 		'31878',
				graphicsetId: 	'13682',
				contentColor: 	'38322C',
				contentBGColor: 'EC9639',
				a_color: 		'000000',
				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:     '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: '20110715-104851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40376',
internalId:  '',
customField: '20071119-162331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40385',
internalId:  '',
customField: '20071119-181007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40439',
internalId:  '',
customField: '20070923-122401'
};
webappMappings['1002']=webappMappings['1002-40743atoix0i7zo26']={
webappId:    '1002',
documentId:  '40743',
internalId:  '40743atoix0i7zo26',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-40743atoix0i7zo26']={
webappId:    '1002',
documentId:  '40742',
internalId:  '40743atoix0i7zo26',
customField: 'action=list'
};
webappMappings['1501']=webappMappings['1501-38837442']={
webappId:    '1501',
documentId:  '39994',
internalId:  '38837442',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40743',
internalId:  '',
customField: '20070830-160943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40742',
internalId:  '',
customField: '20070830-160943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40394',
internalId:  '',
customField: '20071119-162547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40448',
internalId:  '',
customField: '20070923-124507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40457',
internalId:  '',
customField: '20070923-130659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41393',
internalId:  '',
customField: '20110317-123133'
};
webappMappings['1008']=webappMappings['1008-38847835']={
webappId:    '1008',
documentId:  '40439',
internalId:  '38847835',
customField: 'de:DE:'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41422',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41422',
internalId:  '',
customField: '20110304-184313'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7ZO26';
var companyName   = 'Ambissoires%40aha-zeitnah';
var htmlTitle	  = 'Ambissoires+-+Ambiente-Accessoires';
var metaKeywords  = 'aha-zeitnah%2C+zeitnah%2C+aha%2C+Kunst%2C+Antik%2C+Dekoration%2C+Tischdekoration%2C+Accessoires%2C+Ambiente%2C+Kerze%2C+Kerzenst%C3%A4nder%2C+Kerzenstaender%2C+Garderobenhaken%2C+Garderobe%2C+Bilderrahmen%2C+Shabby%2C+Schmuck%2C+Schmuckhaken%2C+Edel-Geweih%2C+Kunst-Geweih%2C+Geweih%2C+Geweihe%2C+Geissbock%2C+Gei%C3%9Fbock%2C+Fr%C3%BChst%C3%BCcksbrettchen%2C+Fr%C3%BChst%C3%BCcksbrett%2C+Stullenbretter%2C+Miniteich%2C+Mini-Teich%2C+Gartendekoration%2C+Garten-Dekoration%2C';
var metaContents  = 'Willkommen+bei+Ambissoires+-+Ambiente-Accessoires+exklusiver+Art%21';
					                                                                    
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 */					                                                            

