//
// 	Code used with permission and adapted from Stompfrog - (C) 2008 Stompfrog, Inc.
// 	http://www.stompfrog.co.uk/
//  

function init() {
	document.getElementById("p1").style.top=0+"px";
	document.getElementById("nav").style.display="block";
}

function animate(content) {
	for (x=1;x<6;x=x+1) {
		div = "p"+parseInt(x);
		if(document.getElementById(div).offsetTop==0) {
			exit = new Tween(document.getElementById(div).style,'top',Tween.strongEaseIn,0,-1000,0.65,'px');
			exit.onMotionFinished = function(){entrance = new Tween(document.getElementById(content).style,'top',Tween.strongEaseOut,1000,0,0.65,'px');entrance.start();};
			exit.start();
		}
	}
}