/* 
	Infant Toys sIFR setup
	If you don't want sIFR, just copy over this file and comment out some code
	If you want a different font, copy over the file, and replace the variable src property with your font
*/

		// Define the prefix in case we're on a localhost
var fp_script_sifr_prefix = (window.location.toString().indexOf('localhost') != -1) ? "/fp" : "";

		// Declare the variables for the location of the swf movies
var fp_script_sifr_h2 = {
	src : fp_script_sifr_prefix + '/content/v4/us/infanttoys/swf/avantgarde.swf'
};

var fp_script_sifr_h3 = {
	src : fp_script_sifr_prefix + '/content/v4/us/infanttoys/swf/loulou.swf'
};

// Next, activate sIFR:
sIFR.activate(fp_script_sifr_h2, fp_script_sifr_h3);

// If you want, you can use multiple movies, like so:
//
//    var futura = { src: '/path/to/futura.swf' };
//    var garamond = { src '/path/to/garamond.swf' };
//    var rockwell = { src: '/path/to/rockwell.swf' };
//    
//    sIFR.activate(futura, garamond, rockwell);
//
// Remember, there must be *only one* `sIFR.activate()`!

// Now we can do the replacements. You can do as many as you like.
// 
// The first argument you see here is `selector`, which is a normal CSS selector.
// That means you can also do things like '#content h1' or 'h1.title'.
//
// The second argument determines what the Flash text looks like. The main text
// is styled via the `.sIFR-root` class.

sIFR.replace(fp_script_sifr_h2, {
  selector: 'li#newborn span',
  css: {'.sIFR-root': { 'color': '#199FD7',
  						'font-weight': 'bold'}},
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_h2, {
  selector: 'li#classics span',
  css: {'.sIFR-root': { 'color': '#e0741d',
  						'font-weight': 'bold'}},
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_h2, {
  selector: 'li#blocks span',
  css: {'.sIFR-root': { 'color': '#E93054',
  						'font-weight': 'bold'}},
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_h2, {
  selector: 'li#movement span',
  css: {'.sIFR-root': { 'color': '#AC0592',
  						'font-weight': 'bold'}},
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_h2, {
  selector: 'li#learn span',
  css: {'.sIFR-root': { 'color': '#9327C6',
  						'font-weight': 'bold'}},
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_h2, {
  selector: 'li#animal span',
  css: {'.sIFR-root': { 'color': '#6FAE00',
  						'font-weight': 'bold'}},
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_h2, {
  selector: 'li#more span',
  css: {'.sIFR-root': { 'color': '#3168AD',
  						'font-weight': 'bold'}},
  wmode: 'transparent'
});


sIFR.replace(fp_script_sifr_h2, {
  selector: '#intro h2, h2.intro, div#results-head, div#browse-head, div#tryme-head, #dev-benefits h3',
  css: {'.sIFR-root': { 'color': '#ffffff',
						'text-align': 'center',
						'font-weight': 'bold'}},
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_h2, {
  selector: 'h2.toggle, body#browse #browse-all h3',
  css: {'.sIFR-root': { 'color': '#8969b5',
						'text-align': 'center',
						'font-weight': 'bold'}},
  wmode: 'transparent'
});


sIFR.replace(fp_script_sifr_h2, {
  selector: '#product-name',
  css: {'.sIFR-root': { 'color': '#ffffff',
						'font-weight': 'bold'}},
  wmode: 'transparent'
});


sIFR.replace(fp_script_sifr_h2, {
  selector: 'h3#headline-physical-milestones',
  css: {'.sIFR-root': { 'color': '#ab1567',
						'font-weight': 'bold'}},
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_h2, {
  selector: 'h4#headline-physical-milestones',
  css: {'.sIFR-root': { 'color': '#f8b917',
						'font-weight': 'bold'}},
  wmode: 'transparent'
});


sIFR.replace(fp_script_sifr_h3, {
  selector: '#headline-thumbs',
  css: {'.sIFR-root': { 'color': '#ffffff',
						'text-align': 'center',
						'font-weight': 'bold'}},
  wmode: 'transparent'
});