window.onerror=stoperror

function stoperror(){
 return true
}

function VersionNavigateur(Netscape, Explorer) {
 if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}

var isNS=(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4)
var isMAC=(navigator.appVersion.indexOf("Mac")!=-1)
var isIE5=(navigator.appVersion.indexOf("MSIE 5")!=-1)
var NS = (navigator.appName == "Netscape")
var VERSION = parseInt(navigator.appVersion)
var NS4=(document.layers)
var IE4=(document.all)
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all
var firefox=(navigator.appName.indexOf("Firefox")>0)
var lieuHebergement=document.location.toString()
var zone=lieuHebergement
var HIDDEN=(isNS) ? 'hide' : 'hidden'
var VISIBLE=(isNS) ? 'show' : 'visible'
if (ns6) {
 HIDDEN='hidden'
 VISIBLE='visible'
}

var navigationTransversale
var navigationTransversale1
var y1
var vt

//if (lieuHebergement.substring(0,7)=="http://") {
 hitparade=new Image()
 hitparade.src="http://logp.hit-parade.com/logohp1.gif?site=p316"
 hitparadeBoutique=new Image()
 hitparadeBoutique.src="http://loga.hit-parade.com/logohp1.gif?site=a435327"
 hitparadePeyrepertuse=new Image()
 hitparadePeyrepertuse.src="http://logp.hit-parade.com/logohp1.gif?site=p352760"
 hitparadeBoutiqueHistophile=new Image()
 hitparadeBoutiqueHistophile.src="http://logp.hit-parade.com/logohp1.gif?site=p452412"
 hitparadeHistophile=new Image()
 hitparadeHistophile.src="http://logp.hit-parade.com/logohp1.gif?site=p451290"
 hitparadeKatanas=new Image()
 hitparadeKatanas.src="http://logp.hit-parade.com/logohp1.gif?site=p490024"
 hitparadeVoyageImmobile=new Image()
 hitparadeVoyageImmobile.src="http://logp.hit-parade.com/logohp1.gif?site=p576340"
 hebdotop=new Image()
 hebdotop.src="http://www.hebdotop.com/cgi-bin/vote.eur?id=16633"
 hebdotopH=new Image()
 hebdotopH.src="http://www.hebdotop.com/cgi-bin/vote.eur?id=106267"
 hebdotopASL=new Image()
 hebdotopASL.src="http://www.hebdotop.com/cgi-bin/vote.eur?id=171579"
 lebest=new Image()
 lebest.src="http://www.lebest.fr/banniere.php?id=3993&format=120_60"
 meilleurduweb84787=new Image() //Khetemet
 meilleurduweb84787.src="http://www.meilleurduweb.com/rubriques/out.php?id=84787"
 meilleurduweb46717=new Image() //Histophile
 meilleurduweb46717.src="http://www.meilleurduweb.com/rubriques/out.php?id=46717"
 meilleurduweb129704=new Image() //Armurerie du Soleil levant
 meilleurduweb129704.src="http://www.meilleurduweb.com/rubriques/out.php?id=129704"
//}

if (!document.all) {
 y1=pageYOffset
}

function disableselect(e){
 return false
}

function reEnable(){
 return true
}

if ((lieuHebergement.indexOf("librairieVirtuelle")==-1) && (lieuHebergement.indexOf("plateforme")==-1) && (lieuHebergement.indexOf("pi-")==-1) && (lieuHebergement.indexOf(".asp")==-1) && (lieuHebergement.substring(0,7)=="http://") && (lieuHebergement.substring(0,7)=="lien.html")) {
 document.onselectstart=new Function ("return false")
}

if ((window.sidebar) && (lieuHebergement.indexOf("librairieVirtuelle")==-1) && (lieuHebergement.indexOf("plateforme")==-1) && (lieuHebergement.indexOf("pi-")==-1) && (lieuHebergement.indexOf(".asp")==-1) && (lieuHebergement.substring(0,7)=="http://")) {
 document.onmousedown=disableselect
 document.onclick=reEnable
}

function inj(c) {
 document.write(c)
}

function reload() {
 window.location=window.location
}

