$(document).ready(function() {
$('.campo').focus(function(){$(this).toggleClass('campo_hover');});
$('.campo').blur(function(){$(this).toggleClass('campo_hover');});
$(".btVoltar").click(function(){history.go(-1);});

$("#newEnd").click(function(){
	$("#McCxEnderecoNovo").toggle('slow');
	return false;
});

$('#qsearch').val(' Buscar por:');
$('#qsearch').focus(function(){var buscaval = $(this).val();if (buscaval == ' Buscar por:'){$(this).val('');}});
$('#qsearch').blur(function(){if ($(this).val() == ""){$('#qsearch').val(' Buscar por:');}});

if ( $("#tplBanner").length ) {
	$("#DTQpdt_1").show();
	$(".actDtq").click(function(){
		$(".actDtq").removeClass('sel');
		$(this).addClass('sel');
		$('.BnrPds').hide();
		var rel = $(this).attr('rel');
		$("#DTQpdt_"+rel).show();
		return false;
	});
}
$.RenderAjax = function (jq)
{
	if( jq && jq.status && jq.status == '1')
	{
		if(jq.code && jq.code!= '' && jq.code!= 'undefined')
		{
			eval(jq.code);
		}
	}	
}
});
