/* [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','170285',jdecode('Engel+du+Blason'),jdecode(''),'/170201/170285.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','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',[],'','']
	],'',''],
	['PAGE','172001',jdecode('Liens'),jdecode(''),'/172001.html','true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Fantasy';
theSitetree.paletteFamily='AD4734';
theSitetree.keyvisualId='9903';
theSitetree.keyvisualName='kv3.swf';
theSitetree.fontsetId='17881';
theSitetree.graphicsetId='13066';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Fantasy',
				paletteFamily: 	'AD4734',
				keyvisualId: 	'9903',
				keyvisualName: 	'kv3.swf',
				fontsetId: 		'17881',
				graphicsetId: 	'13066',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				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: '20100116-074731'
};
webappMappings['1002']=webappMappings['1002-34806abw0x0inewbw']={
webappId:    '1002',
documentId:  '34806',
internalId:  '34806abw0x0inewbw',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20100116-071235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100116-075250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168601',
internalId:  '',
customField: '20100116-082409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159401',
internalId:  '',
customField: '20100116-071515'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23822',
internalId:  '',
customField: '20100116-072033'
};
webappMappings['1501']=webappMappings['1501-21906410']={
webappId:    '1501',
documentId:  '601',
internalId:  '21906410',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113801',
internalId:  '',
customField: '20100116-075734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117001',
internalId:  '',
customField: '20090914-194002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104301',
internalId:  '',
customField: '20100116-073858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104322',
internalId:  '',
customField: '20100116-074014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38201',
internalId:  '',
customField: '20090729-112617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38222',
internalId:  '',
customField: '20080814-013512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37501',
internalId:  '',
customField: '20090224-131836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101901',
internalId:  '',
customField: '20091115-021819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157601',
internalId:  '',
customField: '20100116-074352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57801',
internalId:  '',
customField: '20100208-145905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5206',
internalId:  '',
customField: '20090306-163937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34806',
internalId:  '',
customField: '20080331-184458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20080331-184458'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '601',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145401',
internalId:  '',
customField: '20100116-072408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170201',
internalId:  '',
customField: '20100226-133426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170222',
internalId:  '',
customField: '20100226-133426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170243',
internalId:  '',
customField: '20100226-133426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170264',
internalId:  '',
customField: '20100226-133426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170285',
internalId:  '',
customField: '20100226-133426'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INEWBW';
var companyName   = 'MALINOIS+von+H%C3%A4ngelen+City';
var htmlTitle	  = '';
var metaKeywords  = 'chiens%2CMalinois+von+H%C3%A4ngelen+City%2Cchiots%2C+Malinois%2CHund%2CWelpen%2CZucht%2CDiensthunde%2CIPO%2CRCI%2CSecuritas%2CElevage+Malinois%2C+VHC%2Cpolice%2Cpolizei%2CHundesport%2CBerger+Belge+Malinois%2C+Ring%2C+Mondioring%2CSport+canin%2CSCHIPPERKE';
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';
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();
};
