/* 	
	MENU THAT GLIDES IN/OUT
	Created 2004-04-04 by Robert Karlsson <robert /AT/ i2studios.com> for i2 STUDIOS
	Visit http://www.i2studios.com for additional details
	This script is free and can be used freely. For details about license, refer to http://www.i2studios.com/php/policy.php
*/
y=0;	
angle=0;	
direction=0;

function glide(direction){
	angle=angle+(Math.PI/50);
	
	if (direction>0) y=Math.round(100*Math.sin(angle)); else y=Math.round(100*Math.cos(angle));
	
	document.getElementById('mymenu').style.top=-100+y;


	if (angle<Math.PI/2) setTimeout("glide(" + direction + ")",10);
	else {
		angle=0; //reset the angle
	}
}


