/*
#####################################################
# 
# Phenotype.net v2009
# sIFR3 configuraton
#
# http://wiki.novemberborn.net/sifr3
#
#####################################################
*/

  ////////////////////////////////////////////////////////////////////
  // Prevent Linux Flash issues
  ////////////////////////////////////////////////////////////////////
  
  //if (navigator.platform.indexOf('Linux') == -1) {
  
  ////////////////////////////////////////////////////////////////////
  // Define font variables
  ////////////////////////////////////////////////////////////////////

  var clarendon_lt_roman = {src: "/assets/templates/phenotype/sifr3/flash/clarendon-lt-roman.swf"};
  var clarendon_lt_light = {src: "/assets/templates/phenotype/sifr3/flash/clarendon-lt-light.swf"};
  
  ////////////////////////////////////////////////////////////////////
  // Run setup routines
  ////////////////////////////////////////////////////////////////////
  
  sIFR.activate(clarendon_lt_roman, clarendon_lt_light);
  
  ////////////////////////////////////////////////////////////////////
  // Define XHTML selectors to replace and pass sIFR config arguments
  ////////////////////////////////////////////////////////////////////
  
	/*
	Featured content
	--------------------------------------
	*/
	
	// Captions
	sIFR.replace(clarendon_lt_roman, {
		selector: '.featured .caption',
		transparent: true,
		ratios: [6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18],
		offsetTop: -4,
		tuneHeight: -10,
		css: [
			'.sIFR-root { color: #ffffff; background-color: #000000; letter-spacing: -1; }'
		]
	});
	
	/*
	Portfolio
	--------------------------------------
	*/
	// H3 portfolio headings
	sIFR.replace(clarendon_lt_roman, {
		selector: '#project-details h3.heading',
		transparent: true,
		ratios: [6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18],
		offsetTop: -6,
		tuneHeight: -5,
		css: [
			'.sIFR-root { color: #74694b; background-color: #ffffff; letter-spacing: -1; }'
			,'.sIFR-root a { color: #74694b; text-decoration: none; }'
			,'.sIFR-root a:hover { color: #74694b; text-decoration: none; }'
			,'.highlight { color: #544721; }'
		]
	});
	
	// H4 portfolio headings
	sIFR.replace(clarendon_lt_roman, {
		selector: '#project-details h4.heading',
		transparent: true,
		ratios: [6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18],
		offsetTop: -6,
		tuneHeight: -5,
		css: [
			'.sIFR-root { color: #74694b; background-color: #ffffff; letter-spacing: -1; }'
			,'.sIFR-root a { color: #74694b; text-decoration: none; }'
			,'.sIFR-root a:hover { color: #74694b; text-decoration: none; }'
		]
	});
	
	// Project links
	sIFR.replace(clarendon_lt_roman, {
		selector: '#project-details p.project-link',
		transparent: true,
		ratios: [6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18],
		offsetTop: -6,
		tuneHeight: 25,
		css: [
			'.sIFR-root { color: #74694b; background-color: #ffffff; letter-spacing: -1; }'
			,'.sIFR-root a { color: #74694b; text-decoration: none; }'
			,'.sIFR-root a:hover { color: #544721; text-decoration: underline; }'
		]
	});
	
	/*
	Footer
	--------------------------------------
	*/
	
	// Footer contact details
	sIFR.replace(clarendon_lt_roman, {
		selector: '#summary p#contact',
		transparent: true,
		ratios: [10, 1.01, 14, 1.07, 15, 1.11, 22, 1.09, 26, 1.11, 27, 1.13, 30, 1.12, 35, 1.11, 36, 1.13, 42, 1.12, 47, 1.13, 48, 1.14, 53, 1.13, 71, 1.14, 112, 1.15, 113, 1.16, 118, 1.15, 120, 1.16, 124, 1.15, 1.16],
		offsetTop: -6,
		tuneHeight: 16,
		css: [
			'.sIFR-root { color: #e9e7e3; background-color: #a9a191; letter-spacing: -1; leading: -2; text-align: right; }'
			,'.sIFR-root a { color: #e9e7e3; text-decoration: none; }'
			,'.sIFR-root a:hover { color: #e9e7e3; text-decoration: none; }'
		]
	});
	
	// Footer address details
	sIFR.replace(clarendon_lt_roman, {
		selector: '#summary p#address',
		transparent: true,
		ratios: [6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18],
		offsetTop: -4,
		tuneHeight: 7,
		css: [
			'.sIFR-root { color: #e9e7e3; background-color: #a9a191; letter-spacing: -1; text-align: right; }'
			,'.sIFR-root a { color: #e9e7e3; text-decoration: none; }'
			,'.sIFR-root a:hover { color: #e9e7e3; text-decoration: none; }'
		]
	});
	
	// H4 footer headings
	sIFR.replace(clarendon_lt_roman, {
		selector: '#footer h4.heading',
		transparent: true,
		ratios: [7, 1.06, 16, 1.08, 22, 1.09, 29, 1.11, 30, 1.12, 35, 1.11, 36, 1.13, 42, 1.12, 47, 1.13, 48, 1.14, 53, 1.13, 71, 1.14, 112, 1.15, 113, 1.16, 118, 1.15, 120, 1.16, 124, 1.15, 1.16],
		offsetTop: -4,
		tuneHeight: -1,
		css: [
			'.sIFR-root { color: #e9e7e3; background-color: #a9a191; letter-spacing: -1; leading: -2; }'
			,'.sIFR-root a { color: #e9e7e3; text-decoration: none; }'
			,'.sIFR-root a:hover { color: #e9e7e3; text-decoration: none; }'
		]
	});
	
	/*
	Main template headings
	--------------------------------------
	*/
	
	// H2 content-body headings
	sIFR.replace(clarendon_lt_roman, {
		selector: '#content-body h2.heading',
		transparent: true,
		ratios: [6, 1.45, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18],
		offsetTop: -4,
		tuneHeight: -5,
		css: [
			'.sIFR-root { color: #132b1d; background-color: #ffffff; letter-spacing: -1; }'
			,'.sIFR-root a { color: #132b1d; text-decoration: none; }'
			,'.sIFR-root a:hover { color: #132b1d; text-decoration: none; }'
		]
	});
	
	// H2 content-header headings
	sIFR.replace(clarendon_lt_roman, {
		selector: '#content-header h2.heading',
		transparent: true,
		ratios: [6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18],
		offsetTop: -8,
		tuneHeight: -13,
		css: [
			'.sIFR-root { color: #132b1d; background-color: #E0DEB9; letter-spacing: -1; }'
			,'.sIFR-root a { color: #132b1d; text-decoration: none; }'
			,'.sIFR-root a:hover { color: #132b1d; text-decoration: none; }'
		]
	});

	////////////////////////////////////////////////////////////////////
	// Prevent Linux Flash issues
	////////////////////////////////////////////////////////////////////
	
	if (navigator.platform.indexOf('Linux') == -1) {
	
		// H3 body headings
		sIFR.replace(clarendon_lt_roman, {
			selector: 'h3.heading',
			transparent: true,
			ratios: [6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18],
			offsetTop: -6,
			tuneHeight: 25,
			css: [
				'.sIFR-root { color: #132b1d; background-color: #ffffff; letter-spacing: -1; }'
				,'.sIFR-root a { color: #132b1d; text-decoration: none; }'
				,'.sIFR-root a:hover { color: #132b1d; text-decoration: none; }'
			]
		});
		
		// H4 body headings
		sIFR.replace(clarendon_lt_roman, {
			selector: 'h4.heading',
			transparent: true,
			ratios: [7, 1.01, 16, 1.08, 22, 1.09, 29, 1.11, 30, 1.12, 35, 1.11, 36, 1.13, 42, 1.12, 47, 1.13, 48, 1.14, 53, 1.13, 71, 1.14, 112, 1.15, 113, 1.16, 118, 1.15, 120, 1.16, 124, 1.15, 1.16],
			offsetTop: -4,
			tuneHeight: 4,
			css: [
				'.sIFR-root { color: #132b1d; background-color: #ffffff; letter-spacing: -1; leading: -2; }'
				,'.sIFR-root a { color: #132b1d; text-decoration: none; }'
				,'.sIFR-root a:hover { color: #132b1d; text-decoration: none; }'
			]
		});
	
	}
	
	////////////////////////////////////////////////////////////////////
	// End Prevent Linux Flash issues
	////////////////////////////////////////////////////////////////////
	
	//}