$(function(){
	$('ul.menu li:last').css('border','none');
	$('ul.menu li').each(function(){
		var theSon = $(this).find('ul');
		if(theSon.length==1){
			$(this).bind('mouseenter',function(){
				theSon.fadeIn(250);
			}).bind('mouseleave',function(){
				theSon.fadeOut(250);
			});
		}
	});
	$('.btn_over').each(function(){
		var theType = $(this).attr('src').match(/\.[a-z]{3}$/)[0].replace('.','');
		$(this).bind('mouseover', function(){
			this.src = this.src.replace("."+theType,"2."+theType);
		}).bind('mouseout', function(){
			this.src = this.src.replace("2."+theType,"."+theType);
		});
	});
	var displayTd = ($.browser.msie)?"block":"table-row";
	if(location.href.search('/press_releases.htm')!=-1){
		var theSelector = $('#year_selector');
		for(x in yearList){
			theSelector.append('<option value="'+yearList[x]+'">'+yearList[x]+'</option>')
		}
		theSelector.bind('change',function(){
			var theYear = $(this).find('option:selected').val();
			$('#select_table tr:not(.header)').each(function(){
				$(this).css('display',displayTd);
			});
			if(theYear!='-'){
				$('#select_table>tbody>tr:not(.header)').each(function(){
					if($(this).find('td:eq(0)').text().search(eval('/'+theYear+'$/'))==-1){
						$(this).css('display', 'none');
					}
				});
			}
		});
	}
});