$(document).ready(function() {
	settings = {
	   tl: { radius: 10 },
	   tr: { radius: 10 },
	   bl: { radius: 10 },
	   br: { radius: 10 },
	   antiAlias: true,
	   autoPad: true,
	   validTags: ["div"]
	} 
	
	settings2 = {
	   tl: { radius: 0 },
	   tr: { radius: 0 },
	   bl: { radius: 10 },
	   br: { radius: 10 },
	   antiAlias: true,
	   autoPad: true,
	   validTags: ["div"]
	} 
	
	var col1 = $('#section-a').height();
	var col2 = $('#section-b').height();
	
	var maxH = (col1 > col2) ? col1 : col2;
	
	$('#section-a').css('height', maxH);
	$('#section-b').css('height', maxH);
	
	$('#media-bar').corner(settings2);
	
	$('#section-a').corner(settings);
	$('#section-b').corner(settings);
	
	$('#box-content-b OBJECT').attr("width", "308");
	$('#box-content-b OBJECT').attr("height", "187");
	$('#box-content-b EMBED').attr("width", "308");
	$('#box-content-b EMBED').attr("height", "187");
	
	$("FORM #data").mask("99/99/9999");
   	$("FORM #telefone").mask("(99) 9999-9999");
	$("FORM #celular").mask("(99) 9999-9999");
   	$("FORM #cpf").mask("999.999.999-99");
	$("FORM #cep").mask("99999-999");
	
	 $("select[name=ds_estado]").change(function(){
		$("select[name=ds_cidade]").html('<option value="0">Carregando...</option>');
			$.post("cidades.php",
			{
				  estado:$(this).val()
			},
			  function(valor){
				 $("select[name=ds_cidade]").html(valor);
			  }
		)
	 })
	 $("select[name=ds_estado]").ready(function(){
		$("select[name=ds_cidade]").html('<option value="0">Carregando...</option>');
			$.post("cidades.php",
			{
				  estado:'SP'
			},
			  function(valor){
				 $("select[name=ds_cidade]").html(valor);
			  }
		)
	 })
	 
	 $('.fotos a').lightBox();
});
