$(document).ready
(
    function()
    {    
        
        if( $(window).width() <= 926 )
        {
            //$('.center').css( 'left', '0px' );
            //$('.center').css( 'margin-left', '0px' );
            
        }
        else
        {
            //$('.center').css( 'left', '50%' );
            //$('.center').css( 'margin-left', '-493px' );
        }
    }
); 
$(document).ready
(
    function()
    {    
        if($('.text_block').height() > 80)
        {
            $('.arrows').css('display', 'block');
            $('.static_text').css('left', '-11px');
        }
        $('.text_block').css('height', '80px');
        
        var prev_src = "";
        
        $(".scroll_button").hover
        (
            function()
            {
                prev_src = $(this).children('img').attr('src');
                prev_src = prev_src.substr( 0, prev_src.lastIndexOf('.') );
                $(this).children('img').attr('src', prev_src + '_hover.png');
            },
            function()
            {
                $(this).children('img').attr('src', prev_src + '.png');
            }
        );
        $(".gallery_zoom").hover
        (
            function()
            {
                prev_src = $(this).children('img').attr('src');
                prev_src = prev_src.substr( 0, prev_src.lastIndexOf('.') );
                $(this).children('img').attr('src', prev_src + '_hover.png');
            },
            function()
            {
                $(this).children('img').attr('src', prev_src + '.png');
            }
        );
    }
); 

var handle;
function ScrollDown()
{
    
        handle = setInterval(
            function()
            {
                 $('.text_block').scrollTo('+=10px', {axis:'y'});
            },
            100);
    
}
function ScrollUp()
{
    
        handle = setInterval(
            function()
            {
                 $('.text_block').scrollTo('-=10px', {axis:'y'});
            },
            100);
    
}    
function ScrollStop()
{
     clearInterval(handle);
}        
