/**********************************************************************************
  A-Team Systems Source Code
  
  Copyright (c) 2001-2011, All Rights Reserved

  FULL SUPPORT IS AVAILABLE
  Email:  assistance@ateamsystems.com         USA Phone:   1.877.883.1394
    Web:  http://www.ateamsystems.com/       Intl Phone:  +1.603.244.3974
      
  You are hereby granted non-transferable rights to use this code in applications,
  software and scripts developed for you by A-Team Productions, LLC.
  
  Do not modify, resell, transfer or otherwise copy this code except for backup or
  migration purposes.
**********************************************************************************/

/* Handle clearing the default text and restoring the colour when the user clicks the search field for the first time */
function MainMenuSearchClick ()
	{
	if ( document.forms['MainMenuSearchForm'].SearchInput.value == 'Search our site' )
		{
		document.forms['MainMenuSearchForm'].SearchInput.value = '';
		MainMenuSearchColor();
		}
	}

function MainMenuSearchColor ()
	{
	document.forms['MainMenuSearchForm'].SearchInput.style.color = '#000000';
	}


/* Handle the same for the email field in the header's mailing list subscribe form */
function TopBarSubscribeClick ()
	{
	if ( document.forms['MailingListFormHeader'].emailAddr.value == 'your@emailaddress.com' )
		{
		document.forms['MailingListFormHeader'].emailAddr.value = '';
		TopBarSubscribeColor();
		}
	}

function TopBarSubscribeColor ()
	{
	document.forms['MailingListFormHeader'].emailAddr.style.color = '#000000';
	}

