/* 
	Precious Planet 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_headlines = {
	src : fp_script_sifr_prefix + '/content/v5/us/preciousplanet/swf/VAGRoundedBT.swf'
};

var fp_script_sifr_carousel = {
	src : fp_script_sifr_prefix + '/content/v5/us/preciousplanet/swf/VAGRoundedBT.swf'
};

// Next, activate sIFR:
sIFR.activate(fp_script_sifr_headlines, fp_script_sifr_carousel);

// 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_headlines, {
  selector: '#product-meta h2',
  css: '.sIFR-root { background-color: #2FBCCC; color: #FFFFFF;}',
  wmode: 'transparent'
});

sIFR.replace(fp_script_sifr_carousel, {
  selector: '#roomProduct',
  css: '.sIFR-root { color: #FFFFFF;}',
  wmode: 'transparent'
});
