

function MakeZoom() {
     var target=document.getElementById('mappa').style;
    
      if(document.getElementById('mappa').style.background.indexOf("2")!=-1) {
                       document.getElementById('mappa').style.background='url(img/map.jpg)';
                       document.getElementById('mappaIMG').src='img/zoom_in.png';
      }
      else {
                       document.getElementById('mappa').style.background='url(img/map2.jpg)';
                       document.getElementById('mappaIMG').src='img/zoom_out.png';
      }
}   


function topNineON (title,subtit,b1,b2,i) {
progettoBanner (title,subtit,b1,b2);
document.getElementById('cube'+b1).className='on1';
if(b2!=0) document.getElementById('cube'+b2).className='on';
/*document.getElementById('cube'+i).style.background='url(img/progetti/mainPage/'+i+'_o.jpg)';*/
}
function topNineOFF (title,subtit,b1,b2,i) {
progettoBannerOut (i,b1,b2);
document.getElementById('cube'+b1).className='off';
if(b2!=0) document.getElementById('cube'+b2).className='off';
/*document.getElementById('cube'+i).style.background='url(img/progetti/mainPage/'+i+'.jpg)';*/
}

function progettoMain(img,w,h,t,l) {

  document.getElementById('imgbig').src= img;
  document.getElementById('imgbig').width= w;
  document.getElementById('imgbig').height= h;/*
  document.getElementById('imgbig').width= w+'px';
  document.getElementById('imgbig').height= h+'px';  */
  document.getElementById('imgbig').style.margin= t+'px '+l+'px'; 
  document.getElementById('imgbig').style.visibility= '';
  
  document.getElementById('mettivelo').style.background='url(img/tans.png)';
  document.getElementById('mettivelo').style.filter='alpha(Opacity=90)';
}

function progettoThumbs (img){
  document.getElementById('fullimage').src=img;
}

function clientiRoll(img,status,cnt){
  if(status=='on') document.getElementById(img+cnt).src='img/clienti/'+img+'_o.gif';
  if(status=='off') document.getElementById(img+cnt).src='img/clienti/'+img+'.gif';
}

function progettoBanner (txt,txtsub,id1,id2){
  
  document.getElementById('ProjMT'+id1).innerHTML=txt;  
  document.getElementById('ProjMD'+id1).innerHTML=txtsub;

  document.getElementById('cubeVelo'+id1).style.filter='alpha(Opacity=70)';
 
  
  document.getElementById('cubeVelo'+id1).style.background='url(img/red_trans.png)';
  if(id2!='0') {document.getElementById('cubeVelo'+id2).style.background='url(img/red_trans.png)'; 
                document.getElementById('cubeVelo'+id2).style.filter='alpha(Opacity=70)';}
  document.getElementById('cube'+id1).className='on1';
  if(id2!='0') document.getElementById('cube'+id2).className='on';
}
function progettoBannerOut (id,id1,id2){
  
  document.getElementById('ProjMT'+id1).innerHTML='';  
  document.getElementById('ProjMD'+id1).innerHTML='';
 
  document.getElementById('cubeVelo'+id1).style.background='';  
  if(id2!='0')   document.getElementById('cubeVelo'+id2).style.background='';
  document.getElementById('cube'+id1).className='off';
  if(id2!='0')   document.getElementById('cube'+id2).className='off';
  
}

function popup(url,w,h) {

    var winl = (screen.width-w)/2;
    var wint = (screen.height-h)/2;
    var settings ='height='+h+',';
    settings +='width='+w+',';
    settings +='top='+wint+',';
    settings +='left='+winl+',';
    settings +='scrollbars=no,';
    settings +='resizable=yes';
    win=window.open(url,'Immagine',settings); 
  if (window.focus) {win.focus()}
		return false;
}



