/*****************************************************************************
The sIFR configuration should typically go in `sifr-config.js`, but in order to
keep the config file clean, and to give a quick overview, it's done here instead.
*****************************************************************************/

var rockwell = {
  src: '/swf/rockwell.swf'
  ,ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
};

var sifr = {
  src: '/swf/sifr.swf'
  ,ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
};

// You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
// sIFR.useStyleCheck = true;
sIFR.activate(rockwell);

sIFR.replace(rockwell, {
  selector: 'h5#pullquote'
  ,css: [
	'.sIFR-root { font-style: italic; color: #5a5a5a; }'
  ]
  ,wmode: 'transparent'
  ,selectable: true
});

sIFR.replace(rockwell, {
  selector: 'h5#about-pullquote'
  ,css: [
	'.sIFR-root { font-style: italic; color: #5a5a5a; }'
  ]
  ,wmode: 'transparent'
  ,selectable: true
});

sIFR.replace(rockwell, {
  selector: 'h5#contact-pullquote'
  ,css: [
	'.sIFR-root { text-align: center; font-style: italic; color: #5a5a5a; }'
  ]
  ,wmode: 'transparent'
  ,selectable: true
});

sIFR.replace(sifr, {
  selector: 'h4#home_quote'
  ,css: [
	'.sIFR-root { font-style: italic; color: #FFFFFF; }'
  ]
  ,wmode: 'transparent'
  ,selectable: true
});

sIFR.replace(rockwell, {
  selector: 'h4#subquote'
  ,css: [
	'.sIFR-root { text-align: center; font-style: italic; color: #5a5a5a; }'
	,'a { text-decoration: none; }'
	,'a:link { color: #2543bb; }'
	,'a:hover { text-decoration: underline; color: #2543bb; }'

  ]
  ,wmode: 'transparent'
  ,selectable: true
});

sIFR.replace(rockwell, {
  selector: 'h4#thank_you_sub'
  ,css: [
	'.sIFR-root { text-align: center; font-style: italic; color: #5a5a5a; }'
  ]
  ,wmode: 'transparent'
  ,selectable: true
});

sIFR.replace(rockwell, {
  selector: '#thank_you'
  ,css: [
	'.sIFR-root { text-align: center; font-style: italic; color: #000000; }'
  ]
  ,wmode: 'transparent'
  ,selectable: true
});

sIFR.replace(rockwell, {
  selector: 'h5#error_404_pullquote'
  ,css: [
	'.sIFR-root { text-align: center; font-style: italic; color: #5a5a5a; }'
	,'a { text-decoration: none; }'
	,'a:link { color: #2543bb; }'
	,'a:hover { text-decoration: underline; color: #2543bb; }'
	,'.ivt_head { color: #000000; }'
	,'.ivt_text { color: #2543bb; }'

  ]
  ,wmode: 'transparent'
  ,selectable: true
});


sIFR.replace(rockwell, {
  selector: 'h4#about_subquote'
  ,css: [
	'.sIFR-root { text-align: center; font-style: italic; color: #5a5a5a; }'
	,'a { text-decoration: none; }'
	,'a:link { color: #2543bb; }'
	,'a:hover { text-decoration: underline; color: #2543bb; }'

  ]
  ,wmode: 'transparent'
  ,selectable: true
});

sIFR.replace(rockwell, {
  selector: '#phone_info'
  ,css: [
	'.sIFR-root { text-align: left; font-style: italic; color: #000000; }'
	,'.number { color: #2543bb; }'
  ]
  ,wmode: 'transparent'
  ,selectable: true
});
