

function showToolTip_lesson(title,id_element,msg){

			  
			function getelementbyclass(theClass) {
				//  console.log(theClass);
				//Populate the array with all the page tags
				var allPageTags=document.getElementsByTagName("*");
				//Cycle through the tags using a for loop
			
				for (i=0; i<allPageTags.length; i++) {
					// console.log(allPageTags[i].className);
					//Pick out the tags with our class name
					if (allPageTags[i].className==theClass) {
						//Manipulate this in whatever way you want
			
						return allPageTags[i];
					}
				}
				return 0;
			}
			function findPos(obj) {
				var curleft = curtop = 0;
				if (obj.offsetParent) {
					do {
						curleft += obj.offsetLeft;
						curtop += obj.offsetTop;
					} while (obj = obj.offsetParent);
					return [curleft,curtop];
				}
				return 0;
			}
    
			    
				Activeclass = getelementbyclass(id_element);
			
				if (Activeclass){
					position = findPos(Activeclass);
					xPos = position[0]; 	
					yPos = position[1]; 
				}
			
			
			   var toolTip = document.getElementById("toolTip_lesson");
			   toolTip.innerHTML = "<h1>"+title+"</h1><p>"+msg+"</p>";
			   toolTip.style.top = parseInt(yPos)+110 + "px";			  
			 
			    
			   toolTip.style.left = parseInt(xPos)+ "px";
		

			   
			   toolTip.style.visibility = "visible";

}
function hideToolTip_lesson(){
   var toolTip = document.getElementById("toolTip_lesson");
   toolTip.style.visibility = "hidden"; 
}
