function adaptSize() {
	var h = jQuery(self.document.body).innerHeight(),
	w = jQuery(self.document.body).width(),
	o = {
		height: h+'px',
		width: w+'px'
		};
	if (!h || !w) return;
		jQuery('#TB_window', top.document).css(o);
		jQuery('#TB_iframeContent', top.document).css(o);
		if (top.updateTBOverlay) top.updateTBOverlay();
	}
	self.adjustSize = adaptSize;
	jQuery( function() {
	// add close button functionality...
	jQuery('#closer a').one('click', function() {
		jQuery('#TB_closeWindowButton', top.document).trigger('click');
		return false;
		});
	setTimeout('adaptSize()',20);
});
