/* [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 theSitetree=[ 
	['PAGE','4560',jdecode('Page+d%26%23x27%3Bacceuil'),jdecode(''),'/4560.html','true',[],''],
	['PAGE','10201',jdecode('Moi%2C+HASTRA'),jdecode(''),'/10201.html','true',[],''],
	['PAGE','144101',jdecode('Mes+amis'),jdecode(''),'/144101/index.html','true',[ 
		['PAGE','144110',jdecode('Picus'),jdecode(''),'/144101/144110.html','true',[],''],
		['PAGE','144119',jdecode('Sam'),jdecode(''),'/144101/144119.html','true',[],''],
		['PAGE','144128',jdecode('Titi+%26+Fuego'),jdecode(''),'/144101/144128.html','true',[],''],
		['PAGE','144137',jdecode('Tania+%26+Co'),jdecode(''),'/144101/144137.html','true',[],''],
		['PAGE','144146',jdecode('Igor'),jdecode(''),'/144101/144146.html','true',[],''],
		['PAGE','148914',jdecode('Wolfgang'),jdecode(''),'/144101/148914.html','true',[],'']
	],''],
	['PAGE','75835',jdecode('Infos+'),jdecode(''),'/75835.html','true',[],''],
	['PAGE','28001',jdecode('S.O.S.+HELP+1'),jdecode(''),'/28001.html','true',[],''],
	['PAGE','147704',jdecode('Heureux+2008'),jdecode(''),'/147704.html','true',[],''],
	['PAGE','70887',jdecode('Vos+temoignages'),jdecode(''),'/70887.html','true',[],''],
	['PAGE','73510',jdecode('Vos+hommages'),jdecode(''),'/73510.html','true',[],''],
	['PAGE','63800',jdecode('Plus+jamais+%C3%A7a'),jdecode(''),'/63800.html','true',[],''],
	['PAGE','18501',jdecode('Petits+trucs'),jdecode(''),'/18501.html','true',[],''],
	['PAGE','11202',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/11202/index.html','true',[ 
		['PAGE','11203',jdecode('Entr%C3%A9es'),jdecode(''),'/11202/11203.html','true',[],'']
	],''],
	['PAGE','24701',jdecode('Sites+amis'),jdecode(''),'/24701.html','true',[],''],
	['PAGE','46962',jdecode('Pour+le+fun'),jdecode(''),'/46962.html','true',[],''],
	['PAGE','69410',jdecode('Le+Perou'),jdecode(''),'/69410.html','true',[],''],
	['PAGE','57484',jdecode('Forum'),jdecode(''),'/57484.html','true',[],''],
	['PAGE','121506',jdecode('Acc%C3%A8s'),jdecode(''),'/121506.html','true',[],''],
	['PAGE','121828',jdecode('Comment+nous+trouver'),jdecode(''),'/121828.html','true',[],''],
	['PAGE','143818',jdecode('Weblog'),jdecode(''),'/143818.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Nurseries';
theSitetree.paletteFamily='FFE57B';
theSitetree.keyvisualId='7904';
theSitetree.keyvisualName='kv_7904.jpg';
theSitetree.fontsetId='16877';
theSitetree.graphicsetId='12313';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFE57B';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				name: 			'Nurseries',
				paletteFamily: 	'FFE57B',
				keyvisualId: 	'7904',
				keyvisualName: 	'kv_7904.jpg',
				fontsetId: 		'16877',
				graphicsetId: 	'12313',
				contentColor: 	'000000',
				contentBGColor: 'FFE57B',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'true',
				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:  '4560',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-11202ABW0X0INXXMY']={
webappId:    '1002',
documentId:  '11202',
internalId:  '11202ABW0X0INXXMY',
customField: 'icq=true'
};
webappMappings['1003']=webappMappings['1003-abw0x0inxxmy10c28d13c23']={
webappId:    '1003',
documentId:  '57484',
internalId:  'abw0x0inxxmy10c28d13c23',
customField: 'fr:FR:'
};
webappMappings['1501']=webappMappings['1501-493629']={
webappId:    '1501',
documentId:  '4560',
internalId:  '493629',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '121828',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '121506',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['7050']=webappMappings['7050-148']={
webappId:    '7050',
documentId:  '143818',
internalId:  '148',
customField: 'language:fr;country:FR;'
};
webappMappings['7008']=webappMappings['7008-687']={
webappId:    '7008',
documentId:  '4560',
internalId:  '687',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4560',
internalId:  '',
customField: '20090419-090634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20051026-210148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144101',
internalId:  '',
customField: '20080611-100723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144110',
internalId:  '',
customField: '20080105-183305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144119',
internalId:  '',
customField: '20060929-195355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144128',
internalId:  '',
customField: '20060929-200729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144137',
internalId:  '',
customField: '20060929-195957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144146',
internalId:  '',
customField: '20060929-205243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75835',
internalId:  '',
customField: '20090612-140249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28001',
internalId:  '',
customField: '20091006-093531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147704',
internalId:  '',
customField: '20090513-082637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148914',
internalId:  '',
customField: '20091007-092601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70887',
internalId:  '',
customField: '20060225-001409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73510',
internalId:  '',
customField: '20071007-014523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63800',
internalId:  '',
customField: '20051113-182459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20060131-075809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11202',
internalId:  '',
customField: '20041011-235813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11203',
internalId:  '',
customField: '20041011-233246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24701',
internalId:  '',
customField: '20080105-164254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46962',
internalId:  '',
customField: '20071007-014946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69410',
internalId:  '',
customField: '20050423-221113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57484',
internalId:  '',
customField: '20050326-001835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121506',
internalId:  '',
customField: '20051121-213924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121828',
internalId:  '',
customField: '20051121-215522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143818',
internalId:  '',
customField: '20090131-101445'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXXMY';
var companyName   = '++++HASTRA';
var htmlTitle	  = 'Hastra+-+pour+ladoption+de+nos+vieux+et+gros+amis+%C3%A0+4+pattes';
var metaKeywords  = 'adoption+de+vieux+et+gros+chiens';
var metaContents  = 'Adoption+de+nos+vieux+et+gros+amis+%C3%A0+4+pattes+en+Suisse';
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();
};
