$(document).ready(function() {

    
    $("#close-video-topspin").click(
            function(){
                closeVideoTopspin();
            });

    $("#close-download-topspin").click(
            function(){
                closeDownloadTopspin();
            });

    $("body").css("height",$("body").height()-15); //scrollbar fix for firefix
    

})

function showVideoTopspin()
{
    $("#video-topspin").animate( { width: '560px',height: '315px' }, { queue: false, duration: 400 })
            .fadeOut(400,function(){
        $("#topspin-video-content").show();
    });
}

function showDownloadTopspin()
{
    $("#free-download-topspin").animate( { width: '400px',height: '300px' }, { queue: false, duration: 400 })
            .fadeOut(400,function(){
        $("#topspin-download-content").show();
    });
}

function closeVideoTopspin()
{
    $("#topspin-video-content").hide();
    $("#video-topspin").animate( { width: '110px',height: '77px' }, { queue: false, duration: 400 })
            .fadeIn(400,function(){

    });
}

function closeDownloadTopspin()
{
    $("#topspin-download-content").hide();
    $("#free-download-topspin").animate( { width: '110px',height: '70px' }, { queue: false, duration: 400 })
            .fadeIn(400,function(){

    });
}

