/* [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','10684',jdecode('Aktuelles+%2F+news+'),jdecode(''),'/10684/home.html','true',[ 
		['PAGE','15214',jdecode('Impress.%7ESUNNY-ENERGY'),jdecode(''),'/10684/15214.html','true',[],''],
		['PAGE','15114',jdecode('Environment+%2F+Safety+at+Work'),jdecode(''),'/10684/15114.html','true',[],'']
	],''],
	['PAGE','10690',jdecode('SYLT-Wedding-Hochzeit'),jdecode(''),'/10690.html','true',[],''],
	['PAGE','10802',jdecode('G%C3%A4stebuch+%2F+guestbook'),jdecode(''),'/10802/home.html','true',[ 
		['PAGE','10803',jdecode('Eintr%C3%A4ge+%2F+Entries'),jdecode(''),'/10802/10803.html','true',[],'']
	],''],
	['PAGE','11101',jdecode('Hello+USA'),jdecode(''),'/11101.html','true',[],''],
	['PAGE','14114',jdecode('C+U+B+A++++2010'),jdecode(''),'/14114.html','true',[],''],
	['PAGE','12801',jdecode('++++Wetterseite+%2F+Weather'),jdecode(''),'/12801.html','true',[],''],
	['PAGE','14214',jdecode('Bad+Bramstedt+'),jdecode(''),'/14214.html','true',[],''],
	['PAGE','495409',jdecode('Blog'),jdecode(''),'/495409.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Snapshot';
theSitetree.paletteFamily='6F6F6F';
theSitetree.keyvisualId='3631';
theSitetree.keyvisualName='kv_3631.jpg';
theSitetree.fontsetId='10755';
theSitetree.graphicsetId='10878';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6F6F6F';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Snapshot',
				paletteFamily: 	'6F6F6F',
				keyvisualId: 	'3631',
				keyvisualName: 	'kv_3631.jpg',
				fontsetId: 		'10755',
				graphicsetId: 	'10878',
				contentColor: 	'FFFFFF',
				contentBGColor: '6F6F6F',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FC5E7B',
				e_color: 		'BFBFBF',
				f_color: 		'050001',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-10802atoix0in25l5']={
webappId:    '1002',
documentId:  '10802',
internalId:  '10802atoix0in25l5',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-10802atoix0in25l5']={
webappId:    '1002',
documentId:  '10803',
internalId:  '10802atoix0in25l5',
customField: 'action=list'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10684',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10684',
internalId:  '',
customField: '20120211-203951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15214',
internalId:  '',
customField: '20111118-205950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15114',
internalId:  '',
customField: '20100827-195520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10690',
internalId:  '',
customField: '20080725-235145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10802',
internalId:  '',
customField: '20111128-195003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10803',
internalId:  '',
customField: '20100306-190347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20091029-205942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14114',
internalId:  '',
customField: '20111008-205902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20111018-164740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14214',
internalId:  '',
customField: '20110805-071632'
};
webappMappings['7050']=webappMappings['7050-1']={
webappId:    '7050',
documentId:  '495409',
internalId:  '1',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '495409',
internalId:  '',
customField: '20110706-204923'
};
webappMappings['1501']=webappMappings['1501-1599460']={
webappId:    '1501',
documentId:  '10684',
internalId:  '1599460',
customField: '1501'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IN25L5';
var companyName   = '+Horst+%26+Ilse+Struve';
var htmlTitle	  = 'Horst-D+Struve%2C%22Cleaner+Energy+from+the+Sun%22';
var metaKeywords  = 'Extremwetter%2C+Schleswig-Holstein%2C+Internetwetter%2C+SH-Netz+AG+%3BSonne+in+Schleswig-Holstein%2C+Bad+Bramstedt+%2Cerneuerbare+Energie+aus+Sonnenstrahlen%2C';
var metaContents  = 'SUNNY-ENERGY+speist+Strom+aus+Sonnenschein+von+der+Hinnark-Ranch+ins+Netz+der+Bad+Bramstedt+Netz+GmbH++Schleswig-Holstein+Netz+AG+ein.+';
					                                                                    
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 */					                                                            

