function ShowVideo(objectUrl, objectWidth, objectHeight) 
{
    var divVideo = document.getElementById("video");
    divVideo.style.width = objectWidth + "px";
    divVideo.style.height = objectHeight + 20 + "px";
    var w = divVideo.style.width.replace("px", "");
    var h = divVideo.style.height.replace("px", "");
    divVideo.style.left = (document.body.clientWidth / 2) - (w / 2) + "px";
    divVideo.style.top = "40px";
    divVideo.style.display = "block";

    var fo = new FlashObject(objectUrl, "animationName", objectWidth, objectHeight, "8", "#FFFFFF");
    fo.addParam("allowScriptAccess", "sameDomain");
    fo.addParam("quality", "high");
    fo.addParam("scale", "noscale");
    fo.addParam("loop", "false");
    fo.write("vimeo-container");
    
    var modal = document.getElementById("modal");
    modal.style.display = "block";
}

function HideVideo() 
{
    var divVideo = document.getElementById("video");
    divVideo.style.display = "none";
    
    var modal = document.getElementById("modal");
    modal.style.display = "none";
}