/* font definition*/
var AvenirNextLTPro_regular = {
	src: 'fileadmin/templates/sIFR/swf/sifr_AvenirNextLT_Regular.swf'
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
};

var AvenirNextLTPro_cn = {
	src: 'fileadmin/templates/sIFR/swf/sifr_AvenirNextLT_CN.swf'
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
};

/* activate sIFR fonts only in given domain */
// sIFR.domains = ['bss-roheren.de'] // Don't check for domains in this demo

/* font activation */
sIFR.activate(AvenirNextLTPro_regular,AvenirNextLTPro_cn);

/* font config */
sIFR.replace(AvenirNextLTPro_regular, {
	selector: 'div.whiteBox h1'
	,css: '.sIFR-root { font-style: normal; color: #e95d0f;}'
	,wmode: 'transparent'
        ,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

sIFR.replace(AvenirNextLTPro_cn, {
	selector: 'h1'
	,css: '.sIFR-root { font-style: normal; color: #ffffff;}'
	,wmode: 'transparent'
        ,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

sIFR.replace(AvenirNextLTPro_cn, {
	selector: 'div#main_menu li span'
	,css: [
	   '.sIFR-root { font-style:normal; color:#e95d0f; font-size:20px; margin:0px; padding:0px;}'  
	  ,'a { text-decoration: none; color:#e95d0f; }'
          ,'a:link { color:#e95d0f; }'
          ,'a:hover { color:#e95d0f; text-decoration:underline; }'
	]
	,wmode: 'transparent'
	,fitExactly: true
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

sIFR.replace(AvenirNextLTPro_cn, {
	selector: 'div#main_menu li.act'
	,css: [
	   '.sIFR-root { font-style:normal; color:#443d3a; font-size:20px; margin:0px; padding:0px;}'  
	  ,'a { text-decoration: none; color:#443d3a; }'
          ,'a:link { color:#443d3a; }'
          ,'a:hover { color:#443d3a; }'
	]
	,wmode: 'transparent'
	,fitExactly: true
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});


/* get ratios of font 
sIFR.debug.ratios({ src: 'fileadmin/templates/sIFR/swf/sifr_AvenirNextLT_CN.swf', selector: 'div.whiteBox h1' }); 
*/