var scrollSize = 50;var scrollY = 0;var clipHeight = 450;var paneHeight = clipHeight;var imageCount = 23;var maxHeight = imageCount * clipHeight;var scrolling = null;var currentPainting = 0;function scrollTo(o,y){    var sp = document.getElementById(o);    scrollY = y;    sp.style.top = scrollY + "px";        if(y < 0){        sp.style.height = paneHeight + "px";        paneHeight += scrollSize * 2;            } else {        paneHeight = clipHeight;        clearInterval(scrolling);    }}function scrollDown(o){      scrolling = setInterval('scrollTo("' + o + '",scrollY - scrollSize)',100);}function scrollUp(o){    if(scrollY + scrollSize > 0) {        scrollTo(o,0);    } else {        scrolling = setInterval('scrollTo("' + o + '",scrollY + scrollSize)',100);    }}function stopScrolling(){    if(scrolling) clearInterval(scrolling);}function restart(o) {	var sp = document.getElementById(o);	if(!scrolling) {		currentPainting = 0;		scrollY = 0;		sp.style.top = "0px";		document.getElementById('more').style.visibility = 'visible';	}}function animateScrollDown(o){        if(!scrolling && (currentPainting < imageCount - 1)) {        currentPainting++;        var count = 0;        var max = paneHeight + clipHeight;        for(var i=paneHeight; i<max; i+= scrollSize){            scrolling = setTimeout('scrollTo("' + o + '",scrollY - scrollSize)',count++ *100);        }        setTimeout('scrolling = false',count * 100);    }        if(currentPainting == imageCount - 1) {    	document.getElementById('more').style.visibility = 'hidden';	}}function animateScrollUp(o){        if(!scrolling && currentPainting != 0) {		currentPainting--;		document.getElementById('more').style.visibility = 'visible';        var count = 0;        var max = paneHeight + clipHeight;        for(var i=paneHeight; i<max; i+= scrollSize){            scrolling = setTimeout('scrollTo("' + o + '",scrollY + scrollSize)',count++ *100);        }        setTimeout('scrolling = false',count * 100);    }}
