//CALCOLO PERCORSO .SWF
var path = location.pathname;
var li = path.length;
var lf = path.replace(/\//g,'').length;
// Windows var n = li-lf-2;
var n = li-lf-1;
var resultPath = "";

for(var i=0; i<n; i++)
{
  resultPath += "../";
}

resultPath += 'swf/garamond.swf';
// fine calcolo persorso font.swf

var garamond = { src: resultPath };

// Now you can set some configuration settings.
// See also <http://wiki.novemberborn.net/sifr3/JavaScript+Configuration>.
// One setting you probably want to use is `sIFR.useStyleCheck`. Before you do that,
// read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad>.

//sIFR.useStyleCheck = true;

// Next, activate sIFR:
sIFR.activate(garamond);


sIFR.replace(garamond, {
  selector: 'h1',
  wmode: 'transparent',
  css: '.sIFR-root {background-color:#FFFFFF; color:#4e4e51; font-size:1.5em;}'
});
sIFR.replace(garamond, {
  selector: 'h2',
  wmode: 'transparent',
  css: '.sIFR-root {background-color:#FFFFFF; color:#4e4e51; font-size:1.5em;}'
});
