Cufon.replace('h1');
Cufon.replace('h3');
Cufon.replace('h4', {
    hover:true
});
Cufon.replace('.address_header');

$(document).ready(function(){
    $('#search_input').focus(function(){
        $(this).val('');
    });

    $('#search_link').click(function(){
        $('#search').submit();

        return false;
    });

    if ($("#header_banner").length > 0){
        $("#header_banner").scrollable({ circular: true, speed: 1500 }).autoscroll({ autoplay: true , interval: 5000}).click(function() {
            $(this).data("scrollable").next();
        });
    }


    l_iContentLeftHeight   = $('#content_left_top').height() + $('#content_left_bottom').height() + 115;

    l_iContentLeftTopHeight= $('#content_right').height() - $('#content_left_bottom').height();

    if ($('#content_left_top').height() < 313) {
        $('#content_left_top').css('height','313px');
    }
    if ( $('#content_left_top').height() < l_iContentLeftTopHeight ){
        $('#content_left_top').css('height',l_iContentLeftTopHeight +'px');
    }

    $('#content_left').css('height',l_iContentLeftHeight + 'px');

    if ( $('.home').length != 0 ) {
        $('#content').css('z-index',1);
    }

    l_iCopyrightPos         = $('#header').height() + $('#content').height() + 43;
    $(' .copyright').css('top',l_iCopyrightPos + 'px');

    

});
