 var x;
 x=$(document);
 x.ready(function(){
  var y;
  var z;
  var a;
  var b;
  var c;
  y=$("#parraf");
  y.click(function(){
    var p=$("#linea").attr("value");
    $.getJSON("papeles.php",{ origen:p, direccion:1 },function(datos){
      $("#resultados").html(datos.resultado);
      $("#positron").html("<input type=\"hidden\" value=\""+datos.origen+"\" name=\"linea\" id=\"linea\"/>");
    });
    return false;
  });
  z=$("#farrap");
  z.click(function(){
    var p=$("#linea").attr("value");
    $.getJSON("papeles.php",{ origen:p, direccion:0 },function(datos){
      $("#resultados").html(datos.resultado);
      $("#positron").html("<input type=\"hidden\" value=\""+datos.origen+"\" name=\"linea\" id=\"linea\"/>");
    });
    return false;
  });
  a=$("#prince");
  a.click(function(){
    $.getJSON("papeles.php",{ origen:1, direccion:0 },function(datos){
      $("#resultados").html(datos.resultado);
      $("#positron").html("<input type=\"hidden\" value=\"0\" name=\"linea\" id=\"linea\"/>");
    });
    return false;
  });
  b=$("#finise");
  b.click(function(){
    $.getJSON("papeles.php",{ origen:87, direccion:1 },function(datos){
      $("#resultados").html(datos.resultado);
      $("#positron").html("<input type=\"hidden\" value=\""+datos.origen+"\" name=\"linea\" id=\"linea\"/>");
    });
    return false;
  });

  c=$("#comentar");
  c.click(function(){
    var d;
    $("#termini").html("");
    $("#entrada").html("Escribe tu comentario: <input type=\"text\" value=\"\" name=\"yopino\" id=\"yopino\"/><input type=\"button\" value=\"Enviar\" name=\"tomaya\" id=\"tomaya\"/>");
    d=$("#tomaya");
    d.click(function(){
       $("#result").html("<img src=\"../img/cargac.gif\" alt=\"cargando\"/>");
       var t=$("#yopino").attr("value");
       $.getJSON("../menu_general/opinato.php",{origen:15, album:"injusticias", opinion:t },function(datos){
         $("#result").html(datos.resultado);
         $("#entrada").html(datos.adjunto+"<br>");
       });
       return false;
    });
  });

});
var params = {
   loop: "true",
   wmode: "transparent",
   bgcolor: "#ffffff"
};
swfobject.embedSWF("injusticias.swf", "injusticias", "634", "114", "6.0.65", false, false, params, false);
swfobject.embedSWF("amdeublanco.swf", "amdeublanco", "198", "34", "6.0.65", false, false, params, false);
function browserSupportsAjax(){
   if (typeof XMLHttpRequest == "undefined" && typeof ActiveXObject == "undefined" && window.createRequest == "undefined"){
       return false;
   }
   return true
}
function ActiveXEnabledOrUnnecessary (){
    if (typeof ActiveXObject != "undefined"){
        var xhr = null;
        try{
            xhr=new ActiveXObject("Msxml2.XMLHTTP");
        }catch (e){
            try{
                xhr=new ActiveXObject("Microsoft.XMLHTTP");
            }catch (e2){
                try{
                    xhr=new ActiveXObject("Msxml2.XMLHTTP.4.0");
                }catch (e3){
                    xhr=null;
                }
            }
        }
        if (xhr == null){
           return false
        }
    }
    return true;
}