if (VersionNavigateur(4.0,4.0)) {
 img=new Image()
 img.src="pointeur.gif"
 mm0=new Image();mm0.src="ms0.gif"
 mm0a=new Image();mm0a.src="ms0a.gif"
 mm1=new Image();mm1.src="ms1.gif"
 mm1a=new Image();mm1a.src="ms1a.gif"
 mm2=new Image();mm2.src="ms2.gif"
 mm2a=new Image();mm2a.src="ms2a.gif"
 cdcPreChargement=new Image();cdcPreChargement.src="champDeComprehension608x447.gif"
 btPreChargement=new Image();btPreChargement.src="bandeauTitre750x65.gif"
}

function on2(name)   {
 if (VersionNavigateur(3.0,4.0)) {
  document["commentaires"].src = eval(name + "alton.src")
  window.status = eval(name + "commentaires")
 }
}

function off2(name)  {
 if (VersionNavigateur(3.0,4.0)) {
  document["commentaires"].src = img1alt.src
 }
}

function changerliens() {
 aujourd_hui = new Date
 if (VersionNavigateur(3.0,4.0)) {
  if (document.liens.checkliens.checked == true){
   for (i = 0 ; i < document.links.length ; i++) {
    if (document.links[i].href != "javascript:void(0)") {
     document.links[i].target = aujourd_hui.getTime() + document.name + i.toString()
    }
   }
  }
  else {
   for (i = 0 ; i < document.links.length ; i++) {
    document.links[i].target = ""
   }
  }
 }
}

function makevisible(cur,which){
 if (which==0)
  cur.filters.alpha.opacity=100
 else
  cur.filters.alpha.opacity=20
}

var isNS=(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4)
IE4=(document.all) ? 1 : 0
NS4=(document.layers) ? 1 : 0
VERSION4=(IE4 | NS4) ? 1 : 0
if (!VERSION4) event = null
function initArray() {
 this.length = initArray.arguments.length;
 for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
 }
}

function MakeArray(n) {
 this.length = n
 return this
}

hex=new MakeArray(16)
hex[0]="0"
hex[1]="1"
hex[2]="2"
hex[3]="3"
hex[4]="4"
hex[5]="5"
hex[6]="6"
hex[7]="7"
hex[8]="8"
hex[9]="9"
hex[10]="A"
hex[11]="B"
hex[12]="C"
hex[13]="D"
hex[14]="E"
hex[15]="F"

function ToHex(x){
 var high = x/16
 var s = high+""
 s = s.substring(0,2)
 high = parseInt(s,10)
 var left = hex[high]
 var low = x-high*16
 s = low + ""
 s = s.substring(0,2)
 low = parseInt(s,10) 
 var right = hex[low]
 var string = left + "" + right
 return string
}

function Degrade(texte,ri,vi,bi,rf,vf,bf){
 if (VersionNavigateur(99.0,4.0)) {
  for(i = 0 ; i < texte.length ; i++){
   r = ri + (rf - ri)/texte.length*i
   rh = ToHex(r)
   v = vi + (vf - vi)/texte.length*i
   vh = ToHex(v)
   b = bi + (bf - bi)/texte.length*i
   bh = ToHex(b)
   document.write("<FONT COLOR='" + rh + vh + bh + "'>" + texte.substring(i,i+1) + '</FONT>')
  }
 }
 else {
  document.write(texte)
 }
}

function ouvrirPhoto(url,x,y) {
 if (url != "") {
  x=x+18
  y=y+23
  var MinWin, winOpts="width="+x+",height="+y+",resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no"
  if (((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>3)) || (navigator.appName == "Netscape")) {
   pere=top
  }
  nouvelle_fenetre=window.open(url,'', winOpts)  
  if (((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>3)) || (navigator.appName == "Netscape")) {
   nouvelle_fenetre.pere=pere
  }
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)<3)) {
   top.name="principale"
  }	
  if (navigator.appVersion.indexOf("(X11") != -1 || navigator.appVersion.indexOf("(Mac") != -1) {
   nouvelle_fenetre=window.open(url,'', winOpts)
  }
  if (navigator.appName == "Netscape" && (parseInt(navigator.appVersion) >=3 )) {
   nouvelle_fenetre.focus()
  }
 }
}

