<!--
// Change la langue
function TrekLg(lg) {
	document.forms["PstLg"].lang.value=lg;
	document.forms["PstLg"].submit();
}

// Affiche disparait + ou -
function affiche(a,b,l) {   
   // On change les + et -
   if (document.getElementById) {
         a = document.getElementById(a); b = document.getElementById(b);
   }
   else if (document.all) {
         a = eval(a);  b = eval(b);
   }

   if (a.style.display == '') {   
      a.style.display = 'none';
      if (l == 1) {
         b.src='./images/plus.gif'; b.alt='';
      }
   } else {
      a.style.display = '';
      if (l == 1) {
         b.src='./images/moins.gif'; b.alt='';
      }
   }
}

// Transfert une ligne de la liste Origine à la liste Destination
function TransfertListe(ThisForm, idOrigine, idDestination) {
	var objOrigine 		= document.forms[ThisForm].elements[idOrigine];
	var objDestination 	= document.forms[ThisForm].elements[idDestination];	
	if (objOrigine.options.selectedIndex<0) return false;
	if (VerifValeurDansListe(ThisForm, idDestination, objOrigine.options[objOrigine.options.selectedIndex].value, true)) return false;
	var ADeplacer = new Option(objOrigine.options[objOrigine.options.selectedIndex].text, objOrigine.options[objOrigine.options.selectedIndex].value);
	objDestination.options[objDestination.length]=ADeplacer;
	objOrigine.options[objOrigine.options.selectedIndex]=null;			 
}

// Vérifie la présence de Valeur dans IdListe
function VerifValeurDansListe(ThisForm, IdListe, Valeur, blnAlerte) {
	var objListe = document.forms[ThisForm].elements[IdListe];
	for (i=objListe.length-1;i>=0;i--) if (objListe.options[i].value == Valeur) {if (blnAlerte) alert('Déjà présent.'); return true;}
	return false;
}

// Fonction avec nom du formulaire, de la première et de la seconde liste en paramètres 
function populate(form,select1,select2) { 
   var origine = 'document.' + form + '.' + select1; 
   var resultat = 'document.' + form + '.' + select2; 
   var contenu = eval(origine + '.options[' + origine + '.selectedIndex]').value
   if (contenu != '') { 
      longueur = eval('TAB_' + contenu).length; 
      eval(resultat).length = 0; 
      for ( i = 0; i < longueur; i++ ) {     
         var valeur = eval('TAB_' + contenu)[i].split("|");  
         eval(resultat).options[i] = new Option(valeur[0], valeur[1]); 
      } 
   } 
} 

// Fonction avec nom du formulaire, de la première et de la seconde liste en paramètres 
function populateMemory(form,select1,select2,checked) { 
   var origine = 'document.' + form + '.' + select1; 
   var resultat = 'document.' + form + '.' + select2; 
   var contenu = eval(origine + '.options[' + origine + '.selectedIndex]').value
   if (contenu != '') { 
      longueur = eval('TAB_' + contenu).length; 
      eval(resultat).length = 0; 
      for ( i = 0; i < longueur; i++ ) {     
         var valeur = eval('TAB_' + contenu)[i].split("|");  
         eval(resultat).options[i] = new Option(valeur[0], valeur[1]); 
         if (checked != '' && valeur[1] == checked) eval(resultat).options[i].selected = true;
      } 
   } else {
  	  eval(resultat).options[0] = new Option('',''); 
   }
} 

// Fonction avec nom du formulaire, de la première et de la seconde liste en paramètres 
function populateSelect(form,select1,position,select2,checked) { 
   var origine = 'document.' + form + '.' + select1 + '[' + position + ']'; 
   var resultat = 'document.' + form + '.' + select2; 
   var contenu = position
   if (contenu != '') { 
      longueur = eval('TAB_' + contenu).length; 
      eval(resultat).length = 0; 
      for ( i = 0; i < longueur; i++ ) {       
         var valeur = eval('TAB_' + contenu)[i].split("|");  
         eval(resultat).options[i] = new Option(valeur[0], valeur[1]); 
         if (checked != '' && valeur[1] == checked) eval(resultat).options[i].selected = true;
      } 
   } 
} 

function ReturBottom(ThisForm,Name) { 
	ThisForm.Bouton.value = Name;
}

