document.addEvent('domready', function(){

	// Submenu
	/*
	var content = $('content');
	var submenu = $('submenu');
	var submenuShadow = $$('.submenu-shadow')[0];
	var position = function() {
		if (window.getSize().x > 940) {
			console.log(window.scrollY);
			if (window.scrollY >= 150) {
				content.setStyle('padding-top',50);
			    submenu.setStyles({
					'position': 'fixed',
					'top': 0,
					'right': 0,
					'z-index': 2000
				});
			    submenuShadow.setStyles({
					'position': 'fixed',
					'top': 50,
					'right': 0,
					'z-index': 2000
				});
			} else {
				content.setStyle('padding-top',0);
			    submenu.setStyles({
					'position': 'relative',
					'top': 'auto',
					'right': 'auto',
					'z-index': 2000
				});
			    submenuShadow.setStyles({
					'position': 'absolute',
					'top': 200,
					'right': 0,
					'z-index': 2000
				});
			}
		} else {
		    submenu.setStyles({
				'position': 'relative',
				'top': 63,
			});
		}
	};
	
	document.addEvent('scroll', position);
	document.addEvent('resize', position);
	*/

	// ReMooz
	// http://digitarald.de/project/remooz/
	// Assigns ReMooz behavior to all anchors with the .remooz class
	ReMooz.assign($$('.remooz'), {dragging:false}); 

});
