var avenir_light  = {src: sifr_path + 'avenir_light.swf'};
var avenir_medium = {src: sifr_path + 'avenir_medium.swf'};
var avenir_heavy  = {src: sifr_path + 'avenir_heavy.swf'};
var avenir_black  = {src: sifr_path + 'avenir_black.swf'};
var avenir_book   = {src: sifr_path + 'avenir_book.swf'};

sIFR.useStyleCheck = true;

sIFR.activate(avenir_light, avenir_medium, avenir_heavy, avenir_black, avenir_book);

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


sIFR.replace(avenir_medium, {
  selector: 'h1',
  css: ['.sIFR-root { color: #434343; font-size: 30px; }'],
  wmode: 'transparent'
});

sIFR.replace(avenir_light, {
  selector: '.light18',
  css: [
  	'.sIFR-root  { color: #434343; font-size: 18px; }',
  	'a       { color: #8CC63F; text-decoration: none; }',
  	'a:hover { color: #8CC63F; text-decoration: none; }'
  ],
  fitExactly: true,
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_white',
  css: ['.sIFR-root { color: #FFFFFF; font-size: 14px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_grey',
  css: ['.sIFR-root { color: #757575; font-size: 14px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_lime',
  css: ['.sIFR-root { color: #D7DF21; font-size: 14px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

	sIFR.replace(avenir_heavy, {
	  selector: '.heavy_lime_link',
	  css: [
	    '.sIFR-root { color: #D7DF21; font-size: 12px; cursor:pointer;}', 
	  	'.sIFR-root a { color: #D7DF21; font-size: 12px; text-decoration: none; cursor: pointer; }', 
	  	'.sIFR-root a:hover {text-decoration: none; color: #D7DF21; cursor:pointer;}'
	  	],
	  	tuneWidth: 10,
	  	fitExactly: true,
	  	antiAliasType: "advanced",
	    wmode: 'transparent'
	});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_navy_blue',
  css: ['.sIFR-root { color: #0F75BC; font-size: 14px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

	sIFR.replace(avenir_heavy, {
	  selector: '.heavy_navy_blue_link',
	  css: [
	    '.sIFR-root { color: #0F75BC; font-size: 12px; cursor:pointer;}', 
	  	'.sIFR-root a { color: #0F75BC; font-size: 12px; text-decoration: none; cursor: pointer; }', 
	  	'.sIFR-root a:hover {text-decoration: none; color: #0F75BC; cursor:pointer;}'
	  	],
	  	tuneWidth: 10,
	  	fitExactly: true,
	  	antiAliasType: "advanced",
	    wmode: 'transparent'
	});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_medium_green',
  css: ['.sIFR-root { color: #2BB673; font-size: 14px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

	sIFR.replace(avenir_heavy, {
	  selector: '.heavy_medium_green_link',
	  css: [
	    '.sIFR-root { color: #2BB673; font-size: 12px; cursor:pointer;}', 
	  	'.sIFR-root a { color: #2BB673; font-size: 12px; text-decoration: none; cursor: pointer; }', 
	  	'.sIFR-root a:hover {text-decoration: none; color: #2BB673; cursor:pointer;}'
	  	],
	  	tuneWidth: 10,
	  	fitExactly: true,
	  	antiAliasType: "advanced",
	    wmode: 'transparent'
	});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_bright_green',
  css: ['.sIFR-root { color: #8CC63F; font-size: 14px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});
	/* see light_green_link for this link colour */

sIFR.replace(avenir_heavy, {
  selector: '.heavy_grey_small',
  css: ['.sIFR-root { color: #434343; font-size: 11px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_green',
  css: ['.sIFR-root { color: #8EC640; font-size: 14px; text-transform: uppercase; leading: -5; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_green_link',
  css: [
  	'.sIFR-root { color: #8EC640; font-size: 14px; }',
  	'a { color: #8EC640; text-decoration: none; }',
  	'a:hover {color: #8EC640; text-decoration: none;}'
  ],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '#subnav .selected',
  css: [
    '.sIFR-root { color: #8CC63F; font-size: 12px; text-transform: uppercase; cursor: pointer; }', 
  	'.sIFR-root a { color: #8CC63F; font-size: 12px; text-decoration: none; cursor: pointer; }', 
  	'.sIFR-root a:hover { text-decoration: none; color: #8CC63F; cursor: pointer; }'
  	],
  	fitExactly: true,
  	tuneWidth: 13,
  	antiAliasType: "advanced",
    wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '#subnav .unselected',
  css: [
    '.sIFR-root { color: #434343; font-size: 12px; text-transform: uppercase; cursor: pointer; }', 
  	'.sIFR-root a { color: #434343; font-size: 12px; text-decoration: none; cursor: pointer; }', 
  	'.sIFR-root a:hover { text-decoration: none; color: #8CC63F; cursor: pointer; }'
  	],
  fitExactly: true,
  tuneWidth: 13,
  antiAliasType: "advanced",
  wmode: 'transparent'
});



sIFR.replace(avenir_book, {
  selector: '.book_white',
  css: ['.sIFR-root { color: #FFFFFF; font-size: 14px; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_book, {
  selector: '.book_grey',
  css: ['.sIFR-root { color: #757575; font-size: 14px; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_book, {
  selector: '.book_grey15',
  css: ['.sIFR-root { color: #757575; font-size: 15px; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '#newsletter_signup a',
  css: [
    '.sIFR-root { color: #FFFFFF; font-size: 12px; cursor: pointer; }', 
  	'.sIFR-root a { color: #FFFFFF; font-size: 12px; text-decoration: none; cursor: pointer; }', 
  	'.sIFR-root a:hover {text-decoration: none; color: #FFFFFF; cursor: pointer;}'
  	],
  	antiAliasType: "advanced",
    wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '#brochure a',
  css: ['.sIFR-root { color: #2BB673; font-size: 12px; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_white12',
  css: ['.sIFR-root { color: #FFFFFF; font-size: 12px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '#client_testimonials a',
  css: ['.sIFR-root { color: #434343; font-size: 12px; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_black, {
  selector: '#tree_counter .count',
  css: ['.sIFR-root { color: #2bb673; font-size: 28px; }'],
  wmode: 'transparent'
});

sIFR.replace(avenir_black, {
  selector: '.grey_black',
  css: ['.sIFR-root { color: #434343; font-size: 16px; text-transform: uppercase; font-weight: bold; leading: 1; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_black, {
  selector: '.grey_black14',
  css: ['.sIFR-root { color: #434343; font-size: 14px; text-transform: uppercase; leading: -3; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_black, {
  selector: '.page_title h2',
  css: ['.sIFR-root { color: #434343; font-size: 14px; text-transform: uppercase; }'],
  fitExactly: true,
  tuneWidth: 15,
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '#homepage_carousel .heavy_dark_green',
  css: [
    '.sIFR-root { color: #CBD424; font-size: 13px; cursor: pointer; }', 
  	'.sIFR-root a { color: #CBD424; font-size: 13px; text-decoration: none; cursor: pointer; }', 
  	'.sIFR-root a:hover {text-decoration: none; color: #CBD424;cursor: pointer;}'
  	],
  	antiAliasType: "advanced",
    wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '#homepage_carousel .heavy_dark_blue',
  css: [
    '.sIFR-root{ color: #0F75BC; font-size: 13px; cursor: pointer;}',
  	'.sIFR-root a { color: #0F75BC; font-size: 13px; text-decoration: none; cursor: pointer; }', 
  	'.sIFR-root a:hover {text-decoration: none; color: #0F75BC; cursor: pointer;}'
  	],
  	antiAliasType: "advanced",
    wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '#homepage_carousel .heavy_light_green',
  css: [
    '.sIFR-root{ color: #2BB673; font-size: 13px;cursor: pointer;}',
  	'.sIFR-root a { color: #2BB673; font-size: 13px; text-decoration: none;cursor: pointer; }', 
  	'.sIFR-root a:hover {text-decoration: none; color: #2BB673;cursor: pointer;}'
  	],
  	antiAliasType: "advanced",
    wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '.heavy_grey2',
  css: ['.sIFR-root { color: #373737; font-size: 14px; text-transform: uppercase; }'],
  antiAliasType: "advanced",
  wmode: 'transparent'
});

sIFR.replace(avenir_heavy, {
  selector: '.light_green_link',
  css: [
    '.sIFR-root { color: #8CC63F; font-size: 12px; cursor: pointer; }', 
  	'.sIFR-root a { color: #8CC63F; font-size: 12px; text-decoration: none; cursor: pointer; }', 
  	'.sIFR-root a:hover { text-decoration: none; color: #8CC63F; cursor: pointer; }'
  	],
  fitExactly: true,
  tuneWidth: 15,
  antiAliasType: "advanced",
  wmode: 'transparent'
});
