
	$(document).ready(
		function()
		{
			$('#dock').Fisheye(
				{
					maxWidth: 40,
					items: 'a',
					itemsText: 'span',
					container: '.dock-container',
					itemWidth: 50,
					proximity: 40,
					halign : 'center'
				}
			)
		}
	);



			$(document).ready(function() {

			$("ul#topnav li").hover(function() { //Hover over event on list item
			$(this).css({ 'background-color' : 'rgba(139, 139, 131, 0.3)'});
			$(this).find("span").show(); //Show the subnav
			} , function() { //on hover out...
			$(this).css({ 'background' : 'none'}); //Ditch the background
			$(this).find("span").hide(); //Hide the subnav
		});

	});
	
	

var tam = 12;

	function mudaFonte(tipo,elemento){
			if (tipo=="mais") {
			if(tam<24) tam+=1;
			createCookie('fonte',tam,365);
				} else {
				if(tam>10) tam-=1;
				createCookie('fonte',tam,365);
			}
			document.getElementById('content').style.fontSize = tam+'px';

		}
		
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	} else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}













