if($.cookie("css")) {
	$("#fontSize").attr("href",$.cookie("css"));
}
$(document).ready(function() { 
						   
 /* Fontresizer */
  $(".fontResizer a").click(function() { 
	 $("#fontSize").attr("href",$(this).attr('rel'));
	 $.cookie("css",$(this).attr('rel'), {expires: 365, path: '/'});
	 return false;
  });
  
  	/* watskeburt! */  
	$(".watskeburtContent").hide(); //Hide all content
	$("ul.watskeburtNav li:first").addClass("on").show(); //Activate first tab
	$(".watskeburtContent:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.watskeburtNav li").click(function() {
	
		$("ul.watskeburtNav li").removeClass("on"); //Remove any "active" class
		$(this).addClass("on"); //Add "active" class to selected tab
		$(".watskeburtContent").hide(); //Hide all tab content
	
		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});
	
});

/* Access flash object */	
function getFlashMovie(movie) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movie] : document[movie];
}

function showRegion(code) {
	getFlashMovie('mapObject3').showRegion(code);
}

function hideRegion(code) {
	getFlashMovie('mapObject3').hideRegion(code);
}
