Menu AS code explanation

Hey all, I believe this is the code from a menu bar that I have on my site, that directs you once-clicked to a different page within the flash movie. Could one of you experts give me a hand translating this code, and letting me know how it works and what it does? Thanks for the view,

on (rollOver) {
	if (_root.b<>_parent.p) {
		_parent.gotoAndPlay("s1");
	}
}
on (releaseOutside, rollOut) {
	if (_root.b<>_parent.p) {
		_parent.gotoAndPlay("s2");
	}
}
on (release) {
	if (_root.b<>_parent.p and _root.m<>1) {
		//_parent.lin.gotoAndPlay(2);
		//_parent.lin2.gotoAndPlay(2);
		_root.menu["b"+_root.b].gotoAndPlay("s2");
		//_root.cont.cont.gotoAndPlay("diss");
		_root.b = _parent.p;
		cont.gotoAndPlay("s1");
		_root.scroller.gotoAndStop("s0");
	}
}