function ToggleLocations(evt)
{
	objBody = jQuery('body');
	
	
	if(jQuery('#locationbar').css('top') == "-140px")
	{
		if(jQuery('#devontionbar').css('top') == "0px")
		{
			jQuery('#devontionbar').gx({'top': '-140px'}, 750, 'Linear');
			jQuery('#locationbar').gx({'top': '-140px'}, 750, 'Linear');
			RaiseContent(evt);
		}
		jQuery('#locationbar').gx({'top': '0px'}, 750, 'Linear');
		jQuery('#devontionbar').gx({'top': '-140px'}, 750, 'Linear');
		LowerContent(evt);
	} 
	else 
	{
		jQuery('#locationbar').gx({'top': '-140px'}, 750, 'Linear');
		jQuery('#devontionbar').gx({'top': '-140px'}, 750, 'Linear');
		RaiseContent(evt);
	}
	return false;
}

function ToggleDevotions(evt)
{
	objBody = jQuery('body');
	if(jQuery('#devontionbar').css('top') == "-140px")
	{
		
		if(jQuery('#locationbar').css('top') == "0px")
		{
			jQuery('#locationbar').gx({'top': '-140px'}, 750, 'Linear');
			jQuery('#devontionbar').gx({'top': '-140px'}, 750, 'Linear');
			RaiseContent(evt);
		}
		jQuery('#devontionbar').gx({'top': '0px'}, 750, 'Linear');
		jQuery('#locationbar').gx({'top': '-140px'}, 750, 'Linear');
		LowerContent(evt);
	} 
	else 
	{
		jQuery('#devontionbar').gx({'top': '-140px'}, 750, 'Linear');
		jQuery('#locationbar').gx({'top': '-140px'}, 750, 'Linear');
		RaiseContent(evt);
	}
	return false;
}


function RaiseContent(evt)
{
	objBody = jQuery('body');
	
	jQuery('#wrapper').gx({'margin-top': '0px'}, 750, 'Linear');
	
	if (jQuery.browser.msie ) 
	{
		if(parseInt(jQuery.browser.version) <= 7)
		{
			jQuery('#drawer').gx({'top': '0px'}, 750, 'Linear');
			
			if(jQuery('#devontionbar').css('top') == "0px" || jQuery('#locationbar').css('top') == "0px")
			{			
				jQuery('#footer').gx({'top': '-=140px'}, 750, 'Linear');
				jQuery('#main').gx({'top': '-=140px'}, 750, 'Linear');
			}
			
			//jQuery('#slider').gx({'top': '0px'}, 750, 'Linear');
			jQuery('#header').gx({'top': '0px'}, 750, 'Linear');
			//jQuery('#masthead').gx({'top': '0px'}, 750, 'Linear');
			//jQuery('#branding').gx({'margin-top': '0px'}, 750, 'Linear');
			//objBody.gx({'backgroundPosition': '0px 0px'}, 750, 'Linear');
		}
	}
	else
	{
		
	}
	
	if(!jQuery.browser.msie || parseInt(jQuery.browser.version) > 7)
	{
		jQuery('#access').gx({'top': '164px'}, 750, 'Linear');
	}	
	
	if(jQuery.browser.safari  || jQuery.browser.webkit)
	{
		jQuery('#site-title').gx({'top': '0px'}, 750, 'Linear');
	}
	
	jQuery('#leftnavbutton').gx({'top': '340px'}, 750, 'Linear');
	jQuery('#rightnavbutton').gx({'top': '340px'}, 750, 'Linear');	
	return true;
}

function LowerContent(evt)
{
	objBody = jQuery('body');
	
	jQuery('#wrapper').gx({'margin-top': '140px'}, 750, 'Linear');
		
	if (jQuery.browser.msie ) 
	{
		if(parseInt(jQuery.browser.version) <= 7)
		{
			jQuery('#drawer').gx({'top': '140px'}, 750, 'Linear');
			
			if(jQuery('#devontionbar').css('top') != "0px" && jQuery('#locationbar').css('top') != "0px")
			{			
				jQuery('#footer').gx({'top': '+=140px'}, 750, 'Linear');
				jQuery('#main').gx({'top': '+=140px'}, 750, 'Linear');
			}
			//jQuery('#slider').gx({'top': '0px'}, 750, 'Linear');
			jQuery('#header').gx({'top': '140px'}, 750, 'Linear');
			//jQuery('#masthead').gx({'top': '140px'}, 750, 'Linear');
			//jQuery('#branding').gx({'margin-top': '140px'}, 750, 'Linear');
			//objBody.gx({'backgroundPosition': '0px 140px'}, 750, 'Linear');	
		}
		
	}
	else
	{
		
	}
	
	if(!jQuery.browser.msie || parseInt(jQuery.browser.version) > 7)
	{
		jQuery('#access').gx({'top': '304px'}, 750, 'Linear');
	}
	
	if(jQuery.browser.safari  || jQuery.browser.webkit)
	{
		jQuery('#site-title').gx({'top': '140px'}, 750, 'Linear');
	}
	
	jQuery('#leftnavbutton').gx({'top': '480px'}, 750, 'Linear');
	jQuery('#rightnavbutton').gx({'top': '480px'}, 750, 'Linear');	
	return true;
}
