/* [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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','1621',jdecode('Home'),jdecode(''),'/1621.html','true',[],'',''],
	['PAGE','72256',jdecode('Dinner+nach+Wunsch'),jdecode(''),'/72256.html','true',[],'',''],
	['PAGE','5008',jdecode('Unser+Angebot'),jdecode(''),'/5008/index.html','true',[ 
		['PAGE','5062',jdecode('Ap%C3%A9ro'),jdecode(''),'/5008/5062.html','true',[],'',''],
		['PAGE','62658',jdecode('Veganer+Ap%C3%A9ro+'),jdecode(''),'/5008/62658.html','true',[],'',''],
		['PAGE','12501',jdecode('Kalte+Platten+%2FBuffets'),jdecode(''),'/5008/12501.html','true',[],'',''],
		['PAGE','5089',jdecode('Schlemmer+Buffets'),jdecode(''),'/5008/5089.html','true',[],'',''],
		['PAGE','12839',jdecode('Vorspeisen'),jdecode(''),'/5008/12839.html','true',[],'',''],
		['PAGE','12866',jdecode('Menus'),jdecode(''),'/5008/12866.html','true',[],'',''],
		['PAGE','6301',jdecode('Tataren-Hut'),jdecode(''),'/5008/6301.html','true',[],'',''],
		['PAGE','5407',jdecode('Fleischfondues'),jdecode(''),'/5008/5407.html','true',[],'',''],
		['PAGE','26913',jdecode('Grillbuffets'),jdecode(''),'/5008/26913.html','true',[],'',''],
		['PAGE','38049',jdecode('Grill+all+inklusive'),jdecode(''),'/5008/38049.html','true',[],'',''],
		['PAGE','9001',jdecode('Geburtstagsfest'),jdecode(''),'/5008/9001.html','true',[],'',''],
		['PAGE','9028',jdecode('Hochzeits+Menu'),jdecode(''),'/5008/9028.html','true',[],'',''],
		['PAGE','10301',jdecode('Firmenfeste'),jdecode(''),'/5008/10301.html','true',[],'',''],
		['PAGE','10355',jdecode('Getr%C3%A4nkeliste'),jdecode(''),'/5008/10355.html','true',[],'',''],
		['PAGE','10544',jdecode('Dessert+%2FBuffet'),jdecode(''),'/5008/10544.html','true',[],'',''],
		['PAGE','10382',jdecode('Mobiliar+%2FGeschirr%2FZelte'),jdecode(''),'/5008/10382.html','true',[],'',''],
		['PAGE','10409',jdecode('Personal%2FKonditionen'),jdecode(''),'/5008/10409.html','true',[],'',''],
		['PAGE','48812',jdecode('Partyzelte'),jdecode(''),'/5008/48812.html','true',[],'',''],
		['PAGE','10490',jdecode('Fotogallerie'),jdecode(''),'/5008/10490.html','true',[],'',''],
		['PAGE','50331',jdecode('Sandwiche+Angebot'),jdecode(''),'/5008/50331.html','true',[],'',''],
		['PAGE','53666',jdecode('Tagesmenus'),jdecode(''),'/5008/53666.html','true',[],'','']
	],'',''],
	['PAGE','81756',jdecode('Aktuell'),jdecode(''),'/81756.html','true',[],'',''],
	['PAGE','73756',jdecode('Referenzen'),jdecode(''),'/73756.html','true',[],'',''],
	['PAGE','77856',jdecode('Kontakt'),jdecode(''),'/77856.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Grid';
theSitetree.paletteFamily='D38484';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16762';
theSitetree.graphicsetId='12264';
theSitetree.contentColor='7B2F2F';
theSitetree.contentBGColor='D38484';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Grid',
				paletteFamily: 	'D38484',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16762',
				graphicsetId: 	'12264',
				contentColor: 	'7B2F2F',
				contentBGColor: 'D38484',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1621',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2041382']={
webappId:    '1501',
documentId:  '1621',
internalId:  '2041382',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1621',
internalId:  '',
customField: '20060823-204550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5008',
internalId:  '',
customField: '20081118-181211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81756',
internalId:  '',
customField: '20100416-172121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72256',
internalId:  '',
customField: '20060905-134934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5062',
internalId:  '',
customField: '20080908-165828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62658',
internalId:  '',
customField: '20060824-193103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20060210-155918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5089',
internalId:  '',
customField: '20080908-170949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12839',
internalId:  '',
customField: '20080908-165955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12866',
internalId:  '',
customField: '20070402-154214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20060925-102625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5407',
internalId:  '',
customField: '20080908-165653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26913',
internalId:  '',
customField: '20080908-171249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38049',
internalId:  '',
customField: '20090324-145653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20060820-110751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9028',
internalId:  '',
customField: '20070402-164037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20060209-174315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10355',
internalId:  '',
customField: '20080908-170504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10544',
internalId:  '',
customField: '20060820-114436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10382',
internalId:  '',
customField: '20081029-134523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10409',
internalId:  '',
customField: '20100412-184005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48812',
internalId:  '',
customField: '20070813-140110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10490',
internalId:  '',
customField: '20081118-184323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50331',
internalId:  '',
customField: '20060201-160220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53666',
internalId:  '',
customField: '20080908-173308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73756',
internalId:  '',
customField: '20060905-143754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77856',
internalId:  '',
customField: '20060925-101637'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'Ahp010IN22PY';
var companyName   = 'Partyland+Pratteln+%26+Wyss+Natura+Metzg+';
var htmlTitle	  = 'Partyland+Pratteln%2C+Partyservice%2C+Vermietung%2C+Wir+arrangieren+-+Sie+geniessen';
var metaKeywords  = 'Partyservice%2CVermietung%2CRechaud%2CRechaud-Vermietung%2CRechaud-Miete%2CCatering%2CBankett%2CNatura%2CBeef%2CEvents%2C+Tataren-Hut%2C+Mobiliarvermietung%2CBBQ%2CWaldh%C3%BCtte%2CSulzkopf%2CGesch%C3%A4ftsessen%2CGeburtstag%2C+Firmenessen%2CAp%C3%A9ro%2CZeltvermietung%2CMobiliar+Friteuse%2C+K%C3%BChlschrank%2CMusik%2CHochzeit%2CPolterabend%2CFest%2CMetzg%2C+all+inkl.+Holzkohlengrill%2CGrillkurs%2CRechaud%2C+K%C3%A4sefondue%2C+partyland%2CBourguignonne%2CPf%C3%A0nnli%2CVerkauf%2CGrill%2C+Raclette%2C+Veganer%2C+Vegi%2C+K%C3%A4sefondue%2C+Gasfriteuse%2C+';
var metaContents  = 'Partyservice%2CVermietung%2CRechaud%2CCatering%2CBankett%2CNatura%2C+Events%2CMobiliarvermietung%2CBBQ%2CWaldhh%C3%BCtte+Sulzkopf%2CGesch%C3%A0ftsessen%2CGeburtstag%2C+K%C3%A4sefondue%2C+Firmenessen%2CAp%C3%A9ro%2CZeltvermietung%2CMobiliar%2C+Friteuse%2CK%C3%BChlschrank%2CMusik%2CHochzeit%2CPolterabend%2CFest%2CMetzg%2CHolzkohlengrill%2CGrillkurs%2Cwyss%2CFondue%2CHeizung%2CStoffgedeck%2CTische%2CBistro%2CSt%C3%BChle%2CBourguignonne%2CWinzer%2CChinoise%2C+Raclette%2C+Veganer%2C+Vegi';
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) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	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();
};
