	function fixEvent(e) {
	    // получить объект событие для IE
	    e = e || window.event
	 
	    // добавить pageX/pageY для IE
	    if ( e.pageX == null && e.clientX != null ) {
	        var html = document.documentElement
	        var body = document.body
	        e.pageX = e.clientX + (html && html.scrollLeft || body && body.scrollLeft || 0) - (html.clientLeft || 0)
	        e.pageY = e.clientY + (html && html.scrollTop || body && body.scrollTop || 0) - (html.clientTop || 0)
	    }
	 
	    // добавить which для IE
	    if (!e.which && e.button) {
	        e.which = e.button & 1 ? 1 : ( e.button & 2 ? 3 : ( e.button & 4 ? 2 : 0 ) )
	    }
	 
	    return e
	}

	function mouseMove(event){
	    event = fixEvent(event)
	    document.getElementById('message').style.left = event.pageX+'px';
	    document.getElementById('message').style.top = event.pageY+'px';
	}
	
	function mMove()
		{
			document.onmousemove = mouseMove;
		}
		
	function mOut()
		{
			document.getElementById('message').style.display='none';document.onmousemove=null;
		}
		
	function mOver(pg)
		{
			document.getElementById('message').style.display='block';
			document.getElementById('message').style.width='300px';
			document.getElementById('message_text').style.height='';
			document.getElementById('message_text').innerHTML='Подождите, информация загружается...';
			ajaxLoad(pg);
		}
		
		
function ajaxLoad(pg)
	{
		var xmlhttp;
		if (window.XMLHttpRequest)
		  {
			xmlhttp=new XMLHttpRequest();
		  }
		else
		  {
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		  
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.status==200)
			{
				document.getElementById('message').style.width='560px';
				document.getElementById('message_text').style.height='300px';
				document.getElementById("message_text").innerHTML=xmlhttp.responseText;
			} else
				{
					//mOut();
				}
		  }
		xmlhttp.open("GET","/ajax?ajax_u="+pg+'&'+Math.random(),true);
		xmlhttp.send();
	}
	
function ajaxGet(url)
	{
		var xmlhttp;
		if (window.XMLHttpRequest)
		  {
			xmlhttp=new XMLHttpRequest();
		  }
		else
		  {
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		  
		xmlhttp.open("GET",url,true);
		xmlhttp.send();
	}	
		
		
