/**
 *	wasteaware.js
 *
 *	Waste aware JS functions, using JQuery.
 *
 *	@author: A.Surrey
 */
 
 $(document).ready(function()
	{

    $('#slider').cycle({
      timeout: 10000,
      next: '.right',
      prev: '.left',
      fx: 'scrollHorz'
    });

		/**
		 *	Highlight the newsletter input fields ////////////////////////////
		 */
		$(".newsletter-input").focus(function()
			{
				$(this).addClass("newsletter-input-focus");
				if( $(this).val() == "Name" || $(this).val() == "Email Address" )
				{
					$(this).val("");
				}
			});
		
		$(".newsletter-input").blur(function()
			{
				$(this).removeClass("newsletter-input-focus");
				if ($(this).val() == "")
				{
					switch( $(this).attr("name") )
					{
						case "txtName":
							$(this).val("Name");
							break;
						case "txtEmail":
							$(this).val("Email Address");
							break
					}
				}
				
			});	
			
			
	});