//Dropdown Menus		
$(function() {
	var selected = $("#menuHolder > ul > li.selected");
	$("#menuHolder > ul > li:not(.selected, .login, .register)").mouseover(function() {	
		$(this).siblings().find('ul').hide();
		$('ul', this).show();		
		selected.removeClass("selected");	
	});
	
	$("#menuHolder > ul > li:not(.selected, .login, .register)").mouseout(function(){
		$('ul', this).hide();
		selected.addClass("selected");
		selected.find('ul').show();
	});
	
	$("#topBar ul li").mouseenter(function() {
		$(this).addClass("topbar-Over");
	});
	$("#topBar ul li").mouseleave(function() {
		$(this).removeClass("topbar-Over");
	});
	
	$("#tabs li").click(function() {
		$(this).siblings().removeClass("selected");
		$(this).addClass("selected");
		$("#newsListHolder ul").hide();
		$("#newsListHolder ul:eq("+ $(this).index() +")").show();
		return false;
	});
	
	$("#tabs2 li").click(function() {
		$(this).siblings().removeClass("selected");
		$(this).addClass("selected");
		$("#newsListHolder2 ul").hide();
		$("#newsListHolder2 ul:eq("+ $(this).index() +")").show();
		return false;
	});
	
	if ( screen.width >= 1242 && $(window).width() >= 1242  ) {
		$("#rightContainer").show();
	}
	
	$(window).resize(function() {
		if ( $(window).width() < 1242 ) {
			$("#rightContainer").hide();
		} else { $("#rightContainer").show(); }
	});
});


