$(document).ready(function() {
	// Add your custom javascript here
	
	
	$('.suggestinput').focus(function(){
		$(this).css({"border":"2px solid #5a92c0","color":"#000"});
	}).blur(function() {
        $(this).css({"border":"2px solid #33638c","color":"#a3a3a3"});
    });
	
	
	$('.suggeststeps textarea').focus(function(){
		$(this).css({"border":"2px solid #5a92c0","color":"#000"});
	}).blur(function() {
        $(this).css({"border":"2px solid #33638c","color":"#a3a3a3"});
    });
	
	$("input").focus(function() {
        if ($(this).val() == $(this).attr("title")) {
            $(this).val("");
        }
    });
    $("input").blur(function() {
        if ($(this).val() == "") {
            $(this).val($(this).attr("title"));
       }
    });
	
	
	$('input').each(function(){
		if ($(this).val() == "") {
			$(this).val($(this).attr('title'));
		}
	});
	
	
	
	$('#suggestsubmit').click(function(){
		$("input").each(function(){
			if ($(this).val() == $(this).attr("title")) {
				$(this).val("");
			}
		});
	});
});
