function previewOn(){

    $(".thumb-display").css('margin-top', 0);
    $(".thumb-display").animate({
        marginTop: -($(".thumb-display").outerHeight())
    }, 500, "linear", function(){
        $(".content").animate({
            marginTop: "0"
        }, 500, "linear");
    });
    return false;
}

function previewOff(){
    $(".content").css('margin-top', 0);
    
    $(".content").animate({
        marginTop: -($(".content").outerHeight())
    }, 500, "linear", function(){
        $(".thumb-display").animate({
        
            marginTop: "0"
        }, 500, "linear");
    });
    return false;
    
}

$(document).ready(function(){

	$('.waja').text('info'+'@'+'connoisseurcontemporary.com');
    var getWhite = function(){
    
        $('body').addClass('white');
        $('body').removeClass('black');
        $('#logo').attr('src', './images/logo-white.gif');
    }
    var getBlack = function(){
    
        $('body').addClass('black');
        $('body').removeClass('white');
        $('#logo').attr('src', './images/logo-black.gif');
    }
    if ($.cookie('theme') == 'black') {
        getBlack();
        
    }
    else {
        getWhite();
        
    }
    
    
    $('#find-us').toggle(function(){
        $("#header-stripe").animate({
        
            marginTop: "0"
        }, 500, "linear");
        
        
        $(this).text("close");
        
    }, function(){
    
    
        $("#header-stripe").animate({
        
            marginTop: "-500px"
        }, 500, "linear");

        $(this).text("find us");
    });
    
    
    
    //$('#selectbox').linkselect();
    
    $('#black-cube').click(function(){
        getBlack();
        $.cookie('theme', 'black');
    });
    
    
    $('#white-cube').click(function(){
        getWhite();
        $.cookie('theme', 'white');
        
    });
    
});

