/* [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','601',jdecode('Home'),jdecode(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','7401',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F7401%2Findex.html'), 'true',[ 
		['PAGE','7443',jdecode('Unsere+Philosophie'),jdecode(''), jdecode('%2F7401%2F7443.html'), 'true',[],'','']
	],'',''],
	['PAGE','4943',jdecode('Dienstleistungen'),jdecode(''), jdecode('%2F4943.html'), 'true',[],'',''],
	['PAGE','4964',jdecode('Preise'),jdecode(''), jdecode('%2F4964.html'), 'true',[],'',''],
	['PAGE','4985',jdecode('Kontakt'),jdecode(''), jdecode('%2F4985.html'), 'true',[],'',''],
	['PAGE','16101',jdecode('Anfrage+Formular'),jdecode(''), jdecode('%2F16101.html'), 'true',[],'',''],
	['PAGE','5006',jdecode('Referenzen'),jdecode(''), jdecode('%2F5006.html'), 'true',[],'',''],
	['PAGE','8106',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F8106%2Findex.html'), 'true',[ 
		['PAGE','8101',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F8106%2F8101.html'), 'true',[],'','']
	],'',''],
	['PAGE','16601',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F16601.html'), 'true',[],'',''],
	['PAGE','20501',jdecode('AGB'),jdecode(''), jdecode('%2F20501.html'), 'true',[],'','']];
var siteelementCount=12;
theSitetree.topTemplateName='Trade';
theSitetree.paletteFamily='4D8DBD';
theSitetree.keyvisualId='12112';
theSitetree.keyvisualName='kv_12112.jpg';
theSitetree.fontsetId='33299';
theSitetree.graphicsetId='14174';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Trade',
				paletteFamily: 	'4D8DBD',
				keyvisualId: 	'12112',
				keyvisualName: 	'kv_12112.jpg',
				fontsetId: 		'33299',
				graphicsetId: 	'14174',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-8106abw1x0ine9kh']={
webappId:    '1002',
documentId:  '8106',
internalId:  '8106abw1x0ine9kh',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20120105-073346'
};
webappMappings['1501']=webappMappings['1501-19678586']={
webappId:    '1501',
documentId:  '601',
internalId:  '19678586',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-2032']={
webappId:    '7008',
documentId:  '16101',
internalId:  '2032',
customField: 'language:de;country:CH;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '16601',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20120105-073004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7443',
internalId:  '',
customField: '20090407-165531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4943',
internalId:  '',
customField: '20090407-170501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4964',
internalId:  '',
customField: '20111209-110448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4985',
internalId:  '',
customField: '20120105-073027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20080102-184641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5006',
internalId:  '',
customField: '20090109-092137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8106',
internalId:  '',
customField: '20071223-170341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20071223-170341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20080102-184602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20090407-171203'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW1X0INE9KH';
var companyName   = 'Kolibri+Kleintierbetreuung';
var htmlTitle	  = 'Kolibri+Kleintier+-+Betreuung';
var metaKeywords  = '';
var metaContents  = 'script+language%3DJavaScript1.2++++++++++var+snowsrc%3DSchnee.gif++++var+no+%3D+10%3B++++++var+ns4up+%3D+%28document.layers%29+%3F+1+%3A+0%3B++++var+ie4up+%3D+%28document.all%29+%3F+1+%3A+0%3B++++++var+dx%2C+xp%2C+yp%3B++++var+am%2C+stx%2C+sty%3B++++var+i%2C+doc_width+%3D+800%2C+doc_height+%3D+600%3B++++++if+%28ns4up%29+%7B++++++doc_width+%3D+self.innerWidth%3B++++++doc_height+%3D+self.innerHeight%3B++++%7D+else+if+%28ie4up%29+%7B++++++doc_width+%3D+document.body.clientWidth%3B++++++doc_height+%3D+document.body.clientHeight%3B++++%7D++++++dx+%3D+new+Array%28%29%3B++++xp+%3D+new+Array%28%29%3B++++yp+%3D+new+Array%28%29%3B++++am+%3D+new+Array%28%29%3B++++stx+%3D+new+Array%28%29%3B++++sty+%3D+new+Array%28%29%3B++++++for+%28i+%3D+0%3B+i++no%3B+%2B%2B+i%29+%7B++++++dx%5Bi%5D+%3D+0%3B++++++xp%5Bi%5D+%3D+Math.random%28%29*%28doc_width-50%29%3B++++++yp%5Bi%5D+%3D+Math.random%28%29*doc_height%3B++++++am%5Bi%5D+%3D+Math.random%28%29*20%3B++++++stx%5Bi%5D+%3D+0.02+%2B+Math.random%28%29%2F10%3B++++++sty%5Bi%5D+%3D+0.7+%2B+Math.random%28%29%3B++++++if+%28ns4up%29+%7B++++++++if+%28i+%3D%3D+0%29+%7B++++++++++document.write%28layer+name%3D%5Cdot%2B+i+%2B%5C+left%3D%5C15%5C+top%3D%5C15%5C+visibility%3D%5Cshow%5Cimg+src%3D%2Bsnowsrc%2B+border%3D%5C0%5C%2Fa%2Flayer%29%3B++++++++%7D+else+%7B++++++++++document.write%28layer+name%3D%5Cdot%2B+i+%2B%5C+left%3D%5C15%5C+top%3D%5C15%5C+visibility%3D%5Cshow%5Cimg+src%3D%2Bsnowsrc%2B+border%3D%5C0%5C%2Flayer%29%3B++++++++%7D++++++%7D+else+if+%28ie4up%29+%7B++++++++if+%28i+%3D%3D+0%29+%7B++++++++++document.write%28div+id%3D%5Cdot%2B+i+%2B%5C+style%3D%5CPOSITION%3A+absolute%3B+Z-INDEX%3A+%2B+i+%2B%3B+VISIBILITY%3A+visible%3B+TOP%3A+15px%3B+LEFT%3A+15px%3B%5Cimg+src%3D%2Bsnowsrc%2B+border%3D%5C0%5C%2Fa%2Fdiv%29%3B++++++++%7D+else+%7B++++++++++document.write%28div+id%3D%5Cdot%2B+i+%2B%5C+style%3D%5CPOSITION%3A+absolute%3B+Z-INDEX%3A+%2B+i+%2B%3B+VISIBILITY%3A+visible%3B+TOP%3A+15px%3B+LEFT%3A+15px%3B%5Cimg+src%3D%2Bsnowsrc%2B+border%3D%5C0%5C%2Fdiv%29%3B++++++++%7D++++++%7D++++%7D++++++function+snowNS%28%29+%7B++++++for+%28i+%3D+0%3B+i++no%3B+%2B%2B+i%29+%7B++++++++yp%5Bi%5D+%2B%3D+sty%5Bi%5D%3B++++++++if+%28yp%5Bi%5D++doc_height-50%29+%7B++++++++++xp%5Bi%5D+%3D+Math.random%28%29*%28doc_width-am%5Bi%5D-30%29%3B++++++++++yp%5Bi%5D+%3D+0%3B++++++++++stx%5Bi%5D+%3D+0.02+%2B+Math.random%28%29%2F10%3B++++++++++sty%5Bi%5D+%3D+0.7+%2B+Math.random%28%29%3B++++++++++doc_width+%3D+self.innerWidth%3B++++++++++doc_height+%3D+self.innerHeight%3B++++++++%7D++++++++dx%5Bi%5D+%2B%3D+stx%5Bi%5D%3B++++++++document.layers%5Bdot%2Bi%5D.top+%3D+yp%5Bi%5D%3B++++++++document.layers%5Bdot%2Bi%5D.left+%3D+xp%5Bi%5D+%2B+am%5Bi%5D*Math.sin%28dx%5Bi%5D%29%3B++++++%7D++++++setTimeout%28snowNS%28%29%2C+10%29%3B++++%7D++++++function+snowIE%28%29+%7B++++++for+%28i+%3D+0%3B+i++no%3B+%2B%2B+i%29+%7B++++++++yp%5Bi%5D+%2B%3D+sty%5Bi%5D%3B++++++++if+%28yp%5Bi%5D++doc_height-50%29+%7B++++++++++xp%5Bi%5D+%3D+Math.random%28%29*%28doc_width-am%5Bi%5D-30%29%3B++++++++++yp%5Bi%5D+%3D+0%3B++++++++++stx%5Bi%5D+%3D+0.02+%2B+Math.random%28%29%2F10%3B++++++++++sty%5Bi%5D+%3D+0.7+%2B+Math.random%28%29%3B++++++++++doc_width+%3D+document.body.clientWidth%3B++++++++++doc_height+%3D+document.body.clientHeight%3B++++++++%7D++++++++dx%5Bi%5D+%2B%3D+stx%5Bi%5D%3B++++++++document.all%5Bdot%2Bi%5D.style.pixelTop+%3D+yp%5Bi%5D%3B++++++++document.all%5Bdot%2Bi%5D.style.pixelLeft+%3D+xp%5Bi%5D+%2B+am%5Bi%5D*Math.sin%28dx%5Bi%5D%29%3B++++++%7D++++++setTimeout%28snowIE%28%29%2C+10%29%3B++++%7D++++++if+%28ns4up%29+%7B++++++snowNS%28%29%3B++++%7D+else+if+%28ie4up%29+%7B++++++snowIE%28%29%3B++++%7D++++%2Fscript';
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();
};

