  
    function slidingBox(boxId)
    {
    	this.boxId = boxId;
    	this.myHeight = $(boxId).outerHeight();
        this.myParentHeight = $(boxId).parent().outerHeight();
        this.currentPosition = parseFloat($(boxId).css('top')); // trim px

        this.slide = function(){
        	if (isNaN(this.currentPosition)) {
        		this.currentPosition = 0;
        		$(this.boxId).css('top', '0px');
        	}
        	this.currentPosition -= 1;
        	if (this.currentPosition + this.myHeight < 0) {
                this.currentPosition = this.myParentHeight;
            }
        	
            $(this.boxId).css('top', this.currentPosition + 'px');
        };
    }
    
    function scroll()
	{
		box1.slide();
	}
    
    var isScrolling = false;
    var intervalPointer = null;
    var box1 = null;
    
    function startScroll(fn, timeout)
    {
    	if (!isScrolling) {
    		intervalPointer = setInterval('scroll()', 175);
    		isScrolling = true;
    	}
    }
    
    function stopScroll() 
    {
    	if (isScrolling) {
    		clearInterval(intervalPointer);
    		isScrolling = false;
    	}
    }

    
    $('document').ready(function(){
    	
    	var parent = $('.linksContent').parent();
		box1 = new slidingBox('.linksContent');
    	
    	startScroll();

    	$('#linksContent').parent()
    	   .bind('mouseover', function(){
    		   stopScroll();
        	   })
    	   .bind('mouseout', function(){
    		   interval = startScroll();
        	   });
    });