// 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>.
var stag = { src: '/swf/stag.swf'}
sIFR.activate(stag);

Event.observe(window,"load",function(){
	// 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.replace(stag, {
	  selector: 'h1.smaller',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#4e4a45;	font-size:28px; }'
	});

	sIFR.replace(stag, {
	  selector: 'h1',
		wmode: 'transparent',
	  css: '.sIFR-root {color:#4e4a45;	font-size:40px; }'
	});
	sIFR.replace(stag, {
	  selector: 'h2.smaller',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#cdc9bf;	font-size:24px; }'

	});

	sIFR.replace(stag, {
	  selector: 'h2.leftered',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#cdc9bf;	font-size:40px; margin-left:165px }'

	});
	sIFR.replace(stag, {
	  selector: 'h2.white',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#ffffff; font-size:42px; }'
	});

	sIFR.replace(stag, {
	  selector: 'h2',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#cdc9bf;	font-size:36px; }'
	});



	
	sIFR.replace(stag, {
	  selector: '#city h3.white',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#ffffff;	font-size:24px; }'
	});
	
	sIFR.replace(stag, {
	  selector: '#city h3.brown',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#4e4a45;	font-size:24px;}'
	});
	
	sIFR.replace(stag, {
	  selector: '#city h3.leftered',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#cdc9bf;	font-size:24px;}'
	});
	
	
	sIFR.replace(stag, {
	  selector: 'h3.active',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#4e4a45; cursor:pointer;	font-size:20px; text-align:right}'
	});

	sIFR.replace(stag, {
	  selector: 'h3.inactive',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#66bbff; cursor:pointer;	font-size:20px; text-align:right}'
	});
	sIFR.replace(stag, {
	  selector: 'h3.white',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#ffffff;	font-size:20px; }'
	});


	sIFR.replace(stag, {
	  selector: '#our-model h3',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#ffffff;	font-size:24px; }'
	});



	sIFR.replace(stag, {
	  selector: '#training h3',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#ffffff;	font-size:28px; }'
	});


	sIFR.replace(stag, {
	  selector: '#admin h4',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#d5ee59;	font-size:14px; }'
	});



	sIFR.replace(stag, {
	  selector: 'h4',
		wmode: 'transparent',
	  css: ['.sIFR-root { color:#d5ee59;text-decoration:none; cursor:pointer; font-size:18px; }', 'a {color:#d5ee59;text-decoration:none;}',
	'a:hover { color:#d5ee59;text-decoration:none;}']
	});


	sIFR.replace(stag, {
	  selector: 'h5',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#4e4a45;	font-size:24px; }'

	});
	
	sIFR.replace(stag, {
	  selector: 'h6',
		wmode: 'transparent',
	  css: '.sIFR-root { color:#ffffff;	font-size:14px; }'

	});
})


