/*****************************************************************************
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.
*****************************************************************************/

/* === DEFAULT COMMENTS STRIPPED === */

// change parseSelector to jQuery
var parseSelector = jQuery;

// Make reference to font:
var ronniaRg = { src: '/include/ColoursWebsite/ronnia_regular.swf' };

// Enable on local network:
sIFR.fromLocal = true;

// Next, activate sIFR:
sIFR.activate(ronniaRg);
// Remember, there must be *only one* `sIFR.activate()`!

// Now we can do the replacements,
// Use jQuery instead of $ for jQuery calls as they're outside the scope of the jQuery object (and we don't want conflicts with other libraries using $):

sIFR.domains = ['colours.nl'] 

// Main content header:
sIFR.replace(ronniaRg, {
      selector:            '#siteContent h1',
      css:                [
                                  '.sIFR-root { color: #000000; }'
                                ,'.levels { color: #666666; }'
                              ,'a { text-decoration: none; }'
                              ,'a:link { color: #000000; }'
                              ,'a:hover { color: #CCCCCC; }'
                              ],
	  modifyContent:	function(contentNode) {
	  							jQuery.skipOffscreenContent(contentNode);
								// replace ":" with " >" within <span class="levels"></span>
	  							jQuery("span.levels", contentNode).each(function() {
									var jThis = jQuery(this);
									jThis.html( jThis.html().split(":").join(" &gt;") );
								});
	  						},
		onReplacement:	function(FlashInteractor) {
								// IE6-fix
								var browser = jQuery.browser;
								if ( !FlashInteractor.available() || !(browser.msie && parseInt(browser.version) < 7) ) return;
								jQuery("#siteBody").addClass("jsIE6fix");
							}
	});
	
// Siteheader quote +
// sub headers +
// sidebar headers:
sIFR.replace(ronniaRg, {
	  selector:			'#headerContent blockquote p, #headerContent h2:not(h2#siteLogo), #mainContent h2:not(h2.noSIFR), #mainContent h3, #sidebar div:not(.tab):not(.tabs) h2',
	  css:				'.sIFR-root { color: #000000; }',
	  wmode:				'transparent',
	  	  ratios:			[8, 1.31, 12, 1.27, 16, 1.21, 17, 1.2, 23, 1.19, 26, 1.16, 27, 1.17, 35, 1.16, 51, 1.15, 78, 1.14, 83, 1.13, 84, 1.14, 91, 1.13, 92, 1.14, 1.13],
	  modifyContent:	function(contentNode) {
	  							jQuery.skipOffscreenContent(contentNode);
	  						}
					
	});
	

	
// Page slogan:
sIFR.replace(ronniaRg, {
	  selector:			'#pageSlogan',
	  css:				'.sIFR-root { font-weight: bold; color: #000000; }',
	  wmode:				'transparent',
	  ratios:			[8, 1.31, 12, 1.27, 16, 1.21, 17, 1.2, 23, 1.19, 26, 1.16, 27, 1.17, 35, 1.16, 51, 1.15, 78, 1.14, 83, 1.13, 84, 1.14, 91, 1.13, 92, 1.14, 1.13],
	  modifyContent:	function(contentNode) {
	  							jQuery.skipOffscreenContent(contentNode);
	  						}
	});
	

