$(window).load( function() {

    var newFunction= function() {
        var page = $('#page');
        var bio  = $('.bio');
        var paintings = $('.paintings');
        var illustrations = $('.illustrations');
        var contact = $('.contact');
        var links   = $('.links');

        page.empty();
        page.append($('#hidden').children());

        worksInnerOver = false;
        bio.css('background-image', 'url(/img/brushes/bio-bw.gif)');
        bio.css('height', '130px');
        bio.mouseover(
            function() {
                $(this).css('background-image', 'url(/img/brushes/bio.gif)');
            }
        );
        bio.mouseout(
            function() {
                $(this).css('background-image', 'url(/img/brushes/bio-bw.gif)');
            }
        );

        paintings.css('background-image', 'url(/img/brushes/oil-bw.gif)');
        paintings.css('height', '87px');
        paintings.mouseover(
            function() {
                $(this).css('background-image', 'url(/img/brushes/oil.gif)');
            }
        );
        paintings.mouseout(
            function() {
                $(this).css('background-image', 'url(/img/brushes/oil-bw.gif)');
            }
        );

        illustrations.css('background-image', 'url(/img/brushes/illustrations-bw.gif)');
        illustrations.css('height', '83px');
        illustrations.mouseover(
            function() {
                $(this).css('background-image', 'url(/img/brushes/illustrations.gif)');
            }
        );
        illustrations.mouseout(
            function() {
                $(this).css('background-image', 'url(/img/brushes/illustrations-bw.gif)');
            }
        );

        bio.click(function() { document.location.href='/bio'; });
        paintings.click(function() { document.location.href='/paintings'; });
        illustrations.click(function() { document.location.href='/illustrations'; });
    };
    setTimeout(newFunction,1000);
});

