var home = new Fx.Slide('homepg');
var port = new Fx.Slide('portpg');
var low = new Fx.Slide('lowpg');
var cont = new Fx.Slide('contpg');
var prim=0;
var notclick=1;
home.hide();
port.hide();
low.hide();
cont.hide();


$('menhome').addEvent('click', function(e){
	e = new Event(e);
	port.slideOut();
    low.slideOut();
    cont.slideOut();
    if (prim)
    setTimeout( "home.slideIn();", '700' );
    else home.slideIn();
    prim++;notclick='home';
	e.stop();
});	

$('menport').addEvent('click', function(e){
	e = new Event(e);
	home.slideOut();
    low.slideOut();
    cont.slideOut();
    if (prim)
    setTimeout( "port.slideIn();", '700' );
    else port.slideIn();
    prim++;notclick='port';
	e.stop();
});	

$('menlow').addEvent('click', function(e){
	e = new Event(e);
	port.slideOut();
    home.slideOut();
    cont.slideOut();
    if (prim)
    setTimeout( "low.slideIn();", '700' );
    else low.slideIn();
	prim++;notclick='low';
	e.stop();
});	

$('mencont').addEvent('click', function(e){
	e = new Event(e);
	port.slideOut();
    low.slideOut();
    home.slideOut();
    if (prim)
    setTimeout( "cont.slideIn();", '700' );
    else cont.slideIn();
    prim++;notclick='cont';
	e.stop();
	
});	