$(function(){

	// menu hover
	$("a",$("#menu")).hover(
		function(){
			if ($(this).parent().attr('class') != 'active') {
				$(this)
					.stop()
					.animate({opacity:0.6},309)
					.animate({opacity:1},191);
			}
		},
		function(){
			if ($(this).parent().attr('class') != 'active') {
				$(this)
					.stop()
					.animate({opacity:1});
			}
		}
	);

	// ajust columns float issue
	var maxH = 0;
	var tmpH;
	var objs = $("div.grid_3",$("#wrap"));
	if (objs.size()>0) {
		objs.each(function(){
			tmpH = $(this).height();
			if (tmpH > maxH) maxH = tmpH;
		});
		objs.css({
			height: maxH+'px',
			clear: 'none'
		});
	}

});
