var paso = 0; var mx_x = ["","X "]; var dir_x = []; function option(op){ window.open(dir_x[op],"_top"); } function mnx(){ if(paso===1){ return; } paso=1; if($("#base_menu").css("display") !== "none"){ $("#menu_x").fadeOut(400,function(){ $("#menu_x").html(mx_x[0]); $("#tapa").fadeOut(400,function(){ $("#base_menu").fadeOut(400,function(){ $("#menu_x").fadeIn(400,function(){ paso=0; }); }); }); }); }else{ $("#menu_x").fadeOut(400,function(){ $("#menu_x").html(mx_x[1]); $("#base_menu").fadeIn(300,function(){ $("#tapa").fadeIn(400,function(){ $("#menu_x").fadeIn(400,function(){ paso=0; }); }); }); }); } } function cargar_menu(){ document.getElementsByTagName("body")[0].id = "b_0"; $("#b_0").html($("#b_0").html()+window.localStorage.tabs); var tab = "
"; var aux = ""; $("#b_0").html($("#b_0").html()+tab+aux); } $(document).ready(function () { mx_x[0] = $("#menu_x").html(); cargar_menu(); $(window).resize(); $("#b_0").fadeIn(); }); $(window).resize(function(){ $("#contenido").height( $(window).height()-51); $("#tapa").height( $(window).height()-51); $("#base_menu").height( $(window).height()-51); });