/* [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','4579',jdecode('Weingut-G%C3%A4stehaus+Simon'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','13796',jdecode('Ferienwohnung'),jdecode(''),'/13796.html','true',[],''],
	['PAGE','13661',jdecode('Weingut'),jdecode(''),'/13661.html','true',[],''],
	['PAGE','13688',jdecode('unsere+Weine+u.+Rebsorten'),jdecode(''),'/13688.html','true',[],''],
	['PAGE','73907',jdecode('Interessantes+um+den+Wein'),jdecode(''),'/73907.html','true',[],''],
	['PAGE','13715',jdecode('Weinprobe'),jdecode(''),'/13715.html','true',[],''],
	['PAGE','13742',jdecode('Preisliste'),jdecode(''),'/13742/home.html','true',[ 
		['PAGE','81670',jdecode('aktuelle+Wein-Preisliste+%28Folgeseite%29'),jdecode(''),'/13742/81670.html','false',[],'']
	],''],
	['PAGE','13823',jdecode('Freizeit+u.+Umgebung'),jdecode(''),'/13823.html','true',[],''],
	['PAGE','13850',jdecode('Kontakt'),jdecode(''),'/13850/home.html','true',[ 
		['PAGE','74579',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/13850/74579.html','false',[],'']
	],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFF7E6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10444';
theSitetree.graphicsetId='10824';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFF7E6';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Roses',
				paletteFamily: 	'FFF7E6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10444',
				graphicsetId: 	'10824',
				contentColor: 	'000000',
				contentBGColor: 'FFF7E6',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-atoix0inl0a56feb75742cd640f4']={
webappId:    '1001',
documentId:  '13850',
internalId:  'atoix0inl0a56feb75742cd640f4',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0inl0a56feb75742cd640f4']={
webappId:    '1001',
documentId:  '74579',
internalId:  'atoix0inl0a56feb75742cd640f4',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-atoix0inl0a51dfdc255594eec76']={
webappId:    '1001',
documentId:  '13742',
internalId:  'atoix0inl0a51dfdc255594eec76',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0inl0a51dfdc255594eec76']={
webappId:    '1001',
documentId:  '81670',
internalId:  'atoix0inl0a51dfdc255594eec76',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20110621-113109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13796',
internalId:  '',
customField: '20110214-091723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13823',
internalId:  '',
customField: '20100915-170317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13742',
internalId:  '',
customField: '20110621-113033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73907',
internalId:  '',
customField: '20050829-112138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13661',
internalId:  '',
customField: '20110214-091910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13688',
internalId:  '',
customField: '20050829-111912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13715',
internalId:  '',
customField: '20110214-092614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81670',
internalId:  '',
customField: '20050828-113141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13850',
internalId:  '',
customField: '20110415-153918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74579',
internalId:  '',
customField: '20050828-111801'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INL0A5';
var companyName   = 'Weingut+u.+G%C3%A4stehaus+Simon';
var htmlTitle	  = 'Weingut+Ferienwohnung+Simon+in+Bad+Sobernheim+OT+Steinhardt++%2F++Nahe%2C+Rolf+u.+Christine+Simon';
var metaKeywords  = 'Ferienwohnung%2CUnterkunft%2CNahewein%2CWein+vom+Winzer%2CWeingut%2CRolf%2CSimon%2CChristine%2CBad+Sobernheim%2CProbierstube%2CWeinprobe%2CSteinhardt%2CNaheland%2CSoonwald%2CHunsrueck%2CHunsr%C3%BCck%2CRhein%2CFreizeitm%C3%B6glichkeit%2CDraisine%2CFreilichtmuseum%2CUnterkunft%2CZimmer%2CFr%C3%BChst%C3%BCck%2CGrillplatz%2CGarten%2CBad%2CKreuznach%2CM%C3%BCnster%2CKirn%2CIdar-Oberstein%2CBingen%2CMainz%2CAsklepios%2CGaestezimmer%2CG%C3%A4stezimmer%2CFortbildung%2CWeinbergsf%C3%BChrung%2CWeinbergsrundgang%2CKellerf%C3%BChrung%2CWeinauslieferung%2CLieferservice%2CPreisliste%2CRuedesheimer%2CR%C3%BCdesheimer+Rosengarten%2CSteinhardter%2C+Johannesberg%2CRivaner%2CRiesling%2CM%C3%BCller-Thurgau%2CGrauer+Burgunder%2CPortugieser%2CBacchus%2COrtega%2CHuxelrebe%2CScheurebe%2CSekt%2CWinzersekt%2CWeinhefebrand%2CPreisliste%2CUrlaub%2CFerien%2CRotwein%2CWeisswein%2CWei%C3%9Fwein%2C';
var metaContents  = 'Weingut++Ferienwohnung+Simon%2C+Bad+Sobernheim+-+Steinhardt%2C+familienfreundliche+Unterkunft+im+Naheland%2C+Wein+direkt+vom+Nahe-Winzer%2C+Probierstube%2C+Weinprobe%2C+zwischen+Nahe%2C+Hunsr%C3%BCck%2C+Soonwald+und+Rhein+gelegen.+Vielf%C3%A4ltige+Freizeitm%C3%B6glichkeiten.';
					                                                                    
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 */					                                                            

