/**
	this plugin converts ugly submit buttons to nice looking buttons
	see: http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html
	This jQuery plugin is created by Jankees van Woezik for www.base42.nl
	Date: October 3, 2008
 */
jQuery.fn.stylizeButton = function() {
  return this.each(function(){
  
   //value is the text in the button
   var value = this.value;
   var id = this.id;
   var name = this.name;

   if($(this).attr("stylizeAction") == "submit"){

   	 $(this).css({ display:"none"});
	 $(this).after("<div class='button-l'><div class='button-r'><input class='resetButton' type='submit' id='"+id+"' value='"+value+"' /></div></div>");

   }else if($(this).attr("stylizeAction") == "button"){
	
	$(this).css({ display:"none"}); 
   	$(this).after("<div class='button-l'><div class='button-r'><input class='resetButton' type='button' id='"+id+"' name='"+name+"' value='"+value+"' /></div></div>");

   }else if($(this).attr("stylizeAction") == "clean"){
	
   	 $(this).css({ display:"none"});
	 $(this).after("<a class='button'><strong>"+value+"</strong></a>");

   }else{
       	/* No hay nada */
	}
    
  });
};
