function resize_gray() {
	$("td.eq div.item div.m").height('100%');
	$("td.eq").each(function(i){ $(this).find("div.item div.m").css({height: ($(this).find("div.m").height()+$(this).height()-$(this).find("div.item").outerHeight())+'px'}); });
}
function rotate() {
	b1 = $('.banner:visible');
	b2 = b1.next('.banner');
	if (!b2.length) {
		b2 = $($('.banner')[0]);
	}
	b1.fadeOut("slow", function() {
		b2.fadeIn("slow");
	});
}
function refrash(i) {
	o1 = $($('.note .m')[i]);
	o2 = o1.find('div:visible');
	p = o1.position();
	o1.css({height: o1.height()});
	o2.css({position: "absolute", height: o1.height(), width: o1.width(), left: p.left});
	o2.animate({
		left: $('.note').outerWidth()
	}, "fast", function() {
		o2.css({display: "none", position: "static", height: "auto", width: "auto"});
		o3 = o2.next();
		if (!o3.length) {
			o3 = $(o1.find('div')[0]);
		}
		o3.css({position: "absolute", height: "auto", width: o1.width(), left: -o1.width()});
		o1.animate({
			height: o3.height()
		}, "fast", function() {
			o3.css({display: "block"});
			o3.animate({
				left: p.left
			}, "fast", function() {
				o3.css({position: "static", height: "auto", width: "auto"});
			});
		});
	});
}
