var crystalLake_status = false;
var emeraldPark_status = false;

function init( ) {
	
	crystalLake_obj = document.getElementById( "crystalLake" );
	crystalLake_obj.style.marginTop = "60px";
	crystalLake_full_obj = document.getElementById( "crystalLake_tween" );
	crystalLake_full_obj.style.height = "0px";
	crystalLake_show = new Tween(crystalLake_obj.style,'marginTop',Tween.strongEaseOut,parseInt(crystalLake_obj.style.marginTop),0,1,'px');
	crystalLake_full_show = new Tween(crystalLake_full_obj.style,'height',Tween.strongEaseOut,parseInt(crystalLake_full_obj.style.height),338,1,'px');	
	crystalLake_hide = new Tween(crystalLake_obj.style,'marginTop',Tween.strongEaseOut,parseInt(crystalLake_obj.style.marginTop),60,1,'px');
	crystalLake_full_hide = new Tween(crystalLake_full_obj.style,'height',Tween.strongEaseOut,parseInt(crystalLake_full_obj.style.height),0,1,'px');		
	
	emeraldPark_obj = document.getElementById( "emeraldPark" );
	emeraldPark_obj.style.marginTop = "60px";
	emeraldPark_full_obj = document.getElementById( "emeraldPark_tween" );
	emeraldPark_full_obj.style.height = "0px";
	emeraldPark_show = new Tween(emeraldPark_obj.style,'marginTop',Tween.strongEaseOut,parseInt(emeraldPark_obj.style.marginTop),0,1,'px');
	emeraldPark_full_show = new Tween(emeraldPark_full_obj.style,'height',Tween.strongEaseOut,parseInt(emeraldPark_full_obj.style.height),338,1,'px');	
	emeraldPark_hide = new Tween(emeraldPark_obj.style,'marginTop',Tween.strongEaseOut,parseInt(emeraldPark_obj.style.marginTop),60,1,'px');
	emeraldPark_full_hide = new Tween(emeraldPark_full_obj.style,'height',Tween.strongEaseOut,parseInt(emeraldPark_full_obj.style.height),0,1,'px');		
					
} // end init()


function hide( btn ) {
	if( btn == "crystalLake" )
	{
		if( crystalLake_status )
		{
			crystalLake_show.stop();
			crystalLake_full_show.stop();		
			crystalLake_hide = new Tween(crystalLake_obj.style,'marginTop',Tween.strongEaseOut,parseInt(crystalLake_obj.style.marginTop),60,1,'px');
			crystalLake_full_hide = new Tween(crystalLake_full_obj.style,'height',Tween.strongEaseOut,parseInt(crystalLake_full_obj.style.height),0,1,'px');
			crystalLake_hide.start();
			crystalLake_full_hide.start();
			crystalLake_status = false;
		} // end if
	} // end if
	
	if( btn == "emeraldPark" )
	{
		if( emeraldPark_status )
		{
			emeraldPark_show.stop();
			emeraldPark_full_show.stop();		
			emeraldPark_hide = new Tween(emeraldPark_obj.style,'marginTop',Tween.strongEaseOut,parseInt(emeraldPark_obj.style.marginTop),60,1,'px');
			emeraldPark_full_hide = new Tween(emeraldPark_full_obj.style,'height',Tween.strongEaseOut,parseInt(emeraldPark_full_obj.style.height),0,1,'px');
			emeraldPark_hide.start();
			emeraldPark_full_hide.start();
			emeraldPark_status = false;
		} // end if
	} // end if
	
}

function show( btn ) {
	if( btn == "crystalLake" )
	{
		if( !crystalLake_status )
		{
			crystalLake_hide.stop();
			crystalLake_full_hide.stop();		
			crystalLake_show = new Tween(crystalLake_obj.style,'marginTop',Tween.strongEaseOut,parseInt(crystalLake_obj.style.marginTop),0,1,'px');
			crystalLake_full_show = new Tween(crystalLake_full_obj.style,'height',Tween.strongEaseOut,parseInt(crystalLake_full_obj.style.height),238,1,'px');
			crystalLake_show.start();
			crystalLake_full_show.start();
			crystalLake_status = true;
		} // end if
	} // end if
	
	if( btn == "emeraldPark" )
	{
		if( !emeraldPark_status )
		{
			emeraldPark_hide.stop();
			emeraldPark_full_hide.stop();		
			emeraldPark_show = new Tween(emeraldPark_obj.style,'marginTop',Tween.strongEaseOut,parseInt(emeraldPark_obj.style.marginTop),0,1,'px');
			emeraldPark_full_show = new Tween(emeraldPark_full_obj.style,'height',Tween.strongEaseOut,parseInt(emeraldPark_full_obj.style.height),238,1,'px');
			emeraldPark_show.start();
			emeraldPark_full_show.start();
			emeraldPark_status = true;
		} // end if
	} // end if

}
