	$(document).ready(function(){

		//Examples of how to assign the ColorBox event to elements
		$("a[rel='color']").colorbox();

	});

/* MASCARA */
jQuery(function($){
  $("#data").mask("99/99/9999");
  $("#nascimento").mask("99/99/9999");
  $("#telefone").mask("(99) 9999-9999");
  $("#fone").mask("(99) 9999-9999");
  $("#celular").mask("(99) 9999-9999");
  $("#fax").mask("(99) 9999-9999");

  $("#cep").mask("99999-999");
  $("#cpf").mask("999.999.999-99");
  $("#cnpj").mask("99.999.999/9999-99");
  $("#estado").mask("aa");
  });

	/*$(function() {
      $("input[type=file]").filestyle({
         image: "img/arquivo.png",
         imageheight : 33,
         imagewidth : 76,
         width : 229,
      });
   });*/

    // test auto-ready logic - call corner before DOM is ready
    $('#readyTest').corner();
    $(function(){

        $('div.demo, div.inner').each(function() {
            var t = $('p', this).text();
            eval(t);
        });
        // fixed/fluid tests
        $(".redondo").corner();
        $("#abs").corner("cc:#08e");

		$('.myCorner').corner();
    });

function roundInput(input_id, container_class, border_class){
	var input = $('#'+input_id+'');
	var input_width = input.css("width"); //get the width of input
	var input_height = input.css("height"); //get the height of input

	var wrap_width = parseInt(input_width) + 10; //add 10 for padding
	wrapper = input.wrap("<div class='"+container_class+"'></div>").parent();
	wrapper.wrap("<div class='"+border_class+"' id='"+input_id+"' style='width: "+wrap_width+"px; height: "+input_height+"px;'></div>"); //apply border
	wrapper.corner("round 5px").parent().css('padding', '1px').corner("round 5px"); //round box and border
}

$(function(){
	$("#emailNews").formPlus(
		"emailNews",
		{padrao : '#8b9fa9', focu:'#8b9fa9'}
	);
	
	$("#start").formPlus(
		"start",
		{padrao : '#8b9fa9', focu:'#8b9fa9'}
	);
});
