/*****************************************************************************
It is adviced to place the sIFR JavaScript calls in this file, keeping it
separate from the `sifr.js` file. That way, you can easily swap the `sifr.js`
file for a new version, while keeping the configuration.

You must load this file *after* loading `sifr.js`.

That said, you're of course free to merge the JavaScript files. Just make sure
the copyright statement in `sifr.js` is kept intact.
*****************************************************************************/

// Make an object pointing to the location of the Flash movie on your web server.
// Try using the font name as the variable name, makes it easy to remember which
// object you're using. As an example in this file, we'll use Futura.
var neutraTextAlt = { src: 'http://www.rolanddga.com/resources/swf/sifr/neutraTextAlt.swf' };
var tradeGothicCondensed = { src: 'http://www.rolanddga.com/resources/swf/sifr/tradeGothicCondensed.swf' };
var tradeGothicRegular = { src: 'http://www.rolanddga.com/resources/swf/sifr/tradeGothicRegular.swf' };

// Now you can set some configuration settings.
// See also <http://wiki.novemberborn.net/sifr3/JavaScript+Configuration>.
// One setting you probably want to use is `sIFR.useStyleCheck`. Before you do that,
// read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad>.

// sIFR.useStyleCheck = true;

// Next, activate sIFR:
sIFR.activate(neutraTextAlt, tradeGothicCondensed, tradeGothicRegular);

// 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, but just
// as an example, we'll replace all `<h1>` elements with the Futura movie.
// 
// The first argument to `sIFR.replace` is the `futura` object we created earlier.
// The second argument is another object, on which you can specify a number of
// parameters or "keyword arguemnts". For the full list, see "Keyword arguments"
// under `replace(kwargs, mergeKwargs)` at 
// <http://wiki.novemberborn.net/sifr3/JavaScript+Methods>.
// 
// 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. Here we've specified `background-color`
// of the entire Flash movie to be a light grey, and the `color` of the text to
// be red. Read more about styling at <http://wiki.novemberborn.net/sifr3/Styling>.

