
function scrollDiv() {
			//Start Pane
			var pane = $('#ISI');
			pane.jScrollPane(
				{
					showArrows: true,
					verticalDragMinHeight: 25
				});
			var api = pane.data('jsp');

			if (document.getElementById("toControlStop")) {
				var hoverElement1 = document.getElementById('toControlStop');

				if (window.addEventListener) hoverElement1.addEventListener('DOMMouseScroll', stopScroll, false);
				hoverElement1.onmousewheel = stopScroll;
			}

			if ($.browser.msie && $.browser.version == "6.0")
				$('.jspPane').bgiframe();

			//Stop Animation when the scoller is clicked
			$('.jspTrack, .jspArrow').click(function() {
				stopScroll();
			});
			
			setTimeout("autoScroll()",1000);
}

function autoScroll() {
		var isiEndPos = $('.isiEnd').position(); 
		var isiEndPosFinal = isiEndPos.top - 98;

		$('#toControlStop').animate({
            		top: '-' + isiEndPosFinal + 'px'
        		}, {
            		duration: 150000,
            		complete: function() {
                		scrollToTop();
            		}
        	});


		$('.jspDrag').animate({
            		top: '69px'
        		}, {
            		duration: 150000,
            		complete: function() {
                		
            		}
        	});	
}

function stopScroll(event) {
    $("div").stop();
}

function scrollToTop()
{

		$('#toControlStop, .jspDrag').animate({
            		top: '0px'
        		}, {
            		duration: 5000,
            		complete: function() {
                		
            		}
        	});

}
