/* [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('torcenter24+-+home'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','165022',jdecode('Normstahl++-++Tore+u.+Antriebe'),jdecode(''),'/165022/home.html','true',[ 
		['PAGE','186601',jdecode('Deckensektionaltore+Euro'),jdecode(''),'/165022/186601.html','true',[],''],
		['PAGE','186622',jdecode('Deckensektionaltore+g60'),jdecode(''),'/165022/186622.html','true',[],''],
		['PAGE','201701',jdecode('Designtore'),jdecode(''),'/165022/201701.html','true',[],''],
		['PAGE','186643',jdecode('Seitensektionaltore+'),jdecode(''),'/165022/186643.html','true',[],''],
		['PAGE','186664',jdecode('Schwingtore'),jdecode(''),'/165022/186664.html','true',[],''],
		['PAGE','344301',jdecode('Rolltore'),jdecode(''),'/165022/344301.html','true',[],''],
		['PAGE','186706',jdecode('Garagen-+u.+Hoftorantriebe'),jdecode(''),'/165022/186706.html','true',[],''],
		['PAGE','411501',jdecode('Industrietore'),jdecode(''),'/165022/411501.html','true',[],'']
	],''],
	['PAGE','41340',jdecode('Alulux++-++Tore+u.+Rollladen'),jdecode(''),'/41340/home.html','true',[ 
		['PAGE','213322',jdecode('Rollladen'),jdecode(''),'/41340/213322.html','true',[],''],
		['PAGE','213301',jdecode('Garagentore'),jdecode(''),'/41340/213301.html','true',[],'']
	],''],
	['PAGE','277901',jdecode('Teckentrup+Garagentore'),jdecode(''),'/277901.html','true',[],''],
	['PAGE','221701',jdecode('Steinau+Garagentore'),jdecode(''),'/221701.html','true',[],''],
	['PAGE','305401',jdecode('Marantec+-+Antriebe'),jdecode(''),'/305401.html','true',[],''],
	['PAGE','41349',jdecode('Rademacher+Rollladenantriebe'),jdecode(''),'/41349.html','true',[],''],
	['PAGE','392201',jdecode('Angebote+u.+Aktionen'),jdecode(''),'/392201.html','true',[],''],
	['PAGE','187901',jdecode('Service+%2F+Kontakt'),jdecode(''),'/187901.html','true',[],''],
	['PAGE','185601',jdecode('Impressum'),jdecode(''),'/185601.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='TOI_Business_4';
theSitetree.paletteFamily='134B83';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33445';
theSitetree.graphicsetId='14300';
theSitetree.contentColor='17314F';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Business_4',
				paletteFamily: 	'134B83',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33445',
				graphicsetId: 	'14300',
				contentColor: 	'17314F',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20120205-081636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41340',
internalId:  '',
customField: '20111130-090657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41349',
internalId:  '',
customField: '20111130-090905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185601',
internalId:  '',
customField: '20111128-071412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213322',
internalId:  '',
customField: '20110714-132342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165022',
internalId:  '',
customField: '20120222-203707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187901',
internalId:  '',
customField: '20111128-072328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186601',
internalId:  '',
customField: '20111221-131811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186622',
internalId:  '',
customField: '20120222-203521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186643',
internalId:  '',
customField: '20111221-132013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186664',
internalId:  '',
customField: '20111221-132106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '411501',
internalId:  '',
customField: '20120117-102333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186706',
internalId:  '',
customField: '20111221-132232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201701',
internalId:  '',
customField: '20111115-072744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213301',
internalId:  '',
customField: '20110714-132420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '392201',
internalId:  '',
customField: '20120222-203329'
};
webappMappings['1008']=webappMappings['1008-63831229']={
webappId:    '1008',
documentId:  '187901',
internalId:  '63831229',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221701',
internalId:  '',
customField: '20120206-110415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '344301',
internalId:  '',
customField: '20111221-132126'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '277901',
internalId:  '',
customField: '20120204-090116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '305401',
internalId:  '',
customField: '20120117-101704'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IR4TK6';
var companyName   = 'Willkommen+im+torcenter24';
var htmlTitle	  = 'Werner+Ball+++Tore+%26+Antriebsfachhandel';
var metaKeywords  = 'torcentrum%2C+torzentrum%2C+Werner%2C+Ball%2C+Garagentor%2C+Sektionaltore%2C+Sektionaltor%2C+Sectionaltore%2C+Sectionaltor%2C+Tore%2C+Antriebe%2C+Antrieb%2C+Torantriebe%2C+Torantrieb%2C+Hoftorantriebe%2C++Rollladen%2C+Rollladenantriebe%2C+Vorbaurollladen%2C+T%C3%BCrantriebe%2C+T%C3%BCrantrieb%2C+Fachhandel%2C+Elektroinstallation%2C+Schwingtore%2C+g60%2C+Euro%2C+WK2%2C+Normstahl%2C+St%C3%BCtzpunkth%C3%A4ndler%2C+Vertriebspartner%2C+Wartung%2C+Montage%2C+Service%2C+Rademacher%2C+Albe%2C+Allulux%2C+Garage%2C+Deckensektionaltore%2C+Designtore%2C+Industrietor%2C+Industrietore%2C+Einbruchschutz%2C+Renovation%2C+Renovieren%2C+Komplettservice%2C+Automatik%2C+Ultra%2C+g60+Max%2C+Alurahmen%2C+Fertiggaragen%2C+Deckenlaufschiene%2C+Schlupft%C3%BCr%2C+endbehandelt%2C+lackierte+Oberfl%C3%A4che%2C+Garagent%C3%BCren%2C+Fenster%2C+Ersatzteile%2C+Zubeh%C3%B6r%2C+Codetaster%2C+Fingerprinter%2C+endbeschichtet%2C+B%C3%BCren%2C+Salzkotten%2C+Geseke%2C+Paderborn%2C+Elsen%2C+Borchen%2C+Lippstadt%2C+Erwitte%2C+Anr%C3%B6chte%2C+Warstein%2C+Brilon%2C+R%C3%BCthen%2C+Bad+W%C3%BCnnenberg%2C+F%C3%BCrstenberg%2C+Garagentor+Erneuerung%2C+Garagentor+Antrieb%2C+Decken+Sektionaltor%2C+Prominent%2C+Service%2C+Torberatung%2C+Vor-Ort-Beratung%2C+T%C3%BCren%2C+Umbau%2C+Hoftor+Antrieb%2C+Sanierung%2C+Schiebetor%2C+Original%2C+Aktion+2009%2C+Anlieferung%2C+Bauelemente%2C+Baustoffe%2C+Rohrmotor%2C+H%C3%B6rmann%2C+Siebau%2C+Novoferm%2C+Gutomat%2C+Teckentrup%2C+Angebot%2C+Elsen%2C+Bad+Lippspringe%2C+Borchen%2C+Schlo%C3%9F+Neuhaus%2C+Selbsteinbau%2C+Baustoffe%2C+Kundendienst%2C+H%C3%B6rmann%2C+Novoferm%2C+Siebau%2C+Teckentrup%2C+Schiebetor';
var metaContents  = 'Garagentore+-+T%C3%BCren+-+Antriebe+-+Rollladen+-+Elektrofachhandel+-+Kundendienst.+Ihr+Fachhandel+mit+Qualit%C3%A4t%2C+die+sich+lohnt%21+++Normstahl+Fachberatung.';
					                                                                    
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 */					                                                            

