<!--

tr_new='#CCE0E5';
tr_old='#B1D6DF';

/** Vous pourrez trouver le(s) auteur(s) de ce script sur http://www.phpmyadmin.net/
 * Sets/unsets the pointer and marker in browse mode
 *
 * @param   object    the table row
 * @param   interger  the row number
 * @param   string    the action calling this script (over, out or click)
 * @param   string    the default background color
 * @param   string    the color to use for mouseover
 * @param   string    the color to use for marking a row
 *
 * @return  boolean  whether pointer is set or not
 */
 
/**
 * This array is used to remember mark status of rows in browse mode
 */
var marked_row = new Array;

function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerColor, theMarkColor)
{
    var theCells = null;

    // 1. Pointer and mark feature are disabled or the browser can't get the
    //    row -> exits
    if ((thePointerColor == '' && theMarkColor == '')
        || typeof(theRow.style) == 'undefined') {
        return false;
    }

    // 2. Gets the current row and exits if the browser can't get it
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    // 3. Gets the current color...
    var rowCellsCnt  = theCells.length;
    var domDetect    = null;
    var currentColor = null;
    var newColor     = null;
    // 3.1 ... with DOM compatible browsers except Opera that does not return
    //         valid values with "getAttribute"
    if (typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined') {
        currentColor = theCells[0].getAttribute('bgcolor');
        domDetect    = true;
    }
    // 3.2 ... with other browsers
    else {
        currentColor = theCells[0].style.backgroundColor;
        domDetect    = false;
    } // end 3

    // 4. Defines the new color
    // 4.1 Current color is the default one
    if (currentColor == ''
        || currentColor.toLowerCase() == theDefaultColor.toLowerCase()) {
        if (theAction == 'over' && thePointerColor != '') {
            newColor              = thePointerColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor              = theMarkColor;
            marked_row[theRowNum] = true;
        }
    }
    // 4.1.2 Current color is the pointer one
    else if (currentColor.toLowerCase() == thePointerColor.toLowerCase()
             && (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])) {
        if (theAction == 'out') {
            newColor              = theDefaultColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor              = theMarkColor;
            marked_row[theRowNum] = true;
        }
    }
    // 4.1.3 Current color is the marker one
    else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) {
        if (theAction == 'click') {
            newColor              = (thePointerColor != '')
                                  ? thePointerColor
                                  : theDefaultColor;
            marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])
                                  ? true
                                  : null;
        }
    } // end 4

    // 5. Sets the new color...
    if (newColor) {
        var c = null;
        // 5.1 ... with DOM compatible browsers except Opera
        if (domDetect) {
            for (c = 0; c < rowCellsCnt; c++) {
                theCells[c].setAttribute('bgcolor', newColor, 0);
            } // end for
        }
        // 5.2 ... with other browsers
        else {
            for (c = 0; c < rowCellsCnt; c++) {
                theCells[c].style.backgroundColor = newColor;
            }
        }
    } // end 5

    return true;
} // end of the 'setPointer()' function





/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ALTTXT V1.2
//  BY: BRIAN GOSSELIN OF SCRIPTASYLUM.COM
//  ADDED FADING EFFECT FOR IE4+ AND NS6+ ONLY AND OPTIMIZED THE CODE A BIT.
//  SCRIPT FEATURED ON DYNAMIC DRIVE (http://www.dynamicdrive.com) 


var dofade=true;     // ENABLES FADE-IN EFFECT FOR IE4+ AND NS6 ONLY
var center=false;     // CENTERS THE BOX UNDER THE MOUSE, OTHERWISE DISPLAYS BOX TO THE RIGHT OF THE MOUSE
var centertext=false; // CENTERS THE TEXT INSIDE THE BOX. YOU CAN'T SIMPLY DO THIS VIA STYLE BECAUSE OF NS4.
                     // OTHERWISE, TEXT IS LEFT-JUSTIFIED. 


////////////////////////////// NO NEED TO EDIT BEYOND THIS POINT //////////////////////////////////////


