var resizer = function() 
{
    var aspect = 720 / 405;
    var wh = $(window).height();
    var ww = $(window).width();
 
    if ((ww / wh) < aspect)
    {
        $("#bgVideo").height(wh);
        $("#bgVideo").width(Math.round(wh * aspect));
        $("#mpl").height(wh);
        $("#mpl").width(Math.round(wh * aspect));
        $("#inner").height(wh);
        $("#inner").width(Math.round(wh * aspect)-172);
        $("#content").height(wh-167);
        
    }
    else
    {
        $("#bgVideo").height(Math.round(ww / aspect));
        $("#bgVideo").width(ww);
        $("#mpl").height(Math.round(ww / aspect));
        $("#mpl").width(ww);
        $("#inner").height(Math.round(ww / aspect));
        $("#inner").width(ww-172);
        $("#content").height(Math.round(ww / aspect)-167);
    }
}
 
$(document).ready(resizer);
$(window).bind('resize', resizer);
