segunda-feira, 22 de agosto de 2011

sexta-feira, 19 de agosto de 2011

sexta-feira, 12 de agosto de 2011

quinta-feira, 11 de agosto de 2011

//Versao 4.3.1 //RegistradorGMCEmbed try{ RegistradorGMCEmbed.existo(); } catch(e) { var id = 0; var embeds = []; RegistradorGMCEmbed = { existo:function() {}, registrar:function(embed) { embeds[++id] = embed; return id; }, obter:function(idEmbed) { return embeds[idEmbed]; } } } //GMCEmbed ------------------- function GMCEmbed(config) { this.originalResizeFunction; this.originalScrollFunction; this.resizeAndPositioningShadowTimer; this.config = config; this.config.idEmbed = RegistradorGMCEmbed.registrar(this); if((this.config.novoPlayer == undefined) || (this.config.novoPlayer == null) || (this.config.novoPlayer === "")) { this.config.novoPlayer=true; } if((this.config.hostNovoPlayer == undefined) || (this.config.hostNovoPlayer == null) || (this.config.hostNovoPlayer === "")) { delete this.config.environment; this.config.hostNovoPlayer="s.videos.globo.com"; } this.id = "globovideos_embed_" + this.config.idEmbed; if( !this.config.pp && this.config.embedInterno ) { this.config.pp = this.config.embedInterno; } this.config.escondeBarraInferior = this.config.escondeTrocaBanda; if (this.config.novoPlayer) { this.tamanhos = { P: { largura: 186, altura: 138, barraInferior: 0 }, I: { largura: 288, altura: 216, barraInferior: 0 }, N: { largura: 320, altura: 240, barraInferior: 0 }, L: { largura: 480, altura: 360, barraInferior: 0 }, X: { largura: 640, altura: 360, barraInferior: 0 }, PaginaPlayer : { largura: 480, altura: 360, barraInferior: 0 } }; } else { this.tamanhos = { P: { largura: 186, altura: 204, barraInferior: 34 }, I: { largura: 288, altura: 268, barraInferior: 20 }, N: { largura: 320, altura: 288, barraInferior: 16 }, L: { largura: 480, altura: 409, barraInferior: 17 }, X: { largura: 640, altura: 360, barraInferior: 0 }, PaginaPlayer : { largura: 480, altura: 439, barraInferior: 0 } }; } this.verificarEventosDefault(); this.observarEventos(); if (this.config.novoPlayer) { this.setConfigParaNovoPlayer(); } } GMCEmbed.prototype = { setConfigParaNovoPlayer:function() { if (this.config.banda == 'P') this.deprecated('O tamanho "P" nao e suportado pelo Player 2.0, use um dos seguintes tamanhos: "I", "N", "L" ou "X".'); if (this.config.titulo) this.deprecated('O parametro "titulo" nao e suportado pelo Player 2.0'); if (this.config.destaque) this.deprecated('O parametro "destaque" nao e suportado pelo Player 2.0'); if (this.config.imagem) this.deprecated('O parametro "imagem" nao e suportado pelo Player 2.0'); if (this.config.css) this.deprecated('O parametro "css" nao e suportado pelo Player 2.0'); if (this.config.onload) this.deprecated('O parametro "onload" nao e suportado pelo Player 2.0'); // parametros nao suportados this.config.titulo = this.config.destaque = this.config.imagem = this.config.css = null; this.config.pp = false; // nunca exibir barra inferior e tela de fim de video this.config.escondeBarraInferior = this.config.escondeTrocaBanda = this.config.escondFimVideo = true; // permitir passar tanto midiaId quanto videosIDs if (this.config.videosIDs) this.config.midiaId = this.config.videosIDs; // permitir passar tanto autoStart quanto autoPlay if (this.config.autoPlay) this.config.autoStart = this.config.autoPlay; }, deprecated:function(message) { if (window && window.console && window.console.log) { window.console.log('DEPRECATION WARNING: ' + message); } }, _chave:function() { if( 'PINLX'.indexOf(this.config.banda)==-1 ) { this.config.banda = 'N'; } if (this.config.novoPlayer) { return ( this.config.banda ? this.config.banda : 'N' ); } else { return this.config.pp ? 'PaginaPlayer' : ( this.config.banda ? this.config.banda : 'N' ); } }, _largura:function() { return this.tamanhos[ this._chave() ].largura; }, _altura:function() { var t = this.tamanhos[ this._chave() ]; return this.config.escondeBarraInferior ? t.altura - t.barraInferior : t.altura; //return 450; }, toString:function(poeSrc) { var h = '