//<[CDATA[
/*   check if SIFR is an object and is supported */
if(typeof sIFR == "object" && sIFR.ua.supported == true && sIFR.ua.ieMac != true){
if(window.console && console.log && sIFR.debugMode==true){
  //console.group('SIFR UA Test');
  sIFR.debug.ua();
  //console.groupEnd();
}
sIFR.ua.supported = sIFR.ua.supported && sIFR.ua.flashVersion >= 8;

	var trajan = {
		 src: 'fileadmin/templates/mittval/swf/sifr/sifr405-trajan.swf'
		 //src: 'swf/sifr/sifr405-trajan.swf'
		,ratios: [8,1.42,9,1.33,12,1.35,21,1.3,31,1.27,32,1.25,36,1.26,37,1.24,42,1.25,62,1.24,64,1.23,66,1.24,69,1.23,70,1.24,119,1.23,120,1.22,1.23]
	};
	var barmeno = {
	   src: 'fileadmin/templates/mittval/swf/sifr/sifr405-barmeno.swf'
	   //src: 'swf/sifr/sifr405-barmeno.swf'
	  ,ratios: [6,1.41,9,1.35,15,1.29,21,1.25,23,1.22,28,1.23,34,1.22,41,1.21,59,1.2,96,1.19,97,1.18,102,1.19,103,1.18,105,1.19,109,1.18,110,1.19,120,1.18,121,1.19,1.18]
	};
	var tarjanpro = {
		src: 'fileadmin/templates/mittval/swf/sifr/sifr405-trajanpro.swf'
		//src: 'swf/sifr/sifr405-trajanpro.swf'
		,ratios: [10, 1.43, 15, 1.36, 16, 1.34, 23, 1.32, 27, 1.31, 28, 1.3, 31, 1.29, 34, 1.3, 36, 1.28, 40, 1.29, 56, 1.28, 97, 1.27, 98, 1.26, 101, 1.27, 102, 1.26, 104, 1.27, 106, 1.26, 107, 1.27, 110, 1.26, 111, 1.27, 1.26]
	};
	var barmenobold =  {
	   src: 'fileadmin/templates/mittval/swf/sifr/sifr405-barmenobold.swf'
	   //src: 'swf/sifr/sifr405-barmenobold.swf'
	  ,ratios: [8,1.41,9,1.33,10,1.35,15,1.31,19,1.28,20,1.27,26,1.26,29,1.24,30,1.25,40,1.24,58,1.23,63,1.22,64,1.23,97,1.22,98,1.21,101,1.22,103,1.21,104,1.22,105,1.21,106,1.22,108,1.21,109,1.22,1.21]
	};


  sIFR.delayCSS  = true;
  sIFR.repaintOnResize = true;
  sIFR.preserveSingleWhitespace = false;
  //sIFR.useStyleCheck = true; // unstable right now!
  //sIFR.domains = ['mittval.se'] // Don't check for domains
  //sIFR.prefetch(); //Not workin from v372
  sIFR.activate(tarjanpro,barmeno);


//Rubrik h1 class stdheader1
  sIFR.replace(barmeno, {
    selector: '.stdheader1'
    ,css: ['.sIFR-root { font-style:normal; font-weight:bold; color:#494949; font-size:14px; text-align:left;}']
	,wmode: 'transparent'
});

//Rubrik h2 class stdheader2
  sIFR.replace(barmeno, {
    selector: '.stdheader2'
    ,css: ['.sIFR-root { font-style:normal; font-weight:bold; color:#494949; font-size:13px; text-align:left;}']
	,wmode: 'transparent'
	,tuneHeight:4
});

//Rubrik h2 class stdheader2
sIFR.replace(barmeno, {
    selector: '.stdheader3'
    ,css: ['.sIFR-root { font-style:normal; font-weight:bold; color:#494949; font-size:12px; text-align:left;}']
	,wmode: 'transparent'
	,tuneHeight:4
});

//Rubrik h2 class stdheader2
sIFR.replace(barmeno, {
    selector: '.stdheader4'
    ,css: ['.sIFR-root { font-style:normal; font-weight:bold; color:#494949; font-size:11px; text-align:left;}']
	,wmode: 'transparent'
	,tuneHeight:4
});


//Site section name
sIFR.replace(barmeno, {
	selector: '#sifr-section-name'
	,css: ['.sIFR-root {font-style:normal; font-weight:bold; color:#494949; font-size:28px; text-align:left;}' ]
	,wmode: 'transparent'
	,forceSingleLine: true
	,selectable: false
	,tuneHeight:4
	,tuneWidth:3
	});

//
sIFR.replace(barmeno, {
	selector: '.sub-section-name h2'
	,css: ['.sIFR-root {font-style:normal; font-weight:bold; color:#494949; font-size:25px; text-align:left;leading:-1;}']
	,wmode: 'transparent'
	,forceSingleLine: true
	,selectable: false
	,offsetTop:6
	,tuneHeight:2
	,tuneWidth:3
	});
//
sIFR.replace(barmeno, {
	selector: '.content-header-left h1'
	,css: ['.sIFR-root {font-style:normal; font-weight:bold; color:#ff7800; font-size:16px; text-align:left;}']
	,wmode: 'transparent'
	,tuneWidth:5
	});
//
sIFR.replace(barmeno, {
	selector: '.content-header-left p'
	,css: [
				'.sIFR-root {font-style:normal; font-weight:bold; color:#494949; font-size:12px; text-align:left;}'
				,'a {font-weight:bold; color:#ff7800; text-decoration:none;}'
				,'a:hover {font-weight:bold; color:#ff7800; color:#ff7800; text-decoration:none;}'
			]
	,wmode: 'transparent'
	,tuneWidth:5
	});

//
sIFR.replace(barmeno, {
	selector: '.readmore'
	,css: ['.sIFR-root {font-style:normal; font-weight:bold; color:#ff7800; font-size:13px; text-align:left;}']
	,wmode: 'transparent'
	,tuneWidth:5
	});

// Rubrik h2 class stdheader2
  sIFR.replace(barmeno, {
    selector: '.stdheader2-left'
    ,css: ['.sIFR-root { font-style:normal; font-weight:bold; color:#ff7800; font-size:13px; text-align:left;}']
	,wmode: 'transparent'
});


// Rubrik h2 class stdheader2
  sIFR.replace(barmeno, {
    selector: '.stdheader2-right'
    ,css: ['.sIFR-root { font-style:normal; font-weight:bold; color:#ff7800; font-size:13px; text-align:right;}']
	,wmode: 'transparent'
});


// Rubrik Vitaminer och Mineraler
sIFR.replace(barmeno, {
	selector: 'h1.vm-rubrik'
	,css: ['.sIFR-root {font-style:normal; font-weight:bold; color:#494949; font-size:24px; text-align:left;}']
	,wmode: 'transparent'
	,selectable: true
	,tuneWidth:5
	});
// Rubrik Vitaminer och Mineraler
sIFR.replace(barmeno, {
	selector: '.page-header-headline-vitamin'
	,css: ['.sIFR-root {font-style:normal; font-weight:bold; color:#494949; font-size:18px; text-align:left;}']
	,wmode: 'transparent'
	,selectable: true
	,tuneWidth:5
	});
sIFR.replace(barmeno, {
	selector: '.page-header-headline-mineral'
	,css: ['.sIFR-root {font-style:normal; font-weight:bold; color:#494949; font-size:18px; text-align:left;}']
	,wmode: 'transparent'
	,selectable: true
	,tuneWidth:5
	});

  if(sIFR.registerEvents == false) {
  	sIFR.initialize();
  	if(window.console && console.log && sIFR.debugMode==true){
  		console.info('initialize, registerEvents is false');
  	}
  }
  //if(sIFR.ua.supported == true && sIFR.isActive == false){
  //	sIFR.rollback();//redraw()
  //}

}
//]]>