$(document).ready(function() {
	// Menu dropdown
	$('#nav').droppy();
	// div com cantos arredondados
	var settings = {
          tl: { radius: 5 },
          tr: { radius: 5 },
          bl: { radius: 0 },
          br: { radius: 0 },
          antiAlias: true,
          autoPad: true };
	$('.box').corner(settings);
	var settings = {
          tl: { radius: 5 },
          tr: { radius: 5 },
          bl: { radius: 5 },
          br: { radius: 5 },
          antiAlias: true,
          autoPad: true };
	$('#box-noticias').corner(settings);
	$('.box-round').corner(settings);
	$('.box-round *').css({'z-index': '1'});
	$('#box-noticias *').css({'z-index': '1'});
	$('.box *').css({'z-index': '1'});
	$('#nav *').css({'z-index': '99'});
	// Dica de preenchimento de campos
	$("input").focus(function(){
		if($(this).metadata().tip == $(this).val()){
			$(this).val('');
			$(this).addClass('inpt_txt');
			$(this).removeClass('input_tip');
		}
	});
	$("input").blur(function(){
		if($(this).val() == ''){
			$(this).val($(this).metadata().tip);
			$(this).addClass('input_tip');
			$(this).removeClass('inpt_txt');
		}
	})
	$("input").each(function(){
		if($(this).val() == '' && $(this).metadata().tip) {
			$(this).addClass('input_tip');
			$(this).val($(this).metadata().tip);
		}
	});
	// fim dica
	
	$("#nav li:last a:first").css({border: 'none'});
	
	$(".sendbutton").after('<input type="reset" name="resetbutton" id="resetbutton" class="resetbutton" value="Limpar" />');
	$("ol.cf-ol li.cf-box-group label").after("<br />");
	
});