function setRodape() {
	
	//resolucao
	var screenwidth = $(screen).attr("width");
	var height = $("#rodape").attr("top");
	alert(height);
	return;

	if(width > 1024) {
		$("#rodape").css("position","absolute");
		$("#rodape").css("width","100%");
		$("#rodape").css("bottom","0");		
	}
}

$(document).ready(function() {

	//efeito de hover dos menus. nao foi possivel fazer via css pois não mostrava no IE7 corretamente
	$(".programas li a").hover(
      function () {
        $(this).css("background-color","#FFFFFF");
      }, 
      function () {
        $(this).css("background-color","");
		$(this).css("border","none");
      }
    );

	//efeito de hover dos menus. nao foi possivel fazer via css pois não mostrava no IE7 corretamente
	$(".videos li a").hover(
      function () {
        $(this).css("background-color","#FFFFFF");
      }, 
      function () {
        $(this).css("background-color","");
		$(this).css("border","none");
      }
    );
	
	//efeito de hover dos menus. nao foi possivel fazer via css pois não mostrava no IE7 corretamente
	$(".agenda li").hover(
      function () {
        $(this).css("background-color","#EDECE1");
      }, 
      function () {
        $(this).css("background-color","");
      }
    );
	
	//efeito de hover dos menus. nao foi possivel fazer via css pois não mostrava no IE7 corretamente	
	$(".busca li").hover(
      function () {
        $(this).css("background-color","#FFFFFF");
      }, 
      function () {
        $(this).css("background-color","");
      }
    );

	var tmp;
	$("#frmbusca input, #frmbuscaprograma input").click(
      function () {
		tmp = $(this).val();
		$(this).val("");
      }
    );

	$("#frmbusca input, #frmbuscaprograma input").blur(
      function () {
		if($(this).val() == "") $(this).val(tmp);
      }
    );


	//conteudo da legenda dos paineis
	$x=0;
	$(".panel").each(function(){
		contentarray[$x]=$("#panel"+ ($x+1) + " > a").attr("title");
		$x++;
	});
	

	//botao de envio do cadastro
	$("#cadastro #enviar").click(function(){
		$("#cadastro form").submit();
	});
	
	//botao de envio do cadastro
	$("#admin #enviar").click(function(){
		$(".frmadmin").submit();
	});	
	
	$("#login").click(function(){
		$("#frmlogin").submit();
	});	

	$("#cadastro #limpar").click(function(){
		$("#cadastro form input").val("");
	});
	
	$(".showtable").click(function(){
	
		table = $(this).parent().parent();
		
		$("tbody").not(table.find("tbody")).hide();
		$("tfoot").not(table.find("tfoot")).hide();
		
		if(table.find("tbody").css('display') == 'none') {
			table.find("tbody").show();
			table.find("tfoot").show();			
		}
		else {
			table.find("tbody").hide();
			table.find("tfoot").hide();			
		}
	});

	//posiciona o rodape caso a resolução seja maior que 1024x768
	//setRodape();
});

/*
$(window).resize(function(){
	
});*/

