// JavaScript Document
(function ($) {
	$.fn.vAlign = function() {
		return this.each(function(i){
			var h = $(this).height();
			var oh = $(this).outerHeight();
			var mt = (h + (oh - h)) / 2;	
			$(this).css("margin-top", "-" + mt + "px");	
			$(this).css("top", "50%");
			$(this).css("position", "absolute");	
		});	
	};
})(jQuery);
 
(function ($) {
	$.fn.hAlign = function() {
		return this.each(function(i){
			var w = $(this).width();
			var ow = $(this).outerWidth();	
			var ml = (w + (ow - w)) / 2;	
			$(this).css("margin-left", "-" + ml + "px");
			$(this).css("left", "50%");
			$(this).css("position", "absolute");
		});
	};
})(jQuery);
 
$(document).ready(function() 
{
	if ( $("#geral").height() < $(window).height() )
	{
		$("#geral")
		//.vAlign()
		.hAlign();
	}
});

function passadas() {
	janela=window.open('http://www.vitorzerbinato.com.br/COLECOES-PASSADAS/inverno_2011.htm','Madamex','toolbar=no,status=no,menubar=no,width=887,height=502,top=20,left=20,resizable=no,scrollbars=no');
}
