/*#############################################################################

FILE:	friendlyReminder.js

	Copyright (c) 2008 Navitaire Inc. All rights reserved.

	This source code is (i) proprietary to and a trade secret of Navitaire Inc.
	and (ii) protected by copyright law and international treaties.
	Unauthorized disclosure, reproduction, distribution or alteration of this
	source code, or any portion of it, may result in severe civil and criminal
	penalties and will be prosecuted to the maximum extent possible under
	the law.

	www.navitaire.com

DESCRIPTION:

	Contains javascript for the friendly reminder ataGlance section.  

#############################################################################*/

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: toggleSchedulesContents()
#
# Description:
#	Expand / Collapse the schedules text contents
#
*/
function toggleFlightSchedulesContents()
{
	if (showFlightSchedules == true)
	{
		showFlightSchedules = false;
		document["expandImgFlightSchedules"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showFlightSchedules = true;
		document["expandImgFlightSchedules"].src = "scripts/icon_minus.gif";
	}
	showDiv(showFlightSchedules, 'expandFlightSchedules');
	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: toggleInfantsContents()
#
# Description:
#	Expand / Collapse the infants text contents
#
*/
function toggleInfantsContents()
{
	if (showInfants == true)
	{
		showInfants = false;
		document["expandImgInfants"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showInfants = true;
		document["expandImgInfants"].src = "scripts/icon_minus.gif";
	}
	showDiv(showInfants, 'expandInfants');
	balanceHeight("wrapper", "left", "right");
}

/*####################################################
#
# Function: toggleAssistanceContents()
#
# Description:
#	Expand / Collapse the assistance text contents
#
*/
function toggleAssistanceContents()
{
	if (showAssistance == true)
	{
		showAssistance = false;
		document["expandImgAssistance"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showAssistance = true;
		document["expandImgAssistance"].src = "scripts/icon_minus.gif";
	}
	showDiv(showAssistance, 'expandAssistance');
	balanceHeight("wrapper", "left", "right");
}

/*####################################################
#
# Function: toggleBaggageContents()
#
# Description:
#	Expand / Collapse the assistance text contents
#
*/
function toggleBaggageContents()
{
	if (showBaggage == true)
	{
		showBaggage = false;
		document["expandImgBaggage"].src = "scripts/icon_plus.gif";
	}
	else
	{
		showBaggage = true;
		document["expandImgBaggage"].src = "scripts/icon_minus.gif";
	}
	showDiv(showBaggage, 'expandBaggage');
	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");
}