/**
 * This file contains the SIFR configuration
 *
 * @author Richard Hallows
*/

/* debug only */
//sIFR.debug.ratios({ src: '../../flash/dinschrift.swf', selector: 'h5' });


/**
 * Specfic font files
 */
var albertdiamondlight = {
    src: '../../flash/albertdiamondlight.swf'
};

var dinschrift = {
    src: '../../flash/dinschrift.swf'
};


/**
 * Specfic JS vars and activate
 */
sIFR.delayCSS  = false;
sIFR.fitExactly = true;
sIFR.forceTextTransform = true;
sIFR.activate(albertdiamondlight, dinschrift);
	

/**
 * Specfic elements to replace
 */

// main content heading
sIFR.replace(albertdiamondlight, {
    selector: 'h2',
    ratios: [8,1.41,11,1.31,15,1.29,21,1.25,22,1.22,27,1.24,28,1.23,34,1.22,46,1.21,50,1.2,51,1.21,70,1.2,72,1.19,74,1.2,78,1.19,79,1.2,83,1.19,84,1.2,1.19], 
    css: {
      '.sIFR-root': { 'color': '#ffffff' }
    }, 
	transparent : true,
	tuneHeight : -8
});

// main content subheading
sIFR.replace(dinschrift, {
    selector: 'h3',
    ratios: [8,1.41,11,1.31,15,1.29,16,1.28,24,1.26,27,1.24,33,1.23,44,1.22,47,1.21,48,1.22,73,1.21,74,1.2,75,1.21,76,1.2,78,1.21,79,1.2,80,1.21,84,1.2,85,1.21,1.2],
    css: {
      '.sIFR-root': { 'color': '#ffffff' }
    }, 
	transparent : true,
	tuneHeight : -6
});

// main content sub sub heading + heading in containers on homepage
sIFR.replace(dinschrift, {
    selector: 'h4',
    ratios: [8,1.41,11,1.31,15,1.29,16,1.28,24,1.26,27,1.24,33,1.23,44,1.22,47,1.21,48,1.22,73,1.21,74,1.2,75,1.21,76,1.2,78,1.21,79,1.2,80,1.21,84,1.2,85,1.21,1.2],
    css: {
		'.sIFR-root': { 
			'color': '#ffffff', 
			'text-transform' : 'uppercase' 
		}
    }, 
	transparent : true,
	tuneHeight : -6
});

// headings in normal containers
sIFR.replace(dinschrift, {
    selector: 'h5',
   	ratios: [8,1.41,11,1.31,15,1.29,16,1.28,24,1.26,27,1.24,33,1.23,44,1.22,47,1.21,48,1.22,73,1.21,74,1.2,75,1.21,76,1.2,78,1.21,79,1.2,80,1.21,84,1.2,85,1.21,1.2],
    css: {
		'.sIFR-root': { 
			'color': '#ffffff', 
			'text-transform' : 'uppercase' 
		}
    }, 
	transparent : true,
	tuneHeight : -6
});