$(document).ready(
	function() {
		$("#popupCarregando").hide();
		$("a.publ_popup")
		.click (
				function () {
				$(".popupCarregando").show('fast');
				$(".popup").animate({width: "100%", opacity: 1, filter:"alpha(opacity=100)"}, 500 );
				$(".popupFundo").animate({width: "100%",opacity: .5, filter:"alpha(opacity=50)"}, 500 );
				}
				);
		
		$(".popupFechar a")
		.click (
				function () {
					$(".popup").hide('slow');
					$(".popupFundo").hide('slow');
					$(".alvo").empty('').html(data);
					}
				);
	}
)

$(document).ready(function() {
	
	$("a#publ-1").click(function() {$.get("publ-001.php",function(data) {$(".popupCarregando").hide('fast');$(".alvo").empty().html(data);});});
	$("a#publ-2").click(function() {$.get("publ-002.php",function(data) {$(".popupCarregando").hide('fast');$(".alvo").empty().html(data);});});
	$("a#publ-3").click(function() {$.get("publ-003.php",function(data) {$(".popupCarregando").hide('fast');$(".alvo").empty().html(data);});});
	$("a#publ-4").click(function() {$.get("publ-004.php",function(data) {$(".popupCarregando").hide('fast');$(".alvo").empty().html(data);});});

});




		
