/*  Prototype JavaScript framework
 *  (c) 2009 Triq Media (info@triq.web.id)
 *  Prototype is not freely distributable, abide the Indonesia law.
 *  For details, see the Prototype web site: http://sanugrah.com/float.php
/*--------------------------------------------------------------------------*/

var showFriendlyReminder 	= true;
var showApa 		= false;
var showFlightSchedules 	= false;
var showLain 		= false;
var showVisa 			= false;
var showInfants 		= false;
var showAssistance 		= false;
var showBaggage 		= false;
var showDomain 			= false;
var showDesain 		= false;

/*####################################################
#
# Function: toggleFriendlyReminder()
#
# Description:
#	Expand / Collapse the entire At-a-Glance friendly reminder section
#
*/
function toggleFriendlyReminder()
{
	if (showFriendlyReminder == true)
	{
		showFriendlyReminder = false;
	}
	else
	{
		showFriendlyReminder = true;
	}
	showDiv(showFriendlyReminder, 'ataGlanceFriendlyReminder');
	balanceHeight("wrapper", "left", "right");
}
	
	
/*####################################################
#
# Function: toggleApaContents()
#
# Description:
#	Expand / Collapse the disclaimer text contents
#
*/
function toggleApaContents()
{
	if (showApa == true)
	{
		showApa = false;
		document["expandImgApa"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showApa = true;
		document["expandImgApa"].src = "scripts/icon_minus.gif";
	}
	showDiv(showApa, 'expandApa');
	balanceHeight("wrapper", "left", "right");
}


/*####################################################
#
# Function: toggleLainContents()
#
# Description:
#	Expand / Collapse the check in text contents
#
*/
function toggleLainContents()
{
	if (showLain == true)
	{
		showLain = false;
		document["expandImgLain"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showLain = true;
		document["expandImgLain"].src = "scripts/icon_minus.gif";
	}
	showDiv(showLain, 'expandLain');
	balanceHeight("wrapper", "left", "right");
}

/*####################################################
#
# Function: toggle24Contents()
#
# Description:
#	Expand / Collapse the visas text contents
#
*/
function toggle24Contents()
{
	if (showVisa == true)
	{
		showVisa = false;
		document["expandImg24"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showVisa = true;
		document["expandImg24"].src = "scripts/icon_minus.gif";
	}
	showDiv(showVisa, 'expand24');
	balanceHeight("wrapper", "left", "right");
}



/*####################################################
#
# Function: toggleDomainContents()
#
# Description:
#	Expand / Collapse the guests text contents
#
*/
function toggleDomainContents()
{
	if (showDomain == true)
	{
		showDomain = false;
		document["expandImgDomain"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showDomain = true;
		document["expandImgDomain"].src = "scripts/icon_minus.gif";
	}
	showDiv(showDomain, 'expandDomain');
	balanceHeight("wrapper", "left", "right");
}

/*####################################################
#
# Function: toggleDesainContents()
#
# Description:
#	Expand / Collapse the pregnant text contents
#
*/
function toggleDesainContents()
{
	if (showDesain == true)
	{
		showDesain = false;
		document["expandImgDesain"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showDesain = true;
		document["expandImgDesain"].src = "scripts/icon_minus.gif";
	}
	showDiv(showDesain, 'expandDesain');
	balanceHeight("wrapper", "left", "right");
}