$(document).ready(function(){

	$("#loadl_prod").hide();
	$("#loadl").hide();

});


function exibeHibridoSelect(tipo_hibrido) {


$.ajax(

{

type: "POST",

url: "action_hibrido.php",

data: "acao=exibeHibridoSelect&tipo_hibrido=" + tipo_hibrido,

beforeSend: function() {

    $("#id_prov").hide();
    $("#lbl_hbrid").hide();
	$("#loadl").show();

},

success: function(txt) {


	$('#ajax_marca').html(txt);
	$("#loadl").hide();

},

error: function(txt) {

// em caso de erro você pode dar um alert('erro');

}

}

);

}



// Area de ensino


$(document).ready(function(){

$("#loadl").hide();

});


function exibeArea(id_regiao , id_segmento) {

$.ajax(

{

type: "POST",

url: "action_anunciantes.php",

data: "acao=exibeArea&id_regiao=" + id_regiao + "&id_segmento=" + id_segmento,

beforeSend: function() {

	$("#id_prov2").hide();
	$("#loadl").show();

},

success: function(txt) {


	$('#ajax_marca2').html(txt);
	$("#loadl").hide();

},

error: function(txt) {

// em caso de erro você pode dar um alert('erro');

}

}

);

}





function exibeModeloSelect2(id_segmento) {

$.ajax(

{

type: "POST",

url: "action_regioes2.php",

data: "acao=exibeModeloSelect2&id_segmento=" + id_segmento,

beforeSend: function() {

	$("#id_prov_f").hide();
	$("#loadl").show();

},

success: function(txt) {


	$('#ajax_marca_f').html(txt);
	$("#loadl").hide();

},

error: function(txt) {

// em caso de erro você pode dar um alert('erro');

}

}

);

}




function exibeArea2(id_regiao , id_segmento) {

$.ajax(

{

type: "POST",

url: "action_produtos.php",

data: "acao=exibeArea2&id_regiao=" + id_regiao + "&id_segmento=" + id_segmento,

beforeSend: function() {

	$("#id_prov_f2").hide();
	$("#loadl").show();

},

success: function(txt) {


	$('#ajax_marca_f_2').html(txt);
	$("#loadl").hide();

},

error: function(txt) {

// em caso de erro você pode dar um alert('erro');

}

}

);

}



function ajax_prod(id_segmento) {

$.ajax(

{

type: "POST",

url: "action_produtos_player.php",

data: "acao=ajax_prod&id_segmento=" + id_segmento,

beforeSend: function() {

	$("#id_prov").hide();
	$("#loadl_prod").show();

},

success: function(txt) {


	$('.ajax_marca_prod').html(txt);
	$("#loadl_prod").hide();

},

error: function(txt) {

// em caso de erro você pode dar um alert('erro');

}

}

);

}

