User:Bryan/vector.js

var barHandlers = { hide : function { var content = document.getElementById('content'); content.className = 'full-width'; this.onclick = barHandlers.show; },	show : function { var content = document.getElementById('content'); content.className = ''; this.onclick = barHandlers.hide; } };

addOnloadHook( function {	var bar = document.createElement('div');	bar.id = 'collapse-sidebar';	document.body.appendChild(bar);

if (window.is_safari) { bar.onclick = barHandlers.show; barHandlers.hide; } else { bar.onclick = barHandlers.hide; } } );