function ajaxGetNews( id, more ){
	if( more == 0 ){
		alert( "Нет информации для отображения!" );
		return false;
	}
	if( document.getElementById( 'news_full_' + id ).innerHTML.length > 0 ){
		alert( "Информация уже отображена!" );
		return false;
	}
	new Ajax.Request( 'http://ultimasoft.ru/news/full_' + id + '.html',{
		method: 'get',
		onSuccess: function( transport ){ do_ajaxGetNews( id, transport.responseText ) },
		onFailure: function( transport ){ do_ajaxGetNews( id, ( transport.responseText || "<font color='red'>Возникла ошибка при обработке запроса!</font>" ) ) }
	}	);
	document.getElementById( 'news_full_' + id ).innerHTML = "( Загрузка информации. Ждите. )";
	return false;
}

function do_ajaxGetNews( id, text ){
	var data = document.createElement( "DIV" );
	data.innerHTML = text;
	document.getElementById( 'news_full_' + id ).innerHTML = '';
	document.getElementById( 'news_full_' + id ).appendChild( data );
}

function help(el, str){
	var hlp = document.getElementById("autohelp");
	hlp.style.display = "";
	hlp.innerHTML     = str;
	hlp.style.left    = GetAbs(el)['x'];
	hlp.style.top     = GetAbs(el)['y']-hlp.scrollHeight;
}
function unhelp(){
	document.getElementById("autohelp").style.display = 'none';
}
function GetAbs(el){
	var ret = new Array();
	ret['x'] = 0;
	ret['y'] = 0;
	while( el.offsetParent ){
		ret['x'] += el.offsetLeft;
		ret['y'] += el.offsetTop;
		el = el.offsetParent;
	}
	return ret;
}
function scrolling( fobj ){
	fobj.scrollTop += 2;
	if( fobj.scrollHeight - fobj.offsetHeight <= fobj.scrollTop ){
		fobj.scrollTop = 0;
	}
}
function scrollStart( obj ){
	if( obj.getAttribute( "scroll_init" ) != "yes" ){
		obj.observe( "mouseenter", function(){
			scrollPause( fscrl );
		} );
		obj.observe( "mouseleave", function(){
			fscrl = scrollStart( obj );
		} );
		obj.setAttribute( "scroll_init", "yes" );
	}
	return setInterval( function(){ scrolling( obj ) }, 50 );
}
function scrollPause( obj ){
	clearInterval( obj );
}