// Permet d'afficher en dislay none ou inline un block div
// @param whichLayer  le layer a afficher (container)
// @param whatStyle   inline - none - block
function DisplayChoice(whichLayer,whatStyle) {
  var element_style = null;
  if (document.getElementById) {
    element_style=document.getElementById(whichLayer).style;
  } else if (document.all) {
    element_style=document.all[whichLayer].style;
  } else {
    element_style = null;
  }
  if (element_style) {
     if (whatStyle=='inline') element_style.display='inline';
     if (whatStyle=='none')   element_style.display='none';
     if (whatStyle=='block')  element_style.display='block';
  }
}

// Affiche le layer Simple
function DisplayFormSimple(whichLayer1) {
  var element_style_1 = null;
  if (document.getElementById) {
    element_style_1=document.getElementById(whichLayer1).style;
  } else if (document.all) {
    element_style_1=document.all[whichLayer1].style;
  } else {
    element_style_1 = null;
  }
    
  if (element_style_1.display == 'block') {
  	element_style_1.display='none';
  }
  else if (element_style_1.display == 'none') {
  	element_style_1.display='block';
  }
}

// Affiche le layer
function DisplayForm(whichLayer1,whichLayer2) {
  var element_style_1 = null;
  var element_style_2 = null;
  if (document.getElementById) {
    element_style_1=document.getElementById(whichLayer1).style;
    element_style_2=document.getElementById(whichLayer2).style;
  } else if (document.all) {
    element_style_1=document.all[whichLayer1].style;
    element_style_2=document.all[whichLayer2].style;
  } else {
    element_style_1 = null;
    element_style_2 = null;
  }
  
  if (element_style_1.display && element_style_2.display) {
  	element_style_1.display='block';
  	element_style_2.display='none';
  }
}

// Verifie la validite d'un email
function VerifEmail(email) {
  var verif = /[_\.0-9a-z-]+@([0-9a-z][0-9a-z.-]+\.)+[a-z]{2,4}$/
  if (verif.exec(email) == null) 
	return false;
  else 
	return true;
}

// Ouvre la popup du lexique
function OpenPopUpRecommander(MyFile,MyWindow,MyWidth,MyHeight) { 
   var ns4=document.layers;
   var ie4=document.all;
   var ns6=document.getElementById&&!document.all;
   var xMax, yMax, xOffset, yOffset;
   
    if (ie4 || ns6) {
        xMax = screen.width;
        yMax = screen.height;
    } else if (ns4) {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
    } else {
        xMax = 800;
        yMax = 600;
    }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;

    var PAGE = window.open(MyFile,MyWindow,'width='+MyWidth +',height='+MyHeight +',screenX='+xOffset +',screenY='+yOffset +',top='+yOffset +',left='+xOffset +',resizable=no,scrollbars=no');
    if (PAGE && PAGE.blur) PAGE.focus();
}

// Ouvre la popup du lexique
function OpenPopUpLexique(MyFile,MyWindow,MyWidth,MyHeight) { 
   var ns4=document.layers;
   var ie4=document.all;
   var ns6=document.getElementById&&!document.all;
   var xMax, yMax, xOffset, yOffset;
   
    if (ie4 || ns6) {
        xMax = screen.width;
        yMax = screen.height;
    } else if (ns4) {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
    } else {
        xMax = 800;
        yMax = 600;
    }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;

    var PAGE = window.open(MyFile,MyWindow,'width='+MyWidth +',height='+MyHeight +',screenX='+xOffset +',screenY='+yOffset +',top='+yOffset +',left='+xOffset +',resizable=no,scrollbars=no');
    if (PAGE && PAGE.blur) PAGE.focus();
}

// Scroll les oeuvres
function verScroll(dir, spd, loop) {
loop = true;
direction = "up";
speed = 5;
scrolltimer = null;
if (document.layers) {
var page = eval(document.elementTexte);
}
else {
if (document.getElementById) {
var page= eval("document.getElementById('elementTexte').style");
}
else {
if (document.all) {
var page = eval(document.all.elementTexte.style);
      }
   }
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);

if (loop == true) {

 if (direction == "dn") {
  page.top = (y_pos - (speed));
  } else {  
 
  if (direction == "up" && y_pos < speed) {
  page.top = (y_pos + (speed));
 
  } else {
   if (direction == "top") {
   page.top = speed;
   }
  }
}
scrolltimer = setTimeout("verScroll(direction,speed)", 1);
   }
}
function stopScroll() {
loop = false;
clearTimeout(scrolltimer);
}

