function set_header_caption(val, url) {
    var html = val;
    if (String(url).length > 0) {
        html = html + " <a href=\"" + url + "\">Find Out More...</a>";
    }
    $("#header-caption").html(html);
}

$(document).ready(function(){
    //To switch directions up/down and left/right just place a "-" in front of the top/left attribute
    //Vertical Sliding
    //Full Caption Sliding (Hidden to Visible)

    $('.boxgrid.captionfull').hover(function() {
        $(".cover", this).stop().animate({
            top:'261px'
        }, {
            queue:false,
            duration:360
        });
    },
    function() {
        $(".cover", this).stop().animate({
            top:'311px'
        }, {
            queue:false,
            duration:360
        });
    });

    $('.header-boxgrid.header-captionfull').hover(function() {
        $(".header-cover", this).stop().animate({
            top:'110px'
        }, {
            queue:false,
            duration:360
        });
    },
    function() {
        $(".header-cover", this).stop().animate({
            top:'200px'
        }, {
            queue:false,
            duration:360
        });
    });
});
