/* [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','41105',jdecode('mein+Shop'),jdecode(''),'/41105.html','true',[],''],
	['PAGE','40857',jdecode('Interessante+Links'),jdecode(''),'/40857.html','true',[],'']];
var siteelementCount=3;
theSitetree.topTemplateName='TOI_Business_2';
theSitetree.paletteFamily='DCDCDD';
theSitetree.keyvisualId='10769';
theSitetree.keyvisualName='kv_10769.jpg';
theSitetree.fontsetId='31826';
theSitetree.graphicsetId='13617';
theSitetree.contentColor='FDFDFC';
theSitetree.contentBGColor='f39154';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Business_2',
				paletteFamily: 	'DCDCDD',
				keyvisualId: 	'10769',
				keyvisualName: 	'kv_10769.jpg',
				fontsetId: 		'31826',
				graphicsetId: 	'13617',
				contentColor: 	'FDFDFC',
				contentBGColor: 'f39154',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				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: '20090926-172652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40857',
internalId:  '',
customField: '20090902-134339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41105',
internalId:  '',
customField: '20090902-134215'
};
var canonHostname = 'cfawrk03.aul.t-online.de';
var accountId     = 'ATOIX0IRQYVH';
var companyName   = 'Hand+gefertigte+Produkte';
var htmlTitle	  = 'Hand+gefertigte+Produkte+-+selbstgemacht';
var metaKeywords  = 'selbstgemacht%2C+selbstgemachte%2C+selbstgemachtes%2C+Deko%2C+Designlampe%2C+Kugellampe%2C+Kugellampen%2C+Design%2C+Shop%2C+shopping%2C+selbst+hergestellt%2C+selber+machen%2C+selber+gemacht%2C+Hand+gefertigte+Produkte%2C+Hand+gefertigt%2C+Wittingen%2C+von+Hand+gefertigt%2C+Lichtkugel%2C+Leuchtkugel%2C+Perlenschmuck%2C+Schmuck+bestellen%2C+Taschen+kaufen%2C+Geschenke%2C+Geschenkideen%2C+Geschenkidee%2C+Lampe%2C+Lampen%2C+Tasche%2C+gefilzt%2C+recycling%2C+Tetrapaktasche%2C+Handtasche%2C+gestrickte+Socken%2C+Ketten%2C+geh%C3%A4kelte+Ketten%2C+Ohrringe%2C+Ohrh%C3%A4nger%2C+Crea+Pop%2C+Creapop%2C+individuell%2C+Tischdekoration%2C+Teelicht%2C+Windlicht%2C+Knopfschmuck%2C+Kn%C3%B6pfe%2C+Knopf%2C+Armband%2C+gestrickt%2C+geh%C3%A4kelt%2C+geflochten%2C+gefilzt%2C+strick+gefilzt%2C+strickgefilzt%2C+Tetrapak%2C+Tetrapack%2C+Lichterkette%2C+Konfirmation%2C+Hochzeit%2C+Taufe%2C+Onlineshop%2C+Vlies%2C+Wolle%2C+Filztasche%2C+Rosen%2C+Weihnachten%2C+Ostern%2C+Muttertag%2C+Fr%C3%BChjahrserwachen%2C+Fr%C3%BChjahr%2C+rot%2C+wei%C3%9F%2C+schwarz%2C+creme%2C+apfelgr%C3%BCn%2C+orange%2C+lila%2C+pink%2C+Kreuz%2C+Herz%2C+3D+Karte%2C+Tischlampe%2C+Tischleuchte%2C+Junge%2C+M%C3%A4dchen%2C+Geburt%2C+Geburtstag%2C+3d%2C+Bogen%2C+Gru%C3%9Fkarten%2C+Karten%2C+Wolle';
var metaContents  = 'Lieben+Sie+es+individuell+und+nicht+seriell%3F+selbstgemachte+Produkte+-+garantiert+von+Hand+gefertigt+';
					                                                                    
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 */					                                                            
