function pfls(swf,width,height,vars){
	if(vars == undefined){vars = "";}
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'"><param name="movie" value="'+swf+'"/><param name="quality" value="high"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+vars+'"/><embed src="'+swf+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" wmode="transparent" flashvars="'+vars+'"></embed></object>');
}

//Efeito fornecedores

var nots = new Array();
nots[0] = '<img src="img/alcatel_lucent.jpg" alt="Logo Alcatel" />';
nots[1] = '<img src="img/cellsite.jpg" alt="Logo Cellsite" />';
nots[2] = '<img src="img/egs.jpg" alt="Logo EGS" />';
nots[3] = '<img src="img/ericsson.jpg" alt="Logo Ericsson" />';
nots[4] = '<img src="img/flextronics.jpg" alt="Logo Flextronics" />';
nots[5] = '<img src="img/lemcon.jpg" alt="Logo Lemcon" />';
nots[6] = '<img src="img/nokia_siemens.jpg" alt="Logo Nokia Siemens" />';
nots[7] = '<img src="img/rad.jpg" alt="Logo Rad" />';
nots[8] = '<img src="img/relacom.jpg" alt="Logo Relacom" />';
var i = 0;

var tempo_noticia = 5000;

function not(){

$('#noticias').fadeOut('slow',
function(){
$('#noticias').html(nots[i]);
$('#noticias').fadeIn('slow');
setTimeout("not()",tempo_noticia);
i++;
if(i > 5){i = 0;}
}
);

}

$(document).ready(function(){ 
						   setTimeout("not()",tempo_noticia);						   
});

function insertEmail(){
	val = $('#user_email').val();
	if(val.indexOf("@") == -1){
		$('#user_email').val(val+"@rftelecom-net.com.br");
	}
}

function verifySubmit(){
	
	if($('#webmail').attr("checked") == true){
		$('#formLogin').attr("target","_blank").attr("action","http://www.rftelecom-net.com.br:2095/login/");
		insertEmail();
		$('#formLogin').submit();
	}
	
	if($('#downloads').attr("checked") == true){
		$('#formLogin').attr("target","").attr("action","logando.php");
		$('#formLogin').submit();
	}		
	
	
}