// oheight) { $(el).css({'height':oheight +'px','max-height':oheight +'px'}); } else if (cwidth 0) $('html, body').animate( { scrollTop: curContent.offset().top -60 }, 800); currentdiv = whichdiv; } function scrolltocurrent() { if (!currentdiv) {return} var curContent = $('#content').find("#"+currentdiv); if (curContent.length>0) $('html, body').animate({ scrollTop: curContent.offset().top }, 1); } //]]>