﻿function toggleOrderHistoryInfo()
{
	var orderHistoryDiv = $get(LightboxObjects.OrderHistoryID);
	var orderHistoryBtn = $get(LightboxObjects.ShowHistoryButtonID);
	var exifInfoDiv = $get(LightboxObjects.ExifInfoID);
	var exifInfoBtn = $get(LightboxObjects.ExifInfoButtonID);
	var imageThumb = $get(LightboxObjects.ImageThumbID);
	var lightboxMode = $get(LightboxObjects.LightboxModeID);
	
	if (orderHistoryDiv.style.display == 'none')
	{
		orderHistoryDiv.style.display = 'block';
		orderHistoryBtn.className = 'btn_tool_on';
		
		imageThumb.style.display = 'none';
		lightboxMode.value = 'OrderHistory';
	}
	else
	{
		orderHistoryDiv.style.display = 'none';
		orderHistoryBtn.className = 'btn_tool';
		
		imageThumb.style.display = 'block';
		lightboxMode.value = 'Image';
	}
	
	if (exifInfoBtn)
	{
		exifInfoDiv.style.display = 'none';
		exifInfoBtn.className = 'btn_tool';
	}
}

function toggleExifInfo()
{
	var exifInfoDiv = $get(LightboxObjects.ExifInfoID);
	var exifInfoBtn = $get(LightboxObjects.ExifInfoButtonID);
	var orderHistoryDiv = $get(LightboxObjects.OrderHistoryID);
	var orderHistoryBtn = $get(LightboxObjects.ShowHistoryButtonID);
	var imageThumb = $get(LightboxObjects.ImageThumbID)
	var lightboxMode = $get(LightboxObjects.LightboxModeID);
	
	if (exifInfoDiv.style.display == 'none')
	{
		exifInfoDiv.style.display = 'block';
		exifInfoBtn.className = 'btn_tool_on';
		
		imageThumb.style.display = 'none';
		lightboxMode.value = 'ExifInfo';
	}
	else
	{
		exifInfoDiv.style.display = 'none';
		exifInfoBtn.className = 'btn_tool';
		
		imageThumb.style.display = 'block';
		lightboxMode.value = 'Image';
	}
	
	if (orderHistoryBtn)
	{
		orderHistoryDiv.style.display = 'none';
		orderHistoryBtn.className = 'btn_tool';
	}
}

