function sleep(milliSeconds) { var startTime = new Date().getTime(); while (new Date().getTime() < startTime + milliSeconds); } document._bct = []; function _gdd() { var _NH = (document.documentElement || document.body.parentNode || document.body).scrollTop; if ((_NH == 0) && (document.body.parentNode || document.body)) { var _NH = (document.body.parentNode || document.body).scrollTop; } if ((_NH == 0) && (document.body)) { var _NH = document.body.scrollTop; } var _hfz0 = document.getElementById('NAVBAR0'); var _hfz1 = document.getElementById('NAVBAR1'); if (_hfz1 != undefined) { _hfz1.style.width = parseInt(_hfz0.clientWidth) + 'px'; if (parseInt(_hfz0.offsetTop) > _NH) { _hfz1.style.top = parseInt(_hfz0.offsetTop) + 'px'; _hfz1.className = 'NORMAL'; _hfz1.style.position = "relative"; _hfz1.style.top = 0; _hfz1.style.height = parseInt(_hfz0.clientHeight) + 'px'; } else { _hfz1.style.top = _NH + 'px'; _hfz1.className = 'REDUITE'; _hfz1.style.height = '44px'; _hfz1.style.position = "fixed"; _hfz1.style.top = 0; } } for(var _h in document._bct) { if (typeof(document._bct[_h]) === 'function') document._bct[_h](_NH); } } document._Eu = (window.ActiveXObject); if (document._Eu) { document._qk = function(_bi) { try{ _bi.returnValue = false; _bi.cancelBubble = true; } catch(_dr) { } return false; }; } else { document._qk = function(_bi) { if (_bi.preventDefault) { _bi.preventDefault(); } _bi.returnValue = false; if (_bi.stopPropagation) { _bi.stopPropagation(); } _bi.cancelBubble = true; return false; }; } function _fN0(_v) { var _bq = parseInt(_v); if (isNaN(_bq)) return 0; return _bq; } function _eT(_p, _oj) { if (_oj == undefined) _oj = document.body; var _es = 0; var _cpb = []; var _Ox = _oj; while(_Ox != undefined) { _Ox = _Ox.offsetParent; if (_Ox != undefined) _cpb.push(_Ox); } while ((_p != _oj) && (_p != undefined) && (_p != document.body)) { _es += _fN0(_p.offsetTop); var _eu = ((_p.offsetParent==null)||(_p.offsetParent==undefined)?document.body:_p.offsetParent); while ((_p != null) && (_p != undefined) && (_p != _eu)) { _es -= _fN0(_p.scrollTop); _p = _p.parentNode; } for(var _h in _cpb) { if (_p == _cpb[_h]) { return _es - _eT(_oj, _p); } } } return _es; }; function _hfA(_hf_, _hfB) { var _ni = window.scrollY - _eT(_hf_) + 30; _hga = (_hf_.className.indexOf(' SHOW') == -1) var _hfC = ((_hfB != true) || (_hf_.className.indexOf(' SHOW') == -1)) for(var _h in _hf_.parentNode.children) { var _p = _hf_.parentNode.children[_h]; if ((_p != undefined) && (_p.className != undefined)) { _p.className = _p.className.split(' HIDE').join('').split(' SHOW').join('') + ' HIDE'; } } if (_hfC) _hf_.className = _hf_.className.split(' HIDE').join('').split(' SHOW').join('') + ' SHOW'; if ((_hfB == true) && (_hf_.className.indexOf(' SHOW') == -1)) { document._hfD = _hf_; document._hfE = -20; setTimeout(_bNn, 1); } if (_hga == true) { document._hfD = _hf_; document._hfE = _ni; setTimeout(_bNn, 1); } } function _bNn() { var _hF = _eT(document._hfD); window.scroll(0, Math.max(0,(_hF - 30 + document._hfE))); } function _hfy(_hf_) { var _td = _hf_.className.indexOf('HIDE'); _hf_.className = _hf_.className.split('HIDE').join('').split('SHOW').join('') + (_td == -1?' HIDE':' SHOW'); }