// JavaScript Document

// Netscape 3.0 compatibility test (for javascript image swapping)
compat = false;
if( parseInt( navigator.appVersion ) >= 3 ) { compat = true; }

// cache img for quick swapping
if( compat )
{

immoon = new Image;(120,49)
immoon.src = "img/esclusivi2.gif";
immooff = new Image;(120,49)
immooff.src = "img/esclusivi1.gif";

appaon = new Image;(120,49)
appaon.src = "img/appartamenti2.gif";
appaoff = new Image;(120,49)
appaoff.src = "img/appartamenti1.gif";

villeon = new Image;(120,49)
villeon.src = "img/ville2.gif";
villeoff = new Image;(120,49)
villeoff.src = "img/ville1.gif";

coloon = new Image;(120,49)
coloon.src = "img/coloniche2.gif";
colooff = new Image;(120,49)
colooff.src = "img/coloniche1.gif";

affion = new Image;(120,49)
affion.src = "img/affitti2.gif";
affioff = new Image;(120,49)
affioff.src = "img/affitti1.gif";

fondion = new Image;(120,49)
fondion.src = "img/fondi2.gif";
fondioff = new Image;(120,49)
fondioff.src = "img/fondi1.gif";


}

// swap img using the cached img
function glow(x, y)
{
   if( compat ) { document.images[x].src=eval(y+'.src'); }

}