/* [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','4529',jdecode('Home'),jdecode(''),'/4529.html','true',[],'',''],
	['PAGE','38814',jdecode('Grill-Ueli+Shop'),jdecode(''),'/38814.html','true',[],'',''],
	['PAGE','9324',jdecode('Team+'),jdecode(''),'/9324/index.html','true',[ 
		['PAGE','9351',jdecode('Mitglieder'),jdecode(''),'/9324/9351.html','true',[],'',''],
		['PAGE','9378',jdecode('Erfolge'),jdecode(''),'/9324/9378.html','true',[],'',''],
		['PAGE','11322',jdecode('Motto'),jdecode(''),'/9324/11322.html','true',[],'',''],
		['PAGE','9486',jdecode('Sponsoren'),jdecode(''),'/9324/9486.html','true',[],'',''],
		['PAGE','9405',jdecode('Presseauftritte'),jdecode(''),'/9324/9405.html','true',[],'',''],
		['PAGE','134343',jdecode('TV+SF1%2FRadio+DRS'),jdecode(''),'/9324/134343.html','true',[],'',''],
		['PAGE','189401',jdecode('Video+SF+bi+de+L%C3%BCt'),jdecode(''),'/9324/189401.html','true',[],'',''],
		['PAGE','119001',jdecode('SM+Wil+2008'),jdecode(''),'/9324/119001.html','true',[],'',''],
		['PAGE','95144',jdecode('Alpen-Adria+2007'),jdecode(''),'/9324/95144.html','true',[],'',''],
		['PAGE','92902',jdecode('WM+2006'),jdecode(''),'/9324/92902.html','true',[],'',''],
		['PAGE','12401',jdecode('Blue+Danube+2005'),jdecode(''),'/9324/12401.html','true',[],'',''],
		['PAGE','12428',jdecode('WM+2005'),jdecode(''),'/9324/12428.html','true',[],'',''],
		['PAGE','12455',jdecode('Jack+Daniel%26%23x27%3Bs+2003'),jdecode(''),'/9324/12455.html','true',[],'',''],
		['PAGE','30342',jdecode('Lynchburg+TN+USA'),jdecode(''),'/9324/30342.html','true',[],'',''],
		['PAGE','61310',jdecode('zum+Schmunzeln'),jdecode(''),'/9324/61310.html','true',[],'','']
	],'',''],
	['PAGE','9540',jdecode('Kurse+Partyservice'),jdecode(''),'/9540/index.html','true',[ 
		['PAGE','95566',jdecode('Grillkurse+Globus'),jdecode(''),'/9540/95566.html','true',[],'',''],
		['PAGE','163501',jdecode('Grillkurse+Outdoor'),jdecode(''),'/9540/163501.html','true',[],'',''],
		['PAGE','100678',jdecode('Grillkurse+Dornbirn'),jdecode(''),'/9540/100678.html','true',[],'','']
	],'',''],
	['PAGE','58510',jdecode('Grillieren'),jdecode(''),'/58510/index.html','true',[ 
		['PAGE','9810',jdecode('Tipps+%26+Tricks'),jdecode(''),'/58510/9810.html','true',[],'',''],
		['PAGE','164101',jdecode('Fleischkunde'),jdecode(''),'/58510/164101.html','true',[],'',''],
		['PAGE','164122',jdecode('Ern%C3%A4hrungstipps'),jdecode(''),'/58510/164122.html','true',[],'',''],
		['PAGE','127401',jdecode('Rezepte'),jdecode(''),'/58510/127401.html','true',[],'',''],
		['PAGE','101262',jdecode('Unfallverh%C3%BCtung'),jdecode(''),'/58510/101262.html','true',[],'',''],
		['PAGE','101723',jdecode('Umweltschutz'),jdecode(''),'/58510/101723.html','true',[],'',''],
		['PAGE','141601',jdecode('Grill-Wetter'),jdecode(''),'/58510/141601.html','true',[],'',''],
		['PAGE','135901',jdecode('Gourmet+Metzg'),jdecode(''),'/58510/135901.html','true',[],'','']
	],'',''],
	['PAGE','9729',jdecode('Kontakt'),jdecode(''),'/9729.html','true',[],'',''],
	['PAGE','10107',jdecode('Links'),jdecode(''),'/10107.html','true',[],'',''],
	['PAGE','22402',jdecode('G%C3%A4stebuch'),jdecode(''),'/22402/index.html','true',[ 
		['PAGE','22403',jdecode('Eintr%C3%A4ge'),jdecode(''),'/22402/22403.html','false',[],'','']
	],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2224';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='415';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='93A6CC';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2224',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'415',
				contentColor: 	'000000',
				contentBGColor: '93A6CC',
				a_color: 		'93A6CC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9324',
internalId:  '',
customField: '20100228-191201'
};
webappMappings['1002']=webappMappings['1002-22402ABW0X0INXXJU']={
webappId:    '1002',
documentId:  '22402',
internalId:  '22402ABW0X0INXXJU',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4529',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4529',
internalId:  '',
customField: '20100824-151025'
};
webappMappings['1501']=webappMappings['1501-595601']={
webappId:    '1501',
documentId:  '4529',
internalId:  '595601',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9351',
internalId:  '',
customField: '20100824-151544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9378',
internalId:  '',
customField: '20100816-123653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11322',
internalId:  '',
customField: '20100426-152350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9486',
internalId:  '',
customField: '20100607-121442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9405',
internalId:  '',
customField: '20100531-215523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58510',
internalId:  '',
customField: '20060716-120029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9810',
internalId:  '',
customField: '20060716-120416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189401',
internalId:  '',
customField: '20100829-215332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95144',
internalId:  '',
customField: '20090222-141403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92902',
internalId:  '',
customField: '20060730-074753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20060716-121445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12428',
internalId:  '',
customField: '20060716-121646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12455',
internalId:  '',
customField: '20060716-121843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30342',
internalId:  '',
customField: '20060716-122120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119001',
internalId:  '',
customField: '20090222-171630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9540',
internalId:  '',
customField: '20060716-122420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95566',
internalId:  '',
customField: '20100422-094554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100678',
internalId:  '',
customField: '20100303-210809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127401',
internalId:  '',
customField: '20100427-095408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101262',
internalId:  '',
customField: '20100512-075526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101723',
internalId:  '',
customField: '20080512-070250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38814',
internalId:  '',
customField: '20100426-154453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61310',
internalId:  '',
customField: '20091213-121927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9729',
internalId:  '',
customField: '20100319-185202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10107',
internalId:  '',
customField: '20100822-214653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22402',
internalId:  '',
customField: '20060329-174807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22403',
internalId:  '',
customField: '20060329-174807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163501',
internalId:  '',
customField: '20100303-210709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135901',
internalId:  '',
customField: '20100426-144840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141601',
internalId:  '',
customField: '20100303-211057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134343',
internalId:  '',
customField: '20100303-210437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164101',
internalId:  '',
customField: '20100422-093214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164122',
internalId:  '',
customField: '20100422-093451'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXXJU';
var companyName   = 'Grill-Ueli+Barbecue+Team';
var htmlTitle	  = 'Grill+Ueli+Barbecue+Team';
var metaKeywords  = 'Grill-Ueli%2C+Grillueli%2C+Ueli%2C+Bernold%2C+BBQ-Team%2C+BBQ+Team%2C+Team%2C+BBQ%2C+barbecue%2C+BBQ-Meisterschaft%2C+Barbecue-Meisterschaft%2C+Grill%2C+Grilladen%2C+grillieren%2C+grillen%2C+Grill-Meisterschaft%2C+Grillmeisterschaft%2C+Grill-Wettbewerb%2C+Grill-Kurse%2C+Grillkurs%2C+Grillkurse%2C+Grill+Kurs%2C+Grill-Rezepte%2C+Grillrezept%2C+Grill-Gew%C3%BCrz%2C+Grill-Spass%2C+Grill-Show%2C+Grill-Party%2C+Grillparty%2C+Grill-Seminare%2C+Grillseminar%2C+Grill+Event%2C+Grillfest%2C+Grill+Fest%2C+Partyservice%2C+Grill-Schweizermeister%2C+Grill-Europameister%2C+Grill-Weltmeister%2C+Grill-Metzgermeister%2C+Grillmarinade%2C+Marinade%2C+marinieren%2C+Metzgermeister%2C+Smoker%2C+Smoker-Kurs%2C+Rauch%2C+Holz%2C+Holzkohle%2C+Gasgrill%2C+Kohlegrill%2C+Grillkohle%2C+Grillwurst%2C+Spare-Rips%2C+';
var metaContents  = 'Vorstellung+Grill-Ueli+BBQ+Team';
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();
};
