/**
 * Makes browser scroll not be interfered by Flash objects' scroll, vice versa
 *
 * Original idea and code from: http://www.mustardlab.com/developer/flash/mousewheel/
 */
function enableScroll(){
	this.canScroll = true;
}

function disableScroll(){
	this.canScroll = false;
}

function scrollFlash(){
	if(this.canScroll == true){
		window.event.returnValue = false;
	}
}

Event.observe(window, "load", function() {
	$$("object").each(function(item) {
		item.observe("mousewheel", scrollFlash.bind(item));
		item.observe("focus", enableScroll.bind(item));
		item.observe("blur", disableScroll.bind(item));
	});
});