
$().ready(function() {
		
	$('#newsbox > li').addClass('inactive');

	$('#newsbox > li:first-child + li').removeClass('inactive');

	$('#newsbox > li + li').click(function() {

		$('#newsbox > li').addClass('inactive');
		$(this).removeClass('inactive');
		$('#newsbox > li:first-child img').attr('src' , $('ol li:first-child img' , this).attr('alt'));
		$('#newsbox > li:first-child img').attr('title' , $('ol li:first-child a' , this).attr('title'));
		//$('#newsbox > li:first-child a').attr('href' , $('ol li:first-child h3 a' , this).attr('href'));
		$('#newsbox > li:first-child h2').html($('ol li:first-child h3 a' , this).attr('title'));
		$('#newsbox > li:first-child h2').attr('onclick' , String($('ol li:first-child img' , this).attr('onclick')));
		$('#newsbox > li:first-child p').attr('onclick' , String($('ol li:first-child img' , this).attr('onclick')));
		$('#newsbox > li:first-child h2 + p').html($('ol li:first-child p', this).html());
	});

	
	$('#newsbox ol li').mouseover(function() {

		$('#newsbox > li:first-child img').attr('src' , $('img' , this).attr('alt'));
		$('#newsbox > li:first-child img').attr('title' , $('h3 a' , this).attr('title'));
		$('#newsbox > li:first-child a').attr('href' , $('h3 a' , this).attr('href'));
		$('#newsbox > li:first-child h2').html($('a' , this).attr('title'));
		$('#newsbox > li:first-child h2').attr('onclick' , String($('img' , this).attr('onclick')));
		$('#newsbox > li:first-child p').attr('onclick', String($('img' , this).attr('onclick')));
		$('#newsbox > li:first-child h2 + p').html($('p', this).html());
	});

});


