
// function is needed to create scope - do not want to muck up the global namespace
(function() {

    // code to allo wexclution of sifr replacement
    parseSelector.pseudoClasses = {
      'not': function(nodes, selector) {
        var result = [];
        each: for(var i = 0, node; i < nodes.length; i++) {
          node = nodes[i];
          var ignore = parseSelector(selector, node.parentNode);
          for(var j = 0; j < ignore.length; j++) {
            if(ignore[j] == node) continue each;
          }
          result.push(node);
        }
        return result;
      }
    }

    var sheratonGraphBook = {
        src: fontSheratonGraphBook
    };

    var sheratonGraphExtraLight = {
        src: fontSheratonGraphExtraLight
    };

    var sheratonGraphMedium = {
        src: fontSheratonGraphMedium
    };

    sIFR.activate(sheratonGraphBook, sheratonGraphExtraLight, sheratonGraphMedium);

    sIFR.replace(sheratonGraphExtraLight, {
        selector: 'h1',
        forceSingleLine: false,
        fitExactly :false,
        offsetTop : 0,
        offsetLeft : 0,
        tuneHeight : -5,
        transparent: true,
        sharpness: 10,
        forceWidth:true,
        css: ['.sIFR-root { color: #ffffff;letter-spacing: -1}']
    });


    sIFR.replace(sheratonGraphMedium, {
        selector: '.extras ul li',
        forceSingleLine: true,
        fitExactly :true,
        offsetTop :0,
        offsetLeft : 1,
        transparent: true,
        forceWidth:true,
        tuneWidth: 1,
        css: ['.sIFR-root { color: #77392A; }, a:link{color: #77392A;text-decoration: none;}, a:hover{color: #3D8A87;}'],
        ratios: [8, 1.43, 11, 1.38, 16, 1.33, 23, 1.32, 24, 1.29, 28, 1.3, 36, 1.29, 41, 1.28, 44, 1.27, 45, 1.28, 69, 1.27, 72, 1.26, 73, 1.27, 1.26]
    });

    sIFR.replace(sheratonGraphMedium, {
        selector: '.conteudo ul li h2',
        forceSingleLine: true,
        fitExactly :true,
        offsetTop :0,
        offsetLeft : 1,
        transparent: true,
        forceWidth:true,
        tuneWidth: 1,
        css: ['.sIFR-root { color: #77392A; }'],
        ratios: [8, 1.43, 11, 1.38, 16, 1.33, 23, 1.32, 24, 1.29, 28, 1.3, 36, 1.29, 41, 1.28, 44, 1.27, 45, 1.28, 69, 1.27, 72, 1.26, 73, 1.27, 1.26]
    });


    sIFR.replace(sheratonGraphExtraLight, {
        selector: '.conteudo h2',
        forceSingleLine: false,
        fitExactly :false,
        offsetTop : 0,
        offsetLeft : 0,
        tuneHeight : -5,
        transparent: true,
        sharpness: 10,
        leading: -10,
        forceWidth:true,
        css: ['.sIFR-root { color: #77392A;}']
    });

})();
