// JavaScript Document
<!--
var	objBulle = {
	_bAltFermer: "Close", // Alt des boutons "Fermer"
	_bAltDetails: "Know more...", // Alt du bouton "Détails"
	_bPath: "/bnc/files/bnc10122/en/2/", // Chemin des images
	_bWidthMin: 205, // Largeur par défaut
	_bHeightMin: 8, // Hauteur par défaut
	_bXOffset: -255, // Offset X pour IE
	_bYOffset: -124, // Offset Y pour IE
	_bXOffsetFF: -10, // Offset X pour FF
	_bYOffsetFF: 12, // Offset Y pour FF
	/* ---------------------------------- */
	_bClassName: "blink",
	_bName: "bulle-",
	_bViewName: "displayBulle",
	_bHideName: "hideBulle",
	_bPosX: 0,
	_bPosY: 0,
	_bList: new Array(),
	viewBulle: function(_bWCustom,_bHCustom,_bID,_bType,_bEtat,_bLCustom,_bLTarget) {
		if (_bLCustom!=undefined && _bLCustom!=0) {
			_bLink=_bLCustom; //.toLowerCase()
			if (_bLTarget!=undefined && (_bLTarget.toLowerCase()=="_blank" || _bLTarget.toLowerCase()=="_self")) {
				_bTarget=_bLTarget.toLowerCase()
			} else if (_bLTarget==undefined) {
				_bTarget="_blank"
			} else {
				_bTarget="_blank"
			}
		} else {
			_bLink=0;
		}
		if (_bWCustom!=0 && (_bWCustom > this._bWidthMin)) {
			this._bWidth=_bWCustom;
		} else {
			this._bWidth=this._bWidthMin;
		}
		if (_bHCustom!=0 && (_bHCustom > this._bHeightMin)) {
			this._bHeight=_bHCustom;
		} else {
			this._bHeight=this._bHeightMin;
		}
		var _bAdd=0;
		var _bInnerHTML = '';
		for (var x=0;x<=this._bList.length;x++) {
			if (this._bList[x]==_bID && _bAdd==0) {
				_bAdd=1
			}
		}
		if (_bAdd==0) {
			this._bList[this._bList.length+1]=_bID;
			this._bContent = document.getElementById(this._bName+_bID).innerHTML;
			this._bInnerHTML = '<table border="0" cellpadding="0" cellspacing="0" class="bgbulle">';
			this._bInnerHTML = this._bInnerHTML+'<tr><td width="9"><img src="'+this._bPath+'bulleltop.gif" width="9" height="23"></td>';
			this._bInnerHTML = this._bInnerHTML+'<td class="bgbullectop" width="'+this._bWidth+'"><img src="'+this._bPath+'bullef.gif" width="13" height="23"></td>';
			this._bInnerHTML = this._bInnerHTML+'<td width="11"><img src="'+this._bPath+'bullertop.gif" width="11" height="23"></td></tr>';
			this._bInnerHTML = this._bInnerHTML+'<tr><td width="9" class="bgbulleleft"><img src="'+this._bPath+'bulleleft.gif" width="9" height="'+this._bHeight+'"></td>';
			if (_bType!='over' && _bLink!=0) {
				this._bInnerHTML = this._bInnerHTML+'<td width="'+this._bWidth+'"><table border="0" cellpadding="0" cellspacing="0" align="right"><tr><td><a href="javascript:objBulle.fermerBulle(\''+_bID+'\')" onmouseover="objBulle.rolloBtBulle(\'btcbulle\',\''+_bID+'\',1,0)" onmouseout="objBulle.rolloBtBulle(\'btcbulle\',\''+_bID+'\',0,0)"><img align="right" src="'+this._bPath+'btcbulle_off.gif" name="btcbulle'+_bID+'" width="13" height="13" border="0" alt="'+this._bAltFermer+'"></a></td></tr></table>'+this._bContent;
				this._bInnerHTML = this._bInnerHTML+'<img src="'+this._bPath+'blank.gif" width="2" height="5"><br><table border="0" cellpadding="0" cellspacing="0" align="right"><tr><td><a href="'+_bLink+'" target="'+_bTarget+'" onmouseover="objBulle.rolloBtBulle(\'bulledetails\',\''+_bID+'\',1,0)" onmouseout="objBulle.rolloBtBulle(\'bulledetails\',\''+_bID+'\',0,0)"><img name="bulledetails'+_bID+'" src="'+this._bPath+'bulledetails_off.gif" width="50" height="14" border="0" alt="'+this._bAltDetails+'"></a>';
				this._bInnerHTML = this._bInnerHTML+'<a href="javascript:objBulle.fermerBulle(\''+_bID+'\')" onmouseover="objBulle.rolloBtBulle(\'bullefermer\',\''+_bID+'\',1,0)" onmouseout="objBulle.rolloBtBulle(\'bullefermer\',\''+_bID+'\',0,0)"><img  name="bullefermer'+_bID+'" src="'+this._bPath+'bullefermer_off.gif" width="50" height="14" border="0" alt="'+this._bAltFermer+'" hspace="1"></a></td></tr></table></td>';
			} else if (_bType!='over' && _bLink==0) {
				this._bInnerHTML = this._bInnerHTML+'<td width="'+this._bWidth+'"><table border="0" cellpadding="0" cellspacing="0" align="right"><tr><td><a href="javascript:objBulle.fermerBulle(\''+_bID+'\')" onmouseover="objBulle.rolloBtBulle(\'btcbulle\',\''+_bID+'\',1,0)" onmouseout="objBulle.rolloBtBulle(\'btcbulle\',\''+_bID+'\',0,0)"><img align="right" src="'+this._bPath+'btcbulle_off.gif" name="btcbulle'+_bID+'" width="13" height="13" border="0" alt="'+this._bAltFermer+'"></a></td></tr></table>'+this._bContent;
				this._bInnerHTML = this._bInnerHTML+'<img src="'+this._bPath+'blank.gif" width="2" height="5" border="0"><br><table border="0" cellpadding="0" cellspacing="0" align="right"><tr><td><a href="javascript:objBulle.fermerBulle(\''+_bID+'\')" onmouseover="objBulle.rolloBtBulle(\'bullefermer\',\''+_bID+'\',1,0)" onmouseout="objBulle.rolloBtBulle(\'bullefermer\',\''+_bID+'\',0,0)"><img  name="bullefermer'+_bID+'" src="'+this._bPath+'bullefermer_off.gif" width="50" height="14" border="0" alt="'+this._bAltFermer+'" hspace="1"></a></td></tr></table></td>';
			} else {
				this._bInnerHTML = this._bInnerHTML+'<td width="'+this._bWidth+'">'+this._bContent;
			}
			this._bInnerHTML = this._bInnerHTML+'<td width="11" class="bgbulleright"><img src="'+this._bPath+'bulleright.gif" width="11" height="'+this._bHeight+'"></td></tr><tr>';
			this._bInnerHTML = this._bInnerHTML+'<td width="9"><img src="'+this._bPath+'bullelbottom.gif" width="9" height="11"></td>';
			this._bInnerHTML = this._bInnerHTML+'<td class="bgbullecbottom"><img src="'+this._bPath+'bullecbottom.gif" width="'+this._bWidth+'" height="11"></td>';
			this._bInnerHTML = this._bInnerHTML+'<td width="11"><img src="'+this._bPath+'bullerbottom.gif" width="11" height="11"></td></tr></table>';
			eval("this._bInnerHTML"+_bID+"=this._bInnerHTML");
		} else {
			this._bInnerHTML=eval("this._bInnerHTML"+_bID);
		}
		this.snifFF();
		this.afficherMasquerBulle(_bID,_bType,_bEtat);
	},
	afficherMasquerBulle: function(_bID,_bType,_bEtat) {
		if (_bType=='over' && eval(document.getElementById(this._bName+_bID).className==this._bHideName) && _bEtat!=2) {
			this.changerLien(_bEtat,_bID);
		} else if (_bEtat==2) {
			if (eval(document.getElementById(this._bName+_bID).className==this._bHideName)) {
				_bEtat=1;
				this.changerLien(_bEtat,_bID);
				this.showBulle(_bID)
			} else {
				_bEtat=0;
				this.changerLien(_bEtat,_bID);
				this.hideBulle(_bID)
			}
		}
		if (_bType=='over') {
			if (eval(document.getElementById(this._bName+_bID).className==this._bViewName)) {
				_bEtat=0
				this.hideBulle(_bID);
			} else {
				_bEtat=1
				this.showBulle(_bID);
			}
			this.changerLien(_bEtat,_bID);
		}
	},
	changerLien: function(_bEtat,_bID) {
		if (_bEtat==1) {
			if (document.getElementById(this._bClassName+"-"+_bID).className=='blinkover') {
				document.getElementById(this._bClassName+"-"+_bID).className=this._bClassName+'overon';
			} else {
				document.getElementById(this._bClassName+"-"+_bID).className=this._bClassName+'on';
			}
		} else if (_bEtat==99) {
			if (document.getElementById(this._bClassName+"-"+_bID).className=='blinkover') {
				document.getElementById(this._bClassName+"-"+_bID).className=this._bClassName+'over';
			} else {
				document.getElementById(this._bClassName+"-"+_bID).className=this._bClassName;
			}				
		} else if (_bEtat==0) {
			if (document.getElementById(this._bClassName+"-"+_bID).className=='blinkoveron') {
				document.getElementById(this._bClassName+"-"+_bID).className=this._bClassName+'over';
			} else {
				document.getElementById(this._bClassName+"-"+_bID).className=this._bClassName;
			}
		}
	},
	rolloBtBulle: function(_bName,_bID,_bEtat,_bType) {
		if (_bType==0) {
			if (_bEtat==1) {
				var imgRollOn=new Image();
				imgRollOn.src=this._bPath+_bName+"_on.gif";
				eval("document."+_bName+_bID+".src=imgRollOn.src");
			} else if (_bEtat==0) {
				var imgRollOff=new Image();
				imgRollOff.src=this._bPath+_bName+"_off.gif";
				eval("document."+_bName+_bID+".src=imgRollOff.src");
			}
		}
	},
	showBulle: function(_bID) {
		if (this._bList!="") {
			for (var x=0;x<=this._bList.length;x++) {
				if (this._bList[x]!=_bID && this._bList[x]!=undefined) {
					this.hideBulle(this._bList[x]);
					this.changerLien(99,this._bList[x])
				}
			}
		}
		//this.getPosMouse();
		_bPosX=_bPosMouseX;
		_bPosY=_bPosMouseY;
		if (navigator.userAgent.toLowerCase().indexOf("msie")!=-1) {
			document.getElementById(this._bName+_bID).style.top=document.documentElement.scrollTop+_bPosY+this._bYOffset+this._bYOffsetFF+'px';
		} else {
			document.getElementById(this._bName+_bID).style.top=_bPosY+this._bYOffset+this._bYOffsetFF+'px';
		}
		document.getElementById(this._bName+_bID).style.left=_bPosX+this._bXOffset+this._bXOffsetFF+'px';
		document.getElementById(this._bName+_bID).className=this._bViewName;
		document.getElementById(this._bName+_bID).innerHTML=this._bInnerHTML;
	},
	hideBulle: function(_bID) {
		document.getElementById(this._bName+_bID).className=this._bHideName;
	},
	fermerBulle: function(_bID) {
		this.hideBulle(_bID);		
		this.changerLien(0,_bID)
	},
	snifFF: function() {
		if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1) {
			this._bXOffsetFF=0;
			this._bYOffsetFF=0;
		} else {
			this._bXOffset=0;
			this._bYOffset=0;
		}
	},
	getPosMouse: function(e) {
		var _bDocRef;
		if (e) {
			_bPosMouseX=e.pageX;
			_bPosMouseY=e.pageY;
		}
		else {
			_bPosMouseX=event.clientX;
			_bPosMouseY=event.clientY;
			if (document.documentElement && document.documentElement.clientWidth) {
				_bDocRef=document.documentElement;
			} else {
				_bDocRef=document.body;
				_bPosMouseX += _bDocRef.scrollLeft;
				_bPosMouseY += _bDocRef.scrollTop;
			}
		}
	}
}
document.onmousemove=objBulle.getPosMouse;
//-->
