$(document).ready(function(){
        
        $("#fecha").html(cfrasandate());
        //$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
        $("#descripcion").watermark("¿Qué te robaron/hurtaron? ¿Estaba en auto o al paso? ¿Con arma o sin arma? Danos detalles");
        $("#direccion").watermark("ubicación ( Av, Calle, Pasaje, etc)");
        $("#nombre").watermark("nombre y apellido");
        $("#email").watermark("correo electrónico");
        $(".distrito").change(function(){
            $(".map").empty().html(Mapas[this.value]);
        });
        $("#btnSubmit").click(function(){
            var error = false;
            var ferror = false;
            $("#informe").find("input, textarea").each(function(x,el){
                if($(el).val()==el.title||$(el).val()==""){
                    $(el).addClass("error");
                    error =true
                }else{
                    $(el).removeClass("error");
                }
            });

            if($("#dia").val()==$("#dia").attr('title')){
                $("#dia").addClass("error");
                error = true;
            }else{
                $("#dia").removeClass("error");
            }
            if($("#mes").val()==$("#mes").attr('title')){
                $("#mes").addClass("error");
                error = true;
            }else{
                $("#mes").removeClass("error");
            }
            if($("#agno").val()==$("#agno").attr('title')){
                $("#agno").addClass("error");
                error = true;
            }else{
                $("#agno").removeClass("error");
            }
            
            
            if(error) {
                $(".mensaje").addClass("error").html("Error, todos los campos son requeridos");
                return false;
            }
            var comisaria = "";
            if($("#denuncia").is(":checked")){
                comisaria = $('#comisaria').val();
            }
            $.post("action/send.php",{"direccion":$("#direccion").val(),"descripcion":$("#descripcion").val(),
                 "fecha":$("#agno").val()+'-'+$("#mes").val()+"-"+$("#dia").val(),
                 "nombre":$('#nombre').val(),
                 "email":$('#email').val(),
                 "comisaria":comisaria,
                 "roboid":$("#tiporobo").val(),
                 "robo":$("#tiporobo :selected").text(),
                 "hora":$("#hora").val()+":"+$("#minuto").val()+" "+$("#apm").val(),
                 "distrito":$("#informe .distrito :selected").text(),
                 "denuncia":$("#denuncia").is(":checked")
             }
            );
            $("#descripcion").val("").watermark("¿Qué te robaron/hurtaron? ¿Estaba en auto o al paso? ¿Con arma o sin arma? Danos detalles");
            $("#direccion").val("").watermark("ubicación ( Av, Calle, Pasaje, etc)");
            $("#dia").val(0);
            $("#mes").val(0);
            $("#agno").val(0);
            $("#hora").val(0);
            $("#minuto").val(0);
            $("#nombre").val("").watermark("nombre y apellido");
            $("#email").val("").watermark("correo electrónico");
            $("#publicar").attr("checked",false);
            $('#comisaria').attr('disabled',true);
            $(".mensaje").addClass("success").html("Su delito será publicado en breves momentos. Gracias");
            setTimeout('$(".mensaje").empty().removeClass("success").removeClass("error")',3000);
            return false;
        });
        $("#denuncia").click(switch_comisaria);
        switch_comisaria();
});

