function init_productrangehovershow() { var div = document.getElementById('productrangehovershow'); if(div) { var subdiv = div.childNodes[0]; var tw = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -407, 0, .5, 'px'); div.startf = function () { subdiv.style.top = '-407px'; div.style.overflow = 'hidden'; div.style.display = 'block'; tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; } tw.continueTo(0, .5); } div.endf = function () { div.style.overflow = 'hidden'; tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; } tw.continueTo(-407, .5); } } } function init_productrangemenuhovershow() { var div = document.getElementById('productrangemenuhovershow'); if(div) { var subdiv = div.childNodes[0]; var tw = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -448, 0, .5, 'px'); div.startf = function () { subdiv.style.top = '-448px'; div.style.overflow = 'hidden'; div.style.display = 'block'; tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; } tw.continueTo(0, .5); } div.endf = function () { div.style.overflow = 'hidden'; tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; } tw.continueTo(-448, .5); } } } function init_tweens() { init_productrangemenuhovershow(); init_productrangehovershow(); }