function ouvrirPhotoG(url,x,y) {
 if (url != "") {
  x=x+18
  y=y+23
  var MinWin, winOpts="width="+x+",height="+y+",resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no"
  if (((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>3)) || (navigator.appName == "Netscape")) {
   pere=top
  }
  nouvelle_fenetre=window.open(url,'', winOpts)  
  if (((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>3)) || (navigator.appName == "Netscape")) {
   nouvelle_fenetre.pere=pere
  }
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)<3)) {
   top.name="principale"
  }	
  if (navigator.appVersion.indexOf("(X11") != -1 || navigator.appVersion.indexOf("(Mac") != -1) {
   nouvelle_fenetre=window.open(url,'', winOpts)
  }
  if (navigator.appName == "Netscape" && (parseInt(navigator.appVersion) >=3 )) {
   nouvelle_fenetre.focus()
  }
 }
}

function ouvrirFenetre(url,x,y) {
 if (url != "") {
  x=x+18
  y=y+23
  var winOpts="width="+x+",height="+y+",resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=yes"
  nouvelle_fenetre=window.open(url,'', winOpts)  
 }
}

function ouvrirFenetreCentree(adresse,nomFenetre,w,h,scroll) {
 var win
 LeftPosition=(screen.width) ? (screen.width-w)/2 : 0
 TopPosition=(screen.height) ? (screen.height-h)/2 : 0
 parametres='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes,resizable=yes,toolbar=no,location=no,menubar=no'
 if (adresse.indexOf("panier.asp")!=-1) {
  parametres+=',status=yes'
 }
 if ((adresse.substring(adresse.length-3,adresse.length).toUpperCase()=="GIF") || (adresse.substring(adresse.length-3,adresse.length).toUpperCase()=="JPG")) {
  var h1=h-20,w1=w-20
  if (scroll!='no') {
   parametres='height='+h1+',width='+w1+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes,toolbar=no,location=no,menubar=no'
  }
  else {
   parametres='height='+h1+',width='+w1+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable=no,toolbar=no,location=no,menubar=no'
  }
  win=window.open("",nomFenetre,parametres)
  win.document.write("<html>\n<head>\n<title>cathares.org &copy;</title>\n\n")
  win.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n")
  win.document.write("</head>\n<body bgcolor=#ffffff leftmargin=0 topmargin=0 onClick=\"alert('cathares.org - Droits de reproduction réservés')\" background=\""+adresse+"\" style=\"{background-repeat: no-repeat}\">\n")
  if (scroll!='no') {
   win.document.write("<img src=\""+adresse+"\">\n")
  }
  else {
   win.document.write("<img src=\"pixel.gif\" width="+w+" height="+h+">\n")
  }  
  win.document.write("</body>\n</html>\n")
  win.document.close()
 }
 else {
  win=window.open(adresse,nomFenetre,parametres)
 }
}

function ouvrirFenetreCentreeOutils(adresse,nomFenetre,w,h,scroll) {
 var win
 LeftPosition=(screen.width) ? (screen.width-w)/2 : 0
 TopPosition=(screen.height) ? (screen.height-h)/2-100 : 0
 parametres='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes,toolbar=yes,location=yes,menubar=yes,status=yes'
 if ((adresse.substring(adresse.length-3,adresse.length).toUpperCase()=="GIF") || (adresse.substring(adresse.length-3,adresse.length).toUpperCase()=="JPG")) {
  var h1=h-120,w1=w-20
  if (scroll!='no') {
   parametres='height='+h1+',width='+w1+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes,status=yes'
  }
  else {
   parametres='height='+h1+',width='+w1+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable=no,status=yes'
  }
  win=window.open("",nomFenetre,parametres)
  win.document.write("<html>\n<head>\n<title>cathares.org &copy;</title>\n\n")
  win.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n")
  win.document.write("</head>\n<body bgcolor=#ffffff leftmargin=0 topmargin=0 onClick=\"alert('cathares.org - Droits de reproduction réservés')\" background=\""+adresse+"\" style=\"{background-repeat: no-repeat}\">\n")
  if (scroll!='no') {
   win.document.write("<img src=\""+adresse+"\">\n")
  }
  else {
   win.document.write("<img src=\"pixel.gif\" width="+w+" height="+h+">\n")
  }  
  win.document.write("</body>\n</html>\n")
  win.document.close()
 }
 else {
  win=window.open(adresse,nomFenetre,parametres)
 }
}

function ouvrirFenetreCentreePub(adresse,nomFenetre,w,h,scroll) {
 var win
 LeftPosition=(screen.width) ? (screen.width-w)/2 : 0
 TopPosition=(screen.height) ? (screen.height-h)/2 : 0
 parametres='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes'
 win=window.open(adresse,nomFenetre,parametres)
 win.blur()
 self.focus()
}