function switch_comisaria(){
    if($("#denuncia").is(":checked")){
        $('#comisaria').removeAttr('disabled');
    }else{
        $('#comisaria').attr('disabled',true);
    }
}
function cfrasandate(){
var mydate=new Date();
var year=mydate.getYear();
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
return dayarray[day]+" "+daym+" , "+montharray[month]+" de "+year
}
var Mapas = new Array();
Mapas['ate'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e1d0ebb1cb0eb9&amp;ll=-12.068447,-76.970944&amp;spn=0.023334,0.028281&amp;z=14&amp;output=embed" name="ate"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['ancon'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004849d8a6b8075fc51c&amp;ll=-11.710401,-77.12368&amp;spn=0.041686,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['barranco'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e2de9b81be0fb7&amp;ll=-12.145068,-77.011585&amp;spn=0.093307,0.113125&amp;z=14&amp;output=embed" name="barranco"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['brena'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e1f7c48dea51ba&amp;ll=-12.059613,-77.054565&amp;spn=0.005834,0.00707&amp;z=14&amp;output=embed" name="brena"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['bellavista'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?ie=UTF8&amp;hq=&amp;hnear=Lima,+Santa+Mar%C3%ADa+del+Mar,+Lima,+Per%C3%BA&amp;ll=-12.063159,-77.121191&amp;spn=0.041632,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['callao'] = '<h2 class="mapa-robo-header"><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004849d9c99990575dc9&amp;ll=-12.019845,-77.113724&amp;spn=0.074211,0.11055&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['chacaclayo'] = '<h2 class="mapa-robo-header"><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?f=d&amp;source=s_d&amp;saddr=urbanizaci%C3%B3n+alfonso+cobi%C3%A1n,+chaclacayo,+lima,+per%C3%BA&amp;daddr=&amp;hl=es&amp;geocode=&amp;mra=ls&amp;ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004849d86bd8b1519c66&amp;ll=-11.94342,-76.706436&amp;spn=0.010413,0.014355&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['carabayllo'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004856656f3a9db9cd4a&amp;ll=-11.87638,-77.018452&amp;spn=0.02335,0.028281&amp;z=14&amp;output=embed" name="carabayllo"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['carmendelalegua'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004849da2cfdd46e4fa9&amp;ll=-12.028576,-77.101192&amp;spn=0.029381,0.036564&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['cercadodelima'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e286879305734c&amp;ll=-12.047715,-77.022228&amp;spn=0.093341,0.113125&amp;z=14&amp;output=embed" name="cercadodelima"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['cieneguilla'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?f=q&amp;source=s_q&amp;hl=es&amp;geocode=&amp;q=cieneguilla,+lima+Per%C3%BA&amp;sll=-13.82808,-74.624428&amp;sspn=0.468721,0.614548&amp;ie=UTF8&amp;hq=&amp;hnear=Cieneguilla,+Lima,+Per%C3%BA&amp;ll=-12.094465,-76.752033&amp;spn=0.041627,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['chorillos'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004849d8967ef3041896&amp;ll=-12.195618,-76.999998&amp;spn=0.023322,0.028281&amp;z=14&amp;output=embed" name="chorillos"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['comas'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004837e075af164f23bb&amp;ll=-11.96309,-77.031326&amp;spn=0.186742,0.22625&amp;z=14&amp;output=embed" name="comas"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['elagustino'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004837e12d8326cbca02&amp;ll=-12.027568,-76.992016&amp;spn=0.093348,0.113125&amp;z=14&amp;output=embed" name="elagustino"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['independencia'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004849d9751ba18fd1c4&amp;ll=-12.007504,-77.051239&amp;spn=0.046678,0.056562&amp;z=14&amp;output=embed" name="independencia"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['jesusmaria'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.000481ecee28423f6222e&amp;ll=-12.07705,-77.046432&amp;spn=0.023333,0.028281&amp;z=14&amp;output=embed" name="jesusmaria"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['lamolina'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e1b91177c79240&amp;ll=-12.081268,-76.958907&amp;spn=0.011666,0.014141&amp;z=14&amp;output=embed" name="lamolina"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['laperla'] ='<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?f=d&amp;source=s_d&amp;saddr=jir%C3%B3n+ram%C3%B3n+castilla,+la+perla,+callao,+per%C3%BA&amp;daddr=&amp;hl=es&amp;geocode=&amp;mra=ls&amp;ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004849da74ac406348af&amp;ll=-12.046309,-77.102265&amp;spn=0.010409,0.014355&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['lapunta'] ='<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?ie=UTF8&amp;hq=&amp;hnear=Lima,+Santa+Mar%C3%ADa+del+Mar,+Lima,+Per%C3%BA&amp;ll=-12.070797,-77.164364&amp;spn=0.041631,0.057507&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['lavictoria'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e274f4d2e8fce0&amp;ll=-12.056948,-77.008495&amp;spn=0.093338,0.113125&amp;z=14&amp;output=embed" name="lavictoria"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['lince'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e242575d86dd60&amp;ll=-12.083513,-77.029696&amp;spn=0.023332,0.028281&amp;z=14&amp;output=embed" name="lince"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['losolivos'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e08bcc307df72f&amp;ll=-11.967372,-77.070744&amp;spn=0.005836,0.00707&amp;z=14&amp;output=embed" name="losolivos"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['lurigancho'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.00048a52d17d39c8d4cff&amp;ll=-11.956876,-76.815891&amp;spn=0.082289,0.114841&amp;z=14&amp;output=embed"></iframe><br /><small>Ver <a href="http://www.google.com/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.00048a52d17d39c8d4cff&amp;ll=-11.956876,-76.815891&amp;spn=0.082289,0.114841&amp;z=13&amp;source=embed" style="color:#0000FF;text-align:left">Robo en Lurigancho (Chosica)</a> en un mapa más grande</small><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['lurin'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?ie=UTF8&amp;hq=&amp;hnear=Lima,+Santa+Mar%C3%ADa+del+Mar,+Lima,+Per%C3%BA&amp;ll=-12.278618,-76.87417&amp;spn=0.041598,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['magdalena'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.000483784beba5d4471a2&amp;ll=-12.090605,-77.069306&amp;spn=0.023332,0.028281&amp;z=14&amp;output=embed" name="magdalena"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['miraflores'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e2c6b9dfdee668&amp;ll=-12.129208,-77.000942&amp;spn=0.005832,0.00707&amp;z=14&amp;output=embed" name="miraflores"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['pachacamac'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?ie=UTF8&amp;hq=&amp;hnear=Lima,+Santa+Mar%C3%ADa+del+Mar,+Lima,+Per%C3%BA&amp;ll=-12.188865,-76.849022&amp;spn=0.041612,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['pueblolibre'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e20d88c95b81a2&amp;ll=-12.06744,-77.058706&amp;spn=0.046667,0.056562&amp;z=14&amp;output=embed" name="pueblolibre"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['pucusana'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?ie=UTF8&amp;hq=&amp;hnear=Lima,+Santa+Mar%C3%ADa+del+Mar,+Lima,+Per%C3%BA&amp;ll=-12.481582,-76.797695&amp;spn=0.041566,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['puentepiedra'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><p>mapa</p><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e0c7649b6522db&amp;ll=-11.89616,-77.077589&amp;spn=0.041658,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['puntahermosa'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?ie=UTF8&amp;hq=&amp;hnear=Lima,+Santa+Mar%C3%ADa+del+Mar,+Lima,+Per%C3%BA&amp;ll=-12.337235,-76.814346&amp;spn=0.041086,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['puntanegra'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?f=q&amp;source=s_q&amp;hl=es&amp;geocode=&amp;q=Punta+Negra,+lima,+Per%C3%BA&amp;sll=-12.337235,-76.814346&amp;sspn=0.029473,0.038409&amp;ie=UTF8&amp;hq=&amp;hnear=Punta+Negra,+Lima,+Per%C3%BA&amp;ll=-12.367502,-76.797867&amp;spn=0.041584,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['rimac'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004837e10b338d9d0d42&amp;ll=-12.033612,-77.019997&amp;spn=0.186693,0.22625&amp;z=14&amp;output=embed" name="rimac"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['santamaria'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.00048a52c65b1c73b5085&amp;ll=-12.409754,-76.743107&amp;spn=0.083155,0.114841&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['santiagodesurco'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="600" height="566" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e347a2a1f995f5&amp;ll=-12.116138,-76.990557&amp;spn=0.011665,0.012853&amp;z=14&amp;output=embed" name="santiagodesurco"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['sanbartolo'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?ie=UTF8&amp;hq=&amp;hnear=Lima,+Santa+Mar%C3%ADa+del+Mar,+Lima,+Per%C3%BA&amp;ll=-12.387371,-76.776066&amp;spn=0.041581,0.057421&amp;z=14&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['sanborja'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e35b1640b1fd6b&amp;ll=-12.075078,-76.981716&amp;spn=0.093332,0.113125&amp;z=14&amp;output=embed" name="sanborja"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['sanisidro'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.000481956b9d3ffa7f74f&amp;ll=-12.090521,-77.027464&amp;spn=0.046663,0.056562&amp;z=14&amp;output=embed" name="sanisidro"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['sanjuandelurigancho'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?f=d&amp;source=s_d&amp;saddr=R%C3%ADmac,+Lima,+Per%C3%BA&amp;daddr=&amp;hl=es&amp;geocode=&amp;mra=ls&amp;ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004837e0f4a84e67bb67&amp;ll=-11.973669,-76.998196&amp;spn=0.093367,0.113125&amp;z=14&amp;output=embed" name="sanjuandelurigancho"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['sanjuanmiraflores'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e2f5ac3a0f92e9&amp;ll=-12.151109,-76.976223&amp;spn=0.093305,0.113125&amp;z=13&amp;output=embed" name="sanjuanmiraflores"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['sanmartin'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;msa=0&amp;msid=116759468293156548167.0004837e0b09141863cdf&amp;ll=-12.001712,-77.050209&amp;spn=0.186715,0.22625&amp;z=14&amp;output=embed" name="sanmartin"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['sanmiguel'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004849d95ed2247cb224&amp;ll=-12.07021,-77.077675&amp;spn=0.093334,0.113125&amp;z=14&amp;output=embed" name="sanmiguel"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['santaanita'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e319013e06475c&amp;ll=-12.170239,-76.986008&amp;spn=0.186597,0.20565&amp;z=14&amp;output=embed" name="santaanita"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['santarosa'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.google.com/maps?f=q&amp;source=s_q&amp;hl=es&amp;geocode=&amp;q=santa+rosa,+lima+Per%C3%BA&amp;sll=-12.094507,-76.752033&amp;sspn=0.0295,0.038409&amp;ie=UTF8&amp;hq=&amp;hnear=Santa+Rosa,+Lima,+Per%C3%BA&amp;ll=-11.865251,-77.110205&amp;spn=0.041662,0.057507&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['sanluis'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e242575d86dd60&amp;ll=-12.068363,-76.970901&amp;spn=0.093334,0.113125&amp;z=14&amp;output=embed" name="sanluis"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['surquillo'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e2b507684a4a4f&amp;ll=-12.110662,-76.996651&amp;spn=0.09332,0.113125&amp;z=14&amp;output=embed" name="surquillo"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['ventanilla'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="490" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004849da98433dfd4f57&amp;ll=-11.862578,-77.136308&amp;spn=0.04287,0.02384&amp;output=embed"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['villaelsalvador'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e319013e06475c&amp;ll=-12.170239,-76.986008&amp;spn=0.186597,0.20565&amp;z=14&amp;output=embed" name="villaelsalvador"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';
Mapas['villamarialdeltriunfo'] = '<h2 class="mapa-robo-header">Mapa del robo</h2><iframe width="670" height="496" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.es/maps/ms?ie=UTF8&amp;hl=es&amp;msa=0&amp;msid=116759468293156548167.0004837e32b5a0c1b4990&amp;ll=-12.171582,-76.925325&amp;spn=0.046649,0.051413&amp;z=14&amp;output=embed" name="villamarialdeltriunfo"></iframe><div style="margin-top:10px"><img src="i/leyenda.jpg" width="670" height="60" /></div>';

$(function(){
	$.get("content-3.html", {r: parseInt(Math.random()*10000)}, function(html){
		$("#todos-mapas-tab").html(html);
	});
});
$(function(){
	$.get("content-4.html", {r: parseInt(Math.random()*10000)}, function(html){
		$("#archivo-delito-tab").html(html);
	});
});
$(function(){
	$.get("content-5.html", {r: parseInt(Math.random()*10000)}, function(html){
		$("#notas-prensa-tab").html(html);
	});
});
$(function(){
	$.get("content-6.html", {r: parseInt(Math.random()*10000)}, function(html){
		$("#quienes-somos-tab").html(html);
	});
});
//$(function(){
//$.get("content-7.html", {r: parseInt(Math.random()*10000) }, function(html){
//$("#escoje-distrito-tab").html(html);
//});
//});

