
//	<div id="ajax_indicator2" style="position: absolute; width:50px; height: 50px; z-index: 2; display: none;
//													 border: 1px solid #787878; vertical-align: middle;"><img src="{$user_img_dir}loading.gif" border="0" /></div>
	
	
	document.write('<div id="ajax_indicator" style="position: absolute; z-index: 2; display: none; background-color: red; color: white; padding: 3px 15px 3px 15px;" class="Tahoma11">Загрузка...</div>');
	

// ..............................................................

	function ShowAjaxIndicator()
		{
			var my_width  = 0;
			var my_height = 0;
			
//
// вычисляем центр экрана
//

			if ( typeof( window.innerWidth ) == 'number' )
			{
				//----------------------------------
				// Non IE
				//----------------------------------
				
				my_width  = window.innerWidth;
				my_height = window.innerHeight;
			}
			else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
			{
				//----------------------------------
				// IE 6+
				//----------------------------------
				
				my_width  = document.documentElement.clientWidth;
				my_height = document.documentElement.clientHeight;
			}
			else if ( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
			{
				//----------------------------------
				// Old IE
				//----------------------------------
				
				my_width  = document.body.clientWidth;
				my_height = document.body.clientHeight;
			}
			
//
// вычисляем положение скролл-бара
//
			
			var scrollY = 0;
	
			if ( document.documentElement && document.documentElement.scrollTop )
			{
				scrollY = document.documentElement.scrollTop;
			}
			else if ( document.body && document.body.scrollTop )
			{
				scrollY = document.body.scrollTop;
			}
			else if ( window.pageYOffset )
			{
				scrollY = window.pageYOffset;
			}
			else if ( window.scrollY )
			{
				scrollY = window.scrollY;
			}

//
// показываем индикатор
//
			
			var el = document.getElementById('ajax_indicator');
			
			
			el.style.position = 'absolute';
			el.style.display  = 'block';
			el.style.zIndex   = 99;
			
			// el.style.left = parseInt(my_width - 100)  + "px";
			el.style.left = "0px";
			el.style.top  = scrollY + "px";
			 
//		  SetVisible('ajax_indicator', 1);		 
		}
	
// ..............................................................
	
		function HideAjaxIndicator()
		{
			 SetVisible('ajax_indicator', 0);
		}
		
// ..............................................................