/**************************** Video Player ***********/
function selectVideo(_file, _still, _id, _width, _height, _autoplay, _player, _skin){  

    // updateYouTubeLink();
    if(typeof(_autoplay)=="undefined")   _autoplay=true;
    if(typeof(_player)=="undefined")   _player="/skins/player.swf";
    if(typeof(_skin)=="undefined")   _skin="/skins/stylish_slim.swf";

    var flashvars = {
        file: _file
        , type: "video"
        , autostart: _autoplay
        , controlbar: "over"
        , skin: _skin
        , icons: "false"
        , image: _still
        , stretching: "fill"
    }
    var params = {
        allowfullscreen:"true",
        allowscriptaccess:"always",
        wmode:"transparent"
    }
    
    var attributes = {
    	id: "videofeed"
    }
	
	// Create the holder for the video
	$(".video").html('<div id="player"></div>');

	// Embed the video
    swfobject.embedSWF( _player, _id,  _width, _height, "9.0.115", false, flashvars, params, attributes);
}