// Script per lo spostamento dell'iFrame Google by Andrea Amici
// 14/07/2007


  var myWidth = 0, myHeight = 0;

function calcolaDimensioni() {  if( typeof( window.innerWidth ) == 'number' ) {    //Non-IE    myWidth = window.innerWidth;    myHeight = window.innerHeight;  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {    //IE 6+ in 'standards compliant mode'    myWidth = document.documentElement.clientWidth;    myHeight = document.documentElement.clientHeight;  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {    //IE 4 compatible    myWidth = document.body.clientWidth;    myHeight = document.body.clientHeight;  }}


   var posattifr=0;   function spostaIframe() {
   	calcolaDimensioni();	var frameGoogle = "navbar-iframe";	//var posizioneContainerLeft = $('container').getStyle('margin-left');        var larghezzaBrowser = myWidth;
        var posNavIfr = (larghezzaBrowser-988)/2;        posattifr=posNavIfr;        $(frameGoogle).style.width="650px";        new Effect.Move ($('container'),{ x: 0, y: -50, mode: 'relative'}, {queue: 'front'});         new Effect.Move ($('navbar-iframe'),{ x: posattifr, y: 415, mode: 'relative'}, {queue: 'front'});        new Effect.Appear('container', {queue: 'end'});       }   function riposizionaIframe() {
   	calcolaDimensioni();        var larghezzaBrowser = myWidth;        var posNavIfr = (larghezzaBrowser-988)/2;
        nuovaposizione=posNavIfr+10;
        //nuovaposizione=posNavIfr-posattifr;        new Effect.Move ($('navbar-iframe'),{ x: nuovaposizione, y: 415, mode: 'absolute'});
        //posattifr=nuovaposizione;       }
