﻿$(document).ready(function() {
	//$("#submenu").parent().StyleCurrentMenu("selected", "");
	//$("#menu").parent().StyleCurrentHeadMenu("selected", "");
	SetTopImg();
	//FixNews();

	$("#logo").click(function() { location.href='/' });

	$("#newsCol1 a").click(function() {
		var selYear = $(this).html();
		$("#newsCol1 a").each(function() {
			$(this).removeClass("selected");
		});
		$(this).addClass("selected");
		$(".newsYear").each(function() {
			$(this).css("display", "none");
		});
		$("#" + selYear).css("display", "block");
		return false;
	});
});


function FixNews(selYearet) {
	$("#newsCol1").css("display", "block");
	$("#newsCol2").css("width", "290px");
	$(".newsYear").each(function() {
		var divYear = $(this).attr("id");
		if (divYear != selYearet) {
			$(this).css("display", "none");
		}
	});
}


function SetTopImg() {
	var aAdress = location.href.split("/");
	var sPage = aAdress[aAdress.length - 1];
	if (sPage == "") {
		$("#submenu").css("display", "none");
		$("#top").html("");
		$("#top").css("height", "206px");
		$("#top").css("margin", "0px");
		$("#top").flash({ src: '/Flash/frontpage_top.swf', width: 924, height: 206 });
	}
}