
//check if SIFR is an object and is supported 
//sIFR.debugMode = true;
if(typeof sIFR == "object" && sIFR.ua.supported == true && sIFR.ua.ieMac != true){
	if(window.console && console.log && sIFR.debugMode==true){
		sIFR.debug.ua();
	}
	
	var avantGardeBK = {
		 src: 'swf/sifr-avant-garde-bk.swf'		
		,ratios: [8,1.43,11,1.38,13,1.33,21,1.32,29,1.29,34,1.28,37,1.27,41,1.28,43,1.27,46,1.26,47,1.27,72,1.26,75,1.25,76,1.26,79,1.25,80,1.26,83,1.25,84,1.26,87,1.25,88,1.26,1.25]
	};
	
	sIFR.delayCSS  = true;
	//sIFR.repaintOnResize = true;
	//sIFR.preserveSingleWhitespace = false;
	//sIFR.useStyleCheck = true;	
	//sIFR.domains = ['surfakademin.se'] // Don't check for domains for now	
	sIFR.activate(avantGardeBK);
	//ratios
	//sIFR.debug.ratios({ src: 'swf/sifr-avant-garde-bk.swf', selector: '.sifr-huvudrubrik', css: ['.sifr-huvudrubrik { text-align:left; font-weight:normal; font-size:32px; }']});
	
//HEADLINE  
sIFR.replace(avantGardeBK, {
	selector: 'h1.sifr-huvudrubrik'
	,css: [
		'.sIFR-root { color:#9a9a9a; font-size:18px; font-weight:bold; }'
		,'.trans {  font-size:90%; font-weight:normal;}'
	]	
	,wmode: 'opaque'	
	});
//UNDERRUBRIK

sIFR.replace(avantGardeBK, {
	selector: 'h2.sifr-underrubrik'
	,css: [
		'.sIFR-root { color:#9a9a9a; font-size:14px; font-weight:bold; }'
		,'.trans {  font-size:70%; font-weight:normal;}'
	]	
	,wmode: 'opaque'	
	});
//INGRESS
sIFR.replace(avantGardeBK, {
	selector: 'p.sifr-ingress'
	,css: [
		'.sIFR-root { color:#9a9a9a; font-size:13px; font-weight:bold; }'
		,'a { color: #e1b35e;text-decoration: none; }'
        ,'a:link { color: #e1b35e; text-decoration: none; }'
        ,'a:hover { color: #e1b35e; text-decoration: none; }'		
	]	
	,wmode: 'opaque'	
	});
//TOPNAVIGATION
 sIFR.replace(avantGardeBK, {
    selector: '.navigation-top>.horizontal>li'
    ,css: [
      '.sIFR-root { text-align: center; font-weight: bold; font-size:10px; color: #9a9a9a; text-transform: uppercase }'
      ,'a { color: #9a9a9a;text-decoration: none; }'
      ,'a:link { color: #9a9a9a; text-decoration: none; }'
      ,'a:hover { color: #e1b35e; text-decoration: none; }'
      ,'.act { color: #e1b35e; text-decoration: none; }'
    ]
    ,wmode: 'transparent'
    ,forceSingleLine: true   
    ,tuneWidth: 4
    ,offsetTop: 5
  });

 //SUBNAVICATION
 sIFR.replace(avantGardeBK, {
    selector: '.navigation-sub>.horizontal>li'
    ,css: [
      '.sIFR-root { text-align: center;  font-weight: bold; font-size:10px; color: #9a9a9a; text-transform: uppercase }'
      ,'a { color: #9a9a9a; text-decoration: none; }'
      ,'a:link { color: #9a9a9a; text-decoration: none; }'
      ,'a:hover { color: #e1b35e; text-decoration: none; }'
      ,'.act { color: #e1b35e; text-decoration: none; }'
      ,'.actsub { color: #221C1B; text-decoration: none; }'
    ]
    ,wmode: 'transparent'
    ,forceSingleLine: true
    ,offsetTop: 8
    ,tuneWidth: 4
  });
 //SUBNAVICATION EXTENDED
 sIFR.replace(avantGardeBK, {
    selector: '.navigation-sub-extra>.horizontal>li'
    ,css: [
      '.sIFR-root { text-align: center;  font-weight: bold; font-size:9px; color: #9a9a9a; text-transform: uppercase }'
      ,'a { color: #9a9a9a; text-decoration: none; }'
      ,'a:link { color: #9a9a9a; text-decoration: none; }'
      ,'a:hover { color: #e1b35e; text-decoration: none; }'
      ,'.act { color: #e1b35e; text-decoration: none; }'
    ]
    ,wmode: 'transparent'
    ,forceSingleLine: true
    ,offsetTop: 8
    ,tuneWidth: 4
  });
  
sIFR.replace(avantGardeBK, {
	selector: '.company'
	,css: [
		'.sIFR-root { color:#9a9a9a; font-size:11px; font-weight:bold; }'
	]	
	,wmode: 'opaque'
	,tuneHeight:8
	,offsetTop: 14
	,forceSingleLine: true
		
	}); 
	
//sponsored by 
 sIFR.replace(avantGardeBK, {
	selector: '.sponsoredby'
	,css: [
		'.sIFR-root { color:#9a9a9a; font-size:11px; font-weight:bold; text-transform:smallcaps; }'
	]	
	,wmode: 'opaque'
	,forceSingleLine: true		
	}); 
//Fallback
/*  if(sIFR.registerEvents == false) {
  	sIFR.initialize();
  	if(window.console && console.log && sIFR.debugMode==true){
  		console.info('initialize, registerEvents is false');
  	}
  }
*/
 
}