
/* swf + ratios */
var neosansstd = {
	src: 'http://www.clipsal.com/__data/site/design/93/images/sIFR_neo_sans_std.swf'
	,ratios: [8, 1.41, 10, 1.32, 11, 1.31, 15, 1.29, 19, 1.28, 26, 1.25, 35, 1.24, 42, 1.23, 45, 1.22, 46, 1.23, 62, 1.22, 63, 1.21, 65, 1.22, 66, 1.21, 67, 1.22, 111, 1.21, 112, 1.2, 116, 1.21, 117, 1.2, 121, 1.21, 122, 1.2, 1.21]
}

sIFR.useStyleCheck = true;
sIFR.activate(neosansstd);

/* Work out ratios using code below. 
   Ratios must be worked out for each font you are using.
**********************************************************
	// This block of code would be done for each font
	// you are using.
	sIFR.debug.ratios(neosansstd, {
		selector: 'h1'
	});
/*********************************************************/

/* nav */
/*sIFR.replace(neosansstd, {
	selector: '#nav UL LI'
	,transparent: true
	,forceSingleLine: true
	,css: [
		'.sIFR-root { font-weight: bold; font-size: 12px; text-transform: uppercase; border: 1px solid #d50003; }' 
	   ,'a { color: #777777; text-decoration: none; }'
	   ,'a:hover { color: #d53040;  }'
	]
});*/

/* nav - active */
/*sIFR.replace(neosansstd, {
	selector: '#nav UL LI .current'
	,transparent: true
	,forceSingleLine: true
	,css: [
		'.sIFR-root { font-weight: bold; font-size: 12px; line-height: 1em; text-transform: uppercase; border: 1px solid #d50003; }' 
	   ,'a { color: #d53040; text-decoration: none; }'
	   ,'a:hover { color: #d53040;  }'
	]
});*/

/* home template */ 
sIFR.replace(neosansstd, {
	selector: '.content H1'
	,transparent: true
	,css: [
		'.sIFR-root { color: #888888; font-weight: bold; font-size: 12px; line-height: 1em; }'
	   ,'a { color: #888888; text-decoration: none; }'
	   ,'a:hover { color: #289bb8; }' 
	]
});

/* page templates */
sIFR.replace(neosansstd, {
	selector: '#sub-nav H1'
	,transparent: true
	,css: [
		'.sIFR-root { overflow: hidden; color: #ffffff; font-weight: bold; font-size: 12px; line-height: 1em; text-transform: uppercase; }' 
	]
});

/* selector: '#page-content H1' */
sIFR.replace(neosansstd, {
	selector: '#page-main H1'
	,transparent: true
	,css: [
		'.sIFR-root { color: #d53040; font-weight: bold; font-size: 16px; line-height: 1em; }' 
	   ,'a { color: #d53040; text-decoration: none; }'
	   ,'a:hover { color: #289bb8; }'
	]
});

/* selector: '#page-content H2' */
sIFR.replace(neosansstd, {
	selector: '#page-main H2'
	,transparent: true
	,css: [
		'.sIFR-root { color: #888888; font-weight: bold; font-size: 12px; line-height: 1em; }' 
	   ,'a { color: #888888; text-decoration: none; }'
	   ,'a:hover { color: #289bb8; }'
	]
});

/* selector: '#page-content H3' */
sIFR.replace(neosansstd, {
	selector: '#page-main H3'
	,transparent: true
	,css: [
		'.sIFR-root { color: #6f9fab; font-weight: bold; font-size: 12px; line-height: 1em; }'
	   ,'a { color: #6f9fab; text-decoration: none; }'
	   ,'a:hover { color: #289bb8; }'
	]
});
