// JavaScript Document

$(document).ready(function() {
						   
	$(".resultadosServ").children("li").hide();
	$(".servicio1").show();
	$("#marcaID2").children(".msolar").hide();
  	
	
	/*$("#tipoID").children(".btnSolares").click(function(){
		alert("btnsolares");
			$("#marcaID2").children(".naves").hide();
			$("#marcaID2").children(".solares").show();
		
		})
	$("#tipoID").children(".btnNaves").click(function(){
		alert("btnNaves");
			$("#marcaID2").children(".solares").hide();
			$("#marcaID2").children(".naves").show();
		
		})*/
		
		/*
		$("#tipoID").change(function () {
                    $("#tipoID option:selected").each(function () {
			  	var str = "";
                str = $(this).attr("class");
				if( str = "nave" ) { 
					$("#opt1").hide();
					$("#opt2").show();
				}else if(str = "solar"){
					$("#opt2").hide();
					$("#opt1").show();
				}
				//alert(str);
              });          
        });
		*/
		

		
	
	
	
	$(".enlacesServ").children("li").children("a").click(function(){
		 var claseEnlace = $(this).attr("class");
		 var claseResultado = ".servicio" + claseEnlace;
		//$(".resultadosTV").children("li").hide();
		//$(claseResultado).show();
		$(".resultadosServ").children("li").hide();
		$(claseResultado).show();
		// alert(claseResultado);													  
	});
	
	if ($("#tipoInmueble").hasClass("tipoInmueble2")) {
		$(".campoSolar").hide();
		};
	if ($("#tipoInmueble").hasClass("tipoInmueble1")) {
		$(".campoNave").hide();
		};
	if ($("#tipoInmueble").hasClass("tipoInmueble3")) {
		$(".campoNave").hide();
		};
	
	
	
	/*if ($(".campoSolar").html() == 2) {
		$(".campoSolar").hide();
		};*/
 
 });


