
	$(document).ready(function()
	{
		// Displays an active state image on hover in IE6
		// Browser != IE6 uses CSS for this
		$('#nav-main li a').hover(function()
		{
			$('span', this).css({ display: 'block' });
		},
		function()
		{
			if (!$(this).hasClass('active'))
			{
				$('span', this).css({ display: 'none' });
			}
		});
		
		// IE6 PNG fix
		if (window.DD_belatedPNG)
		{
			DD_belatedPNG.fix('.png, #nav-main li span, .box, .box .outer, #contact form ol li .error');
		}
		
		ClearInputEvents('#news form input.txt');
	});
	
/*	CLEAR INPUT ON FOCUS
	----------------------------------------------------------------*/
	function ClearInputEvents(id)
	{
		var obj = $(id);
	
		if (obj.length > 0)
		{
			if (obj.val())
			{
				obj.startvalue = obj.val();
				
				obj.focus(function()
				{
					if (obj.val() == obj.startvalue)
					{
						obj.val(''); 
						obj.addClass('focus');
					}
				});
				
				obj.blur(function()
				{
					if (obj.val() == '')
					{
						obj.val(obj.startvalue);
						obj.removeClass('focus');
					}
				});
			}
			else
			{
				obj.val('');
			}
		}
	}
