﻿
// Clear text function

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

$(document).ready(function(){
	$(".singlefeature > a").hover(function(){
		$(this).find("div.holder").stop().fadeIn("fast");		
	}, function(){
		$(this).find("div.holder").stop().fadeOut('fast', function(){$(this).css("opacity","100")});
	});
	
	$("#newsHome > div").each(function(){
		$(this).click(function(){
			location.href=$(this).find("a").attr("href");
		});
		$(this).hover(function(){
			$(this).addClass("hover");
		},function(){
			$(this).removeClass("hover");
		});
	});
});


		$(document).ready(function () {
			$('.chat-toggle').click(function () {
				$('.chat-toggle').toggleClass('close');
				if ($('#chat-content-wrap:visible').size() == 1) {
					$('#chat-content').fadeOut('slow', function () {
						$('#chat-content-wrap').animate({
							width: 'toggle'
						},
						150)
					});
					$('.chat-toggle').removeClass('open');
				} else {
					$('#chat-content-wrap').animate({
						width: 'toggle'
					},
					200);
					setTimeout("$('#chat-content').fadeIn('slow')", 200);
					$('.chat-toggle').addClass('open');
				}
			});
		});

