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 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 menu0visible='non'
var menu1visible='non'
var y1

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://")) {
 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"
}

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'
 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'
  }
  else {
   parametres='height='+h1+',width='+w1+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable=no'
  }
  win=window.open("",nomFenetre,parametres)
  win.document.write("<html>\n<head>\n<title>Elizabeth Contal &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('Elizabeth Contal - 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,lien) {
 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'
 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'
  }
  else {
   parametres='height='+h1+',width='+w1+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable=no'
  }
  win=window.open("",nomFenetre,parametres)
  win.document.write("<html>\n<head>\n<title>Elizabeth Contal &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 background=\""+adresse+"\" style=\"{background-repeat: no-repeat}\">\n")
  if (scroll!='no') {
   win.document.write("<img src=\""+adresse+"\">\n")
  }
  else {
   win.document.write("<a href='"+lien+"' target='_blank'><img src=\"pixel.gif\" width="+w+" height="+h+" border=0></a>\n")
  }  
  win.document.write("</body>\n</html>\n")
  win.document.close()
 }
 else {
  win=window.open(adresse,nomFenetre,parametres)
 }
}

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>Elizabeth Contal &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 styleObjet(objet) {
 if (document.getElementById && document.getElementById(objet)) {
  return document.getElementById(objet).style
 }
 if (document.all && document.all(objet)) {
  return document.all(objet).style
 }
 if (document.layers && document.layers[objet]) {
  return document.layers[objet]
 }
 else {
  return false
 }
}

function placerObjet(objet,px,py) {
 var objet1=styleObjet(objet)
 objet1.left=px
 objet1.top=py
}

function voirObjet(objet) {
 var objet1=styleObjet(objet)
 objet1.visibility=VISIBLE
}

function cacherObjet(objet) {
 var objet1=styleObjet(objet)
 objet1.visibility=HIDDEN
}

function inverserVisibiliteObjet(objet) {
 var objet1=styleObjet(objet)
 if (objet1.visibility==HIDDEN) {
  objet1.visibility=VISIBLE
 }
 else {
  objet1.visibility=HIDDEN
 }
}

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 = ""
 }
}

function VerifPlugIn(ExtensionFile) {
 var IsEnabled=true
 if (navigator.appName=="Netscape") {
  IsEnabled=false
  for(var x=0;(x<navigator.mimeTypes.length && !IsEnabled);x++) {
   if(navigator.mimeTypes[x].suffixes.indexOf(ExtensionFile)>=0)
    IsEnabled=navigator.mimeTypes[x].enabledPlugin
  }
 }
 return IsEnabled
}

function PlaySound(MyName,MyExtension,MyLoop) {
 var AudioEnable=VerifPlugIn(MyExtension),TheLoop=''
 if (navigator.appName=="Netscape" && MyLoop==1)  TheLoop='true';
 if (AudioEnable) eval('document.'+MyName+'.play('+TheLoop+')')
}

function StopSound(MyName,MyExtension) {
 var AudioEnable=VerifPlugIn(MyExtension);
 if (AudioEnable) eval('document.'+MyName+'.stop()')
}

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