slideCommon.js 711 Bytes
var showLeftPush, body;

$(document).ready(
		function() {
			// new mlPushMenu( document.getElementById( 'mp-menu' ),
			// document.getElementById( 'trigger' ) );
			showLeftPush = document.getElementById('showLeftPush'),
					body = document.getElementById('slidePushMenus');
			showLeftPush.onclick = function() {
				classie.toggle(this, 'active');
				classie.toggle(document.getElementById('mainm'), 'main-after');
				classie.toggle(body, 'cbp-spmenu-push-toright');
			};
		});

function disable() {
	classie.remove(showLeftPush, 'active');
	classie.remove(document.getElementById('mainm'), 'main-after');
	classie.remove(body, 'cbp-spmenu-push-toright');
	classie.remove(showLeftPush, 'disabled');
}