/* [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','4558',jdecode('Home'),jdecode(''),'/4558/index.html','true',[ 
		['PAGE','4615',jdecode('Kunden+%C3%BCber+uns'),jdecode(''),'/4558/4615.html','true',[],'','']
	],'',''],
	['PAGE','5769',jdecode('Bonussystem'),jdecode(''),'/5769/index.html','true',[ 
		['PAGE','5796',jdecode('Eink%C3%A4ufe+Modekolletion'),jdecode(''),'/5769/5796.html','true',[],'',''],
		['PAGE','5823',jdecode('Der+%22Coffee+Lover+Pass%22'),jdecode(''),'/5769/5823.html','true',[],'','']
	],'',''],
	['PAGE','4696',jdecode('Modenkollektionen'),jdecode(''),'/4696/index.html','true',[ 
		['PAGE','4723',jdecode('Herren'),jdecode(''),'/4696/4723.html','true',[],'',''],
		['PAGE','4750',jdecode('Damen'),jdecode(''),'/4696/4750.html','true',[],'',''],
		['PAGE','4777',jdecode('Schmuck+%26+Accessoires'),jdecode(''),'/4696/4777.html','true',[],'','']
	],'',''],
	['PAGE','4831',jdecode('Cafe+Bar'),jdecode(''),'/4831/index.html','true',[ 
		['PAGE','4885',jdecode('Kaffee+von+A+bis+Z'),jdecode(''),'/4831/4885.html','true',[],'','']
	],'',''],
	['PAGE','5850',jdecode('Events+%2F+Event-Archiv'),jdecode(''),'/5850/index.html','true',[ 
		['PAGE','59101',jdecode('Modenschau+Herbst+08'),jdecode(''),'/5850/59101.html','true',[],'',''],
		['PAGE','48378',jdecode('Modenschau+Herbst+07'),jdecode(''),'/5850/48378.html','true',[],'',''],
		['PAGE','45993',jdecode('Modenschau+Herbst+06'),jdecode(''),'/5850/45993.html','true',[],'',''],
		['PAGE','41342',jdecode('Modenschau+Fr%C3%BChjahr+06'),jdecode(''),'/5850/41342.html','true',[],'',''],
		['PAGE','29442',jdecode('Modenschau+Herbst+05'),jdecode(''),'/5850/29442.html','true',[],'','']
	],'',''],
	['PAGE','4939',jdecode('Jobs'),jdecode(''),'/4939.html','true',[],'',''],
	['PAGE','4993',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/4993.html','true',[],'',''],
	['PAGE','6786',jdecode('Anfahrt'),jdecode(''),'/6786.html','true',[],'',''],
	['PAGE','4966',jdecode('Kontakt'),jdecode(''),'/4966.html','true',[],'',''],
	['PAGE','19043',jdecode('G%C3%A4stebuch'),jdecode(''),'/19043/index.html','true',[ 
		['PAGE','19044',jdecode('Eintr%C3%A4ge'),jdecode(''),'/19043/19044.html','false',[],'','']
	],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='FFCC66';
theSitetree.keyvisualId='1704';
theSitetree.keyvisualName='haengematte.jpg';
theSitetree.fontsetId='280';
theSitetree.graphicsetId='343';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFCC66';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Architekt',
				paletteFamily: 	'FFCC66',
				keyvisualId: 	'1704',
				keyvisualName: 	'haengematte.jpg',
				fontsetId: 		'280',
				graphicsetId: 	'343',
				contentColor: 	'000000',
				contentBGColor: 'FFCC66',
				a_color: 		'FFCC66',
				b_color: 		'CC6600',
				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['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6786',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4558',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2302498']={
webappId:    '1501',
documentId:  '4558',
internalId:  '2302498',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4615',
internalId:  '',
customField: '20061206-153404'
};
webappMappings['1002']=webappMappings['1002-19043ABW0X0INXVH9']={
webappId:    '1002',
documentId:  '19043',
internalId:  '19043ABW0X0INXVH9',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4558',
internalId:  '',
customField: '20091106-162426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5769',
internalId:  '',
customField: '20041030-164940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5796',
internalId:  '',
customField: '20041008-151404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5823',
internalId:  '',
customField: '20041030-165028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4696',
internalId:  '',
customField: '20090317-163603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4723',
internalId:  '',
customField: '20041007-145857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4750',
internalId:  '',
customField: '20041007-145906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4777',
internalId:  '',
customField: '20041007-145926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4831',
internalId:  '',
customField: '20090317-164554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4885',
internalId:  '',
customField: '20070608-124656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5850',
internalId:  '',
customField: '20090330-104836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59101',
internalId:  '',
customField: '20081018-122954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48378',
internalId:  '',
customField: '20070924-122316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45993',
internalId:  '',
customField: '20060831-113018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41342',
internalId:  '',
customField: '20060405-192633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29442',
internalId:  '',
customField: '20051011-112519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4939',
internalId:  '',
customField: '20090619-151919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4993',
internalId:  '',
customField: '20091106-162440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6786',
internalId:  '',
customField: '20041007-161508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4966',
internalId:  '',
customField: '20051013-003836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19043',
internalId:  '',
customField: '20050128-161651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19044',
internalId:  '',
customField: '20050128-161651'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXVH9';
var companyName   = 'Soulsupply+Coffee+Bar+%26+Fashion';
var htmlTitle	  = 'Soulsupply+Coffee+Bar+Fashion+D%C3%BCbendorf';
var metaKeywords  = 'Soulsupply%2C+Soul%2C+Supply%2C+Boulevard%2C+Freizeitmode%2C+Mode%2C+Jeans%2C+rauchfrei%2C+Cafe%2C+Bar%2C+Kaffee%2C+Tommy+Hilfiger%2C+Hilfiger%2C+Mexx%2C+Diesel%2C+Jeans%2C+Big+Star%2C+ONeill%2C+D%C3%BCbendorf%2C+Cappuccino%2C+Cafe+Latte%2C+Espresso%2C+Cafe+Macchiato%2C+Silberschmuck%2C+Modeschmuck%2C+Accessoires%2C+Sandwich%2C+Signum%2C+Herrenhemden%2C+Topservice%2C+Bonussystem%2C+Coffee+Lover+Pass%2C+Ruth+Albrecht%2C+Ruth%2C+Esther%2C+Nadine%2C+Coni%2C+Modenshow%2C+Modeshow%2C+Job%2C+Jobs%2C+Job-Tipp%2C+Bonus%2C+Kleider%2C+Z%C3%BCrich%2C+Zurich%2C+Fashion%2C+Weine%2C+Bier%2C';
var metaContents  = 'Soulsupply+Coffee+Bar+and+Fashion+in+D%C3%BCbendorf.+Das+Fachgesch%C3%A4ft+f%C3%BCr+l%C3%A4ssige+Freizeitmode+und+zugleich+ist+eine+Cafe+Bar+in+unser+Ladenlokal+integriert.Die+Integration+von+Freizeitmode+und+einer+Cafe+Bar+in+ein+Ladenlokal+ist+einzigartig.Unser+Gesch%C3%A4ft+ist+absolut+rauchfrei%2Caus+ganz+sicher+nachvollziehbaren+Gr%C3%BCnden.+Bekleidung+und+Zigarrettenrauch+vertragen+sich+schlecht.F%C3%BCr+Raucher+haben+wir+immer+ein+oder+zwei+Bistrotische+und+St%C3%BChle+auf+dem+Boulevard%2C+unmittelbar+vor+dem+Gesch%C3%A4ft+stehen.';
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();
};
