// JavaScript Document
var bulleStyle=null
if (!document.layers && !document.all && !document.getElementById)
   event="chut";

function bulle(msg,evt,hauteur){    
 var xfenetre,yfenetre,xpage,ypage,element=null;
 var offset= 15;          
 var bulleWidth=150;     
 var glossaire = "";
 switch(msg){
 case "algorithme" :
 	glossaire = "An algorithm is a systematic processing method usually designed for computer programs.";
 break;
 case "datamining" :
 	glossaire = "Data mining is the process of retrieving high value-added information from very large amounts of data: customer analysis, identification of trends, segmentation, etc.";
 break;
 case "dynamic" :
 	glossaire = "Dynamic packaging is the generation of customized travel packages; this concept is at the heart of the biggest tourism companies’ concerns.";
 break;
 case "heuristiques" :
 	glossaire = "A heuristic method is a rough resolution method, which is often quicker and more flexible than exact methods.";
 break;
 case "logistique" :
 	glossaire = "Logistics is the management of trade flows (e.g. goods) within private companies or public organizations.";
 break;
 case "modele" :
 	glossaire = "A model is a simplified representation of the reality, often formalized in mathematical language.";
 break;
 case "recherche" :
 	glossaire = "Operations research is the application of mathematics to decision support.";
 break;
 case "systeme" :
 	glossaire = "A decision support system (DSS) is an IT package designed to facilitate the decision making process; it can consist of hardware, software, databases, etc.";
 break;
 case "textemining" :
 	glossaire = "Text mining is the process of retrieving high value-added information from very large amounts of text: classification of large groups of documents, press analysis, etc.";
 break;
  case "webmining" :
 	glossaire = "Web mining is the process of retrieving high value-added information from a very large number of web pages or databases: customization of web content, analysis of traffic patterns and on-line orders to identify tastes, needs, preferences, etc.";
 break;
 case "yield" :
 	glossaire = "Yield management relates to the identification of the highest profitability scenario, namely through the allocation and pricing of different products or services (hotel rooms, airplane seats, etc.).";
 break;
 default :
 	glossaire = "-";
 break;
 }  
 if (!hauteur) hauteur=15;

  if (document.layers) {
    bulleStyle=document.layers['tip'];
    bulleStyle.document.write('<layer bgColor="#ffffdd" '
       +'style="width:150px;border:1px solid black;color:black">'
       + glossaire + '</layer>' );
    bulleStyle.document.close();
    xpage = evt.pageX ; ypage  = evt.pageY;
    xfenetre = xpage ;yfenetre = ypage ;		
  } else if (document.all) {
    element=document.all['tip']
    xfenetre = evt.x ;yfenetre = evt.y ;		
    xpage=xfenetre ; ypage=yfenetre	;	
    if (document.body.scrollLeft) xpage = xfenetre + document.body.scrollLeft ; 
    if (document.body.scrollTop) ypage = yfenetre + document.body.scrollTop;
  } else if (document.getElementById) {
	  element=document.getElementById('tip')
    xfenetre = evt.clientX ;yfenetre = evt.clientY ;
    xpage=xfenetre ; ypage=yfenetre	;	
    if(evt.pageX) xpage = evt.pageX ;
    if(evt.pageY) ypage  = evt.pageY ;
  }
    
  if(element) {
     bulleStyle=element.style;
		 element.innerHTML=glossaire;}
		 	
  if(bulleStyle) {
     if (xfenetre > bulleWidth+offset) xpage=xpage-bulleWidth-offset;
     else xpage=xpage+15;
     if ( yfenetre > hauteur+offset ) ypage=ypage-hauteur-offset;
     bulleStyle.width=bulleWidth;  
		 if(typeof(bulleStyle.left)=='string') {
				 bulleStyle.left=xpage+'px'; bulleStyle.top=ypage+'px';  
		} else {
				bulleStyle.left=xpage     ; bulleStyle.top=ypage ; }
     bulleStyle.visibility="visible"; }
}
 
function couic(){
  if(bulleStyle)  bulleStyle.visibility="hidden";
}