/* Author: Sophie

*/

function showMenuAbout() {
	document.getElementById('navAbout').style.display='block';
	t1A = new Tween(document.getElementById('navAbout').style,'right',Tween.backEaseOut,0,50,.5,'px');
	t1A.start();
	opacityTween = new OpacityTween(document.getElementById('navAbout'),Tween.regularEaseIn, 0, 100, .1);
	opacityTween.start();
}
function hideMenuAbout() {
	opacityTween = new OpacityTween(document.getElementById('navAbout'),Tween.regularEaseIn, 100, 0, .2);
	opacityTween.start();
}
function showMenuReal() {
	document.getElementById('navReal').style.display='block';
	t1A = new Tween(document.getElementById('navReal').style,'right',Tween.backEaseOut,0,50,.5,'px');
	t1A.start();
	opacityTween = new OpacityTween(document.getElementById('navReal'),Tween.regularEaseIn, 0, 100, .1);
	opacityTween.start();
}
function hideMenuReal() {
	opacityTween = new OpacityTween(document.getElementById('navReal'),Tween.regularEaseIn, 100, 0, .2);
	opacityTween.start();
}
function showMenuContact() {
	document.getElementById('navContact').style.display='block';
	t1A = new Tween(document.getElementById('navContact').style,'right',Tween.backEaseOut,0,50,.5,'px');
	t1A.start();
	opacityTween = new OpacityTween(document.getElementById('navContact'),Tween.regularEaseIn, 0, 100, .1);
	opacityTween.start();
}
function hideMenuContact() {
	opacityTween = new OpacityTween(document.getElementById('navContact'),Tween.regularEaseIn, 100, 0, .2);
	opacityTween.start();
}
function changeAbout() {
	/*t1A = new Tween(document.getElementById('about').style,'right',Tween.backEaseOut,0,500,.5,'px');
	t1A.start();*/
	/*t2A = new Tween(document.getElementById('realisations').style,'bottom',Tween.regularEaseOut,0,240,.5,'px');
	t2A.start();*/
	opacityTween = new OpacityTween(document.getElementById('about'),Tween.regularEaseIn, 100, 0, .2);
	opacityTween.start();
	opacityTween.onMotionFinished=function() {
		document.getElementById('realisations').style.display='block';
		document.getElementById('about').style.display='none';
		opacityTween1 = new OpacityTween(document.getElementById('realisations'),Tween.regularEaseIn, 0, 100, .2);
		opacityTween1.start();
	}
}
function changeReal() {
	/*t1A = new Tween(document.getElementById('realisations').style,'left',Tween.backEaseOut,0,500,.5,'px');
	t1A.start();*/
	/*t2A = new Tween(document.getElementById('contact').style,'bottom',Tween.regularEaseOut,0,480,.5,'px');
	t2A.start();*/
	opacityTween = new OpacityTween(document.getElementById('realisations'),Tween.regularEaseIn, 100, 0, .2);
	opacityTween.start();
	opacityTween.onMotionFinished=function() {
		document.getElementById('contact').style.display='block';
		document.getElementById('realisations').style.display='none';
		opacityTween1 = new OpacityTween(document.getElementById('contact'),Tween.regularEaseIn, 0, 100, .2);
		opacityTween1.start();
	}
}
function changeContact() {
	/*t1A = new Tween(document.getElementById('contact').style,'left',Tween.backEaseOut,0,500,.5,'px');
	t1A.start();*/
	/*t2A = new Tween(document.getElementById('about').style,'bottom',Tween.regularEaseOut,0,480,.5,'px');
	t2A.start();*/
	opacityTween = new OpacityTween(document.getElementById('contact'),Tween.regularEaseIn, 100, 0, .2);
	opacityTween.start();
	opacityTween.onMotionFinished=function() {
		document.getElementById('about').style.display='block';
		document.getElementById('contact').style.display='none';
		opacityTween1 = new OpacityTween(document.getElementById('about'),Tween.regularEaseIn, 0, 100, .2);
		opacityTween1.start();
	}
}
























