//window on dom ready
window.addEvent('domready', function() {
	//for every switch-view link
	$$('.switch-view').each(function(el) {
		//add click event
		el.addEvent('click', function(e) {
			//nowhere
			e.stop();
			//morph
			myFx = new Fx.Morph('menu', {duration:900, transition: Fx.Transitions.Expo.easeOut}).start('.' + el.get('rel'));
		});
	});
	
	$$('.qiktoggle').each(function(el) {
		//add click event
		el.addEvent('click', function(e) {
			//nowhere
			e.stop();
			//morph
			myFx = new Fx.Morph('qik', {duration:900, transition: Fx.Transitions.Expo.easeOut}).start('.' + el.get('rel'));
		});
	});

	$$('.links a').each(function(el) {  
	var fx = new Fx.Morph(el,{ duration:1300, transition: Fx.Transitions.Elastic.easeOut, link:'cancel' });
	el.addEvents({
		'mouseenter': function() { fx.start({ 'padding-left': 9 }); },
		'mouseleave': function() { fx.start({ 'padding-left': 0 }); }
	});

});

});