$(function(){
	if ($.ie_ver && $.ie_ver == 6) $IE6_PNG_Fix();
	$('a.search').click(function(){alert('Search feature coming soon.');});
	$('.autofill').each(function(){
		$(this)
		.val($(this).attr('fill')).addClass('empty')
		.bind('focus',function(){
			if ($(this).val() == $(this).attr('fill')) $(this).val('').removeClass('empty');
		})
		.bind('blur',function(){
			if ($(this).val() == '') $(this).val($(this).attr('fill')).addClass('empty');
		});
	});
	$('.hover').hover(function(){$(this).addClass('over')},function(){$(this).removeClass('over')});
});
function $IE6_PNG_Fix() {
	$('.png').each(function(){
		var i1 = this, i2 = new Image();
		i2.onload = function(){
			var int_w = i2.width, int_h = i2.height;
			i1.onload = function(){
				this.onload = null;
				$(this).css({'width':int_w + 'px','height':int_h + 'px','display':'block','filter':"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + i2.src + "', sizingMethod='scale')"});
			};
			i1.src = $.app_root + 'images/invis.gif';
		};
		i2.src = i1.src;
	});
}

