<!--

// blink speed in miliseconds
var rate = 300;
// the three blink colors
var Color1 = "#990000"
var Color2 = "#FF6600"
var Color3 = "#0066ff"
var Color4 = "#000066"
var Color5 = "#ffcc66"
var Color6 = "#000000"
// the color if/when turned off (no-blink color)
var ColorX = "#0066ff"
// set this to true for auto start; else, false
var DoIt = true

bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
ok = false

var i=0;
function dotristaterainbowlink(){
   ok =  true
   if ((bNS && bV >= 5) || (bIE && bV >= 4)){
      i++;
      if (i==1) C = Color1
      if (i==2) C = Color2
      if (i==3) C = Color3 
      if (i==4) C = Color4
      if (i==5) C = Color5
      if (i==6) C = Color6 
      if (!DoIt) C = ColorX       
      if (bIE) BlinkLink.style.color=C
      if (bNS) document.getElementById('BlinkLink').style.color = C
      if (i > 5) i = 0
      if (DoIt) timer=setTimeout('dotristaterainbowlink()', rate)
   }      
}


function doOnOff(a){
   if (ok){
      if (a =="off") {DoIt = false}
      if ((a =="on")&&(!DoIt)) {
          DoIt = true
          dotristaterainbowlink()
      }
   }
}
;

function apri(s) 
{ 
r=open(s,"_blank","scrollbars=yes,menubar=yes,resizable=yes,location=yes,statusbar=yes,width=600,height=500,top=100,left=100") 
}
;
var isReady = false;
function doSaveAs(){
if (document.execCommand){
if (isReady){document.execCommand("SaveAs");}
}else{
alert('Feature available only in Internet Exlorer 4.0 and later.');
}
}
;
function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
};
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 = "100%"; // default
	if (size == 1) percentuale = "100%";
	if (size == 2) percentuale = "110%";
	if (size == 3) percentuale = "120%";
document.getElementsByTagName("body")[0].style.fontSize = percentuale;
	createCookie('italianlanguageschoolFontSize',size,365);
}

window.onload = function() {
	size = readCookie('italianlanguageschoolFontSize');
	setFontSize(size);
  dotristaterainbowlink(); isReady=true;
}
-->
