var _scrollOffset = 0; var _scrollDelay = 20; var _scrollLeap = 200; var _scrollStep = 20; var blocks = null; window.onload = function () { buf = document.getElementById('left'); buf.onclick = function () { _scrollOffset = _scrollLeap; _driveLeft(); }; if (buf.captureEvents) buf.captureEvents(Event.CLICK); buf = document.getElementById('right'); buf.onclick = function () { _scrollOffset = _scrollLeap; _driveRight(); }; if (buf.captureEvents) buf.captureEvents(Event.CLICK); if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false); window.onmousewheel = document.onmousewheel = wheel; blocks = [document.getElementById('main'), document.getElementById('construction'), document.getElementById('shape-color'), document.getElementById('features'), document.getElementById('idea'), document.getElementById('signs'), document.getElementById('profile'), document.getElementById('contacts'), document.getElementById('tail') ]; if (window.innerHeight) document.lastChild.style.height = (window.innerHeight-16)+'px'; for (i=0; i2)?(_arrowsPosition+(_arrowsFinalPosition-_arrowsPosition)/10):_arrowsFinalPosition; arrows.style.left = _arrowsPosition+'px'; if (_arrowsPosition<_arrowsFinalPosition) setTimeout('_slideArrows()', _scrollDelay); else if (arrows.style.setExpression) arrows.style.setExpression('left', 'eval(document.documentElement.scrollLeft + '+_arrowsFinalPosition+') + "px"'); else { arrows.style.position = 'fixed'; arrows.style.left = '750px'; /*if (navigator.userAgent.indexOf("Opera") <= 0) arrows.style.bottom = '124px';*/ } } function _driveLeft () { if (getScrollXY()[0]==0 || _scrollOffset<=0) return false; _scrollOffset = (_scrollOffset>_scrollStep*2)? _scrollOffset-_scrollStep:_scrollStep/4; window.scrollBy(-1*_scrollOffset, 0); var flag = true; for (i=0; i_scrollStep*2)? _scrollOffset-_scrollStep:_scrollStep/4; window.scrollBy(_scrollOffset, 0); var flag = true; for (i=0; i document.body.offsetHeight){ /* // all but Explorer Mac */ yWithScroll = document.body.scrollHeight; xWithScroll = document.body.scrollWidth; } else { /* // works in Explorer 6 Strict, Mozilla (not FF) and Safari */ yWithScroll = document.body.offsetHeight; xWithScroll = document.body.offsetWidth; } arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll); /* //alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll ); */ return arrayPageSizeWithScroll; }