var IE = !window.getComputedStyle && !!document.getElementById;
var IE6 = IE && navigator.appVersion.indexOf('MSIE 6') != -1;
//IE6 = IE;

$(document).ready(function(){
	$('#navigation .item').each(function(){
		/*if(!$('.hov-special', this).length){
			$('.hov-bgr', this).css('width', this.offsetWidth - 26).css('height', 27);
		}*/
		if(IE6){
			$(this).mouseover(function(){
				$(this).addClass('hover-item');
			});
			$(this).mouseout(function(){
				$(this).removeClass('hover-item');
			});
			var imags = $('IMG', this);
			imags.each(function(){

				this._filter = function(src){
					$(this).css('filter', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + src + '", sizingMethod="crop"');				
				};
				this.real_src = this.src;
				$(this).css('width', $(this).attr('width'));
				$(this).css('height', $(this).attr('height'));

				$(this).attr('src', $(this).attr('src').replace($(this).attr('nameProp'), 'blank.gif'));
				this._filter(this.real_src);			
			});
			$(this).css('visibility', 'visible');
		}
	});
});