function vg(){}

function formail() {	
	jQuery("#modal").html("<div class='acao'>teste<div>");
	jQuery(document).ready(function() {
		jQuery('#modal').dialog( {
			bgiframe : true,
			position : 'middle',
			closeOnEscape : true,
			autoOpen : false,
			height : 450,
			width : 700,
			modal : true
		});
	});	
	document.getElementById('ui-dialog-title-modal').innerHTML="Edi&ccedil;&atilde;o da mensagem";
	jQuery('#modal').fadeIn('500').dialog('open');
	jQuery("#modal").html("<div id='load'>Aguarde...</div>");	
	jQuery("#modal").load('forms/contato.php', function(response, status, xhr) {
	  if (status == "error") {
	    var msg = "Indisponibilidade tempor&aacute;ria.";
	    jQuery("#modal").html(msg);
	    //jQuery("#modal").html(msg + xhr.status + " " + xhr.statusText);
	  }
   });	
}

function FechaModal(div) {
	jQuery('#' + div).dialog('close');
}

jQuery(document).ready(function(){	
	jQuery("#visa").mouseover(function(){
		jQuery("#msg").html("Aceitamos cart&otilde;es visa.");
	});
	jQuery("#visa").mouseout(function(){
		jQuery("#msg").html("(011) 2875 8000.");
	});
	jQuery("#master").mouseover(function(){
		jQuery("#msg").html("Aceitamos cart&otilde;es master card.");
	});
	jQuery("#master").mouseout(function(){
		jQuery("#msg").html("(011) 2875 8000.");
	});
	jQuery("#boleto").mouseover(function(){
		jQuery("#msg").html("Pagamento facilitado com boleto.");
	});
	jQuery("#boleto").mouseout(function(){
		jQuery("#msg").html("(011) 2875 8000.");
	});
	jQuery("#itau").mouseover(function(){
		jQuery("#msg").html("Aceitamos transferência banc&aacute;ria.");
	});
	jQuery("#itau").mouseout(function(){
		jQuery("#msg").html("(011) 2875 8000.");
	});
});

function enviarEmail(dados){
	jQuery("#retorno").html("<div id='load'>Enviando...</div>");
	document.getElementById('ui-dialog-title-modal').innerHTML="Por favor aguarde...";
	xajax_enviar(dados);
}
