$(document).ready(function() {
	//LOGIN
	$('#cabecalho form').hide();
	$('#cabecalho #menu-secundario a.login').click(function () { 
		$('#cabecalho form').show("medium");
		return false; 
	});	
	$('#cabecalho form #username').attr("value","seu e-mail");
	$('#cabecalho form #username').focus(function () {
		if ($(this).val() == "seu e-mail")
		{
			$(this).attr("value","");
		}
	});
	$('#cabecalho form #password').attr("value","senha");
	$('#cabecalho form #password').focus(function () {
		if ($(this).val() == "senha")
		{
			$(this).attr("value","");
		}
	});
	//FIM LOGIN
	
	//TABELA RECURSOS
	$('#bloco-principal #recursos tr:nth-child(even), #bloco-principal #recursos-avancados tr:nth-child(even), #bloco-principal #assinar tr:nth-child(even)').addClass("zebra");
	$('#bloco-principal #recursos-avancados').toggle();
	$("#bloco-principal #recursos-avancados").before("<p><a href=\"#\" class=\"interruptor\">+ mostrar recursos avan&ccedil;ados</a><p>");
	
	var interruptor;
	interruptor="desligado";
	$('#bloco-principal a.interruptor').click(function () {
		if (interruptor == "desligado")
		{
			$(this).html("- esconder recursos avan&ccedil;ados");
			interruptor="ligado";
		}
		else
		{
			$(this).html("+ mostrar recursos avan&ccedil;ados");
			interruptor="desligado";
		}
	$('#bloco-principal #recursos-avancados').toggle("fast");
		return false; 
	});
	//FIM TABELA RECURSOS
  
	// SIFR
	function sIFRmargin() {
		$('#bloco-principal h2').css("margin-bottom","-10px");
	}
	
	if(typeof sIFR == "function"){
		sIFR.replaceElement("#bloco-principal h2", named({sFlashSrc: "/flash/futura.swf", sColor: "#333333"}));
		sIFRmargin();
	};
	//FIM SIFR
});

