/* [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','41156',jdecode('SP%C3%96HRLECORNELIA'),jdecode(''),'/41156.html','true',[],''],
	['PAGE','41208',jdecode('ATELIERKUNST'),jdecode(''),'/41208.html','true',[],''],
	['PAGE','41555',jdecode('ATELIERKUNST'),jdecode(''),'/41555.html','true',[],''],
	['PAGE','41043',jdecode('ATELIERKONTAKT'),jdecode(''),'/41043.html','true',[],''],
	['PAGE','41034',jdecode('HAUSSP%C3%96HRLE'),jdecode(''),'/41034.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Linea';
theSitetree.paletteFamily='FFE64C';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='400';
theSitetree.graphicsetId='449';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Linea',
				paletteFamily: 	'FFE64C',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'400',
				graphicsetId: 	'449',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFE64C',
				c_color: 		'FFA94C',
				d_color: 		'FFDC00',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41156',
internalId:  '',
customField: '20111002-193319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41555',
internalId:  '',
customField: '20110412-221530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41034',
internalId:  '',
customField: '20111002-122257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41043',
internalId:  '',
customField: '20111002-121037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41208',
internalId:  '',
customField: '20110412-214250'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I73AVL';
var companyName   = 'ATELIER';
var htmlTitle	  = 'SPOEHRLEATELIER+Sp%C3%B6hrle+Cornelia+Profil+entwickeln%21+Firmenphilosophie+.+Unternehmensstrategie+.+Image+.+Marke+.+Marketing+-+Kommunikation+.+Design+.+Kunst+.+Stuttgart+.+Beilstein+.+Heilbronn';
var metaKeywords  = 'Atelier%2C+Sp%C3%B6hrle%2C+Stuttgart%2C+Beilstein%2C+Heilbronn%2C+Freie+Beratung%2C+Firmenphilosophie%2C+Unternehmensstrategie%2C+Imagebildung+.+Markenaufbau%2F-pflege+.+Werbekonzeption%2C+Marketingberatung%2C+Kommunikation%2C+Kommunikationsstrategie%2C+Kundenbindung%2C+Kommunikationsdesign%2C+Grafik+Design%2C+Corporate+Identity%2C+Corporate+Design%2C+Corporate+Communication%2C+Logo+Design%2C+Namensentwicklung%2C+Hausfarben%2C+Schriften%2C+Claims%2C+Erscheinungsbild+.+SP%C3%96HRLEATELIER+.+Hauptstrasse+2+.+71717+Beilstein+.+B%C3%BCro+.+Kanzlei+.+Praxis+zu+vermieten%21';
var metaContents  = 'Sp%C3%B6hrle+Cornelia+.+Dipl.+Betriebswirtin+.+Kommunikationswirtiin+.+Grafik+Designerin+.+SPOEHRLEATELIER+Profil+entwickeln%21+Firmenphilosophie+.+Unternehmensstrategie+.+Image+.+Marke+.+Marketing+-+Kommunikation+.+Design+.+Kunst+.+....beraten%2C+konzipieren%2C+kunstvoll+gestalten%21++Stuttgart+-+Beilstein+-+Heilbronn';
					                                                                    
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 */					                                                            

