Mira si te sirve esto
Código Javascript
:
Ver originalvar posicion=document.getElementById('contenido').style.right;
function mostrarEsconderMenu(){
if(posicion==' 0px'){
document.getElementById('contenido').style.right='-150px';
}else{
document.getElementById('contenido').style.right=' 0px';
}
posicion=document.getElementById('contenido').style.right;
}
var posicion=document.getElementById('contenido').styl e.right;
debería estar despues de 'contenido'