//Main Navigation
jQuery().translationsComplete(function(lan){
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: '.mainNav',
	  css: '.sIFR-root { font-size:16px; font-weight:normal; color:#666666; margin:0px; padding:0px;line-height:0px; text-align:center;}',
	  wmode: 'transparent'
	});
	
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.headline',
	  css: '.sIFR-root { font-size:30px; font-weight:normal; color:#333333; margin:0px; padding:0px;line-height:0px}',
	  wmode: 'transparent'
	});
	
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.headlineWhite',
	  css: '.sIFR-root { font-size:30px; font-weight:normal; color:#FFFFFF; margin:0px; padding:0px;line-height:0px}',
	  wmode: 'transparent'
	});
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.headWithSubhead',
	  css: '.sIFR-root { font-size:30px; font-weight:normal; color:#333333; margin:0px; padding:0px;line-height:0px}',
	  wmode: 'transparent'
	});
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: '.headlineH2White',
	  css: '.sIFR-root { font-size:18px; font-weight:normal; color:#ffffff; margin:0px; padding:0px;line-height:0px}',
	  wmode: 'transparent'
	});
	
	
	sIFR.replace(neutraTextAlt, {
	  selector: 'h1.headlineCategory',
	  css: '.sIFR-root { font-size:30px; color:#666666; margin:0px; padding:0px;}',
	  wmode: 'transparent'
	});
	
	
	sIFR.replace(neutraTextAlt, {
	  selector: '.headlineCategory',
	  css: '.sIFR-root { font-size:30px; color:#666666; margin:0px; padding:0px;}',
	  wmode: 'transparent'
	});
	
	
	//Product Page Left Box
	sIFR.replace(tradeGothicCondensed, {
	  selector: '.headlineh2TG18',
	  css: '.sIFR-root { font-size:18px; font-weight:normal; color:#363636; margin:0px; padding:0px;line-height:0px}',
	  wmode: 'transparent'
	});
	sIFR.replace(tradeGothicCondensed, {
	  selector: '.TG12',
	  css: '.sIFR-root { font-size:12px; font-weight:normal; color:#676767; margin:0px; padding:0px;line-height:0px}',
	  wmode: 'transparent'
	});
	//Right Box
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.rightColHeadlineWhite',
	  css: '.sIFR-root { font-size:20px; color:#ffffff;}',
	  wmode: 'transparent'
	});
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.rightColHeadlineBlue',
	  css: '.sIFR-root { font-size:20px; color:#192742;}',
	  wmode: 'transparent'
	});
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.rightColHeadlineRed',
	  css: '.sIFR-root { font-size:20px; color:#cc0000;}',
	  wmode: 'transparent'
	});
	
	
	//Solutions Headline
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.headlineSolutionTitle',
	  css: '.sIFR-root { font-size:24px; font-weight:normal; color:#666666; margin:0px 0 -10px 0; padding:0px; line-height:0px;}',
	  wmode: 'transparent'
	});
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h2.rightColHeaderBlue',
	  css: '.sIFR-root { font-size:20px; font-weight:normal; color:#003366; margin:10px 0px 0px 10px; line-height:0px;}',
	  wmode: 'transparent'
	});
	
	sIFR.replace(tradeGothicRegular, {
	  selector: '.solRtColHeadline'
	  ,css: [
		  '.sIFR-root {font-size: 14px; font-weight:bold; color:#000000; line-height:0px; }'
		],
	  wmode: 'transparent'
	});
	
	//Media Headline
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.headlineMediaType',
	  css: '.sIFR-root { font-size:28px; font-weight:normal; color:#666666; margin:0px 0 -10px 0; padding:0px; line-height:0px;}',
	  wmode: 'transparent'
	});
	
	//Press Room Headline
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h2.headlinePressRoomTitle',
	  css: '.sIFR-root { font-size:18px; font-weight:normal; color:#000000; margin:0px 0 -10px 0; padding:0px; line-height:0px;}',
	  wmode: 'transparent'
	});
	
	
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h2.headlinePressRoomTitle2',
	  css: '.sIFR-root { font-size:18px; font-weight:normal; color:#000000; margin:0px 0 -10px 0; padding:0px; line-height:-10px;}',
	  wmode: 'transparent'
	});
	//Gallery Main
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h2.galSectionsTitle'
	  ,css: [
		  '.sIFR-root {font-size:21px; font-weight:normal; color:#000000; padding: 0; margin: 0; }'
		  ,'a { color:#000000; text-decoration: none }'
		  ,'a:link { color: #363636; text-decoration: none}'
		  ,'a:hover { color: #999999; text-decoration: none }'
		],
	
	  wmode: 'transparent',
	  tuneHeight: '-6'
	});
	
	//Gallery Masters
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.headlineGalMasters',
	  css: '.sIFR-root { font-size:28px; font-weight:normal; color:#000000;  }',
	  wmode: 'transparent'
	});
	sIFR.replace(neutraTextAlt, {
	  selector: 'h1.headlineGalMasterFacts',
	  css: '.sIFR-root { font-size:20px; color:#000000;  }',
	  wmode: 'transparent'
	});
	
	sIFR.replace(neutraTextAlt, {
	  selector: 'p.GalMasterPCallout',
	  css: '.sIFR-root { font-size:20px; color:#000000;  }',
	  wmode: 'transparent'
	});
	
	sIFR.replace(neutraTextAlt, {
	  selector: 'h2.mastersName',
	  css: '.sIFR-root { font-size:20px; font-weight:bold; color:#000000; line-height:-10px;  }',
	  wmode: 'transparent'
	});
	
	//Gallery Pros
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h1.headlineGalPros',
	  css: '.sIFR-root { color:#333333; }',
	  wmode: 'transparent'
	});
	
	sIFR.replace(neutraTextAlt, {
	  selector: 'h1.headlineStory',
	  css: '.sIFR-root { font-weight:bold;  color:#000000; }',
	  wmode: 'transparent'
	});
	//University Tour
	sIFR.replace(tradeGothicCondensed, {
	  selector: 'h2.headlineTourWhite',
	  css: '.sIFR-root { font-size:15px;font-weight:lighter; color:#ffffff; }',
	  wmode: 'transparent'
	});
	
	//Blog Tips & Tricks
	sIFR.replace(tradeGothicCondensed, {
	  selector: '.headlineh2blog'
	  ,css: [
		  '.sIFR-root {font-size: 24px; font-weight:normal; color:#363636; margin:0px; padding:0px;line-height:0px  }'
		  ,'a { color:#363636; text-decoration: underline }'
		  ,'a:link { color: #363636; text-decoration: none}'
		  ,'a:hover { color: #999999; text-decoration: none }'
		],
	  wmode: 'transparent'
	});
	sIFR.replace(tradeGothicCondensed, {
	  selector: '.headlineh2blogRSidebar'
	  ,css: [
		  '.sIFR-root {font-size: 20px; font-weight:normal; color:#363636; line-height:0px  }'
		  ,'a { color:#363636; text-decoration: none }'
		  ,'a:link { color: #363636; text-decoration: none}'
		  ,'a:hover { color: #999999; text-decoration: none }'
		],
	  wmode: 'transparent'
	});
	
	
	// Product Pages
	
	sIFR.replace(tradeGothicRegular, {
	  selector: '.prodRtColHeadline'
	  ,css: [
		  '.sIFR-root {font-size: 14px; font-weight:bold; color:#000000; line-height:0px}'
		],
	  wmode: 'transparent'
	});
	sIFR.replace(tradeGothicRegular, {
	  selector: '.prodRtColHeadline2'
	  ,css: [
		  '.sIFR-root {font-size: 14px; font-weight:bold; color:#000000;}'
		],
	  wmode: 'transparent'
	});
	
	sIFR.replace(tradeGothicRegular, {
	  selector: '.prodSummListHeadline'
	  ,css: [
		  '.sIFR-root {font-size: 18px; font-weight:normal; color:#666666; line-height:0px}'
		],
	  wmode: 'transparent'
	});
});
