$(document).ready(function() {
	
	var ie = false;
	if ( $.browser.msie ) {
		var ieVersion = $.browser.version;
		
		if(ieVersion < 8) {
			ie = true;
		}
	}
	
	if(!ie) {
		$('#recent-events').show();
		$('#events').click(function() {
			$(this).attr({'class':'DIVhome_header_tab-active'});
			$('#latest_news').attr({'class':'DIVhome_header_tab'});
			$('.DIVhome_header').css({'background-position':'-275px 0px'});
			$('.DIVhome_news-holder').animate({left:'-274px'}, 500);
		});
		$('#latest_news').click(function() {
			$(this).attr({'class':'DIVhome_header_tab-active'});
			$('#events').attr({'class':'DIVhome_header_tab'});
			$('.DIVhome_header').css({'background-position':'0px 0px'});
			$('.DIVhome_news-holder').animate({left:'0px'}, 500);
		});
	} else {
		$('#recent-events').hide();
		$('.DIVhome_news-holder').css({'width':'275px'});
		$('#events').click(function() {
			$('#recent-events').show();
			$('#recent-news').hide();
			$('.DIVhome_header').css({'background-position':'-275px 0px'});
		});
		$('#latest_news').click(function() {
			$('#recent-events').hide();
			$('#recent-news').show();
			$('.DIVhome_header').css({'background-position':'0px 0px'});
		});
	}
	
	
	
});