var NS4_writ = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
var IE4_writ = (document.all && !document.getElementById)? true : false;
var IE5_writ = (document.getElementById && document.all)? true : false;
var NS6_writ = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var W3C_writ = (document.getElementById)? true : false;
var w_y, w_x, navtxt, boxheight, boxwidth;
var ishover=false;
var isloaded=false;
var ieop=0;
var op_id=0;

function getwindowdims(){
w_y=(NS4_writ||NS6_writ)? window.innerHeight : (IE5_writ||IE4_writ)? document.body.clientHeight : 0;
w_x=(NS4_writ||NS6_writ)? window.innerWidth : (IE5_writ||IE4_writ)? document.body.clientWidth : 0;
}

function getboxwidth(){
if(NS4_writ)boxwidth=(navtxt.document.width)? navtxt.document.width : navtxt.clip.width;
if(IE5_writ||IE4_writ)boxwidth=(navtxt.style.pixelWidth)? navtxt.style.pixelWidth : navtxt.offsetWidth;
if(NS6_writ)boxwidth=(navtxt.style.width)? parseInt(navtxt.style.width) : parseInt(navtxt.offsetWidth);
}

function getboxheight(){
if(NS4_writ)boxheight=(navtxt.document.height)? navtxt.document.height : navtxt.clip.height;
if(IE4_writ||IE5_writ)boxheight=(navtxt.style.pixelHeight)? navtxt.style.pixelHeight : navtxt.offsetHeight;
if(NS6_writ)boxheight=parseInt(navtxt.offsetHeight);

}

function movenavtxt(x_writ,y_writ){
if(NS4_writ)navtxt.moveTo(x_writ,y_writ);
if(W3C_writ||IE4_writ){
navtxt.style.left=x_writ+'px';
navtxt.style.top=y_writ+'px';
}}

function getpagescrolly(){
if(NS4_writ||NS6_writ)return window.pageYOffset;
if(IE5_writ||IE4_writ)return document.body.scrollTop;
}

function getpagescrollx(){
if(NS4_writ||NS6_writ)return window.pageXOffset;
if(IE5_writ||IE4_writ)return document.body.scrollLeft;
}

function writeindiv(text_writ){
if(NS4_writ){
navtxt.document.open();
navtxt.document.write(text_writ);
navtxt.document.close();
}
if(W3C_writ||IE4_writ)navtxt.innerHTML=text_writ;
}

//**** END UTILITY FUNCTIONS ****//

function writetxt(text_writ){
if(isloaded){
if(text_writ!=0){
ishover=true;
if(NS4_writ)text_writ='<div class="navtext">'+((centertext)?'<center>':'')+text_writ+((centertext)?'</center>':'')+'</div>';
writeindiv(text_writ);
getboxheight();
if((W3C_writ || IE4_writ) && dofade){
ieop=0;
incropacity();
}}else{
if(NS4_writ)navtxt.visibility="hide";
if(IE4_writ||W3C_writ){
if(dofade)clearTimeout(op_id);
navtxt.style.visibility="hidden";
}
writeindiv('');
ishover=false;
}}}

function incropacity(){
if(ieop<=100){
ieop+=20;//////////////////////////////////// 7 à l'origine
if(IE4_writ || IE5_writ)navtxt.style.filter="alpha(opacity="+ieop+")";
if(NS6_writ)navtxt.style.MozOpacity=ieop/100;
op_id=setTimeout('incropacity()', 50);
}}

