$(document).ready(function () {
    //$(window).resize(wincenter);
    $(".delete_action").click(function(e){if(!confirm("¿Realmente quiere borrar este elemento?\n\n")) return false;});
    $.ui.dialog.defaults.bgiframe = true;
    $(function() {
        var pos=$('#wrap').position();
        pos=parseInt(pos.left-437);
        $(".message").dialog({
            position: [pos+400,300]
        });

        
        
        $('#rollo_formacion a img').hover(function(){
            $(this).attr('src','themes/sigma/logo_formacion_brillo.png');
        }, function(){
            $(this).attr('src','themes/sigma/logo_formacion.png');

        });
        $('#rollo_unidades a img').hover(function(){
            $(this).attr('src','themes/sigma/logo_unidades_brillo.png');
        }, function(){
            $(this).attr('src','themes/sigma/logo_unidades.png');

        });
    });

});


function wincenter()
{
    aux=parseInt((($(document.documentElement).attr('clientHeight'))-($("#wrap").height()))/2);
    if (aux<0) aux=0;
    $("#wrap").css('top', aux+'px');
}

