/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','2185',jdecode('Wanda-relax'),jdecode(''),'/2185/index.html','true',[ 
		['PAGE','2227',jdecode('Wanda-relax+240x30'),jdecode(''),'/2185/2227.html','true',[],'',''],
		['PAGE','2206',jdecode('Wanda-relax+180x30'),jdecode(''),'/2185/2206.html','true',[],'',''],
		['PAGE','7101',jdecode('Wanda-relax-junior'),jdecode(''),'/2185/7101.html','true',[],'',''],
		['PAGE','7122',jdecode('Wanda-relax-easy'),jdecode(''),'/2185/7122.html','true',[],'',''],
		['PAGE','7143',jdecode('Wanda-relax-viaggio'),jdecode(''),'/2185/7143.html','true',[],'',''],
		['PAGE','7164',jdecode('Wanda-relax-sherpa'),jdecode(''),'/2185/7164.html','true',[],'',''],
		['PAGE','93701',jdecode('Cuscini+con+semi+d%26%23x27%3Buva'),jdecode(''),'/2185/93701.html','true',[],'','']
	],'',''],
	['PAGE','2269',jdecode('Avent'),jdecode(''),'/2269.html','true',[],'',''],
	['PAGE','2290',jdecode('Didymos'),jdecode(''),'/2290/index.html','true',[ 
		['PAGE','98701',jdecode('DidySling'),jdecode(''),'/2290/98701.html','true',[],'',''],
		['PAGE','2311',jdecode('Colori+'),jdecode(''),'/2290/2311.html','true',[],'',''],
		['PAGE','2332',jdecode('Grandezze+'),jdecode(''),'/2290/2332.html','true',[],'','']
	],'',''],
	['PAGE','57201',jdecode('Straccetti+%2F+Nuscheli'),jdecode(''),'/57201.html','true',[],'',''],
	['PAGE','69501',jdecode('Deutsch'),jdecode(''),'/69501.html','true',[],'',''],
	['PAGE','70601',jdecode('Wanda-relax+D'),jdecode(''),'/70601/index.html','true',[ 
		['PAGE','72501',jdecode('Wanda-relax+240x30+D'),jdecode(''),'/70601/72501.html','true',[],'',''],
		['PAGE','73001',jdecode('Wanda-relax+180x30+D'),jdecode(''),'/70601/73001.html','true',[],'',''],
		['PAGE','75401',jdecode('Wanda-relax-junior+D'),jdecode(''),'/70601/75401.html','true',[],'',''],
		['PAGE','76201',jdecode('Wanda-relax-viaggio+D'),jdecode(''),'/70601/76201.html','true',[],'',''],
		['PAGE','77001',jdecode('Wanda-relax-easy+D'),jdecode(''),'/70601/77001.html','true',[],'',''],
		['PAGE','77601',jdecode('Wanda-relax-sherpa+D'),jdecode(''),'/70601/77601.html','true',[],'',''],
		['PAGE','93722',jdecode('Traubenkernkissen'),jdecode(''),'/70601/93722.html','true',[],'','']
	],'',''],
	['PAGE','78701',jdecode('Avent+D'),jdecode(''),'/78701.html','true',[],'',''],
	['PAGE','89401',jdecode('Didymos+D'),jdecode(''),'/89401/index.html','true',[ 
		['PAGE','98743',jdecode('DidySling'),jdecode(''),'/89401/98743.html','true',[],'',''],
		['PAGE','98764',jdecode('Farben'),jdecode(''),'/89401/98764.html','true',[],'',''],
		['PAGE','98785',jdecode('Gr%C3%B6ssen'),jdecode(''),'/89401/98785.html','true',[],'','']
	],'',''],
	['PAGE','2395',jdecode('Contatto+%2F+Kontakt'),jdecode(''),'/2395.html','true',[],'',''],
	['PAGE','50901',jdecode('Cartina+%2F+Lageplan'),jdecode(''),'/50901.html','true',[],'',''],
	['PAGE','88301',jdecode('FaQ'),jdecode(''),'/88301.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Porthole';
theSitetree.paletteFamily='064B91';
theSitetree.keyvisualId='6704';
theSitetree.keyvisualName='kv_6704.jpg';
theSitetree.fontsetId='11202';
theSitetree.graphicsetId='12013';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E9F3FF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Porthole',
				paletteFamily: 	'064B91',
				keyvisualId: 	'6704',
				keyvisualName: 	'kv_6704.jpg',
				fontsetId: 		'11202',
				graphicsetId: 	'12013',
				contentColor: 	'000000',
				contentBGColor: 'E9F3FF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '50901',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100111-163453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20100111-164708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2185',
internalId:  '',
customField: '20090923-171716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2206',
internalId:  '',
customField: '20100111-163620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93701',
internalId:  '',
customField: '20100111-163939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70601',
internalId:  '',
customField: '20100111-164748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93722',
internalId:  '',
customField: '20100111-164936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69501',
internalId:  '',
customField: '20100111-164739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88301',
internalId:  '',
customField: '20100111-165238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2227',
internalId:  '',
customField: '20100111-163554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20100111-163642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7122',
internalId:  '',
customField: '20100111-163707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7143',
internalId:  '',
customField: '20100111-163723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7164',
internalId:  '',
customField: '20100111-163810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2269',
internalId:  '',
customField: '20100111-164037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2290',
internalId:  '',
customField: '20100111-164112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89401',
internalId:  '',
customField: '20100111-165051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2311',
internalId:  '',
customField: '20100111-164609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2332',
internalId:  '',
customField: '20090209-163340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72501',
internalId:  '',
customField: '20100111-164809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73001',
internalId:  '',
customField: '20100111-164826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75401',
internalId:  '',
customField: '20100111-164842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76201',
internalId:  '',
customField: '20100111-164855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77001',
internalId:  '',
customField: '20100111-164907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77601',
internalId:  '',
customField: '20100111-164922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78701',
internalId:  '',
customField: '20100111-165026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2395',
internalId:  '',
customField: '20100111-165227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50901',
internalId:  '',
customField: '20070905-180254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98701',
internalId:  '',
customField: '20100111-164242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98764',
internalId:  '',
customField: '20100111-165213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98785',
internalId:  '',
customField: '20090209-160019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98743',
internalId:  '',
customField: '20100111-165128'
};
var canonHostname = 'wsc.genotec.ch';
var accountId     = 'AGT010IN2KBT';
var companyName   = 'Wanda-relax';
var htmlTitle	  = 'wanda-relax';
var metaKeywords  = 'head++meta+name%3Dkeywords+lang%3Dde+content%3DAvent%2C+Stillkissen%2C+Didymos%2C+Nackenkissen%2C+Sitzkeil%2C+Nuscheli++meta+name%3Dkeywords+lang%3Dit+content%3DAvent%2C+cuscini+per+allattamento%2C+allattamento+al+seno%2C+didymos%2C+fascia+portabeb%C3%A9%2C+cusini+per+posizionamento%2C+cuneo%2C+straccetti+di+garza+script+src%3Dhttp%3A%2F%2Fwww.google-analytics.com%2Furchin.js+type%3Dtext%2Fjavascript++%2Fscript++script+type%3Dtext%2Fjavascript++_uacct+%3D+UA-2540170-1%3B++urchinTracker%28%29%3B++%2Fscript++%2Fbody++';
var metaContents  = 'script+src%3Dhttp%3A%2F%2Fwww.google-analytics.com%2Furchin.js+type%3Dtext%2Fjavascript++%2Fscript++script+type%3Dtext%2Fjavascript++_uacct+%3D+UA-2540170-1%3B++urchinTracker%28%29%3B++%2Fscript+%21--+Findelio+Suche+--++form+action%3Dhttp%3A%2F%2Fch.findelio.com%2Findex.php+method%3Dget+name%3Dsform+target%3D_blank++input+type%3Dhidden+name%3Dreq+value%3Dsearch++table+cellspacing%3D0+cellpadding%3D1+bgcolor%3D%23ffffff+style%3Dborder-style%3Asolid%3B+border-width%3A+1px%3B+border-color%3A+%23eeeeee%3B++trtd+align%3Dcenter++a+href%3Dhttp%3A%2F%2Fch.findelio.com+target%3D_blankimg+src%3Dhttp%3A%2F%2Fwww.findelio.com%2Fimg%2Fltu1.gif+border%3D0+alt%3DFindelio+Suche+title%3DFindelio+Suche%2Fabr++input+type%3Dtext+size%3D20+maxlength%3D70+name%3Dqs+value%3Dbrinput+type%3Dsubmit+value%3DSuche++%2Ftd%2Ftr%2Ftable++%2Fform++%21--+Ende+Findelio+Suche+--++';
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();
};

