var dropdown_status = false;

function initDropDownTween( ) {		

	dropdown_obj = document.getElementById( "dropdown" );
	dropdown_content_obj = document.getElementById( "dropdown-content" );
	
	dropdown_obj.style.height = "49px";
	dropdown_content_obj.style.marginTop = "-140px";
	
	dropdown_show = new Tween(dropdown_obj.style,'height',Tween.strongEaseOut,parseInt(dropdown_obj.style.height),180,1,'px');
	dropdown_full_show = new Tween(dropdown_content_obj.style,'marginTop',Tween.strongEaseOut,parseInt(dropdown_content_obj.style.marginTop),0,1,'px');	
	dropdown_hide = new Tween(dropdown_obj.style,'height',Tween.strongEaseOut,parseInt(dropdown_obj.style.height),49,1,'px');
	dropdown_full_hide = new Tween(dropdown_content_obj.style,'marginTop',Tween.strongEaseOut,parseInt(dropdown_content_obj.style.marginTop),-140,1,'px');
	
} // end init()

function hide( btn ) {
	if( btn == "dropdown" )
	{
		if( dropdown_status )
		{
			dropdown_show.stop();
			dropdown_full_show.stop();		
			dropdown_hide = new Tween(dropdown_obj.style,'height',Tween.strongEaseOut,parseInt(dropdown_obj.style.height),49,1,'px');
			dropdown_full_hide = new Tween(dropdown_content_obj.style,'marginTop',Tween.strongEaseOut,parseInt(dropdown_content_obj.style.marginTop),-140,1,'px');
			dropdown_hide.start();
			dropdown_full_hide.start();
			dropdown_status = false;
		} // end if
	} // end if
	
}//function

function show( btn ) {
	if( btn == "dropdown" )
	{
		if( !dropdown_status )
		{
			dropdown_hide.stop();
			dropdown_full_hide.stop();		
			dropdown_show = new Tween(dropdown_obj.style,'height',Tween.strongEaseOut,parseInt(dropdown_obj.style.height),180,1,'px');
			dropdown_full_show = new Tween(dropdown_content_obj.style,'marginTop',Tween.strongEaseOut,parseInt(dropdown_content_obj.style.marginTop),0,1,'px');
			dropdown_show.start();
			dropdown_full_show.start();
			dropdown_status = true;
		} // end if
	} // end if

}//function