/*********************************************************************************************************
								FIXED
*********************************************************************************************************/
	FIXED_NAME = "FIXED";
	FIXED_VERSION = "1.09.0";
	FIXED_AUTHOR = "Бутков Антон";
	FIXED_COMPANY = "AmorPro Development Studio";
	FIXED_CONTACT = "amorpro@mail.ru";
	FIXED_DESCRIPTION =	"Модуль эмулирует для всех браузеров css свойство " + 
						" position = 'fixed'.";
	Uses( typeof( FRAMEWORK_NAME ), 'Framework' );	//Модуль FRAMEWORK
	Uses( typeof( POSITION_NAME ), 'Position' );	//Модуль POSITION
	function Uses( type, moduleName )
	{
		if ( type == "undefined" ) 
		{
			window.alert( "Отсутствует модуль " + moduleName + ". Модуль " + FIXED_NAME + 
				" (" + FIXED_DESCRIPTION + ") " + " не работает." );			
		}
	}
	var _fixedElements = new Array( 20 );
	var _fixedElementsCount = 	0;	
	function SetFixed( id )
	{
		_fixedElements[ GetFixedElementsCount() ] = id;
		_fixedElementsCount ++;
		InitializeFixedElement( id );
	}	
	function InitializeFixedElement( id )
	{
		if (IS_IE)
		{
			SetAbsolutePosition(id)
			window.onscroll = MovePop;
			window.onerror=null;
		}
		 else 
		{
			Element( id ).style.position = "fixed";
		}
		Element( id ).style.zIndex = "1215750144";
	}
	var scrollX1 = 0, scrollY1 = 0;
	function MovePop() 
	{
		for(i=0; i < GetFixedElementsCount(); i++)
		{
			xScrollWidth = getBodyScrollLeft() - scrollX1;
			yScrollHeight = getBodyScrollTop() - scrollY1;
			newLeftPosition = GetLeft( GetFixedElement( i ) ) + xScrollWidth;
			newTopPosition = GetTop( GetFixedElement( i ) ) + yScrollHeight;
			SetPosition( GetFixedElement( i ), newLeftPosition, newTopPosition );
		}
		 scrollX1 = getBodyScrollLeft(); scrollY1 = getBodyScrollTop();
	}
	function GetFixedElement( index )
	{
		return _fixedElements[ index ];
	}
	function GetFixedElementsCount()
	{
		return _fixedElementsCount
	}
