
function proveedores()
{
    Shadowbox.init();
    submenu_car();
    submenu_hotel();
}

/*realiza el rollover de todas las imágenes con el atributo over='true'.
 * Solo válido pra ficheros con extensión png
 */
function efectoHover ()
{
    $('img[over="true"]').hover(function(){
                                    if ($(this).attr('activo') == 'true')
                                        return;
                                     this.src= this.src.replace('.png','_over.png')
                                    
                                }
                                ,function(){
                                    if ($(this).attr('activo') == 'true')
                                        return;
                                    this.src = this.src.replace('_over.png','.png')
                                }
                );
}

function submenu_car()
{
    $("#menu_coches").mouseenter(function(){$("#submenu_car").show();});
    $(".menu_opciones div:not(div#menu_coches)").mouseenter(function(){$("#submenu_car").hide();});
    $("#submenu_car").mouseleave(function(){$("#submenu_car").hide()});
    $("#submenu_car").hide();
}

function submenu_hotel()
{
    $("#menu_hotel").mouseenter(function(){$("#submenu_hotel").show();});
   
    $(".menu_opciones div:not(div#menu_hotel)").mouseenter(function(){$("#submenu_hotel").hide();});
    $("#submenu_hotel").mouseleave(function(){$("#submenu_hotel").hide()});
    $("#submenu_hotel").hide();
    
}

function deshabilitarPrecarga()
{
    $("#precarga").hide();
}


