
        
$(document).ready(function(){
    $('.content .table-style tr:even').css('background-color', '#f2f2f2'    );

    $('.content .table-style').each(function(){  if($(this).outerWidth() > 630) {$(this).wrap('<div style="overflow-x: auto; width: 630px;"/>');}});
    $('.content img').each(function(){
        if($(this).outerWidth() > 640) {
            $(this).attr('width', '640').removeAttr('height').css('cursor', 'pointer');
            $(this).click(function(){window.open($(this).attr('src'), 'bigpicture');
                });

        }
        
    });
    
    // Hover
    $('#menu-top .items li').hover(function(){
        $(this).toggleClass('hover');
        $('.subs',this).toggle();
    });
    
    // Placeholder
    $('input:text,textareaa').placeholder({blankSubmit:true});

    
    $('#slider-bottom ul').jcarousel({
        scroll: 4
    });
    
    $('#houses .house .item').each(function(n){
        $(this).css('z-index', (5-n));
        $('.inner',this).click(function(){
            window.location = $('.title a').attr('href');
        });
    });

    time = false;
    $('#houses .house .item').hover(
        function(){
            to = $('.inner',this);
            if (time) clearTimeout(time);
            time = setTimeout(function(){
                if ($.browser.msie) {
                    $('#houses .opacity').show();
                    to.show();
                    return;
                } 
                $('#houses .opacity').fadeIn('fast');
                to.fadeIn('fast'); 
            },100);
        },
        function(){
            if (time) clearTimeout(time);
            if ($.browser.msie) {
                $('#houses .opacity').hide();
                $('#houses .inner').hide();
                return;
            } 
            $('#houses .opacity').fadeOut('fast');
            $('#houses .inner').fadeOut('fast'); 
        }
    );



});
