$(document).ready(function() {
  $('.clicksearch').click(function() {
    $('#searchdo').submit();
    return false;
  });

	svalue = "";
	snewvalue = "";

  var initArray=Array();

    $("#consult input,#consult textarea").each(function (i) {
       initArray[$(this).attr('name')]=$(this).attr('title');
    });

    $("#consult input,#consult textarea").focus(function () {
        if ((initArray[$(this).attr('name')])==$(this).val())
        {   
		      svalue = $(this).val();
		      $(this).val("");
		    }  
    });
    
    $("#consult input,#consult textarea").blur(function () {
		snewvalue = $(this).val();
		if (svalue != "" && snewvalue == "") {
			  $(this).val(svalue);
		}
    });
	
	$("#content a[href^='mail']").addClass("email");
	
	$(".showMore").click(function() {
		$(".hiddenCont").hide();
		$(".introCont").show();
		$(".showMore").show();		
		$(this).prev().hide();
		$(this).next().show();
		$(this).hide();
		return false;
	});

	$(".closeMore").click(function() {
		$(this).parent().hide();
		$(this).parent().prev().show();
		$(this).parent().prev().prev().show();
		return false;
		
	});	
	
  
});
