/* [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','13637',jdecode('Home'),jdecode(''),'/13637.html','true',[],''],
	['PAGE','28986',jdecode('So+finden+Sie+uns'),jdecode(''),'/28986/home.html','true',[ 
		['PAGE','37178',jdecode('Anfahrt'),jdecode(''),'/28986/37178.html','true',[],'']
	],''],
	['PAGE','29013',jdecode('Speisen+und+Getr%C3%A4nke'),jdecode(''),'/29013.html','true',[],''],
	['PAGE','29067',jdecode('+Reservierungen'),jdecode(''),'/29067/home.html','true',[ 
		['PAGE','34962',jdecode('+Reservierungen+%28Folgeseite%29'),jdecode(''),'/29067/34962.html','false',[],'']
	],''],
	['PAGE','14408',jdecode('G%C3%A4stebuch'),jdecode(''),'/14408/home.html','true',[ 
		['PAGE','14409',jdecode('Eintr%C3%A4ge'),jdecode(''),'/14408/14409.html','true',[],'']
	],''],
	['PAGE','36699',jdecode('Ihre+Feier+im+Grash%C3%B6fle'),jdecode(''),'/36699.html','true',[],''],
	['PAGE','36905',jdecode('Presse+und+Bilder'),jdecode(''),'/36905.html','true',[],''],
	['PAGE','37246',jdecode('Impressum'),jdecode(''),'/37246.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Draft';
theSitetree.paletteFamily='2E5D32';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10399';
theSitetree.graphicsetId='10612';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='2E5D32';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Draft',
				paletteFamily: 	'2E5D32',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10399',
				graphicsetId: 	'10612',
				contentColor: 	'FFFFFF',
				contentBGColor: '2E5D32',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'92BD96',
				e_color: 		'BFA45F',
				f_color: 		'BFA45F',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-14408ATOIX0INVC7X']={
webappId:    '1002',
documentId:  '14408',
internalId:  '14408ATOIX0INVC7X',
customField: 'action=form&icq=false'
};
webappMappings['1501']=webappMappings['1501-584331']={
webappId:    '1501',
documentId:  '13637',
internalId:  '584331',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13637',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-atoix0invc7x959603d4d4507a7d']={
webappId:    '1001',
documentId:  '29067',
internalId:  'atoix0invc7x959603d4d4507a7d',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0invc7x959603d4d4507a7d']={
webappId:    '1001',
documentId:  '34962',
internalId:  'atoix0invc7x959603d4d4507a7d',
customField: 'followUp'
};
webappMappings['1002']=webappMappings['1002-14408ATOIX0INVC7X']={
webappId:    '1002',
documentId:  '14409',
internalId:  '14408ATOIX0INVC7X',
customField: 'action=list'
};
webappMappings['1007']=webappMappings['1007-10d72608fea']={
webappId:    '1007',
documentId:  '36905',
internalId:  '10d72608fea',
customField: 'g.11lp5er7t.7cn736f00dh.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13637',
internalId:  '',
customField: '20110107-125752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28986',
internalId:  '',
customField: '20040322-112833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29013',
internalId:  '',
customField: '20101015-114535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37246',
internalId:  '',
customField: '20100313-112624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29067',
internalId:  '',
customField: '20100914-162329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34962',
internalId:  '',
customField: '20040321-214042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14408',
internalId:  '',
customField: '20040322-113440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14409',
internalId:  '',
customField: '20040223-211735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36699',
internalId:  '',
customField: '20110110-101643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36905',
internalId:  '',
customField: '20090531-121336'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '37178',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37178',
internalId:  '',
customField: '20090605-110906'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INVC7X';
var companyName   = 'Weinstube+Grash%C3%B6fle';
var htmlTitle	  = 'S%C2%B4Grash%C3%B6fle%2C+Ihre+gem%C3%BCtliche+Weinstube+in+Kornwestheim';
var metaKeywords  = 'Schw%C3%A4bisch+Zwiebelrostbraten+Sp%C3%A4tzle+Kornwestheim+Weinstube+gem%C3%BCtlich+Maultaschen+Restaurant+Grash%C3%B6fle+Lokal+Gastlichkeit+schw%C3%A4bischer+schw%C3%A4bisches+Lokal+Abendessen+Schmankerl+Gastst%C3%A4tte+Restaurant+Kornwestheim+Ludwigsburg+Grash%C3%B6fle+Grashoefle+M%C3%BClhaupt+M%C3%BChlhaupt+Rosi+Dieter+Gartenlokal+Biergarten+Sommerterrasse+';
var metaContents  = 'Weinstube+mit+behaglichem+Ambiente+mit+schw%C3%A4bischen+Spezialit%C3%A4ten+und+erlesenen+Weinen+aus+dem+Inland+und+Ausland';
					                                                                    
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 */					                                                            

