/* [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','19501',jdecode('%C3%9Cber+uns%2Fde+nous'),jdecode(''), jdecode('%2F19501.html'), 'true',[],'',''],
	['PAGE','168601',jdecode('M%C3%A2les%2FDeckr%C3%BCden'),jdecode(''), jdecode('%2F168601.html'), 'true',[],'',''],
	['PAGE','170201',jdecode('H%C3%BCndinnen%2FLices'),jdecode(''), jdecode('%2F170201%2Findex.html'), 'true',[ 
		['PAGE','104301',jdecode('Alexis+%28Bart+Bellon%29'),jdecode(''), jdecode('%2F170201%2F104301.html'), 'true',[],'',''],
		['PAGE','170222',jdecode('Bella+du+Blason+%28Roxy%29'),jdecode(''), jdecode('%2F170201%2F170222.html'), 'true',[],'',''],
		['PAGE','170243',jdecode('Cindy+von+H%C3%A4ngelen+City'),jdecode(''), jdecode('%2F170201%2F170243.html'), 'true',[],'',''],
		['PAGE','170264',jdecode('Duffy+von+H%C3%A4ngelen+City'),jdecode(''), jdecode('%2F170201%2F170264.html'), 'true',[],'',''],
		['PAGE','235101',jdecode('Ellison+von+H%C3%A4ngelen+City'),jdecode(''), jdecode('%2F170201%2F235101.html'), 'true',[],'','']
	],'',''],
	['PAGE','236001',jdecode('TERVUEREN'),jdecode(''), jdecode('%2F236001.html'), 'true',[],'',''],
	['PAGE','157601',jdecode('SCHIPPERKE'),jdecode(''), jdecode('%2F157601.html'), 'true',[],'',''],
	['PAGE','23822',jdecode('GALERIE+I'),jdecode(''), jdecode('%2F23822.html'), 'true',[],'',''],
	['PAGE','113801',jdecode('GALERIE+II'),jdecode(''), jdecode('%2F113801.html'), 'true',[],'',''],
	['PAGE','117001',jdecode('GALERIE+III'),jdecode(''), jdecode('%2F117001.html'), 'true',[],'',''],
	['PAGE','145401',jdecode('GALERIE+IV'),jdecode(''), jdecode('%2F145401.html'), 'true',[],'',''],
	['PAGE','38201',jdecode('U-Wurf%2FNich%C3%A9e+U'),jdecode(''), jdecode('%2F38201.html'), 'true',[],'',''],
	['PAGE','38222',jdecode('A-Wurf%2FNich%C3%A9e+A'),jdecode(''), jdecode('%2F38222.html'), 'true',[],'',''],
	['PAGE','37501',jdecode('B-Wurf%2FNich%C3%A9e+B'),jdecode(''), jdecode('%2F37501.html'), 'true',[],'',''],
	['PAGE','101901',jdecode('C-Wurf%2FNich%C3%A9e+C'),jdecode(''), jdecode('%2F101901.html'), 'true',[],'',''],
	['PAGE','142701',jdecode('D-Wurf%2FNich%C3%A9e+D'),jdecode(''), jdecode('%2F142701.html'), 'true',[],'',''],
	['PAGE','189601',jdecode('E-Wurf%2FNich%C3%A9e+E'),jdecode(''), jdecode('%2F189601.html'), 'true',[],'',''],
	['PAGE','104322',jdecode('F-Wurf%2FNich%C3%A9e+F+'),jdecode(''), jdecode('%2F104322.html'), 'true',[],'',''],
	['PAGE','227001',jdecode('G-Wurf-Nich%C3%A9e+G'),jdecode(''), jdecode('%2F227001.html'), 'true',[],'',''],
	['PAGE','57801',jdecode('Links+%2F+Liens'),jdecode(''), jdecode('%2F57801.html'), 'true',[],'',''],
	['PAGE','5206',jdecode('Kontakt%2FContact'),jdecode(''), jdecode('%2F5206.html'), 'true',[],'',''],
	['PAGE','34806',jdecode('G%C3%A4stebuch%2FLivre+d%26%23x27%3Bor'),jdecode(''), jdecode('%2F34806.html'), 'true',[],'',''],
	['PAGE','34801',jdecode('Entr%C3%A9es%2FEintritte'),jdecode(''), jdecode('%2F34801.html'), 'true',[],'',''],
	['PAGE','212601',jdecode(''),jdecode(''), jdecode('%2F212601.html'), 'true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Seasons_winter';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='21093';
theSitetree.graphicsetId='13196';
theSitetree.contentColor='2E2E2E';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Seasons_winter',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'21093',
				graphicsetId: 	'13196',
				contentColor: 	'2E2E2E',
				contentBGColor: 'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142701',
internalId:  '',
customField: '20100530-152720'
};
webappMappings['1002']=webappMappings['1002-34806abw0x0inewbw']={
webappId:    '1002',
documentId:  '34806',
internalId:  '34806abw0x0inewbw',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20120108-125657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20120109-012344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168601',
internalId:  '',
customField: '20120108-155718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23822',
internalId:  '',
customField: '20120109-005439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227001',
internalId:  '',
customField: '20120109-004727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113801',
internalId:  '',
customField: '20100330-224135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117001',
internalId:  '',
customField: '20110425-015408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104301',
internalId:  '',
customField: '20100530-143419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104322',
internalId:  '',
customField: '20120109-010825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38201',
internalId:  '',
customField: '20120109-005955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38222',
internalId:  '',
customField: '20100530-151203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37501',
internalId:  '',
customField: '20100530-151811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212601',
internalId:  '',
customField: '20110303-170227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101901',
internalId:  '',
customField: '20110309-023834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157601',
internalId:  '',
customField: '20120109-005138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57801',
internalId:  '',
customField: '20120109-011425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5206',
internalId:  '',
customField: '20120109-012116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34806',
internalId:  '',
customField: '20100530-153403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20080331-184458'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '235101',
internalId:  '-',
customField: '20120108-155121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145401',
internalId:  '',
customField: '20100116-072408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170201',
internalId:  '',
customField: '20120108-150524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170222',
internalId:  '',
customField: '20120108-153015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170243',
internalId:  '',
customField: '20120108-153246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170264',
internalId:  '',
customField: '20111206-145127'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '236001',
internalId:  '-',
customField: '20120109-002227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189601',
internalId:  '',
customField: '20120109-011239'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INEWBW';
var companyName   = 'MALI+%26+SCHIPPERKE+v.+H%C3%A4ngelen+City';
var htmlTitle	  = 'Malinois+und+Schipperke+von+H%C3%A4ngelen+City';
var metaKeywords  = 'chiens%2CMalinois+von+H%C3%A4ngelen+City%2Cchiots%2C+Malinois%2CHund%2CWelpen%2CZucht%2CDiensthunde%2CIPO%2CRCI%2CSecuritas%2CElevage+Malinois%2CMondioring%2CMR%2C+VHC%2Cpolice%2Cpolizei%2CHundesport%2CBerger+Belge+Malinois%2C+Ring%2C+Mondioring%2CSport+canin%2CSCHIPPERKE%2C%0D%0A%0D%0A%0D%0A%0D%0Amalinoisvonh%C3%A4ngelencity%2Cch%2C+Chiots+Berger+Belge+Malinois%0D%0A%0D%0A%0D%0A%0D%0A';
var metaContents  = 'Elevage+de+chiens+Berger+Belge+Malinois%2C+sport+%2C++chiens+de+sport+et+de+service%2C+police%2Csecuritas%2Cchiots%2C+chiens+VHC%2C+von+H%C3%A4ngelen+City%2CDiensthund%2Cpolice%2Cpolizei%2CWelpen+Belgischersch%C3%A4ferhund%2CZucht+Malinois%2CSCHIPPERKE%2C+S%C3%A9curit%C3%A9+avec+chien%2CVHC%2Cmalinoiszucht%2Cmalinoisvhc.com%2Cmalinoisvonh%C3%A4ngelencity.ch%2C+chiots+Malinois%2C+Malinoiswelpen';
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();
};

