var avant_garde = {
    src: '/_ui/swf/fonts/avant_garde.swf',
    ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
};
var dinschrift = {
    src: '/_ui/swf/fonts/dinschrift.swf',
    ratios: [8, 1.1, 10, 1.05, 12, 1.04, 23, 1, 30, 0.96, 34, 0.95, 35, 0.96, 41, 0.94, 42, 0.95, 46, 0.94, 47, 0.95, 65, 0.94, 68, 0.93, 72, 0.94, 0.93]
};
sIFR.replace(avant_garde, { selector: 'div#sidebar-column div.callout h4',
    css: [
        '.sIFR-root { font-size: 12px; color: #0073A9; font-family: "ITC Avant Garde Std Bold"; }',
        'strong { font-weight: normal; font-size: 17px; font-family: "ITC Avant Garde Std Bold"; letter-spacing: -1; }'
    ],
    fitExactly: true,	tuneWidth: 1,
    modifyContent: function(node) {
        // Config --------------------------------------------------------------------------/
        var tag = "strong"; 
    
        var transform = "uppercase"; // uppercase, lowercase, and capitalize supported
        // ---------------------------------------------------------------------------------/
        var els = node.getElementsByTagName(tag); for(var i=0;i<els.length;i++){ if (els[i].firstChild != null){if (transform == "uppercase") els[i].firstChild.nodeValue = els[i].firstChild.nodeValue.toUpperCase();if (transform == "lowercase") els[i].firstChild.nodeValue = els[i].firstChild.nodeValue.toLowerCase();if (transform == "capitalize") {val = els[i].firstChild.nodeValue; newVal = ''; val = val.split(' '); for(var j=0;j<val.length;j++){newVal += val[j].substring(0,1).toUpperCase() + val[j].substring(1,val[j].length) + ' '; } newVal = newVal.slice(0, -1);els[i].firstChild.nodeValue = newVal;}}}return node; 
    },
    forceSingleLine: true,
    wmode: 'transparent'
});
sIFR.replace(avant_garde, { selector: 'div#sidebar-column h4',
    css: [
        '.sIFR-root { font-size: 15px; color: #ffffff; font-family: "ITC Avant Garde Std Bold"; }'
    ],
    fitExactly: true,
    forceSingleLine: true,
    wmode: 'transparent'
});
sIFR.replace(dinschrift, { selector: 'div#main-column h2',	css: [		'.sIFR-root { font-size: 24px; color: #3c251f; letter-spacing: -1; leading: 4;}',		'strong { font-weight: bold; }'	],	fitExactly: true,	tuneWidth: 1,	wmode: 'transparent'});
sIFR.replace(dinschrift, { selector: 'div#ask-iwata dl dt span',	css: [		'.sIFR-root { font-size: 24px; color: #3c251f; letter-spacing: -1; }',		'strong { font-weight: bold; }'	],	fitExactly: true,
    forceSingleLine: true,	tuneWidth: 1,	wmode: 'transparent'});
sIFR.useStyleCheck = true;
sIFR.activate(avant_garde);
sIFR.activate(dinschrift);