function ouvrirFenetreCentreePubNormale(adresse,nomFenetre,w,h) {
 var win
 LeftPosition=(screen.width) ? (screen.width-w)/2 : 0
 TopPosition=(screen.height) ? (screen.height-h)/2 : 0
 parametres='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=yes'
 win=window.open(adresse,nomFenetre,parametres)
 win.blur()
 self.focus()
}

function ouvrirFenetreCentreeOnBlurFermer(adresse,nomFenetre,w,h,scroll) {
 var win
 LeftPosition=(screen.width) ? (screen.width-w)/2 : 0
 TopPosition=(screen.height) ? (screen.height-h)/2 : 0
 parametres='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no'
 if ((adresse.substring(adresse.length-3,adresse.length).toUpperCase()=="GIF") || (adresse.substring(adresse.length-3,adresse.length).toUpperCase()=="JPG")) {
  win=window.open("",nomFenetre,parametres)
  win.document.write("<html><head><title>cathares.org &copy;</title>\n")
  win.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n")
  win.document.write("</head><body bgcolor=#ffffff background='telechargementEnCours800x600.gif' onBlur='close()'>\n")
  win.document.write("<img src='"+adresse+"'>\n")
  win.document.write("</body></html>\n")
  win.document.close()
 }
 else {
  win=window.open(adresse,nomFenetre,parametres)
 }
}

function infolegales(){
 cacherTout()
 ouvrirFenetreCentree("infolegales.html","infolegales",300,280)
}

function SetCookie(name, value) {
 var argv = SetCookie.arguments;
 var argc = SetCookie.arguments.length;
 var expires = (argc > 2) ? argv[2] : null;
 var path = (argc > 3) ? argv[3] : null;
 var domain = (argc > 4) ? argv[4] : null;
 var secure = (argc > 5) ? argv[5] : false;
 document.cookie = name + "=" + escape (value) +
 ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
 ((path == null) ? "" : ("; path=" + path)) +
 ((domain == null) ? "" : ("; domain=" + domain)) +
 ((secure == true) ? "; secure" : "");
}

function GetCookie(name) {
 var arg = name + "=";
 var alen = arg.length;
 var clen = document.cookie.length;
 var i = 0;
 while (i < clen) {
	 var j = i + alen;
	 if (document.cookie.substring(i, j) == arg)
	 return getCookieVal (j);
 i = document.cookie.indexOf(" ", i) + 1;
 if (i == 0) break;
 }
 return null;
}

function getCookieVal(offset) {
 var endstr = document.cookie.indexOf (";", offset);
 if (endstr == -1)
 endstr = document.cookie.length;
 return unescape(document.cookie.substring(offset, endstr));
}

var dragapproved=false
var z1,x1,y1

function move(){
 if (event.button==1&&dragapproved){
  z1.style.pixelLeft=temp1+event.clientX-x1
  z1.style.pixelTop=temp2+event.clientY-y1
  return false
 }
}

function drags(){
 if (!document.all)
  return
 if (event.srcElement.classname=="drag"){
  dragapproved=true
  z1=event.srcElement
  temp1=z1.style.pixelLeft
  temp2=z1.style.pixelTop
  x1=event.clientX
  y1=event.clientY
  document.onmousemove=move
 }
}

document.onmousedown=drags
document.onmouseup=new Function("dragapproved=false")

function placerObj(objet,px,py) {
 objet.left=px
 objet.top=py
}

function voirObj(objet) {
 objet.visibility=VISIBLE
}

function cacherObj(objet) {
 objet.visibility=HIDDEN
}

function changerAccents(c) {
 while (c.indexOf("à")!=-1) {
  c=c.replace("à","&agrave;")
 }
 while (c.indexOf("â")!=-1) {
  c=c.replace("â","&acirc;")
 }
 while (c.indexOf("Â")!=-1) {
  c=c.replace("Â","&Acirc;")
 }
 while (c.indexOf("ç")!=-1) {
  c=c.replace("ç","&ccedil;")
 }
 while (c.indexOf("é")!=-1) {
  c=c.replace("é","&eacute;")
 }
 while (c.indexOf("è")!=-1) {
  c=c.replace("è","&egrave;")
 }
 while (c.indexOf("ê")!=-1) {
  c=c.replace("ê","&ecirc;")
 }
 while (c.indexOf("ô")!=-1) {
  c=c.replace("ô","&ocirc;")
 }
 while (c.indexOf("ù")!=-1) {
  c=c.replace("ù","&ugrave;")
 }
 while (c.indexOf("û")!=-1) {
  c=c.replace("û","&ucirc;")
 }
 while (c.indexOf("ï")!=-1) {
  c=c.replace("ï","&iuml;")
 }
 while (c.indexOf("É")!=-1) {
  c=c.replace("É","&Eacute;")
 }
 return c
}

