$(document).ready(function() {
	$("#eyetool").hide();
  $("span.eye").parent().click(function() {
		fadeFunction();
	});
})

function fadeFunction() {
	if ($("#eyetool").is(':hidden')) {
		$("#submenu").fadeOut('slow');
		$("#textL").fadeOut('slow');
		$("#textClarge").fadeOut('slow');
		$("#eyetool").delay(1200).fadeTo('slow', 1.0);
	} else {
		$("#eyetool").fadeOut('slow');
		$("#submenu").stop(true).fadeTo('slow', 1.0);
		$("#textL").stop(true).fadeTo('slow', 1.0);
		$("#textClarge").stop(true).fadeTo('slow', 1.0);
	}
}
