/*
	localfunctions.js
	site-specific functions
	
	dependencies: mootools 1.2
	
*/

function strippx(text) {
	return text.replace("px", "") ;
}

function showsidebar() {
	var sidewidth = parseInt(strippx(document.getElementById('sidebar').style.left)) +
		parseInt(strippx(document.getElementById('sidebar').style.width)) ;
		
	if (screen.availWidth > sidewidth) {
		document.getElementById('sidebar').style.display = 'inline' ;
	}
}