function moveobj(evt){
if(isloaded && ishover){
margin=(IE4_writ||IE5_writ)? 1 : 23;
if(NS6_writ)if(document.height+27-window.innerHeight<0)margin=15;
if(NS4_writ)if(document.height-window.innerHeight<0)margin=10;
//mx_writ=(NS4_writ||NS6_writ)? evt.pageX : (IE5_writ||IE4_writ)? event.clientX : 0;
//my_writ=(NS4_writ||NS6_writ)? evt.pageY : (IE5_writ||IE4_writ)? event.clientY : 0;
if (NS4_writ){
mx_writ=evt.pageX
my_writ=evt.pageY
}
else if (NS6_writ){
mx_writ=evt.clientX
my_writ=evt.clientY
}
else if (IE5_writ){
mx_writ=event.clientX
my_writ=event.clientY
}
else if (IE4_writ){
mx_writ=0
my_writ=0
}

if(NS4_writ){
mx_writ-=getpagescrollx();
my_writ-=getpagescrolly();
}
xoff=(center)? mx_writ-boxwidth/2 : mx_writ+5;
yoff=(my_writ+boxheight+30-getpagescrolly()+margin>=w_y)? -15-boxheight: 30;
movenavtxt( Math.min(w_x-boxwidth-margin , Math.max(2,xoff))+getpagescrollx() , my_writ+yoff+getpagescrolly());
if(NS4_writ)navtxt.visibility="show";
if(W3C_writ||IE4_writ)navtxt.style.visibility="visible";
}}

if(NS4_writ)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=moveobj;
window.onload=function(){
  navtxt=(NS4_writ)? document.layers['navtxt'] : (IE4_writ)? document.all['navtxt'] : (W3C_writ)? document.getElementById('navtxt') : null;
  getboxwidth();
  getboxheight();
  getwindowdims();
  isloaded=true;
  if((W3C_writ || IE4_writ) && centertext)navtxt.style.textAlign="center";
  if(W3C_writ)navtxt.style.padding='4px';
  if(IE4_writ || IE5_writ && dofade)navtxt.style.filter="alpha(opacity=0)";
  }
window.onresize=getwindowdims;

/////////////

function centerWindow(fichier_a,nom_page,largeur,hauteur,scrollbars)
{
if (document.all)
{var xMax=screen.width, yMax=screen.height;}
else
if (document.layers)
{var xMax=window.outerWidth, yMax=window.outerHeight;}
else
if ((!document.all)&&(!document.layers))
{var xMax=800, yMax=600;}
var xOffset=(xMax-300)/2, yOffset=(yMax - 300)/2;
window.open(fichier_a,nom_page,'width='+largeur+',height='+hauteur+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',toolbar=0,location=0,directories=0,status=0,scrollbars='+scrollbars+',resizable=1,copyhistory=0,menuBar=0');
}

function PopUp(fichier_a,nom_page,largeur,hauteur,scrollbars)
{// Si nom_page n'est pas précisé alors une nlle popup s'ouvrira à chaque fois
window.open(fichier_a,nom_page,'width='+largeur+',height='+hauteur+',screenX=0,screenY=0,top=0,left=0,toolbar=0,location=0,directories=0,status=0,scrollbars='+scrollbars+',resizable=1,copyhistory=0,menuBar=0');
}

function desactiveForm(f)
{
 if (document.all || document.getElementById) 
 {
	 for (i=0;i<f.length;i++)
  {
		var t=f.elements[i];
		if (t.type.toLowerCase()== "submit" || t.type.toLowerCase()== "reset")
		t.disabled=true;
		}
 }
return true;
}
   
function menu_url(cible,urll,wht)
{eval(cible+".location='"+urll.options[urll.selectedIndex].value+"'");
if (wht) urll.selectedIndex=0;}

function MoveTOwindow(FffF)
{window.moveTo(0,0);
	if (document.all) 
	 {
		if (FffF.value=='FENETRE EN PLEIN ECRAN')  {window.resizeTo(screen.availWidth,screen.availHeight);FffF.value='RETABLIR LA FENETRE';}
				else  {window.resizeTo(500,500);FffF.value='FENETRE EN PLEIN ECRAN';}
		}
		else if (document.layers)
		{
		  if (FffF.value=='FENETRE EN PLEIN ECRAN')
				  {if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth)  {window.outerHeight=screen.availHeight;window.outerWidth=screen.availWidth;}
						FffF.value='RETABLIR LA FENETRE';}
				else
				  {if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth)  {window.outerHeight=500;window.outerWidth=500;}
						FffF.value='FENETRE EN PLEIN ECRAN';}
		}
}
//-->