NS4=(document.layers) ? true : false;

IE4=(document.all)?true:false;

ver4 = (NS4 || IE4) ? true : false;

function popUp(){return};

function popDown(){return};

areCreated=false;

if (!ver4) event=null;

if (ver4) {

menuWidth = 140;

childOverlap = 3;

childOffset = 5;

perCentOver = null;

secondsVisible = 0.5;

fntCol = "black";

overFnt = "black";

fntSiz = "10px";

fntWgh = "normal";

fntSty = "normal";

fntFam = "verdana";

backCol = "#FFFFFF";

overCol = "#CCFFCC";

linHgt = "normal";

borWid = 1;

borCol = "#66FF99"

borSty = "solid";

imgSrc = "immagine.gif";

imgSiz = 7;
}
if (ver4) {

document.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=arrays.js><\/SCR"+"IPT>");

document.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=menu.js><\/SCR"+"IPT>");

}
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 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;
}

function setFontSize(size) {
	var body = document.getElementsByTagName('body')[0];
	var percentuale = "80%"; // default
	if (size == 1) percentuale = "80%";
	if (size == 2) percentuale = "90%";
	if (size == 3) percentuale = "100%";

	body.style.fontSize = percentuale;
	createCookie('TuoSitoFontSize',size,365);
}

window.onload = function() {
	size = readCookie('TuoSitoFontSize');
	setFontSize(size);
}

