	$(document).ready(function() {
	
		
	});


	$(function(){
	
	// Contact-Hover
		
	var atimein = 250;
	var atimeout = 250;
	
	var aeasein = "easeInSine";
	var aeaseout = "easeOutSine";
			   
			   
	$('input[type="text"]').mouseenter(function(){
		$(this).closest('.nofocus').animate({opacity: 0.5},atimein,aeasein);
	}).mouseleave(function(){
		$(this).closest('.nofocus').animate({opacity: 0.35},atimeout,aeaseout);
	});
	$('textarea').mouseenter(function(){
		$(this).parent().parent().animate({opacity: 0.5},atimein,aeasein);
	}).mouseleave(function(){
		$(this).parent().parent('.nofocus').animate({opacity: 0.35},atimeout,aeaseout);
	});
	$('input[type="text"]').focus(function(){
		$(this).parent().parent().animate({opacity: 0.9},atimein,aeasein);
		$(this).parent().parent().removeClass('nofocus');
		$(this).parent().parent().addClass('hasfocus');
	}).blur(function(){
		$(this).parent().parent().removeClass('hasfocus');
		$(this).parent().parent().addClass('nofocus');
		$(this).parent().parent('.nofocus').animate({opacity: 0.35},atimeout,aeaseout);
	});
	$('textarea').focus(function(){
		$(this).parent().parent().animate({opacity: 0.9},atimein,aeasein);
		$(this).parent().parent().removeClass('nofocus');
		$(this).parent().parent().addClass('hasfocus');
	}).blur(function(){
		$(this).parent().parent().removeClass('hasfocus');
		$(this).parent().parent().addClass('nofocus');
		$(this).parent().parent('.nofocus').animate({opacity: 0.35},atimeout,aeaseout);
	});	
	
	// Moo.
	$("#box_header_moo_helper").dblclick(function(){
		$("#box_header_moo").css('display','block');
		timeoutID = window.setTimeout(delayedClose, 2000);
	});

	$(".lb").lightBox();
	
	$(".tt").tipsy({gravity: 'e', delayIn: 500, delayOut: 1000});
	
	$(".ttw").tipsy({gravity: 'w', delayIn: 500, delayOut: 1000});
	
	// jQueryUI
	$("button, input:submit,input:reset", ".btn_ui").button();

	});
	
	function delayedClose()
	{
	  $("#box_header_moo").css('display','none');
	}
