/* [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','48601',jdecode('Home'),jdecode(''),'/48601.html','true',[],'',''],
	['PAGE','4520',jdecode('%E2%96%BA+Willkommen'),jdecode(''),'/4520.html','true',[],'',''],
	['PAGE','9572',jdecode('%E2%96%BA+%C3%9Cber+die+Pibella'),jdecode(''),'/9572.html','true',[],'',''],
	['PAGE','63901',jdecode('%E2%96%BA+Referenzen'),jdecode(''),'/63901/index.html','true',[ 
		['PAGE','9599',jdecode('%E2%96%BA+Referenzen+Gesamt'),jdecode(''),'/63901/9599.html','true',[],'','']
	],'',''],
	['PAGE','89601',jdecode('%E2%96%BA+Film'),jdecode(''),'/89601.html','true',[],'',''],
	['PAGE','19363',jdecode('%E2%96%BA+Produkte-Info+%26+Bestellen'),jdecode(''),'/19363/index.html','true',[ 
		['PAGE','20532',jdecode('%E2%96%BA+Pibella-Comfort'),jdecode(''),'/19363/20532.html','true',[],'',''],
		['PAGE','20541',jdecode('%E2%96%BA+Pibella-Travel'),jdecode(''),'/19363/20541.html','true',[],'','']
	],'',''],
	['PAGE','20818',jdecode('%E2%96%BA+Vorteile+in+K%C3%BCrze'),jdecode(''),'/20818.html','true',[],'',''],
	['PAGE','114601',jdecode('%E2%96%BA+Kurzgeschichten'),jdecode(''),'/114601.html','true',[],'',''],
	['PAGE','93901',jdecode('%E2%96%BA+G%C3%A4stebuch'),jdecode(''),'/93901.html','false',[],'',''],
	['PAGE','9626',jdecode('%E2%96%BA+Kontakt'),jdecode(''),'/9626.html','true',[],'',''],
	['PAGE','46801',jdecode('%E2%89%A1+Welcome'),jdecode(''),'/46801.html','true',[],'',''],
	['PAGE','47601',jdecode('%E2%89%A1+About+Pibella'),jdecode(''),'/47601.html','true',[],'',''],
	['PAGE','48001',jdecode('%E2%89%A1+References'),jdecode(''),'/48001.html','true',[],'',''],
	['PAGE','114622',jdecode('%E2%89%A1+Stories'),jdecode(''),'/114622.html','true',[],'',''],
	['PAGE','91401',jdecode('%E2%89%A1+Film'),jdecode(''),'/91401.html','true',[],'',''],
	['PAGE','47622',jdecode('%E2%89%A1+Products+%2F+Info+%2F+Purchase'),jdecode(''),'/47622/index.html','true',[ 
		['PAGE','47643',jdecode('%E2%89%A1+Pibella-Comfort'),jdecode(''),'/47622/47643.html','true',[],'',''],
		['PAGE','47664',jdecode('%E2%89%A1+Pibella-Travel'),jdecode(''),'/47622/47664.html','true',[],'','']
	],'',''],
	['PAGE','48301',jdecode('%E2%89%A1+Benefits'),jdecode(''),'/48301.html','true',[],'',''],
	['PAGE','48322',jdecode('%E2%89%A1+Contact'),jdecode(''),'/48322.html','true',[],'',''],
	['PAGE','72901',jdecode('%E2%97%8F+Bienvenidos'),jdecode(''),'/72901.html','true',[],'',''],
	['PAGE','72922',jdecode('%E2%97%8F+Sobre+Pibella'),jdecode(''),'/72922.html','true',[],'',''],
	['PAGE','72943',jdecode('%E2%97%8F+Referencias'),jdecode(''),'/72943.html','true',[],'',''],
	['PAGE','91422',jdecode('%E2%97%8F+Pel%C3%ADcula'),jdecode(''),'/91422.html','true',[],'',''],
	['PAGE','72964',jdecode('%E2%97%8F+Productos'),jdecode(''),'/72964/index.html','true',[ 
		['PAGE','72985',jdecode('%E2%97%8F+Pibella-Comfort+para+acostada'),jdecode(''),'/72964/72985.html','true',[],'',''],
		['PAGE','73006',jdecode('%E2%97%8F+Pibella-Travel+para+uso+de+pie'),jdecode(''),'/72964/73006.html','true',[],'','']
	],'',''],
	['PAGE','73027',jdecode('%E2%97%8F+Beneficios'),jdecode(''),'/73027.html','true',[],'',''],
	['PAGE','73048',jdecode('%E2%97%8F+Contacto+%2F+Ventas'),jdecode(''),'/73048.html','true',[],'',''],
	['PAGE','99201',jdecode('Bestellformular'),jdecode(''),'/99201.html','false',[],'',''],
	['PAGE','106101',jdecode('Order+Form'),jdecode(''),'/106101.html','false',[],'',''],
	['PAGE','116301',jdecode('Shop+Test'),jdecode(''),'/116301.html','false',[],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='1E3A6F';
theSitetree.keyvisualId='2027';
theSitetree.keyvisualName='blumen.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='396';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='1E3A6F';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'1E3A6F',
				keyvisualId: 	'2027',
				keyvisualName: 	'blumen.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'396',
				contentColor: 	'FFFFFF',
				contentBGColor: '1E3A6F',
				a_color: 		'1E3A6F',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '48601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48601',
internalId:  '',
customField: '20090107-101422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4520',
internalId:  '',
customField: '20091028-095802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89601',
internalId:  '',
customField: '20091208-160422'
};
webappMappings['1501']=webappMappings['1501-3302926']={
webappId:    '1501',
documentId:  '48601',
internalId:  '3302926',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91401',
internalId:  '',
customField: '20100317-161334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91422',
internalId:  '',
customField: '20100317-161547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9572',
internalId:  '',
customField: '20091028-104423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63901',
internalId:  '',
customField: '20090715-144125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9599',
internalId:  '',
customField: '20090505-132032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19363',
internalId:  '',
customField: '20090715-154434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20532',
internalId:  '',
customField: '20100318-135232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20541',
internalId:  '',
customField: '20100318-140603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20818',
internalId:  '',
customField: '20090107-155601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9626',
internalId:  '',
customField: '20090814-162907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46801',
internalId:  '',
customField: '20091028-095148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47601',
internalId:  '',
customField: '20090107-105910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48001',
internalId:  '',
customField: '20090715-144736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47622',
internalId:  '',
customField: '20090715-163217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47643',
internalId:  '',
customField: '20100318-140108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47664',
internalId:  '',
customField: '20100318-140147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48301',
internalId:  '',
customField: '20090107-145229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48322',
internalId:  '',
customField: '20090814-163559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72901',
internalId:  '',
customField: '20090916-141347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72922',
internalId:  '',
customField: '20090107-111202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72943',
internalId:  '',
customField: '20090107-111254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72964',
internalId:  '',
customField: '20090107-111347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72985',
internalId:  '',
customField: '20091028-100439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73006',
internalId:  '',
customField: '20090303-184850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73027',
internalId:  '',
customField: '20090107-112151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73048',
internalId:  '',
customField: '20090107-112211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93901',
internalId:  '',
customField: '20090617-083816'
};
webappMappings['1002']=webappMappings['1002-93901abw0x0in21rt']={
webappId:    '1002',
documentId:  '93901',
internalId:  '93901abw0x0in21rt',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-5685']={
webappId:    '7008',
documentId:  '99201',
internalId:  '5685',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99201',
internalId:  '',
customField: '20090715-175844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106101',
internalId:  '',
customField: '20090715-175616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116301',
internalId:  '',
customField: '20100215-164321'
};
webappMappings['7008']=webappMappings['7008-6606']={
webappId:    '7008',
documentId:  '106101',
internalId:  '6606',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114622',
internalId:  '',
customField: '20100119-171608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114601',
internalId:  '',
customField: '20100215-105058'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN21RT';
var companyName   = 'Pibella';
var htmlTitle	  = 'Pibella+die+Urinierhilfe+f%C3%BCr+die+Frauen+%2F+Pibella+the+female+urination+system';
var metaKeywords  = 'Urinieren+im+Liegen%2C+Sitzen+oder+Stehen++Pibella+die+Urinierhilfe+f%3Fr+Frauen++Uriniersystem+f%3Fr+Frauen++Pibella+ersetzt+Bettpfanne++Urinieren+im+Liegen+f%3Fr+Frauen++Urinieren+im+Stehen+f%3Fr+Frauen+female+urination+system+solution+for+women+to+urinate+standing+or+lying+down+%2F+urinate+while+confined+to+bed+%2F+woman+stand+and+pee+%2F+bed+bound++Pibella%2C+a+female+urination+device+to+aid+in+the+physical+need+of+elimination+%2F+urine++urine+urination+bed+bound++Pibella+allows+women+to+urinate+while+lying+down+or+standing++urinate+lying+down++urinate+standing+women++women+standing+urinate++female+urination+system+%2F+Pibella%2C+una+solucion+unica%2C+exclusiva+para+mujeres+para+orinar+mientras+est+en+confinadas+a+la+cama.+El+sistema+urinario+para+mujeres++El+modelo+%3FTravel%3F+permite+a+la+mujer+orinar+en+lugares+como++Pibella+%3F+Comfort+ha+sido+dise+ada+para+ayudar+a+mujeres+a+orinar+mientras+est+en+acostadas.';
var metaContents  = 'Urinieren+im+Liegen%2C+Sitzen+oder+Stehen++Pibella+die+Urinierhilfe+f%3Fr+Frauen++Uriniersystem+f%3Fr+Frauen++Pibella+ersetzt+Bettpfanne++Urinieren+im+Liegen+f%3Fr+Frauen++Urinieren+im+Stehen+f%3Fr+Frauen++Pibella%2C+a+unique+solution+for+women+to+void+%2F+urinat+while+confined+to+bed+%2F+bed+bound++Pibela%2C+a+female+urination+system+to+aid+in+the+physical+need+of+elimination+%2F+urine++urine+urination+bed+bound++Pibella+allows+women+to+urinate+while+lying+down+or+standing+Pibella%2C+una+solucion+unica%2C+exclusiva+para+mujeres+para+orinar+mientras+est+en+confinadas+a+la+cama.+El+sistema+urinario+para+mujeres+%2F+El+modelo+%3FTravel%3F+permite+a+la+mujer+orinar+en+lugares+como++Pibella+%3F+Comfort+ha+sido+dise%3Fada+para+ayudar+a+mujeres+a+orinar+mientras+est+en+acostadas.';
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();
};
