function VideoPlayer() {    this.pathListaVideos = "";    this.baseUrl = "";    this.fileName = "";    this.title = "";    this.description = "";    this.views = null;    this.width = 450;    this.height = 370;    this.setFileName = function(_fileName) {        if (getExtensao(_fileName) == "") {            _fileName = _fileName + ".flv";        }        this.fileName = _fileName;    }    this.setTitle = function(_title) {        this.title = _title;    }    this.setDescription = function(_desc) {        this.description = _desc;    }    this.setWidth = function(_width) {        this.width = _width;    }    this.setHeight = function(_height) {        this.height = _height;    }    this.setViews = function(_views) {        this.views = _views;    }    this.preencheListaVideos = function() {        if (this.pathListaVideos) {            //callGetScript(this.pathListaVideos, this.doPreencheListaVideos);        }    }    this.doPreencheListaVideos = function(type, data, error) {        try {            eval(data);        }        catch(e) {            alert("Erro ao interpretar lista de vídeos.");        }        finally {            //o vetor de vídeos é recuperado através de eval(data)            var numVideos = videos.length;            if (numVideos > 0) {                objListaVideos = document.getElementById("listaVideos");                objListaVideos.style.visibility = "visible";                for (n=0; n < numVideos; n++) {                    var op = document.createElement("option");                    op.value = videos[n].fileName;                    op.innerHTML = videos[n].descricao;                    objListaVideos.appendChild(op);                }            }        }    }    this.exibeVideo = function() {                flashObj = new SWFObject("./moviePlayer.swf", "movie", this.width, this.height, "8");        flashObj.addParam("base", "./");        flashObj.addVariable("baseUrl", this.baseUrl);	          flashObj.addVariable("fileName", this.fileName);	        flashObj.write('divMovie');           }    this.trocaVideo = function(video) {        var objListaVideos = document.getElementById("listaVideos");        var selIndex = objListaVideos.selectedIndex;                this.setFileName(objListaVideos.options[selIndex].value);               var paginaVideo = "./classes/videoPlayer/videoPlayer.html";        paginaVideo = paginaVideo + "?baseUrl=" + this.baseUrl + "&fileName=" + this.fileName + "&pathListaVideos=" + this.pathListaVideos;        loadContent("divAuxiliar", paginaVideo);    }}function openFull() {    var queryString = "?baseUrl=" + window.videoPlayer.baseUrl + "&fileName=" + window.videoPlayer.fileName + "&title=" + window.videoPlayer.title + "&fs=1";    var fs = window.open("./videoTelaCheia.html" + queryString, "VideoTelaCheia", "toolbar=no,width=" + screen.availWidth  + ",height=" + screen.availHeight + ",top=0,left=0,status=no,resizable=yes,fullscreen=yes,scrollbars=no");    fs.focus();}
