/*
 * Seahorse jQuery plugin v1.2
 * http://seahorsejs.sourceforge.net
 *
 * Copyright 2010, José Facundo Maldonado
 * This file is licensed under the LGPL Version 3 license
 * http://www.gnu.org/licenses/lgpl.html
 *
 * Date: 12 July 2010
 */

jQuery.fn.seaBehavior=function(b,a,c){b=(typeof b=="string")?b.toLowerCase():b.toString().toLowerCase();if(!a){a=new Object()}if(!c){c=new Object()}return this.each(function(){var d=this;if(b=="text"){Seahorse.text(d,a,c)}else{if(b=="alphabetical"){Seahorse.alphabetical(d,a,c)}else{if(b=="alphanumeric"){Seahorse.alphanumeric(d,a,c)}else{if(b=="numeric"){Seahorse.numeric(d,a,c)}else{if(b=="number"){Seahorse.number(d,a,c)}else{if(b=="integer"){Seahorse.integer(d,a,c)}else{if(b=="date"){Seahorse.date(d,a,c)}else{if(b=="time"){Seahorse.time(d,a,c)}else{if(b=="ipaddress"){Seahorse.ipAddress(d,a,c)}else{if(b=="http"){Seahorse.http(d,a,c)}else{if(b=="ftp"){Seahorse.ftp(d,a,c)}else{if(b=="email"){Seahorse.email(d,a,c)}}}}}}}}}}}}})};jQuery.fn.seaForm=function(b,a){return this.each(function(){var c=this;Seahorse.form(c,b,a)})};jQuery.fn.seaValidate=function(){var a=true;this.each(function(){var b=this;if(b.seahorse&&!b.seahorse.validate()){a=false}});return a};jQuery.fn.seaVerify=function(){return this.each(function(){var a=this;if(a.seahorse){a.seahorse.verify()}})};