function compteurVisiteurs() {
 document.devparadise.src="pixel.gif"
 document.devparadise.src="http://www.devparadise.com/cgi-bin/livecounter.pl?ID=13512"
}

function lireMenuPersonnalise() {
 var mp=GetCookie("menu")
 if (!mp) {
  SetCookie ("menu","Sommaire de cathares.org[]sommaire.html[-]",null,"/")
 }
 mp=GetCookie("menu")
 var i=0
 mpt=new Array(15)
 mpl=new Array(15)
 mptri=new Array(15)
 while (i<=15) {
  mpt[i]=""
  mpl[i]=""
  i=i+1
 }
 i=0
 if (mp) {
  while (mp.length>0) {
   mptri[i]=mp.substring(0,mp.indexOf("[-]"))
   mp=mp.substring(mp.indexOf("[-]")+3,mp.length)
   i=i+1
  }
  var fin=i-1
  mptri.sort()
  i=0
  while (i<=fin) {
   mpl[i]=mptri[i].substring(mptri[i].indexOf("[]")+2,mptri[i].length)
   mpt[i]=mptri[i].substring(0,mptri[i].indexOf("[]"))
   if (mpt[i]!="") {
    inj("<tr><td nowrap><font size=-1 face=\"arial\" style=\"font-size:11px\">")
    afficherOption(mpl[i],changerAccents(mpt[i]))
//    inj("<a href=\""+mpl[i]+"\" class=\'l\'>&nbsp;"+changerAccents(mpt[i])+"&nbsp;</a>")
    inj("</font></td><td align=center><input type=\"checkbox\" checked name=\""+i+"\" style=\"{background:none}\" onClick=\"desactiver("+i+")\"></td></tr>")
    if (VersionNavigateur(99,4.0)){
     document.menupersonnalise.elements[i].checked=true
    }
   }
   i=i+1
  }
 }
 else {
  SetCookie ("menu","Sommaire de cathares.org[]sommaire.html[-]",null,"/")
 }
}

function enregistrerMenuPersonnalise(chaine) {
 var i=0,j=0
 while (i<=15) {
  if (mpt[i]!="") {
   chaine=chaine+mpt[i]+"[]"+mpl[i]+"[-]"
   j=j+1
  }
  i=i+1
 }
 var exp=new Date()
 var limite360jours=exp.getTime()+(360*24*60*60*1000)
 exp.setTime(limite360jours)
 if (j==0) {
  SetCookie ("menu","Sommaire de cathares.org[]sommaire.html[-]",exp,"/")
 }
 else {
  SetCookie ("menu",chaine,exp,"/")
 }
}

function ajouterMenuPersonnalise() {
 var titre=prompt("Entrez le titre de la page à ajouter dans vos favoris",document.title.substring(0,35))
 var chaine=""
 if (titre) {
  chaine=titre.substring(0,35)+"[]"+document.location+"[-]"
 }
 enregistrerMenuPersonnalise(chaine)
 document.location=document.location
}

function desactiver(n) {
 mpt[n]=""
 mpl[n]=""
 enregistrerMenuPersonnalise("")
 document.location=document.location
}

function aideMenuPersonnalise() {
 cacherTout()
 window.open("infoMenuPersonnalise.html","infomenu","width=300,height=390,toolbar=no,resizable=yes,scrollbars=no")
}

function infosEditeur() {
 cacherTout()
 ouvrirFenetreCentree("infosEditeur.html","infosediteur",500,200)
}

var menuskin=1
var display_url=0

