/* [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','4584',jdecode('+++Accueil+OMG'),jdecode(''),'/4584/index.html','true',[ 
		['PAGE','82247',jdecode('Observatoire'),jdecode(''),'/4584/82247.html','true',[],'',''],
		['PAGE','101000',jdecode('Historique'),jdecode(''),'/4584/101000.html','true',[],'','']
	],'',''],
	['PAGE','39018',jdecode('Derni%C3%A8res+images'),jdecode(''),'/39018.html','true',[],'',''],
	['PAGE','6532',jdecode('Ciel+profond'),jdecode(''),'/6532.html','true',[],'',''],
	['PAGE','84556',jdecode('Com%C3%A8tes'),jdecode(''),'/84556/index.html','true',[ 
		['PAGE','41818',jdecode('Hale-Bopp'),jdecode(''),'/84556/41818.html','true',[],'',''],
		['PAGE','41845',jdecode('Hyakutake'),jdecode(''),'/84556/41845.html','true',[],'',''],
		['PAGE','84210',jdecode('Machholz'),jdecode(''),'/84556/84210.html','true',[],'',''],
		['PAGE','81045',jdecode('Ikeya-Zhang'),jdecode(''),'/84556/81045.html','true',[],'',''],
		['PAGE','81072',jdecode('Neat'),jdecode(''),'/84556/81072.html','true',[],'',''],
		['PAGE','81099',jdecode('Linear'),jdecode(''),'/84556/81099.html','true',[],'',''],
		['PAGE','81342',jdecode('Etoiles+filantes'),jdecode(''),'/84556/81342.html','true',[],'','']
	],'',''],
	['PAGE','45818',jdecode('Plan%C3%A8tes'),jdecode(''),'/45818.html','true',[],'',''],
	['PAGE','21101',jdecode('Soleil'),jdecode(''),'/21101/index.html','true',[ 
		['PAGE','85749',jdecode('Taches+solaires'),jdecode(''),'/21101/85749.html','true',[],'',''],
		['PAGE','75191',jdecode('Surface+en+Ha'),jdecode(''),'/21101/75191.html','true',[],'',''],
		['PAGE','75218',jdecode('Protub%C3%A9rances+en+Ha'),jdecode(''),'/21101/75218.html','true',[],'',''],
		['PAGE','75245',jdecode('Eclipses+de+Soleil'),jdecode(''),'/21101/75245.html','true',[],'',''],
		['PAGE','80369',jdecode('Rayon+Vert'),jdecode(''),'/21101/80369.html','true',[],'',''],
		['PAGE','92925',jdecode('Levers+%26+couchers'),jdecode(''),'/21101/92925.html','true',[],'','']
	],'',''],
	['PAGE','44376',jdecode('Lune+'),jdecode(''),'/44376/index.html','true',[ 
		['PAGE','74659',jdecode('Haute+r%C3%A9solution+A-C'),jdecode(''),'/44376/74659.html','true',[],'',''],
		['PAGE','105060',jdecode('Haute+r%C3%A9solution+D-G'),jdecode(''),'/44376/105060.html','true',[],'',''],
		['PAGE','103758',jdecode('Haute+r%C3%A9solution+H-L'),jdecode(''),'/44376/103758.html','true',[],'',''],
		['PAGE','103785',jdecode('Haute+r%C3%A9solution+M-O'),jdecode(''),'/44376/103785.html','true',[],'',''],
		['PAGE','103812',jdecode('Haute+r%C3%A9solution+P-R'),jdecode(''),'/44376/103812.html','true',[],'',''],
		['PAGE','103839',jdecode('Haute+r%C3%A9solution+S-T'),jdecode(''),'/44376/103839.html','true',[],'',''],
		['PAGE','108567',jdecode('Haute+r%C3%A9solution+U-Z'),jdecode(''),'/44376/108567.html','true',[],'',''],
		['PAGE','94296',jdecode('Phases'),jdecode(''),'/44376/94296.html','true',[],'',''],
		['PAGE','74632',jdecode('Eclipses+de+Lune'),jdecode(''),'/44376/74632.html','true',[],'','']
	],'',''],
	['PAGE','21209',jdecode('Astro+divers'),jdecode(''),'/21209.html','true',[],'',''],
	['PAGE','86486',jdecode('Sp%C3%A9l%C3%A9o'),jdecode(''),'/86486/index.html','true',[ 
		['PAGE','66645',jdecode('La+grotte+de+M%C3%B4tiers'),jdecode(''),'/86486/66645.html','true',[],'',''],
		['PAGE','87963',jdecode('Vers+Chez+le+Brandt'),jdecode(''),'/86486/87963.html','true',[],'',''],
		['PAGE','87005',jdecode('La+Baume+des+Parcs'),jdecode(''),'/86486/87005.html','true',[],'',''],
		['PAGE','87729',jdecode('Glaci%C3%A8re+Monl%C3%A9si'),jdecode(''),'/86486/87729.html','true',[],'',''],
		['PAGE','88431',jdecode('Cernil+Ladame'),jdecode(''),'/86486/88431.html','true',[],'',''],
		['PAGE','88200',jdecode('Longeaigue'),jdecode(''),'/86486/88200.html','true',[],'',''],
		['PAGE','88983',jdecode('Chapeau+de+Napol%C3%A9on'),jdecode(''),'/86486/88983.html','true',[],'',''],
		['PAGE','89244',jdecode('Chemin+de+Fer'),jdecode(''),'/86486/89244.html','true',[],'',''],
		['PAGE','90285',jdecode('Glaci%C3%A8re+mont+Verri%C3%A8res'),jdecode(''),'/86486/90285.html','true',[],'',''],
		['PAGE','91295',jdecode('Ubena'),jdecode(''),'/86486/91295.html','true',[],'',''],
		['PAGE','21155',jdecode('Autres+trous+du+coin'),jdecode(''),'/86486/21155.html','true',[],'',''],
		['PAGE','87032',jdecode('Les+trous+plus+loin'),jdecode(''),'/86486/87032.html','true',[],'',''],
		['PAGE','21128',jdecode('Le+r%C3%A9seau+Lachambre'),jdecode(''),'/86486/21128.html','true',[],'',''],
		['PAGE','129213',jdecode('Les+Cavottes'),jdecode(''),'/86486/129213.html','true',[],'','']
	],'',''],
	['PAGE','20701',jdecode('Images+ultra-rapides'),jdecode(''),'/20701.html','true',[],'',''],
	['PAGE','95266',jdecode('Autres+images'),jdecode(''),'/95266/index.html','true',[ 
		['PAGE','21182',jdecode('Aviation+1'),jdecode(''),'/95266/21182.html','true',[],'',''],
		['PAGE','127407',jdecode('Aviation+2'),jdecode(''),'/95266/127407.html','true',[],'',''],
		['PAGE','95684',jdecode('Vues+d%26%23x27%3Ben+haut'),jdecode(''),'/95266/95684.html','true',[],'',''],
		['PAGE','77751',jdecode('Nature'),jdecode(''),'/95266/77751.html','true',[],'',''],
		['PAGE','77778',jdecode('Serpent'),jdecode(''),'/95266/77778.html','true',[],'',''],
		['PAGE','111432',jdecode('Cristaux+de+glace'),jdecode(''),'/95266/111432.html','true',[],'',''],
		['PAGE','79315',jdecode('Paysages'),jdecode(''),'/95266/79315.html','true',[],'',''],
		['PAGE','77724',jdecode('Fractales'),jdecode(''),'/95266/77724.html','true',[],'','']
	],'',''],
	['PAGE','128745',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/128745/index.html','true',[ 
		['PAGE','128744',jdecode('Lire+le+livre+d%26%23x27%3Bor'),jdecode(''),'/128745/128744.html','false',[],'','']
	],'','']];
var siteelementCount=59;
theSitetree.topTemplateName='echo';
theSitetree.paletteFamily='7B4B70';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10403';
theSitetree.graphicsetId='10629';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'echo',
				paletteFamily: 	'7B4B70',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10403',
				graphicsetId: 	'10629',
				contentColor: 	'000000',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4584',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128744',
internalId:  '',
customField: '20090201-141624'
};
webappMappings['1002']=webappMappings['1002-128745abw0x0inxew0']={
webappId:    '1002',
documentId:  '128745',
internalId:  '128745abw0x0inxew0',
customField: 'icq=true'
};
webappMappings['1501']=webappMappings['1501-1437474']={
webappId:    '1501',
documentId:  '4584',
internalId:  '1437474',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4584',
internalId:  '',
customField: '20100721-163656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82247',
internalId:  '',
customField: '20071108-223153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101000',
internalId:  '',
customField: '20071108-231313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39018',
internalId:  '',
customField: '20100721-164350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6532',
internalId:  '',
customField: '20070324-184133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84556',
internalId:  '',
customField: '20050514-214009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41818',
internalId:  '',
customField: '20050516-205653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41845',
internalId:  '',
customField: '20050514-213027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84210',
internalId:  '',
customField: '20050516-164757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81045',
internalId:  '',
customField: '20050516-172147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81072',
internalId:  '',
customField: '20050516-172914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81099',
internalId:  '',
customField: '20050516-175928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81342',
internalId:  '',
customField: '20050516-173352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45818',
internalId:  '',
customField: '20070724-162459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20070324-173957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85749',
internalId:  '',
customField: '20070324-174612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75191',
internalId:  '',
customField: '20050516-180300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75218',
internalId:  '',
customField: '20090203-192435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75245',
internalId:  '',
customField: '20070324-170211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80369',
internalId:  '',
customField: '20070324-171334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92925',
internalId:  '',
customField: '20050514-211211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44376',
internalId:  '',
customField: '20070324-180315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74659',
internalId:  '',
customField: '20070324-163643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105060',
internalId:  '',
customField: '20061014-195740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103758',
internalId:  '',
customField: '20070324-173853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103785',
internalId:  '',
customField: '20060122-141750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103812',
internalId:  '',
customField: '20070324-182925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103839',
internalId:  '',
customField: '20070324-164401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108567',
internalId:  '',
customField: '20060122-142926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94296',
internalId:  '',
customField: '20070324-181952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74632',
internalId:  '',
customField: '20050517-232729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21209',
internalId:  '',
customField: '20070324-155929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86486',
internalId:  '',
customField: '20100307-162700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66645',
internalId:  '',
customField: '20100307-141220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87963',
internalId:  '',
customField: '20050722-004218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87005',
internalId:  '',
customField: '20051211-215504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87729',
internalId:  '',
customField: '20071225-113616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88431',
internalId:  '',
customField: '20050514-142108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88200',
internalId:  '',
customField: '20050514-154552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88983',
internalId:  '',
customField: '20050514-154702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89244',
internalId:  '',
customField: '20050514-122513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90285',
internalId:  '',
customField: '20050514-150647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91295',
internalId:  '',
customField: '20050514-162955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21155',
internalId:  '',
customField: '20050514-154856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87032',
internalId:  '',
customField: '20050514-115607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21128',
internalId:  '',
customField: '20040410-230746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20701',
internalId:  '',
customField: '20090201-131320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95266',
internalId:  '',
customField: '20080115-212136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21182',
internalId:  '',
customField: '20080113-200316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127407',
internalId:  '',
customField: '20080116-205410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95684',
internalId:  '',
customField: '20050514-230523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77751',
internalId:  '',
customField: '20090317-204227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77778',
internalId:  '',
customField: '20060311-221545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111432',
internalId:  '',
customField: '20060312-200221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79315',
internalId:  '',
customField: '20050516-182015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77724',
internalId:  '',
customField: '20050517-231243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129213',
internalId:  '',
customField: '20100307-170051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128745',
internalId:  '',
customField: '20090201-141624'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXEW0';
var companyName   = 'OMG';
var htmlTitle	  = 'Observatoire+de+Miam-Globs+Les+Veri%C3%A8rres+Suisse';
var metaKeywords  = 'miam-globs+armin+behrend+pomme+357+magnum+%C3%A9clipse+mercure+lachambre+omg+balistique+com%C3%A8te+lune+soleil+n%C3%A9buleuse+conjonction+dodge+viper+gts+acr+rayon+vert+green+flash+transit+v%C3%A9nus+machholz+sp%C3%A9l%C3%A9ologie+abyxcv2+Holmes+ISS+transit+soleil+grotte+cavottes';
var metaContents  = 'photographie+astronomie+image+ultra-rapide+observatoire+miam-globs+com%C3%A8te+sp%C3%A9l%C3%A9ologie+macro+dodge+viper+rayon+vert+green+flash+abyxcv1+cristaux+glace+Holmes+ISS+transit+soleil+grotte+cavottes';
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();
};
