jQuery.fn.centerAll = function () {
    this.css("position","absolute");
    this.css("top", ( $(window).height() - this.outerHeight(true) ) / 2 + "px");
    this.css("left", ( $(window).width() - this.outerWidth(true) ) / 2 + "px");
    return this;
}

jQuery.fn.centerV = function () {
    this.css("position","absolute");
    this.css("top", ( $(window).height() - this.outerHeight(true) ) / 2 + "px");
    return this;
}

jQuery.fn.centerH = function () {
    this.css("position","absolute");
    this.css("left", ( $(window).width() - this.outerWidth(true) ) / 2 + "px");
    return this;
}

jQuery.fn.centerParent = function () {
	var parent = this.parent();
	var parentHeight = parent.height();
    this.css("marginTop", ( parentHeight - this.outerHeight(true) ) / 2 + "px");
    return this;
} 

jQuery.fn.centerPV = function () {
	var parent = this.parent();
	var parentHeight = parent.height();
    this.css("position","absolute");
    this.css("top", ( parentHeight - this.outerHeight() ) / 2 + "px");
    return this;
}



$(window).resize(function(){

	$('#actu').centerAll();
	
	var WH = $(window).height();
	var WW = $(window).width();
	$("a").width(WW).height(WH);
	
});


$(window).resize();