function showmenuie5() {
 if (ns6) {
  document.location="mises-a-jour.html"
 }
 cacherTout()
 cacherObj(accesrapidesnavigation)
 if (navigationTransversale) {
  cacherObj(navigationTransversale)
 }
 if (navigationTransversale1) {
  cacherObj(navigationTransversale1)
 }
// var rightedge=document.body.clientWidth-event.clientX
// var bottomedge=document.body.clientHeight-event.clientY
// if (rightedge<ie5menu.offsetWidth)
//  ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
// else
//  ie5menu.style.left=document.body.scrollLeft+event.clientX
// if (bottomedge<ie5menu.offsetHeight)
//  ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
// else
//  ie5menu.style.top=document.body.scrollTop+event.clientY
 ie5menu.style.left=document.body.scrollLeft
 ie5menu.style.top=document.body.scrollTop
 ie5menu.style.visibility="visible"
 window.onscroll=hidemenuie5
 if (event) {
  return false
 }
// return false
}

function hidemenuie5() {
 voirObj(accesrapidesnavigation)
 ie5menu.style.visibility="hidden"
 window.onscroll=placerMenu
}

function highlightie5() {
 if (event.srcElement.className=="menuitems") {
  event.srcElement.style.backgroundColor="red"
  event.srcElement.style.color="white"
  if (display_url==1)
   window.status=event.srcElement.url
 }
}

function lowlightie5() {
 if (event.srcElement.className=="menuitems") {
  event.srcElement.style.backgroundColor=""
  event.srcElement.style.color="white"
  window.status=''
 }
}

function jumptoie5() {
 if (event.srcElement.className=="menuitems") {
  if (event.srcElement.getAttribute("target")!=null)
   window.open(event.srcElement.url,event.srcElement.getAttribute("target"))
  else
   window.location=event.srcElement.url
 }
}

function cacherExtraitCartulaire() {
 hidemenuie5()
 cacherTout()
 if (navigationTransversale) {
  voirObj(navigationTransversale)
 }
 if (navigationTransversale1) {
  voirObj(navigationTransversale1)
 }
}

function OutIt(message, thickness, color1, color2, extra) {	
 var x=-thickness
 var y=-thickness
 while (y<=thickness) {
  while (x<=thickness) {
   inj("<span style='"+extra+" color:"+color2+"; position:absolute; left:"+x+"; top:"+(-y)+";'>"+message+"</span>")
   inj("<span style='"+extra+" color:"+color2+"; position:absolute; left:"+x+"; top:0;'>"+message+"</span>")
   inj("<span style='"+extra+" color:"+color2+"; position:absolute; left:"+x+"; top:"+y+";'>"+message+"</span>")
   x=x+1
  }
  y=y+1
 } 	
 inj("<span style='"+extra+" color:"+color1+"; position:absolute; left:0; top:0;'>"+message+"</span>")
}

function rechercherDansPage() {
 var win=window
 var n=0
 var str
 str=prompt("Entrez un ou plusieurs mot(s)-clé(s).\n(recherche dans la page)",'');
 if (str.length>0) {
  var txt, i, found;
  if (str=="")
  return false;
  if (NS4) {
  if (!win.find(str))
  while(win.find(str, false, true))
   n++;
   else
   n++;
   if (n==0)
     alert("«"+str+"» ne figure pas dans cette page");
  }
  if (IE4) {
   txt=win.document.body.createTextRange();
   for (i=0;i<=n&&(found=txt.findText(str))!=false;i++) {
    txt.moveStart("character",1);
    txt.moveEnd("textedit");
   }
   if (found) {
    txt.moveStart("character",-1);
    txt.findText(str);
    txt.select();
    txt.scrollIntoView();
    n++;
   }
   else {
    if (n>0) {
     n = 0;
     findInPage(str);
    }
    else
     alert("«"+str+"» ne figure pas dans cette page");
    }
   }
//  return false;
 }
}

function arrondir(nombre,decimale) {
 i=0
 while (i<=decimale) {
  nombre=nombre*10
  i++
 }
 calcul=parseInt(nombre).toString()
 dernierChiffre=calcul.substring(calcul.length-1,calcul.length)
 if (parseInt(dernierChiffre)>=5) {
  calcul=parseInt(calcul.substring(0,calcul.length-1))+1
 }
 else {
  calcul=parseInt(calcul.substring(0,calcul.length-1))
 }
 calcul=calcul.toString()
 return calcul.substring(0,calcul.length-decimale)+"."+calcul.substring(calcul.length-decimale,calcul.length)
}

function imprimer() {
 if (NS) {
  window.print()
 }
 else {
  var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'
  document.body.insertAdjacentHTML('beforeEnd', WebBrowser)
  WebBrowser1.ExecWB(6, 2)
  WebBrowser1.outerHTML = ""
 }
}

inj("<META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\">")

