 		jQuery(function ($) {
var inputs = $("input[type='text'],textarea");
$.each(inputs,function(i,e) {
	var placeholder = $(e).attr("placeholder");
		$(e).val(placeholder);	
		$(e).blur(function() {
			resetInput($(this));
		});
		$(e).focus(function() {
			if($(this).val() == placeholder) {
				$(this).val("");
			}
		});
	});
			$('#formButton').click(function (e) {
				$('#modalForm').modal({	
					opacity:65,
					onShow: function(){
						$("#name").blur();
					}
				});
				  return false;
			});
		});
	
function resetInput(elem) {
	if($(elem).val() == "") {
			var placeholder = $(elem).attr("placeholder");
			$(elem).val(placeholder);
		}
}

	$(document).ready(function(){
		$("ul.sitemap li a").hover(function () {
				$(this).parent().addClass('hovered');
			},function(){
				$(this).parent().removeClass('hovered');
			}
		);
		$("ul.boxes li a").hover(function () {
				$(this).parent().addClass('hovered');
			},function(){
				$(this).parent().removeClass('hovered');
			}
		);
	});

