// Init function
function InitMap(){
    map = new Map();
    map.Init();
    map.ShowMap("italia");
}
// Map event handlers
function maparea_mouseover(){
    if (map.Path.length<2)
        if(map.CurrentArea!=this.attributes['nazione'].value)
            map.ShowMap(this.attributes['nazione'].value,0);
    map.RollOver(this.id);
}

function maparea_mouseout(){
    map.RollOut(this.id);	
}

function maparea_click(){
    var area = this.id;
    var depth = map.Path.length;
    var nazione = this.attributes['nazione'].value;
    SetArea(nazione,area);
    return false;
}
function ShowMap(area,depth){
    map.ShowMap(area,depth);
}