        var to_right=0;
        var to_left=0;
        var scroll_delay=25;
        var scroll_shift=15;
        
        $("div.scroll_right").hover(function(){
            to_right=1;
            scroll_delay=25;
            scroll_shift=15;
            scroll_right();
        },function(){
            to_right=0;
        });

        $("div.scroll_right2").hover(function(){
            to_right=1;
            scroll_delay=25;
            scroll_shift=50;
            scroll_right();
        },function(){
            to_right=0;
        });

        $("div.scroll_left").hover(function(){
            to_left=1;
            scroll_delay=25;
            scroll_shift=15;
            scroll_left();
        },function(){
            to_left=0;
        });
        
        $("div.scroll_left2").hover(function(){
            to_left=1;
            scroll_delay=25;
            scroll_shift=50;
            scroll_left();
        },function(){
            to_left=0;
        });
        

        h=$(document.body).attr("scrollHeight")-241-70-$("div.content_area").attr("clientHeight");
        if(h<0) h=0;
        h=h/2;
           $("div.content_area").css("margin-top", h + "px");

        $(window).resize( function() { 
        
            h=$(document.body).attr("scrollHeight")-241-70-$("div.content_area").attr("clientHeight");
            if(h<0) h=0;
            h=h/2;
               $("div.content_area").css("margin-top", h + "px");
        
        });        
        
function scroll_right()
{

    if(to_right==0) return;
    w=$("div.scroll_line").width();
    sw=document.body.scrollWidth;
    var pos=$("div.scroll_line").position();
    if(w-sw>0)
    {
        if(pos.left-scroll_shift >= -(w-sw))     
        {
            $("div.scroll_line").css("left", pos.left-scroll_shift);
            setTimeout("scroll_right()", scroll_delay);
        }
    }
}

function scroll_left()
{

    if(to_left==0) return;
    w=$("div.scroll_line").width();
    var pos=$("div.scroll_line").position();

    if(pos.left+scroll_shift <= 10)     
    {
    
        $("div.scroll_line").css("left", pos.left+scroll_shift);
        setTimeout("scroll_left()", scroll_delay);
    }
}

