/* [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(''),'/601.html','true',[],'',''],
	['PAGE','19501',jdecode('%C3%9Cber+uns%2Fde+nous'),jdecode(''),'/19501.html','true',[],'',''],
	['PAGE','168601',jdecode('M%C3%A2le%2FDeckr%C3%BCde'),jdecode(''),'/168601.html','true',[],'',''],
	['PAGE','170201',jdecode('H%C3%BCndinnen%2FLices'),jdecode(''),'/170201/index.html','true',[ 
		['PAGE','104301',jdecode('Alexis+%28Bart+Bellon%29'),jdecode(''),'/170201/104301.html','true',[],'',''],
		['PAGE','170222',jdecode('Bella+du+Blason+%28Roxy%29'),jdecode(''),'/170201/170222.html','true',[],'',''],
		['PAGE','170243',jdecode('Cindy+von+H%C3%A4ngelen+City'),jdecode(''),'/170201/170243.html','true',[],'',''],
		['PAGE','170264',jdecode('Duffy+von+H%C3%A4ngelen+City'),jdecode(''),'/170201/170264.html','true',[],'',''],
		['PAGE','182301',jdecode('Makani+von+der+Guldenburg+'),jdecode(''),'/170201/182301.html','true',[],'','']
	],'',''],
	['PAGE','104322',jdecode('CHIOTS%2F+WELPEN'),jdecode(''),'/104322.html','true',[],'',''],
	['PAGE','157601',jdecode('SCHIPPERKE'),jdecode(''),'/157601.html','true',[],'',''],
	['PAGE','159401',jdecode('KVO-Langnau-2009'),jdecode(''),'/159401.html','true',[],'',''],
	['PAGE','23822',jdecode('GALERIE+I'),jdecode(''),'/23822.html','true',[],'',''],
	['PAGE','113801',jdecode('GALERIE+II'),jdecode(''),'/113801.html','true',[],'',''],
	['PAGE','117001',jdecode('GALERIE+III'),jdecode(''),'/117001.html','true',[],'',''],
	['PAGE','145401',jdecode('GALERIE+IV'),jdecode(''),'/145401.html','true',[],'',''],
	['PAGE','38201',jdecode('U-Wurf%2FNich%C3%A9e+U'),jdecode(''),'/38201.html','true',[],'',''],
	['PAGE','38222',jdecode('A-Wurf%2FNich%C3%A9e+A'),jdecode(''),'/38222.html','true',[],'',''],
	['PAGE','37501',jdecode('B-Wurf%2FNich%C3%A9e+B'),jdecode(''),'/37501.html','true',[],'',''],
	['PAGE','101901',jdecode('C-Wurf%2FNich%C3%A9e+C'),jdecode(''),'/101901.html','true',[],'',''],
	['PAGE','142701',jdecode('D-Wurf%2FNich%C3%A9e+D'),jdecode(''),'/142701.html','true',[],'',''],
	['PAGE','189601',jdecode('E-Wurf%2FNich%C3%A9e+E'),jdecode(''),'/189601.html','true',[],'',''],
	['PAGE','57801',jdecode('Links+%2F+Liens'),jdecode(''),'/57801.html','true',[],'',''],
	['PAGE','5206',jdecode('Kontakt%2FContact'),jdecode(''),'/5206.html','true',[],'',''],
	['PAGE','34806',jdecode('G%C3%A4stebuch%2FLivre+d%26%23x27%3Bor'),jdecode(''),'/34806/index.html','true',[ 
		['PAGE','34801',jdecode('Entr%C3%A9es%2FEintritte'),jdecode(''),'/34806/34801.html','false',[],'','']
	],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Seasons_summer';
theSitetree.paletteFamily='AAD165';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='21092';
theSitetree.graphicsetId='13191';
theSitetree.contentColor='2E2E2E';
theSitetree.contentBGColor='AAD165';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Seasons_summer',
				paletteFamily: 	'AAD165',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'21092',
				graphicsetId: 	'13191',
				contentColor: 	'2E2E2E',
				contentBGColor: 'AAD165',
				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: '20100226-122940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100805-104629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168601',
internalId:  '',
customField: '20100530-143130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159401',
internalId:  '',
customField: '20100530-145942'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23822',
internalId:  '',
customField: '20100530-150208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113801',
internalId:  '',
customField: '20100330-224135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117001',
internalId:  '',
customField: '20090914-194002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104301',
internalId:  '',
customField: '20100530-143419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104322',
internalId:  '',
customField: '20100805-103739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38201',
internalId:  '',
customField: '20100530-150717'
};
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['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '601',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101901',
internalId:  '',
customField: '20100530-152342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157601',
internalId:  '',
customField: '20100530-145735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57801',
internalId:  '',
customField: '20100530-153008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5206',
internalId:  '',
customField: '20100530-153328'
};
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:  '182301',
internalId:  '',
customField: '20100619-194123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145401',
internalId:  '',
customField: '20100116-072408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170201',
internalId:  '',
customField: '20100530-143315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170222',
internalId:  '',
customField: '20100530-143625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170243',
internalId:  '',
customField: '20100530-143822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170264',
internalId:  '',
customField: '20100805-104831'
};
webappMappings['1501']=webappMappings['1501-21906410']={
webappId:    '1501',
documentId:  '601',
internalId:  '21906410',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189601',
internalId:  '',
customField: '20100817-121836'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INEWBW';
var companyName   = 'MALINOIS+von+H%C3%A4ngelen+City';
var htmlTitle	  = 'Malinois+von+H%C3%A4ngelen+City.ch++++oder%2Fou++++MalinoisVHC.com';
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();
};
