var imgPath = "/images/no/"
$(function() {
 	$('#mainmenu div.mainmenuitem').each(function() {
		$("a", this).each(function()
		{
			var realUrl = document.location.href.split('?')[0].replace('/index.html', '/');
			if (this.href == realUrl)
				$("img", this).each(function() {
					$(this).attr("src", imgPath + this.id + "_selected.jpg");
					$(this.parentNode).css("cursor", "default")
					
				})
			else
				$("img", this).each(function() {
					$(this).hover(
						function() {
							$(this).attr("src", imgPath + this.id + "_selected.jpg");						
						},
						function() {
							$(this).attr("src", imgPath + this.id + "_normal.jpg");						
						})
				})
		})
	
	})
})
