/* [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','4801',jdecode('Home'),jdecode(''),'/4801.html','true',[],'',''],
	['PAGE','4852',jdecode('Company'),jdecode(''),'/4852/index.html','true',[ 
		['PAGE','4873',jdecode('History'),jdecode(''),'/4852/4873.html','true',[],'',''],
		['PAGE','44801',jdecode('Management'),jdecode(''),'/4852/44801.html','true',[],'',''],
		['PAGE','25301',jdecode('Location'),jdecode(''),'/4852/25301.html','true',[],'','']
	],'',''],
	['PAGE','4915',jdecode('Products+%26+Services'),jdecode(''),'/4915/index.html','true',[ 
		['PAGE','28601',jdecode('Design'),jdecode(''),'/4915/28601.html','false',[],'',''],
		['PAGE','43201',jdecode('Furniture'),jdecode(''),'/4915/43201.html','true',[],'',''],
		['PAGE','5041',jdecode('Kitchens'),jdecode(''),'/4915/5041.html','true',[],'',''],
		['PAGE','4999',jdecode('Plumbing+%26+Heating'),jdecode(''),'/4915/4999.html','true',[],'',''],
		['PAGE','5020',jdecode('Bathrooms'),jdecode(''),'/4915/5020.html','true',[],'',''],
		['PAGE','5125',jdecode('Decorating'),jdecode(''),'/4915/5125.html','true',[],'',''],
		['PAGE','43001',jdecode('Flooring'),jdecode(''),'/4915/43001.html','true',[],'',''],
		['PAGE','4957',jdecode('Windows+%26+Doors'),jdecode(''),'/4915/4957.html','true',[],'',''],
		['PAGE','4978',jdecode('Stairs'),jdecode(''),'/4915/4978.html','true',[],'',''],
		['PAGE','42401',jdecode('Business+%26+Hotel'),jdecode(''),'/4915/42401.html','true',[],'',''],
		['PAGE','5083',jdecode('Outside+Spaces%3A+old'),jdecode(''),'/4915/5083.html','false',[],'',''],
		['PAGE','60701',jdecode('Outside+Spaces'),jdecode(''),'/4915/60701.html','true',[],'','']
	],'',''],
	['PAGE','5146',jdecode('Online-Shop'),jdecode(''),'/5146.html','true',[],'',''],
	['PAGE','36801',jdecode('Stock+Sale'),jdecode(''),'/36801.html','true',[],'',''],
	['PAGE','21901',jdecode('News+%26+Events'),jdecode(''),'/21901/index.html','true',[ 
		['PAGE','5167',jdecode('Archive+2009'),jdecode(''),'/21901/5167.html','true',[],'','']
	],'',''],
	['PAGE','50701',jdecode('Jobs'),jdecode(''),'/50701.html','true',[],'',''],
	['PAGE','53001',jdecode('Partner+%26+Customers'),jdecode(''),'/53001.html','true',[],'',''],
	['PAGE','5188',jdecode('Contact'),jdecode(''),'/5188.html','true',[],'',''],
	['PAGE','57601',jdecode('Downloads'),jdecode(''),'/57601.html','false',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='6699CC';
theSitetree.keyvisualId='881';
theSitetree.keyvisualName='detail.jpg';
theSitetree.fontsetId='160';
theSitetree.graphicsetId='187';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Neon',
				paletteFamily: 	'6699CC',
				keyvisualId: 	'881',
				keyvisualName: 	'detail.jpg',
				fontsetId: 		'160',
				graphicsetId: 	'187',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				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:  '4801',
internalId:  '',
customField: '20100225-121852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4852',
internalId:  '',
customField: '20091102-105602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4915',
internalId:  '',
customField: '20091102-105953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5188',
internalId:  '',
customField: '20100331-130036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5167',
internalId:  '',
customField: '20100804-163338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4873',
internalId:  '',
customField: '20091102-105618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20100810-152919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5146',
internalId:  '',
customField: '20100818-121227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53001',
internalId:  '',
customField: '20100820-151910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4957',
internalId:  '',
customField: '20091113-132547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4978',
internalId:  '',
customField: '20100527-120715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4999',
internalId:  '',
customField: '20091118-144905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5020',
internalId:  '',
customField: '20100511-173502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5041',
internalId:  '',
customField: '20100511-121359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5083',
internalId:  '',
customField: '20091113-131016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5125',
internalId:  '',
customField: '20100511-121702'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60701',
internalId:  '',
customField: '20100511-121844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20091102-123932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28601',
internalId:  '',
customField: '20090827-141600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20100817-121945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42401',
internalId:  '',
customField: '20091102-113544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43001',
internalId:  '',
customField: '20091102-112026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43201',
internalId:  '',
customField: '20100511-121317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44801',
internalId:  '',
customField: '20100812-102706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20091021-125040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50701',
internalId:  '',
customField: '20100804-163409'
};
var canonHostname = 'wsc01.webland.ch';
var accountId     = 'AWB010INXPOS';
var companyName   = '+++++++++++++++++LIPP+SWITZERLAND+LTD.';
var htmlTitle	  = 'LIPP+SWITZERLAND+Ltd.+++-+++Building.+Interiors.+Furniture.';
var metaKeywords  = 'Lipp+Switzerland+Ltd%2C+swiss+quality.+on+time.+always.%2C+Interiors.+Building.+Furniture.%2C+Construction%2C+Architecture%2C+Windows+and+Doors%2C+Flooring%2C+Stairs%2C+Plumbing+and+Heating%2C+Bathrooms%2C+Kitchens%2C+Business+and+Hotel%2C+Outside+Spaces%2C+Furnishings%2C+Decorating%2C+free+estimates%2C+Contact+Lipp+Switzerland+Ltd%2C+Ott%2C+Spinner%2C+Ego+Kiefer%2C+Tiles%2C+Parquet+Flooring%2C+Sale%2C+Quality%2C+Renovation%2C+Architect%2C+Project+Manager%2C+Lipp%2C+Europe%2C+London%2C+Architecture%2C+Switzerland%2C+High+quality%2C+Martin+Lipp%2C+lipp%2C+Tomas+Ploeger%2C+Michael+Frick%2C+Jan+Fehlhaber%2C+Nathalie+Breuer%2C+Siegfried+Block%2C+Baumstark%2C+Sandler+Lanz%2C+Julius+Baer%2C+refurbishing%2C+london%2C+Josef+Schafleitner%2C+general+contractor%2C+construction+firm%2C+property+market%2C+UK%2C+renovation';
var metaContents  = 'Lipp+Switzerland+Ltd%2C+swiss+quality.+on+time.+always.%2C+Interiors.+Building.+Furniture.%2C+Construction%2C+Architecture%2C+Windows+and+Doors%2C+Flooring%2C+Stairs%2C+Plumbing+and+Heating%2C+Bathrooms%2C+Kitchens%2C+Business+and+Hotel%2C+Outside+Spaces%2C+Furnishings%2C+Decorating%2C+free+estimates%2C+Contact+Lipp+Switzerland+Ltd%2C+Ott%2C+Spinner%2C+Ego+Kiefer%2C+Tiles%2C+Parquet+Flooring%2C+Sale%2C+Quality%2C+Renovation%2C+Architect%2C+Project+Manager%2C+Lipp%2C+Europe%2C+London%2C+Architecture%2C+Switzerland%2C+High+quality%2C+Martin+Lipp%2C+lipp%2C+Tomas+Ploeger%2C+Michael+Frick%2C+Jan+Fehlhaber%2C+Nathalie+Breuer%2C+Siegfried+Block%2C+Baumstark%2C+Sandler+Lanz%2C+Julius+Baer%2C+refurbishing%2C+london%2C+Josef+Schafleitner%2C+general+contractor%2C+construction+firm%2C+property+market%2C+UK%2C+renovation+';
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();
};
