$(document).ready(function() {
	var root = (window.location.pathname.indexOf('matvarupriser') != -1) ? '/matvarupriser/' : '/';
	$('.fg-button').hover(
		function(){
			$(this).addClass("ui-state-hover");
		},
		function(){
			$(this).removeClass("ui-state-hover");
		}
	);
	$('.fg-menu-container').click(function(event) {
		alert(event.target);
		//alert($(this).attr('href'));
	});
//	$('#hierarchybreadcrumb').menu(
//									{
//										content: $('#hierarchybreadcrumb').next().html(),
//										callback:
//											function(menu, item) {
//												if (!$(item).hasClass('counties')) {
//													menu.kill();
//													location.href = $(item).attr('href');
//												}
//											}
//										});
//	$("#suggest14").autocomplete(root+'AutoComplete/', {
//		matchContains: true,
//		minChars: 0,
//		formatItem: function(row, i, max) {
//			return i + "/" + max + ": \"" + row[0] + "\" [" + row[1] + "]";
//		},
//		formatMatch: function(row, i, max) {
//			return row[0] + " " + row[1];
//		},
//		formatResult: function(row) {
//			return row[1];
//		}
//
//	});
});
