
/* =jQuery Plugins*/
(function($){
	/* =plug-in : fix-png */
	$.fn.fixpng = function(){
		var hack = {
			isOldIE: $.browser.msie && $.browser.version < 7,
			filter: function(src){ return "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src='"+src+"');"; }
		};
		return this.each(function(){
			if(hack.isOldIE){
				var $$=$(this);
				if($$.attr('src')){
					var span = document.createElement('span');
					$(span).attr({
						id: $$.attr('id'), className: $$.attr('class')
					});
					$(span).css({
						display: 'inline-block', width: $$.width(), height: $$.height(), filter: hack.filter($$.attr('src')), float: $$.attr('align')=='left'?'left':($$.attr('align')=='right'?'right':'none')
					});
					this.outerHTML = span.outerHTML;
				}
			}
		});
	};
	$.fn.equalizeHeight = function(_itemClass){
		return this.each(	function(){
									var _maxHeight = 0;
									$(this).find(_itemClass)
										.each(	function(){
														var _h = $(this).height();
														_maxHeight = _h>_maxHeight?_h:_maxHeight;
													})
										.css('height',_maxHeight);	
								});
	};
})(jQuery);