var profileMedium = { src: 'swf/profile-medium.swf' };
var profileLight = { src: 'swf/profile-light.swf' };

// sIFR.useStyleCheck = true;

// Next, activate sIFR:
sIFR.activate(profileLight, profileMedium);

sIFR.replace(profileLight, {
  selector: '.quote-left',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #d3c592; font-size: 60; leading: 0px;}'
});

sIFR.replace(profileLight, {
  selector: '.quoteBody',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #d3c592; font-size: 22px; leading: 10px; letter-spacing:0;}'
});

sIFR.replace(profileLight, {
  selector: '.quote-right',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #d3c592; font-size: 60px; leading: 0px;}'
});

/* Needed in all versions of the sifr config files */

sIFR.replace(profileMedium, {
  selector: '.pinkContentBlock h2',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #ff0099; font-size: 24px; leading: -10px; letter-spacing:0;}'
});

sIFR.replace(profileMedium, {
  selector: '.yellowContentBlock h2',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #ffcc00; font-size: 24px; leading: -10px; letter-spacing:0;}'
});

sIFR.replace(profileMedium, {
  selector: '.greenContentBlock h2',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #b2e599; font-size: 24px; leading: -10px; letter-spacing:0;}'
});

sIFR.replace(profileMedium, {
  selector: '.blueContentBlock h2',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #60bad2; font-size: 24px; leading: -10px; letter-spacing:0;}'
});

sIFR.replace(profileMedium, {
  selector: '.purpleContentBlock h2',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #670099; font-size: 24px; leading: -10px; letter-spacing:0;}'
});

sIFR.replace(profileLight, {
  selector: '.pinkContentBlock h3',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #ff0099; font-size: 24px; leading: 0px; letter-spacing:0;}'
});

sIFR.replace(profileLight, {
  selector: '.purpleContentBlock h3',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #670099; font-size: 24px; leading: 0px; letter-spacing:0;}'
});

sIFR.replace(profileLight, {
  selector: '.blueContentBlock h3',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #60bad2; font-size: 24px; leading: 0px; letter-spacing:0;}'
});

sIFR.replace(profileLight, {
  selector: '.yellowContentBlock h3',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #ffcc00; font-size: 24px; leading: 0px; letter-spacing:0;}'
});

sIFR.replace(profileLight, {
  selector: '.greenContentBlock h3',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #b2e599; font-size: 24px; leading: 0px; letter-spacing:0;}'
});

sIFR.replace(profileMedium, {
  selector: '.yellowContentBlock h4',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #eeaf00; font-size: 16px; leading: 0px; letter-spacing:0;}'    
});

sIFR.replace(profileMedium, {
  selector: '.purpleContentBlock h4',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #670099; font-size: 16px; leading: 0px; letter-spacing:0;}'    
});

sIFR.replace(profileMedium, {
  selector: '.pinkContentBlock h4',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #ff0099; font-size: 16px; leading: 0px; letter-spacing:0;}'    
});

sIFR.replace(profileMedium, {
  selector: '.greenContentBlock h4',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #b2e599; font-size: 16px; leading: 0px; letter-spacing:0;}'    
});

sIFR.replace(profileMedium, {
  selector: '.blueContentBlock h4',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #60bad2; font-size: 16px; leading: 0px; letter-spacing:0;}'    
});

sIFR.replace(profileMedium, {
	selector: '.purpleContentBlock .homeAnchor',
	wmode: 'transparent',
    css: ['.sIFR-root { text-transform:uppercase; cursor:pointer; background-color: #F9F9F9; color: #670099; font-size:12px; leading:0px; letter-spacing:0;}',
    'a { text-decoration: none; color: #670099; }',
    'a:link { color: #670099; }',
    'a.selected { color: #670099; }',
    'a:hover { color: #670099; text-decoration:underline; }']
});

sIFR.replace(profileMedium, {
	selector: '.yellowContentBlock .homeAnchor',
	wmode: 'transparent',
    css: ['.sIFR-root { text-transform:uppercase; cursor:pointer; background-color: #F9F9F9; color: #eeaf00; font-size:12px; leading:0px; letter-spacing:0;}',
    'a { text-decoration: none; color: #eeaf00; }',
    'a:link { color: #eeaf00; }',
    'a.selected { color: #eeaf00; }',
    'a:hover { color: #eeaf00; text-decoration:underline; }']
});

sIFR.replace(profileMedium, {
	selector: '.pinkContentBlock .homeAnchor',
	wmode: 'transparent',
    css: ['.sIFR-root { text-transform:uppercase; cursor:pointer; background-color: #F9F9F9; color: #ff0099; font-size:12px; leading:0px; letter-spacing:0;}',
    'a { text-decoration: none; color: #ff0099; }',
    'a:link { color: #ff0099; }',
    'a.selected { color: #ff0099; }',
    'a:hover { color: #ff0099; text-decoration:underline; }']
});

sIFR.replace(profileMedium, {
	selector: '.blueContentBlock .homeAnchor',
	wmode: 'transparent',
    css: ['.sIFR-root { text-transform:uppercase; cursor:pointer; background-color: #F9F9F9; color: #60bad2; font-size:12px; leading:0px; letter-spacing:0;}',
    'a { text-decoration: none; color: #60bad2; }',
    'a:link { color: #60bad2; }',
    'a.selected { color: #60bad2; }',
    'a:hover { color: #60bad2; text-decoration:underline; }']
});

sIFR.replace(profileMedium, {
	selector: '.greenContentBlock .homeAnchor',
	wmode: 'transparent',
    css: ['.sIFR-root { text-transform:uppercase; cursor:pointer; background-color: #F9F9F9; color: #b2e599; font-size:12px; leading:0px; letter-spacing:0;}',
    'a { text-decoration: none; color: #b2e599; }',
    'a:link { color: #b2e599; }',
    'a.selected { color: #b2e599; }',
    'a:hover { color: #b2e599; text-decoration:underline; }']
});

sIFR.replace(profileMedium, {
  selector: 'span.phoneText',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #ffffff; font-size: 14px; leading: 0px; letter-spacing:1;}'    
});

sIFR.replace(profileMedium, {
  selector: 'span.phoneNumber',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #ffffff; font-size: 18px; leading: 0px; letter-spacing:1; width:200px;}'    
});

sIFR.replace(profileMedium, {
  selector: 'h4.newsHeading',
  wmode: 'transparent',
  css: '.sIFR-root { background-color: #F9F9F9; color: #ffffff; font-size: 18px; leading: 0px; letter-spacing:1; width:200px;}'    
});

