var agt = navigator.userAgent.toLowerCase();

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
ns6up = (agt.indexOf('gecko') != -1);


//hilite

   {   
   home_off = new Image(); home_off.src = "gif/home_off.gif";
   home_on = new Image(); home_on.src = "gif/home_on.gif";
   lang_off = new Image(); lang_off.src = "gif/lang_off.gif";
   lang_on = new Image(); lang_on.src = "gif/lang_on.gif";
   ing_off = new Image(); ing_off.src = "contents/gif/ing_off.gif";
   ing_on = new Image(); ing_on.src = "contents/gif/ing_on.gif";
   ita_off = new Image(); ita_off.src = "contents/gif/ita_off.gif";
   ita_on = new Image(); ita_on.src = "contents/gif/ita_on.gif";
   contact_off = new Image(); contact_off.src = "gif/contact_off.gif";
   contact_on = new Image(); contact_on.src = "gif/contact_on.gif";
   links_off = new Image(); links_off.src = "gif/links_off.gif";
   links_on = new Image(); links_on.src = "gif/links_on.gif";
   back_off = new Image(); back_off.src = "gif/back_off.gif";
   back_on = new Image(); back_on.src = "gif/back_on.gif";
   
   chi_h_off = new Image(); chi_h_off.src = "gif/chi_h_off.jpg";
   chi_h_on = new Image(); chi_h_on.src = "gif/chi_h_on.jpg";
   ser_h_off = new Image(); ser_h_off.src = "gif/ser_h_off.jpg";
   ser_h_on = new Image(); ser_h_on.src = "gif/ser_h_on.jpg";
   gest_h_off = new Image(); gest_h_off.src = "gif/gest_h_off.jpg";
   gest_h_on = new Image(); gest_h_on.src = "gif/gest_h_on.jpg";
   strat_h_off = new Image(); strat_h_off.src = "gif/strat_h_off.jpg";
   strat_h_on = new Image(); strat_h_on.src = "gif/strat_h_on.jpg";
   cons_h_off = new Image(); cons_h_off.src = "gif/cons_h_off.jpg";
   cons_h_on = new Image(); cons_h_on.src = "gif/cons_h_on.jpg";
   sic_h_off = new Image(); sic_h_off.src = "gif/sic_h_off.jpg";
   sic_h_on = new Image(); sic_h_on.src = "gif/sic_h_on.jpg";
   cap_h_off = new Image(); cap_h_off.src = "gif/cap_h_off.jpg";
   cap_h_on = new Image(); cap_h_on.src = "gif/cap_h_on.jpg";
   }
   
function imageChange(imageID,imageName) {
   document.images[imageID].src = eval(imageName + ".src");
}

//fine hilite


//doppio hilite

   {
   vuoto = new Image(); vuoto.src = "../gif/trans.gif";
   
   chi_off = new Image(); chi_off.src = "../jpg/chi_off.jpg";
   chi_on = new Image(); chi_on.src = "../jpg/chi_on.jpg";
   ser_off = new Image(); ser_off.src = "../jpg/ser_off.jpg";
   ser_on = new Image(); ser_on.src = "../jpg/ser_on.jpg";
   gest_off = new Image(); gest_off.src = "../jpg/gest_off.jpg";
   gest_on = new Image(); gest_on.src = "../jpg/gest_on.jpg";
   strat_off = new Image(); strat_off.src = "../jpg/strat_off.jpg";
   strat_on = new Image(); strat_on.src = "../jpg/strat_on.jpg";
   cons_off = new Image(); cons_off.src = "../jpg/cons_off.jpg";
   cons_on = new Image(); cons_on.src = "../jpg/cons_on.jpg";
   sic_off = new Image(); sic_off.src = "../jpg/sic_off.jpg";
   sic_on = new Image(); sic_on.src = "../jpg/sic_on.jpg";
   cap_off = new Image(); cap_off.src = "../jpg/cap_off.jpg";
   cap_on = new Image(); cap_on.src = "../jpg/cap_on.jpg";
   
   chi_tm = new Image(); chi_tm.src = "gif/chi_tm.gif";
   ser_tm = new Image(); ser_tm.src = "gif/ser_tm.gif";
   gest_tm = new Image(); gest_tm.src = "gif/gest_tm.gif";
   strat_tm = new Image(); strat_tm.src = "gif/strat_tm.gif";
   cons_tm = new Image(); cons_tm.src = "gif/cons_tm.gif";
   sic_tm = new Image(); sic_tm.src = "gif/sic_tm.gif";
   cap_tm = new Image(); cap_tm.src = "gif/cap_tm.gif";
   }
   
function imageChanges(imageID,imageName,imageID2,imageName2) {
   document.images[imageID].src = eval(imageName + ".src");
   document.images[imageID2].src = eval(imageName2 + ".src");
}

//fine doppio hilite


//slide up and down

function initsl() 
{
  if (ns4)
  { 
    block = document.blockDiv;
  }
  else if (ie4) 
  {
    block = blockDiv.style;
  }
  else if(ns6up)
  {
    block = document.getElementById("blockDiv").style;
  }
  block.ypos = parseInt(block.top);
  block.active = false;
}

function slidedown(maxCoordDown) 
{
  if (block.active && (parseInt(block.top) < maxCoordDown)) 
  {
    block.ypos += 5;
    block.top = block.ypos;
    setTimeout("slidedown("+ maxCoordDown +")",50);
  }
}

function slideup(maxCoordUp) 
{
  if (block.active && (parseInt(block.top) > maxCoordUp)) 
  {
     block.ypos -= 5;
     block.top = block.ypos;
     setTimeout("slideup("+ maxCoordUp +")",50);
  }
}


//fine slide up and down


//move object

function init() 
{
  if (ns4)
  { 
    point = document.pointDiv;
  }
  else if (ie4) 
  {
    point = pointDiv.style;
  }
  else if(ns6up)
  {
    point = document.getElementById("pointDiv").style;
  }
  point.ypos = parseInt(point.top)
}

function moveTo(obj,x,y) 
{
  obj.xpos = x
  obj.ypos = y
  obj.left = obj.xpos
  obj.top = obj.ypos
}

//fine move object


//show hide

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

var agt = navigator.userAgent;
agt = agt.toLowerCase();
var ns6up = (agt.indexOf('gecko') != -1);

function initsh() {
        if (ns4) {
           texta = document.textaDiv
           textb = document.textbDiv
        }
        if (ie4) {
           texta = textaDiv.style
           textb = textbDiv.style
        }
        if (ns6up) {
         texta = document.getElementById("textaDiv").style
         textb = document.getElementById("textbDiv").style
      }  
}

function showObject(obj) {
        if (ns4) obj.visibility = "show"
        else if (ie4) obj.visibility = "visible"
        else if (ns6up) obj.visibility = "visible"
}

function hideObject(obj) {
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
        else if (ns6up) obj.visibility = "hidden"
}

//fine show hide

