//define all necessary variables
var _HOME=0
var _REEL=1
var _RESUME=1
var _GALLERY=1
var _CONTACT=1
var _LINKS=1

//Define functions for each menu options
function m_home()
{
	if (_REEL==0)
	{Effect.SlideUp('reel'); _REEL=1;}
	if (_RESUME==0)
	{Effect.SlideUp('resume'); _RESUME=1;}
	if (_GALLERY==0)
	{Effect.SlideUp('gallery'); _GALLERY=1;}
	if (_CONTACT==0)
	{Effect.SlideUp('contact'); _CONTACT=1;}
	if (_LINKS==0)
	{Effect.SlideUp('links'); _LINKS=1;}
	if (_HOME==1)
	{Effect.SlideDown('home', {duration:2, delay:1}); _HOME=0}
}

function m_reel()
{
	if (_RESUME==0)
	{Effect.SlideUp('resume'); _RESUME=1;}
	if (_GALLERY==0)
	{Effect.SlideUp('gallery'); _GALLERY=1;}
	if (_CONTACT==0)
	{Effect.SlideUp('contact'); _CONTACT=1;}
	if (_LINKS==0)
	{Effect.SlideUp('links'); _LINKS=1;}
	if (_HOME==0)
	{Effect.SlideUp('home'); _HOME=1}
	if (_REEL==1)
	{Effect.SlideDown('reel', {duration:2, delay:1}); _REEL=0;}
}

function m_resume()
{
	if (_REEL==0)
	{Effect.SlideUp('reel'); _REEL=1;}
	if (_GALLERY==0)
	{Effect.SlideUp('gallery'); _GALLERY=1;}
	if (_CONTACT==0)
	{Effect.SlideUp('contact'); _CONTACT=1;}
	if (_LINKS==0)
	{Effect.SlideUp('links'); _LINKS=1;}
	if (_HOME==0)
	{Effect.SlideUp('home'); _HOME=1}
	if (_RESUME==1)
	{Effect.SlideDown('resume', {duration:2, delay:1}); _RESUME=0;}
}

function m_gallery()
{
	if (_REEL==0)
	{Effect.SlideUp('reel'); _REEL=1;}
	if (_RESUME==0)
	{Effect.SlideUp('resume'); _RESUME=1;}
	if (_CONTACT==0)
	{Effect.SlideUp('contact'); _CONTACT=1;}
	if (_LINKS==0)
	{Effect.SlideUp('links'); _LINKS=1;}
	if (_HOME==0)
	{Effect.SlideUp('home'); _HOME=1}
	if (_GALLERY==1)
	{Effect.SlideDown('gallery', {duration:2, delay:1}); _GALLERY=0;}
}

function m_contact()
{
	if (_REEL==0)
	{Effect.SlideUp('reel'); _REEL=1;}
	if (_RESUME==0)
	{Effect.SlideUp('resume'); _RESUME=1;}
	if (_GALLERY==0)
	{Effect.SlideUp('gallery'); _GALLERY=1;}
	if (_LINKS==0)
	{Effect.SlideUp('links'); _LINKS=1;}
	if (_HOME==0)
	{Effect.SlideUp('home'); _HOME=1}
	if (_CONTACT==1)
	{Effect.SlideDown('contact', {duration:2, delay:1}); _CONTACT=0;}
}

function m_links()
{
	if (_REEL==0)
	{Effect.SlideUp('reel'); _REEL=1;}
	if (_RESUME==0)
	{Effect.SlideUp('resume'); _RESUME=1;}
	if (_GALLERY==0)
	{Effect.SlideUp('gallery'); _GALLERY=1;}
	if (_CONTACT==0)
	{Effect.SlideUp('contact'); _CONTACT=1;}
	if (_HOME==0)
	{Effect.SlideUp('home'); _HOME=1}
	if (_LINKS==1)
	{Effect.SlideDown('links', {duration:2, delay:1}); _LINKS=0;}
}