// Function pour l'ajout au panier 
function affPanier(id) {
     if (document.getElementById) {
	    parent.document.getElementById(id).style.display='block';
	    parent.document.getElementById(id).style.display='block';
     } else if (document.all) {
	    parent.document.all[id].style.display='block';
	    parent.document.all[id].style.display='block';
     }
AnchorForm();
}

// Function pour l'ajout au panier 
function cachePanier(id) {
     if (document.getElementById) {
	    parent.document.getElementById(id).style.display='none';
	    parent.document.getElementById(id).style.display='none';
     } else if (document.all) {
	    parent.document.all[id].style.display='none';
	    parent.document.all[id].style.display='none';
     }
AnchorForm();
}

// Automatique scrolling (BELOW)
// search post THIS_SCROLLING for go to anchor
function AnchorForm() {
  document.location.hash='#panier';
} // end of AnchorForm

// Open the windows
function twPopupImage(img, titre) {
  oFenetre = window.open('','Image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');
  oFenetre.document.write("<html><head>");
  oFenetre.document.write("<title>"+titre+"</title>");
  oFenetre.document.write("<style type=\"text/css\">");
  oFenetre.document.write("a {");
  oFenetre.document.write("font-family: Verdana, Arial, Helvetica, sans-serif;");
  oFenetre.document.write("font-size : 12px;");
  oFenetre.document.write("font-weight : bold;");
  oFenetre.document.write("color : #335B97;");
  oFenetre.document.write("text-decoration : underline;");
  oFenetre.document.write("</style>");
  oFenetre.document.write("</head>");
  oFenetre.document.write("<script type=\"text/javascript\">function twAjustePopUp() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+100,document.images[0].height+100); window.focus();} else { setTimeout('twAjustePopUp()',1000) } }</"+"script>");
  oFenetre.document.write("<script type=\"text/javascript\">function Droit(e)  { if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) { alert('COPYRIGHT PROTECTED'); return false; } else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert('COPYRIGHT PROTECTED'); return false; } return true; }");
  oFenetre.document.write("document.onmousedown=Droit;");
  oFenetre.document.write("document.onmouseup=Droit;");
  oFenetre.document.write("if (document.layers) window.captureEvents(Event.MOUSEDOWN);");
  oFenetre.document.write("if (document.layers) window.captureEvents(Event.MOUSEUP);");
  oFenetre.document.write("window.onmousedown=Droit;");
  oFenetre.document.write("window.onmouseup=Droit;");
  oFenetre.document.write("</"+"script>");
  oFenetre.document.write("<body onload='twAjustePopUp()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
  oFenetre.document.write("<table width='100%' border='1' cellspacing='0' cellpadding='0' height='100%'><tr><td valign='middle' align='center'>");
  oFenetre.document.write("<a href=\"javascript:window.close();\"><img src='"+img+"' border='0' alt='' title=''></a>");
  oFenetre.document.write("</td></tr></table></body></html>");
  oFenetre.document.close();
}

/*
 * DO NOT REMOVE THIS NOTICE
 *
 * PROJECT:   mygosuMenu
 * VERSION:   1.0.8
 * COPYRIGHT: (c) 2003,2004 Cezary Tomczak
 * LINK:      http://gosu.pl/dhtml/mygosumenu.html
 * LICENSE:   BSD (revised)
 */

function DropDownMenu1(id) {

    /* Type of the menu: "horizontal" or "vertical" */
    this.type = "horizontal";

    /* Delay (in miliseconds >= 0): show-hide menu */
    this.delay = {
        "show": 0,
        "hide": 300
    }
    /* Change the default position of sub-menu by Y pixels from top and X pixels from left
     * Negative values are allowed */
    this.position = {
        "top": 0,
        "left": 0
    }
    /* Z-index property for .section */
    this.zIndex = {
        "visible": 1,
        "hidden": -1
    };

    // Browser detection
    this.browser = {
        "ie": Boolean(document.body.currentStyle),
        "ie5": (navigator.appVersion.indexOf("MSIE 5.5") != -1 || navigator.appVersion.indexOf("MSIE 5.0") != -1)
    };
    if (!this.browser.ie) { this.browser.ie5 = false; }

    /* Initialize the menu */
    this.init = function() {
        if (!document.getElementById(this.id)) { return alert("DropDownMenu1.init() failed. Element '"+ this.id +"' does not exist."); }
        if (this.type != "horizontal" && this.type != "vertical") { return alert("DropDownMenu1.init() failed. Unknown menu type: '"+this.type+"'"); }
        if (this.browser.ie && this.browser.ie5) { fixWrap(); }
        fixSections();
        parse(document.getElementById(this.id).childNodes, this.tree, this.id);
    }

    /* Search for .section elements and set width for them */
    function fixSections() {
        var arr = document.getElementById(self.id).getElementsByTagName("div");
        var sections = new Array();
        var widths = new Array();

        for (var i = 0; i < arr.length; i++) {
            if (arr[i].className == "section") {
                sections.push(arr[i]);
            }
        }
        for (var i = 0; i < sections.length; i++) {
            widths.push(getMaxWidth(sections[i].childNodes));
        }
        for (var i = 0; i < sections.length; i++) {
            sections[i].style.width = (widths[i]) + "px";
        }
        if (self.browser.ie) {
            for (var i = 0; i < sections.length; i++) {
                setMaxWidth(sections[i].childNodes, widths[i]);
            }
        }
    }

    function fixWrap() {
        var elements = document.getElementById(self.id).getElementsByTagName("a");
        for (var i = 0; i < elements.length; i++) {
            if (/item2/.test(elements[i].className)) {
                elements[i].innerHTML = '<div nowrap="nowrap">'+elements[i].innerHTML+'</div>';
            }
        }
    }

    /* Search for an element with highest width among given nodes, return that width */
    function getMaxWidth(nodes) {
        var maxWidth = 0;
        for (var i = 0; i < nodes.length; i++) {
            if (nodes[i].nodeType != 1) { continue; }
            if (nodes[i].offsetWidth > maxWidth) { maxWidth = nodes[i].offsetWidth; }
        }
        return maxWidth;
    }

    /* Set width for item2 elements */
    function setMaxWidth(nodes, maxWidth) {
        for (var i = 0; i < nodes.length; i++) {
            if (nodes[i].nodeType == 1 && /item2/.test(nodes[i].className) && nodes[i].currentStyle) {
                if (self.browser.ie5) {
                    nodes[i].style.width = (maxWidth) + "px";
                } else {
                    nodes[i].style.width = (maxWidth - parseInt(nodes[i].currentStyle.paddingLeft) - parseInt(nodes[i].currentStyle.paddingRight)) + "px";
                }
            }
        }
    }

    /* Parse nodes, create events, position elements */
    function parse(nodes, tree, id) {
        for (var i = 0; i < nodes.length; i++) {
            if (1 != nodes[i].nodeType) {
                continue;
            }
            switch (true) {
                // .item1
                case /\bitem1\b/.test(nodes[i].className):
                    nodes[i].id = id + "-" + tree.length;
                    tree.push(new Array());
                    nodes[i].onmouseover = item1over;
                    nodes[i].onmouseout = item1out;
                    break;
                // .item2
                case /\bitem2\b/.test(nodes[i].className):
                    nodes[i].id = id + "-" + tree.length;
                    tree.push(new Array());
                    break;
                // .section
                case /\bsection\b/.test(nodes[i].className):
                    // id, events
                    nodes[i].id = id + "-" + (tree.length - 1) + "-section";
                    nodes[i].onmouseover = sectionOver;
                    nodes[i].onmouseout = sectionOut;
                    // position
                    var box1 = document.getElementById(id + "-" + (tree.length - 1));
                    var box2 = document.getElementById(nodes[i].id);
                    if ("horizontal" == self.type) {
                        box2.style.top = box1.offsetTop + box1.offsetHeight + self.position.top + "px";
                        if (self.browser.ie5) {
                            box2.style.left = self.position.left + "px";
                        } else {
                            box2.style.left = box1.offsetLeft + self.position.left + "px";
                        }
                    } else if ("vertical" == self.type) {
                        box2.style.top = box1.offsetTop + self.position.top + "px";
                        if (self.browser.ie5) {
                            box2.style.left = box1.offsetWidth + self.position.left + "px";
                        } else {
                            box2.style.left = box1.offsetLeft + box1.offsetWidth + self.position.left + "px";
                        }
                    }
                    // sections, sectionsShowCnt, sectionsHideCnt
                    self.sections.push(nodes[i].id);
                    self.sectionsShowCnt.push(0);
                    self.sectionsHideCnt.push(0);
                    break;
            }
            if (nodes[i].childNodes) {
                if (/\bsection\b/.test(nodes[i].className)) {
                    parse(nodes[i].childNodes, tree[tree.length - 1], id + "-" + (tree.length - 1));
                } else {
                    parse(nodes[i].childNodes, tree, id);
                }
            }
        }
    }

    /* event, item1:onmouseover */
    function item1over() {
        var id_section = this.id + "-section";
        if (self.visible) {
            var el = new Element(self.visible);
            el = document.getElementById(el.getParent().id);
            if (/item1-active/.test(el.className)) {
                el.className = el.className.replace(/item1-active/, "item1");
            }
        }
        if (self.sections.contains(id_section)) {
            self.sectionsHideCnt[self.sections.indexOf(id_section)]++;
            var cnt = self.sectionsShowCnt[self.sections.indexOf(id_section)];
            setTimeout(function(a, b) { return function() { self.showSection(a, b); } } (id_section, cnt), self.delay.show);
        } else {
            if (self.visible) {
                var cnt = self.sectionsHideCnt[self.sections.indexOf(self.visible)];
                setTimeout(function(a, b) { return function() { self.hideSection(a, b); } } (self.visible, cnt), self.delay.show);
            }
        }
    }

    /* event, item1:onmouseout */
    function item1out() {
        var id_section = this.id + "-section";
        if (self.sections.contains(id_section)) {
            self.sectionsShowCnt[self.sections.indexOf(id_section)]++;
            if (id_section == self.visible) {
                var cnt = self.sectionsHideCnt[self.sections.indexOf(id_section)];
                setTimeout(function(a, b) { return function() { self.hideSection(a, b); } }(id_section, cnt), self.delay.hide);
            }
        }
    }

    /* event, section:onmouseover */
    function sectionOver() {
        self.sectionsHideCnt[self.sections.indexOf(this.id)]++;
        var el = new Element(this.id);
        el = document.getElementById(el.getParent().id);
        if (!/item1-active/.test(el.className)) {
            el.className = el.className.replace(/item1/, "item1-active");
        }
    }

    /* event, section:onmouseout */
    function sectionOut() {
        self.sectionsShowCnt[self.sections.indexOf(this.id)]++;
        var cnt = self.sectionsHideCnt[self.sections.indexOf(this.id)];
        setTimeout(function(a, b) { return function() { self.hideSection(a, b); } }(this.id, cnt), self.delay.hide);
    }

    /* Show section (1 argument passed)
     * Try to show section (2 arguments passed) - check cnt with sectionShowCnt */
    this.showSection = function(id, cnt) {
        if (typeof cnt != "undefined") {
            if (cnt != this.sectionsShowCnt[this.sections.indexOf(id)]) { return; }
        }
        this.sectionsShowCnt[this.sections.indexOf(id)]++;
        var el = new Element(id);
        var parent = document.getElementById(el.getParent().id);
        if (!/item1-active/.test(parent.className)) {
            parent.className = parent.className.replace(/item1/, "item1-active");
        }
        if (this.visible) {
            if (id == this.visible) { return; }
            this.hideSection(this.visible);
        }
        //document.getElementById(id).style.display = "block";
        document.getElementById(id).style.visibility = "visible";
        document.getElementById(id).style.zIndex = this.zIndex.visible;
        this.visible = id;
    }

    /* Hide section (1 argument passed)
     * Try to hide section (2 arguments passed) - check cnt with sectionHideCnt */
    this.hideSection = function(id, cnt) {
        if (typeof cnt != "undefined") {
            if (cnt != this.sectionsHideCnt[this.sections.indexOf(id)]) { return; }
        }
        var el = new Element(id);
        var parent = document.getElementById(el.getParent().id);
        parent.className = parent.className.replace(/item1-active/, "item1");
        document.getElementById(id).style.zIndex = this.zIndex.hidden;
        document.getElementById(id).style.visibility = "hidden";
        //document.getElementById(id).style.display = "none";
        if (id == this.visible) { this.visible = ""; }
        else { throw "DropDownMenu1.hideSection('"+id+"', "+cnt+") failed, cannot hide element that is not visible"; }
        this.sectionsHideCnt[this.sections.indexOf(id)]++;
    }

    /* Necessary when showing section that doesn't exist - hide currently visible section. See: item1over() */
    this.hideSelf = function(cnt) {
        if (this.visible && cnt == this.sectionsHideCnt[this.sections.indexOf(this.visible)]) {
            this.hideSection(this.visible);
        }
    }

    /* Element (.section, .item2 etc) */
    function Element(id) {
        /* Get parent element */
        this.getParent = function() {
            var s = this.id.substr(this.menu.id.length);
            var a = s.split("-");
            a.pop();
            return new Element(this.menu.id + a.join("-"));
        }
        this.menu = self;
        this.id = id;
    }

    var self = this;
    this.id = id; /* menu id */
    this.tree = []; /* tree structure of menu */
    this.sections = []; /* all sections, required for timeout */
    this.sectionsShowCnt = [];
    this.sectionsHideCnt = [];
    this.visible = ""; /* visible section, ex. menu-0-section */
}

/* Finds the index of the first occurence of item in the array, or -1 if not found */
if (typeof Array.prototype.indexOf == "undefined") {
    Array.prototype.indexOf = function(item) {
        for (var i = 0; i < this.length; i++) {
            if ((typeof this[i] == typeof item) && (this[i] == item)) {
                return i;
            }
        }
        return -1;
    }
}

/* Check whether array contains given string */
if (typeof Array.prototype.contains == "undefined") {
    Array.prototype.contains = function(s) {
        for (var i = 0; i < this.length; i++) {
            if (this[i] === s) {
                return true;
            }
        }
        return false;
    }
}


// +----------------------------------------------------------------+
// | Array functions that are missing in IE 5.0                     |
// | Author: Cezary Tomczak [www.gosu.pl]                           |
// | Free for any use as long as all copyright messages are intact. |
// +----------------------------------------------------------------+

// Removes the last element from an array and returns that element.
if (!Array.prototype.pop) {
    Array.prototype.pop = function() {
        var last;
        if (this.length) {
            last = this[this.length - 1];
            this.length -= 1;
        }
        return last;
    };
}

// Adds one or more elements to the end of an array and returns the new length of the array.
if (!Array.prototype.push) {
    Array.prototype.push = function() {
        for (var i = 0; i < arguments.length; ++i) {
            this[this.length] = arguments[i];
        }
        return this.length;
    };
}

// Removes the first element from an array and returns that element.
if (!Array.prototype.shift) {
    Array.prototype.shift = function() {
        var first;
        if (this.length) {
            first = this[0];
            for (var i = 0; i < this.length - 1; ++i) {
                this[i] = this[i + 1];
            }
            this.length -= 1;
        }
        return first;
    };
}

// Adds one or more elements to the front of an array and returns the new length of the array.
if (!Array.prototype.unshift) {
    Array.prototype.unshift = function() {
        if (arguments.length) {
            var i, len = arguments.length;
            for (i = this.length + len - 1; i >= len; --i) {
                this[i] = this[i - len];
            }
            for (i = 0; i < len; ++i) {
                this[i] = arguments[i];
            }
        }
        return this.length;
    };
}

// Adds and/or removes elements from an array.
if (!Array.prototype.splice) {
    Array.prototype.splice = function(index, howMany) {
        var elements = [], removed = [], i;
        for (i = 2; i < arguments.length; ++i) {
            elements.push(arguments[i]);
        }
        for (i = index; (i < index + howMany) && (i < this.length); ++i) {
            removed.push(this[i]);
        }
        for (i = index + howMany; i < this.length; ++i) {
            this[i - howMany] = this[i];
        }
        this.length -= removed.length;
        for (i = this.length + elements.length - 1; i >= index + elements.length; --i) {
            this[i] = this[i - elements.length];
        }
        for (i = 0; i < elements.length; ++i) {
            this[index + i] = elements[i];
        }
        return removed;
    };
}

// Ouvre une popup
function OpenPopUpRecommander(MyFile,MyWindow,MyWidth,MyHeight) { 
   var ns4=document.layers;
   var ie4=document.all;
   var ns6=document.getElementById&&!document.all;
   var xMax, yMax, xOffset, yOffset;
   
    if (ie4 || ns6) {
        xMax = screen.width;
        yMax = screen.height;
    } else if (ns4) {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
    } else {
        xMax = 800;
        yMax = 600;
    }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;

    var PAGE = window.open(MyFile,MyWindow,'width='+MyWidth +',height='+MyHeight +',screenX='+xOffset +',screenY='+yOffset +',top='+yOffset +',left='+xOffset +',resizable=no,scrollbars=no');
    if (PAGE && PAGE.blur) PAGE.focus();
}
//-->