function cs_floatVideoLoad()
{
    var videoLeft = $(window).width()-videoWidth,
        videoTop = $(window).height()-videoHeight;
    
    $('body').prepend(
        '<p id="cs_float_video"\n'
        + 'style="left: '+videoLeft+'px; top: '+videoTop+'px; '
            + '//position: absolute; top: expression('+videoTop+' + document.getElementsByTagName(\'body\')[0].scrollTop)">\n'
        + '<object width="'+videoWidth+'" height="'+videoHeight+'">\n'
        + '<param name="movie" value="' + videoURL + '">\n'
        + '<param name="wmode" value="transparent">\n'
        + (
            typeof(videoFlashVars) != 'undefined' && videoFlashVars
            ? '<param name="flashvars" value="' + videoFlashVars + '">\n'
            : ''
        )
        + '<param name="allowscriptaccess" value="always" />\n'
        + '<embed src="' + videoURL + '"\n'
        + 'width="'+videoWidth+'" height="'+videoHeight+'" wmode="transparent"'
        +  (
            typeof(videoFlashVars) != 'undefined' && videoFlashVars
            ? ' flashvars="' + videoFlashVars + '"'
            : ''
        )
        + '>\n'
        + '</embed>\n'
        + '</object>\n'
        + '</p>\n');
}

function hideDiv() {
    $('#cs_float_video').hide();
}


$(document).ready(function() {
    cs_floatVideoLoad();
});

