$(function() {

    $(".jCarouselLite").jCarouselLite({

        speed: 500,
		auto: 3500
		

    });       


});

$(document).ready(function() {
	$('a.linkPlayer').click(function() {
		var href = $(this).attr('href');
		window.open(href, 'playerCapitalFM', 'height=435, width=700, toolbar=no');
		return false;
	});
});

function openWebRadio() {
	window.open('http://www.capitalfm.com.br/webradio-capital-fm/', 'playerCapitalFM', 'height=435, width=700, toolbar=no');
}


$(document).ready(function(){
	$("a[@rel=external]").attr('target','_blank');
});

function redirChat() {
	campousername = document.getElementById("formChat").username;
	usuario = campousername.value;
	if(usuario == "") { window.alert("Você esqueceu de preencher o seu apelido."); return false; }
	document.getElementById("formChat").submit();
	window.location = "http://www.capitalfm.com.br";
}


function fecharPromocao() {
	$("#containerPromocao").css('display','none');
}
