// Make an object pointing to the location of the Flash movie on your web server.
// Try using the font name as the variable name, makes it easy to remember which
// object you're using. As an example in this file, we'll use Futura.

var avantgarde = { 
    src: '/media/swf/avantgarde.swf'
};

var avant_demi = {
    src: '/media/swf/avant-demi.swf'
}

// sIFR.useStyleCheck = true;
sIFR.fitExactly = true;
sIFR.forceTextTransform = true;


sIFR.activate(avant_demi, avantgarde);

sIFR.replace(avant_demi, {
    selector: "h1.header",
    css: [
        '.sIFR-root {color: #42b6cd; text-transform: uppercase; font-size: 22px; letter-spacing:0.5; }',
        'h1.header .orange {color: #FF5D00;}',
        'h1.header .gray {color: #858585;}',
        'h1.header a {color: #42b6cd; text-decoration: none;}',
        'h1.header a:hover {color: #42b6cd; text-decoration: underline;}',
        'h1.header del {text-decoration: line-through; display:inline;}'
    ],
    transparent: true,
    fitExactly: true,
    tuneHeight: "-4",
    offsetTop: 1,
    tuneWidth: 2
});

sIFR.replace(avant_demi, {
    selector: "h1.small-header",
    css: [
        '.sIFR-root {color: #42b6cd; text-transform: uppercase; font-size: 13px; letter-spacing:0.5; font-weight: none; padding-bottom: 0; margin-bottom: 0;}',
        'h1.small-header .orange {color: #FF5D00;}',
        'h1.small-header a {color: #42b6cd; text-decoration: none;}',
        'h1.small-header a:hover {color: #42b6cd; text-decoration: underline;}'
    ],
    transparent: true,
    fitExactly: true,
    offsetTop: 1,
    tuneHeight: "0",
    tuneWidth: 2
});

sIFR.replace(avant_demi, {
    selector: ".large-link",
    css: [
        '.sIFR-root {color: #B7D436; text-transform: uppercase; font-size: 17px;}',
        'a {color: #B7D436; text-decoration: none;}',
        'a:hover {color: #B7D436; text-decoration: underline;}'
    ],
    transparent: true,
    fitExactly: true,
    offsetTop: 1,
    tuneHeight: "-7",
    tuneWidth: 2
});

sIFR.replace(avant_demi, {
    selector: ".small-link",
    css: [
        '.sIFR-root {color: #B7D436; text-transform: uppercase; font-size: 12px;}',
        'a {color: #B7D436; text-decoration: none;}',
        'a:hover {color: #B7D436; text-decoration: underline;}'
    ],
    transparent: true,
    fitExactly: true,
    offsetTop: 1,
    tuneHeight: "-5",
    tuneWidth: 2
});

sIFR.replace(avant_demi, {
    selector: ".join",
    css: [
        '.sIFR-root {color: #B7D436; text-transform: uppercase; font-size: 17px;}',
        'a {color: #B7D436; text-decoration: none;}',
        'a:hover {color: #B7D436; text-decoration: underline;}'
    ],
    transparent: true,
    fitExactly: true,
    tuneHeight: "-8",
    tuneWidth: 2
});


sIFR.replace(avantgarde, {
    selector: 'h1.headline',
    css: [
        'h1.headline a {color: #AFDB34; text-decoration: none;}',
        'h1.headline a:hover {color: #AFDB34; text-decoration: underline;}'
    ],
    transparent: true,
    fixExactly: true,
    tuneHeight: "-5",
    offsetTop: 2
});

sIFR.replace(avantgarde, {
    selector: 'h3.title',
    css: [
        'h3.title a {color: #AFDB34; text-decoration: none;}',
        'h3.title a:hover {color: #AFDB34; text-decoration: underline;}'
    ],
    transparent: true,
    fitExactly: true,
    tuneHeight: "-7",
    offsetTop: 1
});

sIFR.replace(avantgarde, {
    selector: 'h3.small-title',
    css: [
        'h3.small-title a {color: #AFDB34; text-decoration: none;}',
        'h3.small-title a:hover {color: #AFDB34; text-decoration: underline;}'
    ],
    transparent: true,
    fitExactly: true,
    tuneHeight: "-7"
});

sIFR.replace(avant_demi, {
    selector: 'h3.orange-byline',
    css: '.sIFR-root {color: #FF5D00; text-transform: uppercase; }',
    transparent: true,
    fitExactly: true,
    tuneHeight: "-6",
    tuneWidth: 2,
    offsetTop: 1
});


sIFR.replace(avantgarde, {
    selector: '.work-grid-cell .title',
    css: '.sIFR-root {color: #ffffff; text-transform: uppercase; }',
    transparent: true,
    fitExactly: true,
    tuneHeight: "-7",
    offsetTop: 1
});
