

function toon_label(current,e,tekst,kleur){

var IE=false;
	if(navigator.appName == "Microsoft Internet Explorer")
	IE = true;

	if(IE)
	{
		x = e.clientX + document.body.scrollLeft;
		y = e.clientY + document.body.scrollTop;
	}
	else
	{
		x = e.pageX;
		y = e.pageY; 	
	}



document.getElementById('kalendertekst').style.left = (x + 10) + 'px';
document.getElementById('kalendertekst').style.top = (y) + 'px';

/*if(status == 1){
document.getElementById('kalendertekst').style.backgroundColor="#FF0000";
document.getElementById('kalendertekst').style.color="#FFFFFF";
document.getElementById('kalendertekst').innerHTML='<div style="border:1px solid black">Periode bezet</div>';

}
else if(status == 2){
document.getElementById('kalendertekst').style.backgroundColor="#009900";
document.getElementById('kalendertekst').style.color="#000000";
document.getElementById('kalendertekst').innerHTML='<div style="border:1px solid black">Reserveer online</div>';

}
else if(status == 3){
document.getElementById('kalendertekst').style.backgroundColor="#FF9900";
document.getElementById('kalendertekst').style.color="#000000";
document.getElementById('kalendertekst').innerHTML='<div style="border:1px solid black">Periode vrij</div>';

}*/
document.getElementById('kalendertekst').style.backgroundColor="#"+kleur;
document.getElementById('kalendertekst').style.color="#FFFFFF";
document.getElementById('kalendertekst').innerHTML='<div style="border:1px solid black">' + tekst + '</div>';

document.getElementById('kalendertekst').style.visibility="visible";




}


function verberg_label(){

document.getElementById('kalendertekst').style.visibility="hidden";

}



function toon_label_image(current,e,tekst,kleur){

// Set Netscape up to run the "captureMousePosition" function whenever
// the mouse is moved. For Internet Explorer and Netscape 6, you can capture
// the movement a little easier.


// Global variables
x = 0; // Horizontal position of the mouse on the screen
y = 0; // Vertical position of the mouse on the screen
xMousePosMax = 0; // Width of the page
yMousePosMax = 0; // Height of the page

    if (document.layers) {
        // When the page scrolls in Netscape, the event's mouse position
        // reflects the absolute position on the screen. innerHight/Width
        // is the position from the top/left of the screen that the user is
        // looking at. pageX/YOffset is the amount that the user has
        // scrolled into the page. So the values will be in relation to
        // each other as the total offsets into the page, no matter if
        // the user has scrolled or not.
        x = e.pageX;
        y = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    } else if (document.all) {
        // When the page scrolls in IE, the event's mouse position
        // reflects the position from the top/left of the screen the
        // user is looking at. scrollLeft/Top is the amount the user
        // has scrolled into the page. clientWidth/Height is the height/
        // width of the current page the user is looking at. So, to be
        // consistent with Netscape (above), add the scroll offsets to
        // both so we end up with an absolute value on the page, no
        // matter if the user has scrolled or not.
        x = window.event.x+document.documentElement.scrollLeft;
        y = window.event.y+document.documentElement.scrollTop;
        xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
        yMousePosMax = document.body.clientHeight+document.body.scrollTop;
    } else if (document.getElementById) {
        // Netscape 6 behaves the same as Netscape 4 in this regard
        x = e.pageX;
        y = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    }

//window.status = "xMousePos=" + x + ", yMousePos=" + y + ", xMousePosMax=" + xMousePosMax + ", yMousePosMax=" + yMousePosMax;
document.getElementById('img_over').style.left = (x + 10) + 'px';
document.getElementById('img_over').style.top = (y) + 'px';




document.getElementById('img_over').innerHTML='<div style="border:1px solid black">' + tekst + '</div>';

document.getElementById('img_over').style.visibility="visible";




}


function verberg_image(){

document.getElementById('img_over').style.visibility="hidden";

}

