// JavaScript Document
function highindex(LinkObject)	{
	LinkObject.style.background='#EFEFEF';
}
function lowindex(LinkObject)	{
	LinkObject.style.background='#FFFFFF';
}
function highcomp(LinkObject)	{
	LinkObject.style.background='#EFEFEF';
}
function lowcomp(LinkObject)	{
	LinkObject.style.background='#FAFAFA';
}
function affichage(id){  
	if(document.getElementById){
		var elt=document.getElementById(id);
		if(elt.style.display != "block"){ 
				elt.style.display = "block";
		}
		else{
				elt.style.display = "none";

		}
	}
}

var TabAlpha=new Array();
TabAlpha.length=5;		// 5 images alpha A MODIFIER SI PLUS D'IMAGES
for (var alphaI=0;alphaI<TabAlpha.length;alphaI++) {
	TabAlpha[alphaI]=-1;
}

function ModifAlpha(no,alpha){
	if (document.images["img"+no]) {
		if (document.images["img"+no].filters) {
			TabAlpha[no]=alpha;
			if (tjstimer==0) {setTimeout("tjstimerAlpha()",30)}
		}
	}
}

var tjstimer=0;

function tjstimerAlpha() {
	var opacity=0;
	for (var alphaI=0;alphaI<TabAlpha.length;alphaI++) {
		if (TabAlpha[alphaI]!=-1) {
			opacity =TabAlpha[alphaI] - document.images["img"+alphaI].filters.alpha.opacity;
			if (opacity!=0) {
				tjstimer=1;
				document.images["img"+alphaI].filters.alpha.opacity+=Math.abs(opacity)/opacity * 5;		
			} else {
				TabAlpha[alphaI]=-1
			}
		}
	}
	if (tjstimer==1) {setTimeout("tjstimerAlpha()",30);} else {tjstimer=0}
}
function rowOverEffect(object) {
  if (object.className == 'dataTableRow') object.className = 'dataTableRowOver';
  if (object.className == 'dataTableRow2') object.className = 'dataTableRowOver2';
}

function rowOutEffect(object) {
  if (object.className == 'dataTableRowOver') object.className = 'dataTableRow';
  if (object.className == 'dataTableRowOver2') object.className = 'dataTableRow2';
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
