			$(document).ready(function(){

				var content = $('#content');

				loading = new Image(); loading.src = '/images/ajax-loader.gif';

				$('.ajax').live('click', function( e ){
					var arq = get_file( $( this ).attr('href') );
					open_url( arq, content );
				});

				open_url( get_file( document.location.href ), content );
			});
			function open_url( href, content ){
				content.html( '<img style="margin:200px 434px 200px 434px" src="/images/ajax-loader.gif" />' );

				$.ajax({
					url: href,
					success: function( response ){
						content.hide().html( response ).fadeIn();

						init_plugins( href );
					}
				});
			}
			function get_file( url ){
				var file = url.split('#');

				return ( file[1] ) ? file[1] : '';
			}
			function init_plugins( href )
			{
				$('#slider').coinslider({ 
						width: 900, 
						height: 570, 
						navigation: true, 
						delay: 5000,
						links: false
				});

				$("a.group").fancybox();

				$(".date").mask("99/99/9999");
				$(".cpf").mask("999.999.999-99");
				$(".phone").mask("(99)9999-9999");
				$(".cep").mask("99999-999");

			}

