var foundrymedium = {
  src: _swfprefix + 'swf/foundry.swf',
  ratios: [6,1.41,9,1.35,16,1.28,17,1.23,18,1.25,25,1.23,29,1.21,31,1.22,35,1.2,36,1.21,43,1.2,47,1.19,48,1.2,67,1.19,68,1.18,72,1.19,77,1.18,78,1.19,1.18]
};
var foundrydemi = {
  src: _swfprefix + 'swf/foundry-demi.swf',
  ratios: [6,1.41,9,1.35,16,1.28,17,1.23,18,1.25,25,1.23,29,1.21,31,1.22,35,1.2,36,1.21,43,1.2,47,1.19,48,1.2,67,1.19,68,1.18,72,1.19,77,1.18,78,1.19,1.18]
};

sIFR.prefetch(foundrymedium, foundrydemi);
sIFR.activate();

// NOTE: uncomment this line and then reload page to get the ratios for foundry - the ones above are INCORRECT
//sIFR.debug.ratios({ src: _swfprefix + 'swf/foundryDemi.swf', selector: 'h1'});

// begin global replacement
// styling guide: http://wiki.novemberborn.net/sifr3/Styling

sIFR.replace(foundrymedium, {
  selector: '#headline h1, #headline h2#origTitle',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: 'h1',
  css: [
      '.sIFR-root { leading: -5; kerning: true; font-weight: normal; color: #ffffff; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: '#todayWrapper h2',
  css: [
      '.sIFR-root { leading:0; kerning: true; font-weight: normal; color: #ffffff; }',
	  '.sIFR-root a { color: #ffffff; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #ffffff; text-decoration:underline; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: '#content h2, #rightColumn h2',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; }',
	  '.sIFR-root a { color: #ffffff; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #ffffff; text-decoration:underline; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: 'h2',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; }',
	  '.sIFR-root a { color: #ffffff; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #ffffff; text-decoration:underline; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: '.filmPuffs h4',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; text-transform:uppercase; }',
	  '.sIFR-root a { color: #ffffff; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #ffffff; text-decoration:underline; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: '#screeningTimes h3',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; text-transform:uppercase; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: '#partSeason h3',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; }',
	  '.sIFR-root a { color: #ffffff; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #ffffff; text-decoration:underline; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: '.pull h2, .pull h3',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; }',
	  '.sIFR-root a { color: #ffffff; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #ffffff; text-decoration:underline; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: 'h3',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; }',
	  '.sIFR-root a { color: #ffffff; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #ffffff; text-decoration:underline; }'
    ],
	wmode: 'transparent'
});

sIFR.replace(foundrymedium, {
  selector: 'h4',
  css: [
      '.sIFR-root { kerning: true; font-weight: normal; color: #ffffff; }'
    ],
	wmode: 'transparent'
});
