/**
*
* This function uses the variables mPosX and mPosY which contains the X en Y values
* of the mouse position. These variables are set by the Javascript function GetMousePosition()
* which is executed in the <head> of the document.
*
*/

// Create DIV
function ShowIconContent (content, icID) {
	
    if (!document.getElementById (icID)) {    	
    	
		var ic_div = document.createElement ('div')
		ic_div.setAttribute('id', icID)
		ic_div.style.position = 'absolute'
		ic_div.style.left = (mPosX + 0) + 'px'
		ic_div.style.top = (mPosY + 0) + 'px'
		ic_div.className = 'ic_div'
		ic_div.appendChild (document.createTextNode (content))   
		document.body.appendChild (ic_div)
		
		activeIconContent = icID
    }
}

// Close created DIV
function CloseIconContent (icID) {
	
	if (document.getElementById (icID)) {
    	document.body.removeChild (document.getElementById (icID))  
	}	
}
