if(!novoPlayer) var novoPlayer = true;
function Player(o){
	o = o || {};
	this.w = o.w || 580;//510;//600;
	this.h = o.h || 345;//305;//345;
	this.p = '';
	this.UrlVideo = '';
	this.UrlPublicidade = '';
	this.Titulos = '';
	this.image = o.image || '';
	this.autoplay = o.autoplay;
	if(typeof(o.autoplay)=='undefined') { this.autoplay = 'false'; }
	if(document.getElementById('UrlPublicidade')!=null) {
		if(document.getElementById('UrlPublicidade').value!='') this.UrlVideo += document.getElementById('UrlPublicidade').value+'|';
	}
	if(document.getElementById('UrlVideo')!=null) this.UrlVideo += document.getElementById('UrlVideo').value;
	if(document.getElementById('FotoVideo')!=null) this.image = '/tv/img/'+document.getElementById('FotoVideo').value;
	if(!novoPlayer){
		this.p += 'flv='+this.UrlVideo;
		this.p += '&showstop=1';
		this.p += '&showvolume=1';
		this.p += '&showtime=1';
		this.p += '&showfullscreen=1';
		this.p += '&autonext=1';
		this.p += '&autoplay='+autoplay;
		this.p += '&autoload=1'
		this.p += '&sliderovercolor=2f6aa2';
		this.p += '&loadingcolor=2f6aa2';
		this.p += '&showplayer=always';
		this.p += '&showiconplay=1';
		this.p += '&iconplaybgcolor=2f6aa2';
		this.p += '&showopen=0';
		this.p += '&logo=/capa/img/logo_alo_100x24.png';
		this.p += '&logo.link=http://www.alo.com.br/alotv';
		this.p += '&logo.hide=false';
		this.p += '&logo.position=top-right';
		Flash('/alotv/player/player_flv_multi.swf?op='+Math.random(),this.w,this.h,'',this.p,'player');
	} else {
		this.UrlVideo = this.UrlVideo.replace('http://tvweb.jornalalobrasilia.com.br/','');
		this.p += 'streamer=rtmp://stream.jornalalobrasilia.com.br/alotv/';
		this.p += '&file='+this.UrlVideo;
		this.p += '&autostart=true';
		this.p += '&stretching=uniform';
		this.p += '&autostart='+this.autoplay;
		this.p += '&image='+this.image;
		this.p += '&logo=/capa/img/logo_alo_100x24.png';
		this.p += '&logo.link=http://www.alo.com.br/alotv';
		this.p += '&logo.hide=false';
		this.p += '&logo.position=top-right';
		Flash('/alotv/player/player-licensed.swf',this.w,this.h,'opaque',this.p,'player');
	}
}
