var arr_texts = new Array ();
arr_texts['#i0#']= "<font color=#000000>Tagungsstätte Kloster Drübeck</font><br>";
arr_texts['#i0.1#']= "<img src='images/tagungstaette-fruehling.jpg'>";
arr_texts['#i0.2#']= ">Tagungsstätte Kloster Drübeck";
arr_texts['#i1#']= "<font color=#000000>Pädagogisch - Theologisches Institut</font><br>";
arr_texts['#i1.1#']= "<img src='images/pti.jpg'>";
arr_texts['#i1.2#']= "Pädagogisch - Theologisches Institut";
arr_texts['#i2#']= "<font color=#000000>Haus der Stille</font><br>";
arr_texts['#i2.1#']= "<img src='images/hds.jpg'>";
arr_texts['#i2.2#']= "Haus der Stille";
arr_texts['#i3#']= "<font color=#000000>Pastoralkolleg</font><br>";
arr_texts['#i3.1#']= "<img src='images/pk.jpg'>";
arr_texts['#i3.2#']= "Pastoralkolleg";
arr_texts['#i4#']= "<font color=#000000>Bibliothek / Medienzentrum</font><br>";
arr_texts['#i4.1#']= "<img src='images/bibliothek.jpg'>";
arr_texts['#i4.2#']= ">Bibliothek / Medienzentrum";
document.onmousemove = mmove;

var mx = 0, my = 0;
var marginx = -100, marginy = -210;
var hbox = document.getElementById('hovertext');
var hsbox = document.getElementById('hovertextshadow');
function mmove (e)
{
		var IE = (document.all) ? true : false;
		var tempX = 0, tempY = 0;
		if (IE) {
				tempX = event.clientX + document.body.scrollLeft
				tempY = event.clientY + document.body.scrollTop
		} else {
				tempX = e.pageX
				tempY = e.pageY
		}
		if (tempX < 0){tempX = 0}
		if (tempY < 0){tempY = 0}

		mx = tempX;
		my = tempY;

		if (hbox.style.display == '')
		{
				movebox (hbox, mx, my);
				movebox (hsbox, mx, my);
		}
}


function movebox (box, x, y)
{
		box.style.left = x + marginx + 'px';
		box.style.top = y + marginy + 'px';
}

function showtext (text)
{
		if (text)            
		{
				if (arr_texts[text])
				{
						text = arr_texts[text];
				}

				fillbox (hbox, text);
				movebox (hbox, mx, my);
				showbox (hbox);
				showbox (hsbox);
		}
		else
		{
				hidebox (hbox);
				hidebox (hsbox);
		}
}

function showbox (box)
{
		box.style.display = '';
}


function hidebox (box)
{
		box.style.display = 'none';  
}        

function fillbox (box, text)            
{        
		box.innerHTML = text;
}

