if ( document.getElementById ) _puwID_1133265714218_FloatingElement_ = document.getElementById ( "_puwID_1133265714218_FloatingWindowTable_" ); else _puwID_1133265714218_FloatingElement_ = document.all ["_puwID_1133265714218_FloatingWindowTable_"]; var _puwID_1133265714218_DTS_ = undefined; var _puwID_1133265714218_Closed_ = false; function _puwID_1133265714218_MinimizeFloatingWindow_ ( ) { if ( document.getElementById ) _content_ = document.getElementById ( "_puwID_1133265714218_FloatingWindowTableMainContent_" ); else _content_ = document.all ["_puwID_1133265714218_FloatingWindowTableMainContent_"]; if ( _content_.style.display == "none" ) { _content_.style.display = ""; _puwID_1133265714218_FloatingElement_.style.height = "319px"; } else { _content_.style.display = "none"; _puwID_1133265714218_FloatingElement_.style.height = "20px"; } } function _puwID_1133265714218_CloseFloatingWindow_ ( ) { _puwID_1133265714218_FloatingElement_.style.display = "none"; _puwID_1133265714218_Closed_ = true; } var _puwID_1133265714218_trgx_, _puwID_1133265714218_trgy_; var _puwID_1133265714218_targetx_, _puwID_1133265714218_targety_; function _puwID_1133265714218_ReturnAdjustedCoordinateX_ ( ) { return ( ( window.pageXOffset ) ? window.pageXOffset : document.body.scrollLeft ) + _puwID_1133265714218_targetx_; } function _puwID_1133265714218_ReturnAdjustedCoordinateY_ ( ) { return ( ( window.pageYOffset ) ? window.pageYOffset : document.body.scrollTop ) + _puwID_1133265714218_targety_; } function _puwID_1133265714218_KeepFloatingWindowPosition_ ( ) { var _Delta_ = 500; _puwID_1133265714218_FloatingElement_.style.top = _puwID_1133265714218_ReturnAdjustedCoordinateY_ ( ); _puwID_1133265714218_FloatingElement_.style.left = _puwID_1133265714218_ReturnAdjustedCoordinateX_ ( ); setTimeout ( "_puwID_1133265714218_KeepFloatingWindowPosition_ ( );", _Delta_ ); } function _puwID_1133265714218_FloatingSlideIn_ ( _bSlideIn_ ) { if ( _puwID_1133265714218_targetx_ != _puwID_1133265714218_trgx_ || _puwID_1133265714218_targety_ != _puwID_1133265714218_trgy_ ) { if ( _puwID_1133265714218_targetx_ != _puwID_1133265714218_trgx_ ) if ( Math.abs ( _puwID_1133265714218_targetx_ - _puwID_1133265714218_trgx_ ) <= _puwID_1133265714218_dltmv_ ) _puwID_1133265714218_targetx_ = _puwID_1133265714218_trgx_; else if ( _puwID_1133265714218_targetx_ < _puwID_1133265714218_trgx_ ) _puwID_1133265714218_targetx_ += _puwID_1133265714218_dltmv_; else _puwID_1133265714218_targetx_ -= _puwID_1133265714218_dltmv_; if ( _puwID_1133265714218_targety_ != _puwID_1133265714218_trgy_ ) if ( Math.abs ( _puwID_1133265714218_targety_ - _puwID_1133265714218_trgy_ ) <= _puwID_1133265714218_dltmv_ ) _puwID_1133265714218_targety_ = _puwID_1133265714218_trgy_; else if ( _puwID_1133265714218_targety_ < _puwID_1133265714218_trgy_ ) _puwID_1133265714218_targety_ += _puwID_1133265714218_dltmv_; else _puwID_1133265714218_targety_ -= _puwID_1133265714218_dltmv_; _puwID_1133265714218_FloatingElement_.style.top = _puwID_1133265714218_ReturnAdjustedCoordinateY_ ( ); _puwID_1133265714218_FloatingElement_.style.left = _puwID_1133265714218_ReturnAdjustedCoordinateX_ ( ); setTimeout ( "_puwID_1133265714218_FloatingSlideIn_ ( " + _bSlideIn_ + " );", 20 ); } else if ( _bSlideIn_ ) _puwID_1133265714218_KeepFloatingWindowPosition_ ( ); else _puwID_1133265714218_FloatingElement_.style.display = "none"; } //управление направлением движения function _puwID_1133265714218_StartUp_ ( _tX_, _tY_ ) { _puwID_1133265714218_trgx_ = _tX_; _puwID_1133265714218_trgy_ = _tY_; _puwID_1133265714218_targetx_ = _tX_; _puwID_1133265714218_targety_ = _tY_; var _dltx_ = 0, _dlty_ = 0; //_dltx_ = -_tX_ -363; _dlty_ = ( ( window.innerHeight ) ? window.innerHeight : document.body.clientHeight ) - _tY_; //============================================================================================================================== //if ( _dltx_ != 0 && _dlty_ != 0 ) //if ( Math.abs ( _dltx_ ) < Math.abs ( _dlty_ ) ) // _dlty_ = _dlty_ / Math.abs ( _dlty_ ) * Math.abs ( _dltx_ ); //else // _dltx_ = _dltx_ / Math.abs ( _dltx_ ) * Math.abs ( _dlty_ ); _puwID_1133265714218_targetx_ += _dltx_; _puwID_1133265714218_targety_ += _dlty_; //============================================================================================================================== _puwID_1133265714218_FloatingElement_.style.top = _puwID_1133265714218_ReturnAdjustedCoordinateY_ ( ); _puwID_1133265714218_FloatingElement_.style.left = _puwID_1133265714218_ReturnAdjustedCoordinateX_ ( ); _puwID_1133265714218_FloatingElement_.style.display = ""; _puwID_1133265714218_FloatingSlideIn_ ( true ); } function _puwID_1133265714218_EndUp_ ( ) { if ( _puwID_1133265714218_Closed_ ) return; _puwID_1133265714218_dltmv_ = undefined; var _dltx_ = 0, _dlty_ = 0; var _tX_ = _puwID_1133265714218_trgx_, _tY_ = _puwID_1133265714218_trgy_; _dltx_ = -_tX_ -363; _dlty_ = ( ( window.innerHeight ) ? window.innerHeight : document.body.clientHeight ) - _tY_; if ( _dltx_ != 0 && _dlty_ != 0 ) if ( Math.abs ( _dltx_ ) < Math.abs ( _dlty_ ) ) _dlty_ = _dlty_ / Math.abs ( _dlty_ ) * Math.abs ( _dltx_ ); else _dltx_ = _dltx_ / Math.abs ( _dltx_ ) * Math.abs ( _dlty_ ); _puwID_1133265714218_trgx_ += _dltx_; _puwID_1133265714218_trgy_ += _dlty_; _puwID_1133265714218_FloatingElement_.style.top = _puwID_1133265714218_ReturnAdjustedCoordinateY_ ( ); _puwID_1133265714218_FloatingElement_.style.left = _puwID_1133265714218_ReturnAdjustedCoordinateX_ ( ); _puwID_1133265714218_FloatingElement_.style.display = ""; _puwID_1133265714218_FloatingSlideIn_ ( false ); } //speed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! var _puwID_1133265714218_dltmv_ = 30; //coordinate!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //document.body.clientWidth","document.body.clientHeight setTimeout ( "_puwID_1133265714218_StartUp_ ( document.body.clientHeight/2+150, document.body.clientWidth/2-400, 8.485362749257531 );", 1500 ); var _puwID_1133265714218_oldx_, _puwID_1133265714218_oldy_; function _puwID_1133265714218_FloatingWindowDragMove_ ( _e_ ) { _newx_ = ( document.all ) ? event.clientX : _e_.clientX; _newy_ = ( document.all ) ? event.clientY : _e_.clientY; _puwID_1133265714218_targetx_ += _newx_ - _puwID_1133265714218_oldx_; _puwID_1133265714218_targety_ += _newy_ - _puwID_1133265714218_oldy_; _puwID_1133265714218_oldx_ = _newx_; _puwID_1133265714218_oldy_ = _newy_; _puwID_1133265714218_FloatingElement_.style.top = _puwID_1133265714218_ReturnAdjustedCoordinateY_ ( ); _puwID_1133265714218_FloatingElement_.style.left = _puwID_1133265714218_ReturnAdjustedCoordinateX_ ( ); } function _puwID_1133265714218_DoNothing_ ( ) { } function _puwID_1133265714218_EndFloatingWindowDrag_ ( ) { document.onmousemove = _puwID_1133265714218_DoNothing_; document.onmouseup = _puwID_1133265714218_DoNothing_; } function _puwID_1133265714218_StartFloatingWindowDrag_ ( _e_ ) { _puwID_1133265714218_oldx_ = ( document.all ) ? event.clientX : _e_.clientX; _puwID_1133265714218_oldy_ = ( document.all ) ? event.clientY : _e_.clientY; document.onmousemove = _puwID_1133265714218_FloatingWindowDragMove_; document.onmouseup = _puwID_1133265714218_EndFloatingWindowDrag_; } _puwID_1133265714218_FloatingElement_.onmousedown = _puwID_1133265714218_StartFloatingWindowDrag_;