function loadFLV (name, src, preview,  width, height, autostart, title, description) {

	loadFile (name, src, preview, width, height, autostart);
	if (typeof title != "undefined" && '' != title) {
		document.getElementById('video_title').innerHTML = title;
	}
	if (typeof description != "undefined" && '' != description) {
		document.getElementById('video_description').innerHTML = description;
	}
}
function loadFile(name, src, preview, width, height, autoplay) {
		var volumetype = '';
        var _width = width;
        var _height = height;
        var _name = name;
		 var fo = new FlashObject("/cms/thirdparty/adFlvGenericPlayer.swf", _name, _width, _height, "7", "#000000", true);
        fo.addParam("quality", "high");
        fo.addParam("wmode", "transparent");
        fo.addParam("menu", "false");
		fo.addParam("allowfullscreen","true");

        fo.addVariable("file",src);

        if(preview != "" && preview != null) {
                fo.addVariable("image", preview);
        }
        if(autoplay == "true") {
                fo.addVariable("autostart","true");
        } else {
                fo.addVariable("autostart","false");
		}
        if(volumetype != "" && volumetype != null) {
                fo.addVariable("volumetype", volumetype);
        }
		fo.addVariable("starttxt","Click aici...");
		fo.addVariable("buffer","Se incarca...");
		fo.addVariable("backcolor","0xCCCCCC");
		fo.addVariable("frontcolor","0xFFFFFF");
		fo.addVariable("lightcolor","0xFFFFFF");
		fo.addVariable("contextmenulink","#");
		fo.addVariable("width",_width);
		fo.addVariable("height",_height);		
		fo.addVariable("contextmenuitem","Copyrighted by ELLE");

 		fo.write(_name);		
}

