		$(document).ready(function(){
			$("#cpf").mask("999.999.999-99");
			$("#nascimento").mask("99/99/9999");
			$("#cep").mask("99999-999");
			$("#telefone1").mask("99 9999.9999");
			$("#telefone2").mask("99 9999.9999");
		});
		
		$(function() {
			// Use this example, or...
			$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
			// This, or...
			$('#gallery a').lightBox(); // Select all links in object with gallery ID
			// This, or...
			$('a.lightbox').lightBox(); // Select all links with lightbox class
			// This, or...
		});


		$(document).ready(function() {
			$('#btnAdd').click(function() {
				var num		= $('.clonedInput').length;	// how many "duplicatable" input fields we currently have
				var newNum	= new Number(num + 1);		// the numeric ID of the new input field being added

				// create the new element via clone(), and manipulate it's ID using newNum value
				var newElem = $('#input' + num).clone().attr('id', 'input' + newNum);

				// manipulate the name/id values of the input inside the new element
				newElem.children(':first').attr('id', 'name' + newNum).attr('name', 'name' + newNum);

				// insert the new element after the last "duplicatable" input field
				$('#input' + num).after(newElem);

				// enable the "remove" button
				$('#btnDel').attr('disabled','');

				// business rule: you can only add 5 names
				if (newNum == 5)
					$('#btnAdd').attr('disabled','disabled');
			});

			$('#btnDel').click(function() {
				var num	= $('.clonedInput').length;	// how many "duplicatable" input fields we currently have
				$('#input' + num).remove();		// remove the last element

				// enable the "add" button
				$('#btnAdd').attr('disabled','');

				// if only one element remains, disable the "remove" button
				if (num-1 == 1)
					$('#btnDel').attr('disabled','disabled');
			});

			$('#btnDel').attr('disabled','disabled');
		});

		function changeLine(name,opt){
			var lista = document.getElementsByName(name);
			for (i=0; i<lista.length; i++){
			  lista[i].style.background = opt;
			}
		}
		
		function change(id) {
			hide_others();
			show_hide(id);
		}
	  	function hide_others() {
			var o;
			var count = 1;
			while(o = document.getElementById('div_'+count)) {
				count++;
				o.style.display = 'none';
			}
		}
	  	function show_hide(id) {
			var o = document.getElementById(id);
			if (o.style.display == '') o.style.display = 'none';
			else{
				o.style.display = '';
				document.getElementById('word_'+id).innerHTML='';
			}
		}

