$(function() {

	var sets = [], temp = [];
	$('#sct_stone li a').each(function(i) {
		temp.push(this);
		if (i % 3 == 2) {
			sets.push(temp);
			temp = [];
		}
	});
	if (temp.length) sets.push(temp);

	$.each(sets, function() {
		$(this).flatHeights();
	});

	var sets = [], temp = [];
	$('.article .viewimgtbl .itemcell').each(function(i) {
		temp.push(this);
		if (i % 4 == 3) {
			sets.push(temp);
			temp = [];
		}
	});
	if (temp.length) sets.push(temp);

	$.each(sets, function() {
		$(this).flatHeights();
	});

	var sets = [], temp = [];
	$('#recomitemtbl .itemcell').each(function(i) {
		temp.push(this);
		if (i % 3 == 2) {
			sets.push(temp);
			temp = [];
		}
	});
	if (temp.length) sets.push(temp);

	$.each(sets, function() {
		$(this).flatHeights();
	});


	if(typeof document.documentElement.style.maxHeight != "undefined") {

		$('#select').tabs({
			fxSlide: true,
			fxFade: true,
			fxSpeed: 'normal'
		})

	}

});

