/*****************************************************************************
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.
*****************************************************************************/
// Shortened the original documentation to save on file size. 
// Original package available at http://wiki.novemberborn.net/sifr3/
// Path to SWF file(s). (Relative to the HTML file they're embedded in, not this file) 
var dinRegular = { src: '_js/sifr/din-regular.swf',ratios:[8, 1.42, 9, 1.33, 12, 1.35, 15, 1.3, 19, 1.28, 27, 1.27, 28, 1.25, 32, 1.26, 33, 1.24, 34, 1.25, 48, 1.24, 52, 1.23, 53, 1.24, 73, 1.23, 76, 1.22, 77, 1.23, 81, 1.22, 82, 1.23, 1.22]};

var dinBlack = { src: '_js/sifr/din-black.swf', ratios: [7, 1.47, 12, 1.37, 16, 1.34, 23, 1.32, 27, 1.31, 29, 1.28, 36, 1.29, 45, 1.28, 73, 1.27, 76, 1.26, 79, 1.27, 83, 1.26, 84, 1.27, 95, 1.26, 96, 1.27, 1.26] };

var dinBold = {src: '_js/sifr/din-bold.swf', ratios: [8, 1.42, 9, 1.33, 12, 1.35, 15, 1.3, 19, 1.28, 27, 1.27, 28, 1.25, 32, 1.26, 33, 1.24, 34, 1.25, 48, 1.24, 52, 1.23, 53, 1.24, 73, 1.23, 76, 1.22, 77, 1.23, 81, 1.22, 82, 1.23, 1.22]};

// 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:
// Add new variables / objects in a comma-separated list


sIFR.activate(dinRegular,dinBlack,dinBold);

/* Replacements: 
	Parameter 1: Flash file we want to use
	Parameter 2: An object containing a selector and any number of keyword arguments,
	Read more about Keyword arguments: <http://wiki.novemberborn.net/sifr3/JavaScript+Methods>.
	Read more about styling at <http://wiki.novemberborn.net/sifr3/Styling>.
*/

sIFR.replace(dinRegular, {
  selector: '.story h3, .content_more h3, .tools h3',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #2E70AA; font-size:20px}'
});

sIFR.replace(dinBold, {
  selector: '#section_title h2',
  wmode:'transparent',
  css: '.sIFR-root { color: #ffffff; font-size:30px; }'
});

sIFR.replace(dinBold, {
  selector: '#section_sub_title',
  wmode:'transparent',
  css: '.sIFR-root { color: #ffffff; font-size:20px; }'
});

sIFR.replace(dinRegular, {
  selector: '#sustain_template1 #sust_main h3, #sust_efforts h3, #secondary_promo_heading, .blurb h3, .build_item h3, .content_text h3, .content_overview h2',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #2E70AA; font-size:30px}'
});


sIFR.replace(dinRegular, {
  selector: '#sustain_template1 .build_item h4, #sustain_template3 .build_item h4, .promo100 h3',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #333333; font-size:20px;}'
});

sIFR.replace(dinRegular, {
  selector: '.linkheading',
  wmode:'transparent',
  css: ['.sIFR-root {font-size:20px;}',
  		'a{color: #2E70AA; text-decoration:none;}',
  		'a:hover{color:#333333}']
});


sIFR.replace(dinRegular, {
  selector: '#sustain_template1 #secondary_promo h3',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #333333; font-size:20px}'
});

sIFR.replace(dinBlack, {
  selector: '.sustainabilityh5',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #7E8A66; font-size:18px; }'
});
sIFR.replace(dinBlack, {
  selector: '.buildh5',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #906D6D; font-size:18px; }'
});
sIFR.replace(dinBlack, {
  selector: '.content_columnh3',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #85a2a5; font-size:18px; }'
});
sIFR.replace(dinBlack, {
  selector: '.content_contacth4',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #85a2a5; font-size:20px; }'
});

/*-----------------------------------------------------------*/
/*----- BEGIN EDITED SIFR STYLES (11/03/2011) ----------------*/
/*-----------------------------------------------------------*/
sIFR.replace(dinRegular, {
  selector: '.results h4.resultsh4',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #ffffff; font-size:24px}'
});
/*-----------------------------------------------------------*/
/*----- END EDITED SIFR STYLES (11/03/2011) ------------------*/
/*-----------------------------------------------------------*/

sIFR.replace(dinBlack, {
  selector: '.content_columnrh3',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #ffffff; font-size:18px; }'
});
sIFR.replace(dinRegular, {
  selector: '#sustain_template3 h3, #sustain_template2 #sust_main h3',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #333333; font-size:36px; letter-spacing: -1; leading: -5}'
}); 
sIFR.replace(dinRegular, {
  selector: '#sust_more_wrap',
  wmode:'transparent',
  css: ['.sIFR-root { background-color: #ffffff; font-size:20px;}',
  		 'a{text-decoration:none;color: #2E70AA;}',
  		 'a:hover{color:#333333}'
  	   ]
});

/*-----------------------------------------------------------*/
/*----- BEGIN EDITED SIFR STYLES (5/26/2011) ----------------*/
/*-----------------------------------------------------------*/
sIFR.replace(dinRegular, {
  selector: '.content_texth4',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #2E70AA; font-size:23px}'
});
sIFR.replace(dinBlack, {
  selector: '.headers li',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #85A2A5; font-size:14px; text-transform: uppercase}'
});
/*-----------------------------------------------------------*/
/*----- END EDITED SIFR STYLES (5/26/2011) ------------------*/
/*-----------------------------------------------------------*/

/*-----------------------------------------------------------*/
/*----- BEGIN NEW SIFR STYLES (5/23/2011) -------------------*/
/*-----------------------------------------------------------*/

sIFR.replace(dinRegular, {
  selector: '#section_title h1',
  wmode:'transparent',
  css: [
  	'.sIFR-root { color: #ffffff; font-size: 24px; }',
  	'a {color: #ffffff; text-decoration: none;}',
  	'a:hover {color: #000000;}'
  ]
});
sIFR.replace(dinRegular, {
  selector: '.content_texth1',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #2E70AA; font-size:23px}'
});
/*-----------------------------------------------------------*/
/*----- END NEW SIFR STYLES (5/23/2011) ---------------------*/
/*-----------------------------------------------------------*/

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Nick test


sIFR.replace(dinBold, {
  selector: '#productsHeader h1',
  wmode:'transparent',
  css: '.sIFR-root { background-color: #ffffff; color: #000000; font-size:20px; margin-right:0; padding:0;}'       
}); 

sIFR.replace(dinRegular, {
  selector: '#productsHeader h2',
  wmode:'transparent',
  css: ['.sIFR-root { background-color: #ffffff; color: #000000; font-size:18px;}',
        'a{text-decoration:none;color: #2E70AA;}',
  		 'a:hover{color:#333333}'
  	   ]       
});

sIFR.replace(dinBold, {
  selector: '#secondaryNav h4',
  wmode:'transparent',
  css: ['.sIFR-root { background-color: #ffffff; color: #000000; font-size:12px;}',
        'a{text-decoration:none;color: #2E70AA;}',
  		 'a:hover{color:#333333}'
  	   ] 
});

sIFR.replace(dinBold, {
  selector: '#content h1',
  wmode:'transparent',
  css: ['.sIFR-root { background-color: #ffffff; color: #666666; font-size:12pt;}',
        'a{text-decoration:none;color: #2E70AA;}',
  		 'a:hover{color:#333333}'
  	   ] 
});
