function initDecisionmemory()
{
	$('#rememberDecision').css('visibility', 'visible');
	$('#rememberDecision input').css('position', 'static');
	$('input[type="checkbox"]').ezMark({
		checkboxCls: 'unchecked',
		checkedCls: 'checked'
	});
	for (var i = 0; i < shorts.length; i++)
	{
		var key = shorts[i][0];
		var domain = shorts[i][1];
		
		for (var a = 0; a < $("ul a").length; a++)
		{
			if ($("ul a")[a].href == domain + "/")
			{
				$("ul a")[a].name = key;
				$("ul a:nth-child(" + a + ")").bind('mouseover', onMouseOverMainLink);
			}
		}
	}
	
	$("#rememberDecision input").bind('click', cookieCheck);
}

function cookieCheck()
{
	if (!$('#rememberDecision input').attr('checked'))
		document.cookie = "country=";
}

function onMouseOverMainLink()
{
	var key = $(this).attr('name');
	if ($('#rememberDecision input').attr('checked'))
		document.cookie = "country=" + key;
}
