/* [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','4521',jdecode('Home%2C+contacts+'),jdecode(''),'/4521.html','true',[],'',''],
	['PAGE','9390',jdecode('Femelles'),jdecode(''),'/9390/index.html','true',[ 
		['PAGE','14101',jdecode('Yumah'),jdecode(''),'/9390/14101.html','false',[],'',''],
		['PAGE','9081',jdecode('Dakota+'),jdecode(''),'/9390/9081.html','false',[],'',''],
		['PAGE','24734',jdecode('Omaha'),jdecode(''),'/9390/24734.html','false',[],'',''],
		['PAGE','34601',jdecode('Nakuruq'),jdecode(''),'/9390/34601.html','false',[],'',''],
		['PAGE','110301',jdecode('Julia+Silvi+Cola'),jdecode(''),'/9390/110301.html','false',[],'','']
	],'',''],
	['PAGE','9000',jdecode('M%C3%A2les'),jdecode(''),'/9000/index.html','true',[ 
		['PAGE','24743',jdecode('Tatanka'),jdecode(''),'/9000/24743.html','false',[],'',''],
		['PAGE','102401',jdecode('Sioux+Lakota'),jdecode(''),'/9000/102401.html','false',[],'','']
	],'',''],
	['PAGE','136022',jdecode('Chatons+'),jdecode(''),'/136022.html','true',[],'',''],
	['PAGE','63401',jdecode('Youngstars'),jdecode(''),'/63401.html','true',[],'',''],
	['PAGE','143201',jdecode('Filles'),jdecode(''),'/143201.html','false',[],'',''],
	['PAGE','143222',jdecode('Gar%C3%A7ons'),jdecode(''),'/143222.html','false',[],'',''],
	['PAGE','9135',jdecode('Plans'),jdecode(''),'/9135.html','true',[],'',''],
	['PAGE','24770',jdecode('Galerie'),jdecode(''),'/24770.html','true',[],'',''],
	['PAGE','104201',jdecode('Port%C3%A9es'),jdecode(''),'/104201.html','true',[],'',''],
	['PAGE','104301',jdecode('port%C3%A9e+A'),jdecode(''),'/104301.html','false',[],'',''],
	['PAGE','104322',jdecode('Port%C3%A9e+B'),jdecode(''),'/104322.html','false',[],'',''],
	['PAGE','104343',jdecode('Port%C3%A9e+C'),jdecode(''),'/104343.html','false',[],'',''],
	['PAGE','104364',jdecode('Port%C3%A9e+D'),jdecode(''),'/104364.html','false',[],'',''],
	['PAGE','104385',jdecode('Port%C3%A9e+E'),jdecode(''),'/104385.html','false',[],'',''],
	['PAGE','104406',jdecode('Port%C3%A9e+F'),jdecode(''),'/104406.html','false',[],'',''],
	['PAGE','104427',jdecode('Port%C3%A9e+G'),jdecode(''),'/104427.html','false',[],'',''],
	['PAGE','104448',jdecode('Port%C3%A9e+H'),jdecode(''),'/104448.html','false',[],'',''],
	['PAGE','142601',jdecode('Port%C3%A9e+I'),jdecode(''),'/142601.html','false',[],'',''],
	['PAGE','152401',jdecode('Port%C3%A9e+J'),jdecode(''),'/152401.html','false',[],'',''],
	['PAGE','24752',jdecode('Neutr%C3%A9s+en+retraite'),jdecode(''),'/24752.html','true',[],'',''],
	['PAGE','157601',jdecode('Le+chalet+et+parcs'),jdecode(''),'/157601.html','true',[],'',''],
	['PAGE','92601',jdecode('Expo'),jdecode(''),'/92601.html','true',[],'',''],
	['PAGE','24779',jdecode('Liens'),jdecode(''),'/24779.html','true',[],'',''],
	['PAGE','25286',jdecode('D%C3%A9coupages+Nathalie'),jdecode(''),'/25286.html','true',[],'',''],
	['PAGE','146301',jdecode('%22Moderne%22'),jdecode(''),'/146301.html','false',[],'',''],
	['PAGE','146322',jdecode('Arbres'),jdecode(''),'/146322.html','false',[],'',''],
	['PAGE','146343',jdecode('Faune'),jdecode(''),'/146343.html','false',[],'',''],
	['PAGE','146364',jdecode('Traditionnel'),jdecode(''),'/146364.html','false',[],'',''],
	['PAGE','147801',jdecode('Commande'),jdecode(''),'/147801.html','false',[],'',''],
	['PAGE','36001',jdecode('Meubles+Kouki'),jdecode(''),'/36001.html','true',[],'',''],
	['PAGE','107601',jdecode('Notre+tipi'),jdecode(''),'/107601.html','true',[],'',''],
	['PAGE','39206',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/39206/index.html','true',[ 
		['PAGE','39201',jdecode('Entr%C3%A9es'),jdecode(''),'/39206/39201.html','false',[],'','']
	],'',''],
	['PAGE','112801',jdecode('essais'),jdecode(''),'/112801.html','false',[],'','']];
var siteelementCount=42;
theSitetree.topTemplateName='Spectrum';
theSitetree.paletteFamily='000040';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10761';
theSitetree.graphicsetId='10699';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Spectrum',
				paletteFamily: 	'000040',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10761',
				graphicsetId: 	'10699',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4521',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143201',
internalId:  '',
customField: '20100310-230340'
};
webappMappings['1501']=webappMappings['1501-2201500']={
webappId:    '1501',
documentId:  '4521',
internalId:  '2201500',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-39206abw0x0inxvte']={
webappId:    '1002',
documentId:  '39206',
internalId:  '39206abw0x0inxvte',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4521',
internalId:  '',
customField: '20100314-175519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104201',
internalId:  '',
customField: '20100312-163901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9135',
internalId:  '',
customField: '20100302-142105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9390',
internalId:  '',
customField: '20090926-214022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20081002-095601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9081',
internalId:  '',
customField: '20081002-100607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24734',
internalId:  '',
customField: '20090712-230041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34601',
internalId:  '',
customField: '20090910-194927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9000',
internalId:  '',
customField: '20100128-162322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24743',
internalId:  '',
customField: '20091012-180718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63401',
internalId:  '',
customField: '20100207-172035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92601',
internalId:  '',
customField: '20091030-193003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24752',
internalId:  '',
customField: '20100221-181231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24770',
internalId:  '',
customField: '20100207-181101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24779',
internalId:  '',
customField: '20090826-082401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25286',
internalId:  '',
customField: '20100128-165935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20081016-084716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39206',
internalId:  '',
customField: '20070607-082113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39201',
internalId:  '',
customField: '20070607-082113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102401',
internalId:  '',
customField: '20100302-141419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104301',
internalId:  '',
customField: '20100207-182411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104322',
internalId:  '',
customField: '20100207-182521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104343',
internalId:  '',
customField: '20100207-182625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104364',
internalId:  '',
customField: '20100207-182728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104385',
internalId:  '',
customField: '20100207-182824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104406',
internalId:  '',
customField: '20100207-182929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104427',
internalId:  '',
customField: '20100207-183125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104448',
internalId:  '',
customField: '20100207-183030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107601',
internalId:  '',
customField: '20090820-105139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110301',
internalId:  '',
customField: '20090925-221404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112801',
internalId:  '',
customField: '20090903-120627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146301',
internalId:  '',
customField: '20100221-180206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146322',
internalId:  '',
customField: '20100128-165652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142601',
internalId:  '',
customField: '20091224-195812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143222',
internalId:  '',
customField: '20100310-230833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136022',
internalId:  '',
customField: '20100302-142512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157601',
internalId:  '',
customField: '20100314-180857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146343',
internalId:  '',
customField: '20100128-164904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146364',
internalId:  '',
customField: '20100128-165340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147801',
internalId:  '',
customField: '20100221-180633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152401',
internalId:  '',
customField: '20100312-163948'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXVTE';
var companyName   = 'Tatankaska+Elevage+de+Maine+Coon';
var htmlTitle	  = '';
var metaKeywords  = 'Elavage+de+Maine+Coon%2C++Meubles+en+vieux+bois%2C++cadres+%2C+d%C3%A9coupages%2C+papier+d%C3%A9coup%C3%A9%2C+Nathalie+Gonthier%2C+kouki%2C+Saint+Valentin%2C+cadeau+';
var metaContents  = 'elevage+de+maine+coon+%2C+meubles+en+vieux+bois+%2C+d%C3%A9co%2C+cadres%2C+papier+d%C3%A9coup%C3%A9%2C+d%C3%A9coupages%2C+Nathalie+Gonthier%2C+kouki%2C+cadeau%2C+saint+Valentin+%2C+amoureux.';
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();
};
