/*----------------------------------------------------------------------------
 Project:			OnlineShopDotNet
 Source File:		ShowHideButton.js
 Company:     		Ascent Technology Limited
 Author:      		John Mills
 Date:        		29/11/2007
 Purpose:     		This file contains the AJAX client side code for the
						ShowHideButton class.
 Notes:       		
------------------------------------------------------------------------------
 John Mills     	Created.
 29/11/2007        
----------------------------------------------------------------------------*/

function AscentTechnologyLimited$OnlineShop$Controls$ShowHideButton$ClickHandler(Image, ElementId, 
	ShowImageUrl, HideImageUrl)
{
	
	var Element = $get(ElementId);
	
	if (Element.style.visibility !== 'hidden')
	{
		Element.style.visibility = 'hidden';
		Element.style.display = 'none';
		Image.src = ShowImageUrl;
	}
	else
	{
		Element.style.visibility = 'visible';
		Element.style.display = 'block';
		Image.src = HideImageUrl;
	}	
	
}

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();