	/**
	 * This script is used to display an info box
	 *
	 * @author  Matthias Sojka
	 * @package Framework
	 * @version 0.01 / 16.04.2008
	 */
	var browser = '';

	function showInfoBox(oElement,sText,sTitle) {
		if(sTitle == '') {
			sTitle = 'Information';
		}
		if(!$('oInformationBox')) {
			oElement.insert({after:'<div id="oInformationBox"><div id="oInformationBoxTitle"></div><div id="oInformationBoxText"></div></div>'});
		}

		if(browser == '') {
			browser = getBrowser();
		}
		if(browser == 'IE') {
			var aOffset = getIEMouseCoords();
			var mouseX  = aOffset[0] - 75;
			var mouseY  = aOffset[1] + 10;
		} else {
			var aOffset = oElement.cumulativeOffset();
			var mouseX  = aOffset[0] - 75;
			var mouseY  = aOffset[1] + 20;
		}
		$('oInformationBoxText').innerHTML  = sText;
		$('oInformationBoxTitle').innerHTML = sTitle;
		$('oInformationBox').style.top      = mouseY+'px';
		$('oInformationBox').style.left     = mouseX+'px';
		$('oInformationBox').style.display  = 'block';
	}

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


	function hideInfoBox() {
		$('oInformationBox').style.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;
	}