(function ($, undefined) {
	$('document').ready(function() {
		$('form').html5form({
			async: false,
			allBrowsers: true
		});
		$('input[name="first-name"]').focus(function() {
			if ($(this).val() == 'first name')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('first name');
		});
		$('input[name="last-name"]').focus(function() {
			if ($(this).val() == 'last name')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('last name');
		});
		$('input[name="birthday"]').focus(function() {
			if ($(this).val() == 'dd / mm / yyyy')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('dd / mm / yyyy');
		});
		$('input[name="email"]').focus(function() {
			if ($(this).val() == 'email')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('email');
		});
		$('input[name="phone"]').focus(function() {
			if ($(this).val() == 'phone')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('phone');
		});
		$('input[name="first-name"]').focus(function() {
			if ($(this).val() == 'prenume')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('prenume');
		});
		$('input[name="last-name"]').focus(function() {
			if ($(this).val() == 'nume')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('nume');
		});
		$('input[name="birthday"]').focus(function() {
			if ($(this).val() == 'zz / ll / aaaa')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('zz / ll / aaaa');
		});
		$('input[name="phone"]').focus(function() {
			if ($(this).val() == 'telefon')
				$(this).val('');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val('telefon');
		});

		$('#menu li a').each(function() {
			var text = $(this).html();
			text = text.replace(' ', '&nbsp;');
			$(this).html(text);
			$('#menu li').css('margin-right', '41px');
		});
	});
}(jQuery));
