var IE = document.all?true:false;

$(document).ready(function() {
	$('img.btn_over').mouseover(function(){
		$(this).attr('src', $(this).attr('src').toString().replace('.g','_over.g').replace('.j','_over.j'));
    }).mouseout(function(){
		$(this).attr('src', $(this).attr('src').toString().replace('_over.g','.g').replace('_over.j','.j'));
    });
});

function AdjustHeight()
	{
		for (var i=0;i<$(".product_list").length;i=i+4)
	{
		//alert($(".tag_container:eq("+i+")").html());
		var maxheight_top=0;
		var maxheight_cell=0;
		var maxheight_btn=0;
		for (var j=0;j<4;j++)
		{
			if ((i+j)>=$(".product_list").length)
				break;
			if ($(".product_list:eq("+(i+j)+") .img_top").height()>maxheight_top)
				maxheight_top=$(".product_list:eq("+(i+j)+") .img_top").height();
			
			if ($(".product_list:eq("+(i+j)+") .content_cell").height()>maxheight_cell)
				maxheight_cell=$(".product_list:eq("+(i+j)+") .content_cell").height();	
				
			if ($(".product_list:eq("+(i+j)+") .content2_btn").height()>maxheight_btn)
				maxheight_btn=$(".product_list:eq("+(i+j)+") .content2_btn").height();	
		}
		
		for (var j=0;j<4;j++)
		{
		$(".product_list:eq("+(i+j)+") .img_top").height(maxheight_top);
		$(".product_list:eq("+(i+j)+") .content_cell").height(maxheight_cell);
		$(".product_list:eq("+(i+j)+") .content2_btn").height(maxheight_btn);
		}
	}
	}
	
function AdjustHeight2()
	{
		for (var i=0;i<$(".maxh").length;i=i+2)
		{
			//alert($(".tag_container:eq("+i+")").html());
			var maxheight_h=0;
			for (var j=0;j<2;j++)
			{
				if ((i+j)>=$(".maxh").length)
					break;
				if ($(".maxh:eq("+(i+j)+") .maxh_h").height()>maxheight_h)
					maxheight_h=$(".maxh:eq("+(i+j)+") .maxh_h").height();	
			}
			
			for (var j=0;j<2;j++)
			{
			$(".maxh:eq("+(i+j)+") .maxh_h").height(maxheight_h);
			}
		}
	}
