// JavaScript Document
$(function(){

	$('.hover').each(function(){
		$(this).removeClass('hover');
		$(this).hover(function(){
			$(this).attr('src',$(this).attr('src').replace('.','_over.'));
		},function(){
			$(this).attr('src',$(this).attr('src').replace('_over.','.'));
		});
		img = new Image;
		img.src = $(this).attr('src').replace('.','_over.');
	});
	
	$('[rel="external"]').each(function(){	
		$(this).attr('rel','');
		$(this).attr('target','_blank');
	});
	
	$('#news_up').click(function(){
		if ($('#news ul:animated').length == 0) {
			t = $('#news ul').scrollTop() - 67;
			$('#news ul').animate({scrollTop: t});
		}
		return false;
	});
	
	$('#news_down').click(function(){
		if ($('#news ul:animated').length == 0) {
			t = $('#news ul').scrollTop() + 67;
			$('#news ul').animate({scrollTop: t});
		}
		return false;
	});
	
	$('#news ul').scrollTop(0);
	
});