var avenirheavy = {
  src:  '/statics/swf/sIFR/avenirheavy.swf',
  wmode: 'transparent',
  ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 28, 1.23, 34, 1.22, 46, 1.21, 50, 1.2, 51, 1.21, 74, 1.2, 78, 1.19, 80, 1.2, 83, 1.19, 84, 1.2, 1.19],
  tuneWidth: 8
};

var avenirmedium = {
  src:  '/statics/swf/sIFR/avenirmedium.swf',
  wmode: 'transparent',
  ratios: [8, 1.41, 9, 1.33, 12, 1.35, 14, 1.29, 15, 1.3, 19, 1.28, 20, 1.27, 28, 1.26, 29, 1.24, 30, 1.25, 40, 1.24, 43, 1.23, 44, 1.24, 64, 1.23, 72, 1.22, 73, 1.23, 106, 1.22, 107, 1.21, 115, 1.22, 116, 1.21, 120, 1.22, 121, 1.21, 1.22],
  tuneWidth: 8
};

sIFR.useStyleCheck = true;
sIFR.fitExactly = true;
sIFR.activate(avenirheavy,avenirmedium);

// wat doet deze??
sIFR.replace(avenirheavy, {
  selector: '.selected'
  , css: ['.sIFR-root {font-size: 18px; color: #000000;}',
        'a {color: #000000; text-decoration: none;}',
        'a:hover {color: #000000; text-decoration: underline;}']
});

// alle headers
if (!window.isCJK)
{
  sIFR.replace(avenirmedium, {
    selector: 'h1'
    , css: ['.sIFR-root {font-size: 30px; color: #000000;}']
  });
}


//hoofdnavigatie
//sIFR.replace(avenirheavy, {
//  selector: '.layout-header-mainnav-link'
//  ,css: ['.sIFR-root {font-size: 18px; color: #FFFFFF; }',
//        'a {color: #FFFFFF; text-decoration: none;}',
//        'a:hover {color: #FFFFFF; text-decoration: underline;}']
//});

//sIFR.replace(avenirheavy, {
//  selector: '.myamsterdam-component-title'
//  ,css: ['.sIFR-root {font-size: 22px; color: #000000; font-weight:bold; background-color: #00A4E8;}']
//});



// eerst de h1 classes, daarna de h1 fallback
//sIFR.replace(avenirheavy, {
//  selector: '.myamsterdamH1x'
//  ,css: ['.sIFR-root {font-size: 30x; color: #000000; font-weight:bold;}']
//});

//sIFR.replace(avenirmedium, {
//  selector: '.festivalagenda-header'
//  , css: ['.sIFR-root {font-size: 24px; color: #000000;}']
//});





// eerst de h3 classes, daarna de h3 fallback
sIFR.replace(avenirheavy, {
  selector: '.myamsterdam-harmonica .myamsterdam-title'
  ,css: ['.sIFR-root {font-size: 18px; color: #FFFFFF; font-weight:bold; background-color: #00A4E8;}']
});

sIFR.replace(avenirheavy, {
  selector: '.layout-myamsterdam-lightBox h3'
  ,css: ['.sIFR-root {font-size: 32px; color: #000000; font-weight:bold;}}']
});

replaceSifrH3();

function replaceSifrH3()
{
  sIFR.replace(avenirheavy, {
    selector: '.sIFR-h3'
    ,css: ['.sIFR-root {font-size: 17px; color: #FD000D; font-weight:bold;}',
      'a {color: #FD000D; text-decoration:none;}',
      'a:hover {color: #FD000D; text-decoration:underline;}']
  });
}

sIFR.replace(avenirheavy, {
selector: '.portal-weatherSmall .today, .portal-weatherSmall .degrees, .placestogo-video .placestogo-video-text'
  , css: ['.sIFR-root {font-size: 16px; font-weight:bold; color:#Fd000d; background-color:#f6f6f6;}}',
        'a {color: #FD000D; text-decoration: none;}',
        'a:hover {color: #FD000D; text-decoration: nones;}']
}
);

//function replaceSifrMyAmsterdamTitle()
//{
//  sIFR.replace(avenirheavy, {
//  selector: '.replaceSifrMyAmsterdamTitle'
//  ,css: ['.sIFR-root {color: #000000; font-size: 30px; font-weight:bold}']
//  });
//}


//sIFR.replace(avenirheavy, {
//  selector: '.portal-exploreTheCity h4'
//  ,css: ['.sIFR-root {font-size: 14px; color: #000000; font-weight:bold; line-height:20px;}}',
//        'a {color: #FD000D; text-decoration: none;}',
//        'a:hover {color: #FD000D; text-decoration: nones;}']
//});

//sIFR.replace(avenirmedium, {
//  selector: '.portal-whatsonWizard h3'
//  ,css: ['.sIFR-root {color: #FFFFFF; font-size: 30px;}']
//});

//sIFR.replace(avenirheavy, {
//  selector: '.portal-searchAgenda-title'
//  ,css: ['.sIFR-root {color: #FFFFFF; font-size: 18px;}']
//});

//sIFR.replace(avenirheavy, {
//  selector: '.portal-searchVenues h3'
//  ,css: ['.sIFR-root {color: #FD000D; font-size: 18px;}']
//});

