/* [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','12861',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F12861.html'), 'true',[],'',''],
	['PAGE','12909',jdecode('Filtrieren'),jdecode(''), jdecode('%2F12909%2Findex.html'), 'true',[ 
		['PAGE','12918',jdecode('merkur'),jdecode(''), jdecode('%2F12909%2F12918.html'), 'true',[],'',''],
		['PAGE','12927',jdecode('terra'),jdecode(''), jdecode('%2F12909%2F12927.html'), 'true',[],'',''],
		['PAGE','12936',jdecode('wega'),jdecode(''), jdecode('%2F12909%2F12936.html'), 'true',[],'',''],
		['PAGE','14195',jdecode('orion'),jdecode(''), jdecode('%2F12909%2F14195.html'), 'true',[],'',''],
		['PAGE','24301',jdecode('radium'),jdecode(''), jdecode('%2F12909%2F24301.html'), 'true',[],'',''],
		['PAGE','14213',jdecode('disc+'),jdecode(''), jdecode('%2F12909%2F14213.html'), 'true',[],'',''],
		['PAGE','14222',jdecode('Fitrationsversuche'),jdecode(''), jdecode('%2F12909%2F14222.html'), 'true',[],'',''],
		['PAGE','27601',jdecode('Gebrauchtfilter'),jdecode(''), jdecode('%2F12909%2F27601.html'), 'true',[],'','']
	],'',''],
	['PAGE','69401',jdecode('R%C3%BChren'),jdecode(''), jdecode('%2F69401%2Findex.html'), 'true',[ 
		['PAGE','69485',jdecode('Vibromixer'),jdecode(''), jdecode('%2F69401%2F69485.html'), 'true',[],'',''],
		['PAGE','69506',jdecode('Schaumabscheider'),jdecode(''), jdecode('%2F69401%2F69506.html'), 'true',[],'',''],
		['PAGE','69527',jdecode('Kolloidm%C3%BChlen'),jdecode(''), jdecode('%2F69401%2F69527.html'), 'true',[],'',''],
		['PAGE','104101',jdecode('R%C3%BChrversuche'),jdecode(''), jdecode('%2F69401%2F104101.html'), 'true',[],'','']
	],'',''],
	['PAGE','104243',jdecode('Biotechnologie'),jdecode(''), jdecode('%2F104243.html'), 'true',[],'',''],
	['PAGE','12999',jdecode('Kontakt+%2F+Adresse'),jdecode(''), jdecode('%2F12999.html'), 'true',[],'',''],
	['PAGE','16201',jdecode('Anfahrt'),jdecode(''), jdecode('%2F16201.html'), 'true',[],'',''],
	['PAGE','22601',jdecode('Haftungsausschluss'),jdecode(''), jdecode('%2F22601.html'), 'true',[],'',''],
	['PAGE','24322',jdecode('Prospekt+Download'),jdecode(''), jdecode('%2F24322.html'), 'true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='elliptic';
theSitetree.paletteFamily='219900';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10358';
theSitetree.graphicsetId='10501';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='219900';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'hostpoint',
  product: 'WSCSYSSSSLYTC21Y'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'elliptic',
				paletteFamily: 	'219900',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10358',
				graphicsetId: 	'10501',
				contentColor: 	'FFFFFF',
				contentBGColor: '219900',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-427']={
webappId:    '7008',
documentId:  '3379',
internalId:  '427',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69485',
internalId:  '',
customField: '20110720-144528'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '16201',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69506',
internalId:  '',
customField: '20110214-143114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12861',
internalId:  '',
customField: '20120118-085840'
};
webappMappings['7008']=webappMappings['7008-426']={
webappId:    '7008',
documentId:  '12999',
internalId:  '426',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12909',
internalId:  '',
customField: '20111130-144901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12918',
internalId:  '',
customField: '20110210-154420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12927',
internalId:  '',
customField: '20110210-155002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12936',
internalId:  '',
customField: '20110211-103807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14195',
internalId:  '',
customField: '20110211-105131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20110214-131656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14213',
internalId:  '',
customField: '20110210-170634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14222',
internalId:  '',
customField: '20111122-150447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104101',
internalId:  '',
customField: '20111123-074425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12999',
internalId:  '',
customField: '20120118-085914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20081028-195757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20111122-151231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24322',
internalId:  '',
customField: '20111122-165141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27601',
internalId:  '',
customField: '20110214-102153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69401',
internalId:  '',
customField: '20111122-150632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69527',
internalId:  '',
customField: '20110214-142831'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '12861',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104243',
internalId:  '',
customField: '20111201-080136'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN3ONE';
var companyName   = 'Br%C3%BCndler+GmbH';
var htmlTitle	  = '+R%C3%BChrwerke+Laborfilter+Schichtenfilter+Nutsche+Bioreaktoren+Schaumabscheider+Seitz+Filter';
var metaKeywords  = 'Filtertrokner%0D%0AFleischereimaschine%0D%0AFleischkutter%0D%0ASchichtenfilter%0D%0AFilterpresse%0D%0ALaborfilter%0D%0APlate+Filter%0D%0ANutsche%0D%0APressure+Filter%0D%0AFunda+Filter%0D%0ASeitz+Filter%0D%0AFoam+Separator%0D%0A';
var metaContents  = 'Filtrieren%0D%0AFl%C3%BCssigfiltration%0D%0AR%C3%BChren%0D%0ADispergieren%0D%0AHomogenisieren%0D%0AFermenter%0D%0ABioreaktoren%0D%0ASchaumabscheider%0D%0Abio-m%0D%0AVibro+Mixer%0D%0AMagnetr%C3%BChrer%0D%0AMangnetique+agitator%0D%0AAgitator%0D%0AKolloid+mill';
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();
};

