function detectMacXFF2() {
	var userAgent = navigator.userAgent.toLowerCase();
	if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {
		var ffversion = new Number(RegExp.$1);
		if (ffversion < 3 && userAgent.indexOf('mac') != -1) {
			return true;
		}
	}
	return false;
}

var futura_light = {
	src: '/swf/futuralight.swf'
	//,ratios: [8,1.3,12,1.27,17,1.2,18,1.19,24,1.18,26,1.16,27,1.17,34,1.16,36,1.14,38,1.15,43,1.14,44,1.15,60,1.14,61,1.13,62,1.14,103,1.13,105,1.12,108,1.13,109,1.12,110,1.13,113,1.12,116,1.13,122,1.12,123,1.13,1.12]
};

var futura_bold = {
	src: '/swf/futurabold.swf'
	//,ratios: [8,1.41,10,1.32,11,1.31,15,1.29,19,1.28,26,1.25,31,1.24,37,1.23,41,1.22,42,1.23,53,1.22,91,1.21,93,1.2,95,1.21,98,1.2,99,1.21,103,1.2,104,1.21,1.2]
}

sIFR.activate();

sIFR.replace(futura_light, {
	selector: 'div#start_intro h2'
	,css: ['.sIFR-root {color: #9d0f33; text-transform: uppercase; letter-spacing: 4}']
	,fitExactly: true
	,tuneHeight: -4
});

sIFR.replace(futura_light, {
	selector: 'h2.border'
	,css: ['.sIFR-root {color: #9d0f33; text-transform: uppercase; letter-spacing: 1}']
	,fitExactly: true
	,tuneHeight: -4
});

/*sIFR.replace(futura_light, {
	selector: 'div#kontakt_list div.item h3, div#kontakt_list div.item p'
	,css: ['.sIFR-root {color: #000000; letter-spacing: 0.5}'
		   ,'a {color: #000000; text-decoration: none;}'
		   ,'a:hover {color: #000000; text-decoration: underline;}']
	,fitExactly: true
	,tuneHeight: -4
	,wmode: 'transparent'
});*/

sIFR.replace(futura_light, {
	selector: 'div.box_list div.item h3'
	,css: ['.sIFR-root {color: #9d0f33; letter-spacing: 0.7 }'
		   ,'a { color: #9d0f33; text-decoration: none }'
		   ,'a:hover { color: #9d0f33; text-decoration: none }']
	,wmode: 'transparent'
	,fitExactly: true
	,tuneHeight: -5
});
	
if(!detectMacXFF2()){
	sIFR.replace(futura_light, {
		selector: 'div#browser div.item h3'
		,css: ['.sIFR-root {color: #9d0f33; letter-spacing: 0.7 }'
			   ,'a { color: #9d0f33; text-decoration: none }'
			   ,'a:hover { color: #9d0f33; text-decoration: none }']
		,wmode: 'transparent'
		,fitExactly: true
		,tuneHeight: -5
	});
}

sIFR.replace(futura_bold, {
	selector: '.gray h3'
	,css: ['.sIFR-root {color: #424242; letter-spacing: 0.5}']
	,wmode: 'transparent'
	,fitExactly: true
	,tuneHeight: -4
});

sIFR.replace(futura_bold, {
	selector: 'body#start h2, .form h3'
	,css: ['.sIFR-root {color: #9d0f33; letter-spacing: 0.5}']
	,wmode: 'transparent'
	,fitExactly: true
	,tuneHeight: -4
});

sIFR.replace(futura_bold, {
	selector: 'body#hyresratter div.box_list h2'
	,css: ['.sIFR-root {color: #9d0f33; letter-spacing: 0.5}']
	,fitExactly: true
	,tuneHeight: -4
});

sIFR.replace(futura_bold, {
	selector: 'div.alertbox h3'
	,css: ['.sIFR-root {color: #ff0000; letter-spacing: 0.5}']
	,wmode: 'transparent'
	,fitExactly: true
	,tuneHeight: -3
});

sIFR.replace(futura_light, {
	selector: 'h2.overlay'
	,css: ['.sIFR-root {color: #9d0f33; text-transform: uppercase;}']
	,wmode: 'transparent'
	,fitExactly: true
	,tuneHeight: -4
});

sIFR.replace(futura_light, {
	selector: 'h2'
	,css: ['.sIFR-root {color: #9d0f33; }']
	,fitExactly: true
	,tuneHeight: -4
});
