var specials_status = false;
var fishboats_status = false;
var suncruiser_status = false;

function init( ) {
	specials_obj = document.getElementById( "specials" );
	specials_obj.style.marginTop = "60px";
	specials_full_obj = document.getElementById( "specials_tween" );
	specials_full_obj.style.height = "0px";
	specials_show = new Tween(specials_obj.style,'marginTop',Tween.strongEaseOut,parseInt(specials_obj.style.marginTop),0,1,'px');
	specials_full_show = new Tween(specials_full_obj.style,'height',Tween.strongEaseOut,parseInt(specials_full_obj.style.height),238,1,'px');	
	specials_hide = new Tween(specials_obj.style,'marginTop',Tween.strongEaseOut,parseInt(specials_obj.style.marginTop),60,1,'px');
	specials_full_hide = new Tween(specials_full_obj.style,'height',Tween.strongEaseOut,parseInt(specials_full_obj.style.height),0,1,'px');		
	
	fishboats_obj = document.getElementById( "fishboats" );
	fishboats_obj.style.marginTop = "60px";
	fishboats_full_obj = document.getElementById( "fishboats_tween" );
	fishboats_full_obj.style.height = "0px";
	fishboats_show = new Tween(fishboats_obj.style,'marginTop',Tween.strongEaseOut,parseInt(fishboats_obj.style.marginTop),0,1,'px');
	fishboats_full_show = new Tween(fishboats_full_obj.style,'height',Tween.strongEaseOut,parseInt(fishboats_full_obj.style.height),238,1,'px');	
	fishboats_hide = new Tween(fishboats_obj.style,'marginTop',Tween.strongEaseOut,parseInt(fishboats_obj.style.marginTop),60,1,'px');
	fishboats_full_hide = new Tween(fishboats_full_obj.style,'height',Tween.strongEaseOut,parseInt(fishboats_full_obj.style.height),0,1,'px');		
	
	suncruiser_obj = document.getElementById( "suncruiser" );
	suncruiser_obj.style.marginTop = "60px";
	suncruiser_full_obj = document.getElementById( "suncruiser_tween" );
	suncruiser_full_obj.style.height = "0px";
	suncruiser_show = new Tween(suncruiser_obj.style,'marginTop',Tween.strongEaseOut,parseInt(suncruiser_obj.style.marginTop),0,1,'px');
	suncruiser_full_show = new Tween(suncruiser_full_obj.style,'height',Tween.strongEaseOut,parseInt(suncruiser_full_obj.style.height),238,1,'px');	
	suncruiser_hide = new Tween(suncruiser_obj.style,'marginTop',Tween.strongEaseOut,parseInt(suncruiser_obj.style.marginTop),60,1,'px');
	suncruiser_full_hide = new Tween(suncruiser_full_obj.style,'height',Tween.strongEaseOut,parseInt(suncruiser_full_obj.style.height),0,1,'px');					
} // end init()


function hide( btn ) {
	if( btn == "specials" )
	{
		if( specials_status )
		{
			specials_show.stop();
			specials_full_show.stop();		
			specials_hide = new Tween(specials_obj.style,'marginTop',Tween.strongEaseOut,parseInt(specials_obj.style.marginTop),60,1,'px');
			specials_full_hide = new Tween(specials_full_obj.style,'height',Tween.strongEaseOut,parseInt(specials_full_obj.style.height),0,1,'px');
			specials_hide.start();
			specials_full_hide.start();
			specials_status = false;
		} // end if
	} // end if
	
	if( btn == "fishboats" )
	{
		if( fishboats_status )
		{
			fishboats_show.stop();
			fishboats_full_show.stop();		
			fishboats_hide = new Tween(fishboats_obj.style,'marginTop',Tween.strongEaseOut,parseInt(fishboats_obj.style.marginTop),60,1,'px');
			fishboats_full_hide = new Tween(fishboats_full_obj.style,'height',Tween.strongEaseOut,parseInt(fishboats_full_obj.style.height),0,1,'px');
			fishboats_hide.start();
			fishboats_full_hide.start();
			fishboats_status = false;
		} // end if
	} // end if
	
	if( btn == "suncruiser" )
	{
		if( suncruiser_status )
		{
			suncruiser_show.stop();
			suncruiser_full_show.stop();		
			suncruiser_hide = new Tween(suncruiser_obj.style,'marginTop',Tween.strongEaseOut,parseInt(suncruiser_obj.style.marginTop),60,1,'px');
			suncruiser_full_hide = new Tween(suncruiser_full_obj.style,'height',Tween.strongEaseOut,parseInt(suncruiser_full_obj.style.height),0,1,'px');
			suncruiser_hide.start();
			suncruiser_full_hide.start();
			suncruiser_status = false;
		} // end if
	} // end if		
}

function show( btn ) {
	if( btn == "specials" )
	{
		if( !specials_status )
		{
			specials_hide.stop();
			specials_full_hide.stop();
			specials_show = new Tween(specials_obj.style,'marginTop',Tween.strongEaseOut,parseInt(specials_obj.style.marginTop),0,1,'px');
			specials_full_show = new Tween(specials_full_obj.style,'height',Tween.strongEaseOut,parseInt(specials_full_obj.style.height),238,1,'px');
			specials_show.start();
			specials_full_show.start();
			specials_status = true;
		} // end if
	} // end if
	
	if( btn == "fishboats" )
	{
		if( !fishboats_status )
		{
			fishboats_hide.stop();
			fishboats_full_hide.stop();		
			fishboats_show = new Tween(fishboats_obj.style,'marginTop',Tween.strongEaseOut,parseInt(fishboats_obj.style.marginTop),0,1,'px');
			fishboats_full_show = new Tween(fishboats_full_obj.style,'height',Tween.strongEaseOut,parseInt(fishboats_full_obj.style.height),238,1,'px');
			fishboats_show.start();
			fishboats_full_show.start();
			fishboats_status = true;
		} // end if
	} // end if

	if( btn == "suncruiser" )
	{
		if( !suncruiser_status )
		{
			suncruiser_hide.stop();
			suncruiser_full_hide.stop();		
			suncruiser_show = new Tween(suncruiser_obj.style,'marginTop',Tween.strongEaseOut,parseInt(suncruiser_obj.style.marginTop),0,1,'px');
			suncruiser_full_show = new Tween(suncruiser_full_obj.style,'height',Tween.strongEaseOut,parseInt(suncruiser_full_obj.style.height),238,1,'px');
			suncruiser_show.start();
			suncruiser_full_show.start();
			suncruiser_status = true;
		} // end if
	} // end if		
}