	/**
	 * This script is used to display an info box
	 *
	 * @author  Matthias Sojka
	 * @package Framework
	 * @version 0.01 / 16.04.2008
	 */
	var browser = '';
	var isIE = document.all;
	var mouseX = 0;
	var mouseY = 0;

	function getMouseXY(e)
	{
	  if (!e) e = window.event;
	  if (e)
	  {
	    if(isIE) {
	      mouseX = e.clientX + document.body.scrollLeft;
	      mouseY = e.clientY + document.body.scrollTop;
	    } else {
	      mouseX = e.pageX;
	      mouseY = e.pageY;
	    }
	  /*mouseX = isIE ? (e.clientX + document.body.scrollLeft) : e.pageX;
	    mouseY = isIE ? (e.clientY + document.body.scrollTop) : e.pageY;*/
	  }
	}

	document.onmousemove = getMouseXY;

	function showInfoBox(oElement,sText,sTitle) {
		if(sTitle == '') {
			sTitle = 'Information';
		}
		if(!$('oInformationBox')) {
			$('mainContainer').insert({after:'<div id="oInformationBox" style="display:none;"><div id="oInformationBoxTitle"><\/div><div id="oInformationBoxText"><\/div><\/div>'});
		}
		//getMouseXY;
		$('oInformationBoxText').update(sText);
		//$('oInformationBoxTitle').update(sTitle);
  /*$('oInformationBox').style.top      = mouseY+'px';
    $('oInformationBox').style.left     = mouseX+'px';
		$('oInformationBox').style.display  = 'block';*/

		//$('oInformationBox').setStyle({ display: 'block' });
		$('oInformationBox').setStyle({ top: mouseY - $('oInformationBox').getHeight() - 10 +'px' });
		$('oInformationBox').setStyle({ left: mouseX - $('oInformationBox').getWidth()/2 +'px' });
    $('oInformationBox').setStyle({ display: 'block' });
    //alert(mouseX);
	}

	function getIEMouseCoords() {
		e = window.event;
  		var mousex = e.clientX;
  		var mousey = e.clientY + document.viewport.getScrollOffsets()[1];
		return [mousex, mousey];
	}


	function hideInfoBox() {
		$('oInformationBox').setStyle({ display: 'none' });
	}

	function getBrowser() {
		var x = '';
		if(document.ids)x='nc4';
		else if( document.all && !document.getElementById )x='IE';
		else if( window.opera && !document.createElement )x='op5';
		else if( window.opera && window.getComputedStyle )  {
          		if(document.createRange)x='op8';
            		else if(window.navigate)x='op7.5';
                        else x='op7.2';                   }
		else if( window.opera && document.compatMode )x='op7';
		else if( window.opera && document.releaseEvents )x='op6';
		else if( document.contains && !window.opera )x='kq3';
		else if(window.pkcs11&&window.XML)x='f15';
		else if( window.getSelection && window.atob )x='nn7';
		else if( window.getSelection && !document.compatMode )x='nn6';
		else if( window.clipboardData && document.compatMode )
 			 x=window.XMLHttpRequest? 'IE' : 'IE';
		else if( window.clipboardData ){x='IE';
     		if( !document.createDocumentFragment ) x+='.5';
     		if( document.doctype && !window.print ) x+='m';}
		else if( document.getElementById && !document.all ) x='op4';
		else if( document.images && !document.all ) x='nn3';
		else if(document.clientWidth&&!window.RegExp)x='kq2';
		else x='???';
		return x;
	}
