/* [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(''), jdecode('%2F4529.html'), 'true',[],'',''],
	['PAGE','202601',jdecode('SF+bi+de+L%C3%BCt+live'),jdecode(''), jdecode('%2F202601%2Findex.html'), 'true',[ 
		['PAGE','189401',jdecode('Video+SF+bi+de+L%C3%BCt'),jdecode(''), jdecode('%2F202601%2F189401.html'), 'true',[],'',''],
		['PAGE','134343',jdecode('Radio+DRS'),jdecode(''), jdecode('%2F202601%2F134343.html'), 'true',[],'','']
	],'',''],
	['PAGE','192001',jdecode('Grill-Ueli+Buch'),jdecode(''), jdecode('%2F192001.html'), 'true',[],'',''],
	['PAGE','38814',jdecode('Grill-Ueli+Shop'),jdecode(''), jdecode('%2F38814.html'), 'true',[],'',''],
	['PAGE','58510',jdecode('Grillieren'),jdecode(''), jdecode('%2F58510%2Findex.html'), 'true',[ 
		['PAGE','135901',jdecode('Gourmet+Metzg'),jdecode(''), jdecode('%2F58510%2F135901.html'), 'true',[],'',''],
		['PAGE','127401',jdecode('Rezepte'),jdecode(''), jdecode('%2F58510%2F127401.html'), 'true',[],'',''],
		['PAGE','190201',jdecode('Video+Pan+Gas'),jdecode(''), jdecode('%2F58510%2F190201.html'), 'true',[],'',''],
		['PAGE','164122',jdecode('Ern%C3%A4hrungstipps'),jdecode(''), jdecode('%2F58510%2F164122.html'), 'true',[],'',''],
		['PAGE','164101',jdecode('Fleischkunde'),jdecode(''), jdecode('%2F58510%2F164101.html'), 'true',[],'',''],
		['PAGE','9810',jdecode('Tipps+%26+Tricks'),jdecode(''), jdecode('%2F58510%2F9810.html'), 'true',[],'',''],
		['PAGE','101723',jdecode('Umweltschutz'),jdecode(''), jdecode('%2F58510%2F101723.html'), 'true',[],'',''],
		['PAGE','101262',jdecode('Unfallverh%C3%BCtung'),jdecode(''), jdecode('%2F58510%2F101262.html'), 'true',[],'',''],
		['PAGE','141601',jdecode('Grill-Wetter'),jdecode(''), jdecode('%2F58510%2F141601.html'), 'true',[],'','']
	],'',''],
	['PAGE','9324',jdecode('Team+'),jdecode(''), jdecode('%2F9324%2Findex.html'), 'true',[ 
		['PAGE','9351',jdecode('Mitglieder'),jdecode(''), jdecode('%2F9324%2F9351.html'), 'true',[],'',''],
		['PAGE','9378',jdecode('Erfolge'),jdecode(''), jdecode('%2F9324%2F9378.html'), 'true',[],'',''],
		['PAGE','11322',jdecode('Motto'),jdecode(''), jdecode('%2F9324%2F11322.html'), 'true',[],'',''],
		['PAGE','9486',jdecode('Sponsoren'),jdecode(''), jdecode('%2F9324%2F9486.html'), 'true',[],'',''],
		['PAGE','9405',jdecode('Presseauftritte'),jdecode(''), jdecode('%2F9324%2F9405.html'), 'true',[],'',''],
		['PAGE','119001',jdecode('SM+Wil+2008'),jdecode(''), jdecode('%2F9324%2F119001.html'), 'true',[],'',''],
		['PAGE','95144',jdecode('Alpen-Adria+2007'),jdecode(''), jdecode('%2F9324%2F95144.html'), 'true',[],'',''],
		['PAGE','92902',jdecode('WM+2006'),jdecode(''), jdecode('%2F9324%2F92902.html'), 'true',[],'',''],
		['PAGE','12401',jdecode('Blue+Danube+2005'),jdecode(''), jdecode('%2F9324%2F12401.html'), 'true',[],'',''],
		['PAGE','12428',jdecode('WM+2005'),jdecode(''), jdecode('%2F9324%2F12428.html'), 'true',[],'',''],
		['PAGE','12455',jdecode('Jack+Daniel%26%23x27%3Bs+2003'),jdecode(''), jdecode('%2F9324%2F12455.html'), 'true',[],'',''],
		['PAGE','30342',jdecode('Lynchburg+TN+USA'),jdecode(''), jdecode('%2F9324%2F30342.html'), 'true',[],'',''],
		['PAGE','61310',jdecode('zum+Schmunzeln'),jdecode(''), jdecode('%2F9324%2F61310.html'), 'true',[],'','']
	],'',''],
	['PAGE','9540',jdecode('Partyservice'),jdecode(''), jdecode('%2F9540.html'), 'true',[],'',''],
	['PAGE','163501',jdecode('Grillkurse+Outdoor'),jdecode(''), jdecode('%2F163501.html'), 'true',[],'',''],
	['PAGE','9729',jdecode('Kontakt'),jdecode(''), jdecode('%2F9729.html'), 'true',[],'',''],
	['PAGE','10107',jdecode('Links'),jdecode(''), jdecode('%2F10107.html'), 'true',[],'',''],
	['PAGE','22402',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F22402%2Findex.html'), 'true',[ 
		['PAGE','22403',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F22402%2F22403.html'), 'false',[],'','']
	],'','']];
var siteelementCount=36;
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 prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
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: '20120206-160205'
};
webappMappings['1501']=webappMappings['1501-595601']={
webappId:    '1501',
documentId:  '4529',
internalId:  '595601',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9351',
internalId:  '',
customField: '20110715-101042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9378',
internalId:  '',
customField: '20111025-134608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11322',
internalId:  '',
customField: '20100426-152350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9486',
internalId:  '',
customField: '20110306-183021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9405',
internalId:  '',
customField: '20110904-073209'
};
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:  '190201',
internalId:  '',
customField: '20101209-113612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192001',
internalId:  '',
customField: '20110709-202225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189401',
internalId:  '',
customField: '20100829-220218'
};
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:  '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: '20100906-013924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10107',
internalId:  '',
customField: '20110501-114514'
};
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: '20120206-161046'
};
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: '20110709-204043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202601',
internalId:  '',
customField: '20110709-210357'
};
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 webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.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();
};

