/**
 * 
 * centré un element
 * 
 */
jQuery.fn.center = function () {
    this.css("position","absolute");
    this.css("top", ( $j(window).height() - this.height() ) / 2+$j(window).scrollTop() + "px");
    this.css("left", ( $j(window).width() - this.width() ) / 2+$j(window).scrollLeft() + "px");
    return this;
}

/**
 * 
 * ajoute un text par defaut a un element input
 * 
 */
jQuery.fn.label = function (text) {
	var e = this;
	this.addClass('seaquery-label').val( ' ' + text);
	this.focusin(function() {if (e.hasClass('seaquery-label')) {e.val('').removeClass('seaquery-label');}});
	this.focusout(function() {if (e.val() == '') {e.addClass('seaquery-label').val( ' ' + text);}});
}

/**
 * 
 * redirection  
 * 
 */
jQuery.extend({location : function (url) {jQuery(location).attr('href', url);}});
