$.extend({
    mLand:function()
    {
        /**
	 * a reference to ourselves
	 */
        var that = this;
        /**
         * Guarda as regras usadas para a validação
         */
        this.options = function(){
            return {
                target:'',   // target element(s) to be updated with server response
                beforeSubmit:  that.showRequest  // pre-submit callback
            };
        }
        this.showRequest = function(formData, jqForm, options) {
            var queryString = $.param(formData);
            return true;
        }
        $('#input_email').focus(function(e){
            if(this.value == 'seu email aqui...')
            {
                this.value = '';
            }
        });
        $('#input_email').blur(function(e){
            if(this.value == '')
            {
                this.value = 'seu email aqui...';
            }
        });
        //$.validator.addClassRules("model_rules_land", { cRequired: true, cMinlength: 2 });

        $.validator.addMethod(
            "info",
            function(value, element) {
                if ((element.value == "")||(element.value == "seu email aqui..."))
                {
                    return false;
                }
                else {
                    return true;
                }
            },
            " "
            );
        this.validate = function()
        {
            return {
                rules:{
                    input_email:{
                        email:true,
                        info:true
                    }
                },
                messages:{
                    input_email:{
                        email:'informe um e-mail válido',
                        info:'Informe seu e-mail'
                    }
                }
            };
        }
    }
});
