var themix = {
  src: '/templates/yellowtail_global/docs/js/sIFR/themix_new.swf'
};

var themixcaps = {
  src: '/templates/yellowtail_global/docs/js/sIFR/themix_caps_new.swf'
};

var themixbold = {
  src: '/templates/yellowtail_global/docs/js/sIFR/themix_bold_new.swf'
};

var themixboldcaps = {
  src: '/templates/yellowtail_global/docs/js/sIFR/themix_boldcaps_new.swf'
};

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

sIFR.replace(themix, {
  selector: '.articlegallery2 h1.maintitle'
	,wmode: 'transparent'
  ,css: [
    '.sIFR-root { text-align:left; color:#ffffff; font-size: 26; }'
  ]
});

sIFR.replace(themix, {
  selector: '.articleitem h1.maintitle'
	,wmode: 'transparent'
  ,css: [
    '.sIFR-root { text-align:left; color:#ffffff; font-size: 26; }'
  ]
});

sIFR.replace(themix, {
  selector: 'h1.maintitle'
	,wmode: 'transparent'
  ,css: [
    '.sIFR-root { text-align:right; color:#ffffff; font-size: 26; }'
  ]
});

sIFR.replace(themixcaps, {
  selector: '.introduction ul.meta li'
	,wmode: 'transparent'
	,forceSingleLine: true
	,fitExactly: true
  ,css: [
    '.sIFR-root { font-size:13;text-align:right; color:#f48020; text-transform:uppercase; }'
  ]
});

sIFR.replace(themixcaps, {
  selector: '.storyoverview p.about'
	,wmode: 'transparent'
	,forceSingleLine: true
	,fitExactly: true
  ,css: [
    '.sIFR-root { font-size:13;text-align:right; color:#808080; text-transform:uppercase; }'
  ]
});

// 
// /* titles in map rollovers */
// sIFR.replace(themix, {
//   selector: '.storelocator ul.map li .popup .details h2'
// 	,wmode: 'transparent'
// 	,forceSingleLine: true
// 	,fitExactly: true
//   ,css: [
//     '.sIFR-root { color:#faaf40; }'
//   ]
// });

/* store locator main header */
sIFR.replace(themixbold, {
  selector: '.storelocator h1'
	,wmode: 'transparent'
	,forceSingleLine: true
	,fitExactly: true
  ,css: [
    '.sIFR-root { color:#ffffff; text-transform:normal; font-size:20; }'
  ]
});

/* promotion main header */
sIFR.replace(themixbold, {
  selector: '.promotionsoverview h1'
	,wmode: 'transparent'
	,forceSingleLine: true
	,fitExactly: true
  ,css: [
    '.sIFR-root { color:#ffffff; text-transform:uppercase;font-size:20; }'
  ]
});

sIFR.replace(themix, {
  selector: '.storiesintro p.introduction'
	,wmode: 'transparent'
  ,css: [
    '.sIFR-root { text-align:right; color:#ffffff; font-size: 22; }'
  ]
});

/* main text in stories intro */
sIFR.replace(themixbold, {
  selector: '.storiesintro h1'
	,wmode: 'transparent'
	,fitExactly: true
  ,css: [
    '.sIFR-root { color:#ffffff; text-transform:uppercase;font-size:20; }',
		'em { font-style:none; color:#454647;}'
  ]
});


/* faq styles */
sIFR.replace(themixbold, {
  selector: '.faq h1'
	,wmode: 'transparent'
	,fitExactly: true
  ,css: [
    '.sIFR-root { color:#ffffff; text-transform:uppercase;font-size:20; }',
		'em { font-style:none; color:#454647;}'
  ]
});

sIFR.replace(themix, {
  selector: '.faq p.introduction'
	,wmode: 'transparent'
  ,css: [
    '.sIFR-root { text-align:right; color:#ffffff; font-size: 22; }'
  ]
});

/* main text in promotions */
sIFR.replace(themixbold, {
  selector: '.storiesdetail h1'
	,wmode: 'transparent'
	,fitExactly: true
  ,css: [
    '.sIFR-root { color:#ffffff; text-transform:uppercase;font-size:20; }',
		'em { font-style:none; color:#454647;}'
  ]
});

sIFR.replace(themix, {
  selector: '.storiesdetail p.introduction'
	,wmode: 'transparent'
  ,css: [
    '.sIFR-root { text-align:right; color:#ffffff; font-size: 22; }'
  ]
});

/* gallery meta items */
sIFR.replace(themixcaps, {
  selector: '.articlegallery p.about'
	,wmode: 'transparent'
	,forceSingleLine: true
	,fitExactly: true
  ,css: [
    '.sIFR-root { font-size:13;text-align:right; color:#f68428; text-transform:uppercase; }'
  ]
});

/* gallery meta items */
sIFR.replace(themixcaps, {
  selector: '.articlegallery2 p.about'
	,wmode: 'transparent'
	,forceSingleLine: true
	,fitExactly: true
  ,css: [
    '.sIFR-root { font-size:13;text-align:right; color:#f68428; text-transform:uppercase; }'
  ]
});

/* Footer feature titles */
sIFR.replace(themixboldcaps, {
  selector: '.feature_content h4.feature_title'
	,wmode: 'transparent'
	,forceSingleLine: true
	,fitExactly: true
  ,css: [
    '.sIFR-root { font-size:24;text-align:right; color:#ffffff; text-transform:lowercase; }'
  ]
});

// sIFR.replace(themix, {
//   selector: '.feature_content h5.feature_subtitle'
// 	,wmode: 'transparent'
// 	,forceSingleLine: true
// 	,fitExactly: true
//   ,css: [
//     '.sIFR-root { font-size:17;text-align:right; color:#989898; }'
//   ]
// });