/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(document).ready(
    function(){
        $(".bugs_container").prepend($(".contenedor_debug"));
        //ahora seleccionamos el bugs_container y lo añadimos tras
        //el body
        $("body").prepend($(".bugs_container"));
        $(".bugs_container").css("visibility","visible");
        $(".debug_icon").css("visibility","visible");
        $(".debug_icon").click(
            function(){
                if($(this).find("+ .debug").css("visibility")=="visible"){
                    $(this).find("+ .debug").css("display","none");
                    $(this).find("+ .debug").css("z-index","1999");
                    $(this).css("z-index","2000");
                    $(".debug").css("visibility","hidden");
                }else{
                    $(".debug").css("visibility","hidden");
                    $(".debug").css("z-index","1999");
                    $(".debug_icon").css("z-index","2000");
                    $(this).find("+ .debug").css("display","none");
                    $(this).find("+ .debug").css("visibility","visible");
                    $(this).find("+ .debug").css("display","inline-block");
                    $(this).find("+ .debug").css("z-index","2001");
                    $(this).css("z-index","2002");
                }
            }
            );
    }
    );


