function getColor(css , cssNode, selector)
{
	var cssText = sIFR.util.cssToString(css);
	if (cssNode.style.color.length > 0) {
		i = cssText.search(/color:[\s]?#\w{6}/);
		if (i != -1) {
			var l_sColorToReplace = cssNode.style.color;
			if ( cssNode.style.color.match(/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/) ) {
				var c = new RGBColor(cssNode.style.color);
				l_sColorToReplace = c.toHex();
			}
			if (cssNode.className == "hover") {
				l_iOccurence = cssText.search(/a:hover\{.*color:[\s]?#\w{6}.*\}/);
				if (l_iOccurence != -1) {
					cssText = cssText.replace(/(a:hover\{.*color:[\s]?)#\w{6}(.*\})/, "$1"+l_sColorToReplace+"$2");
				}
			} else if (cssNode.className == "href") {
				l_iOccurence = cssText.search(/color:[\s]?#\w{6};/);
				if (l_iOccurence != -1) {
					cssText = cssText.replace(/(color:[\s]?)#\w{6};/g, "$1"+l_sColorToReplace+";");
				}
			} else {
				cssText = cssText.replace(/color:[\s]?#\w{6}/, 'color:'+l_sColorToReplace);
			}
		} else {
			// alert(cssText);
		}
	}
	return cssText;
}

var sifrFont = {
	src: '/flash/_sIFR/futuramedium.swf'
};

sIFR.useDomContentLoaded = false;
sIFR.activate(sifrFont);

sIFR.replace({
	selector: '#label_name'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#ffffff',
					'font-size': '18px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});


sIFR.replace({
	selector: '.orderTitle'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#8b0076',
					'font-size': '16px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});

sIFR.replace({
	selector: '.order'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#1068b8',
					'font-size': '20px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});

sIFR.replace({
	selector: '.title'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#444444',
					'font-size': '16px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});


sIFR.replace({
	selector: '.category_name'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': {
					'color': '#116fc3',
					'font-size': '14px',
					'text-transform': 'lowercase',
					'cursor': 'pointer',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
//	,onRelease: function(fi) {
//			var log = fi.getAncestor();
//			console.log('myVar: ', log);
//	}
});



sIFR.replace({
	selector: '.newsIntro'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#ffffff',
					'font-size': '16px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});



sIFR.replace({
	selector: '.newsHead'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#000000',
					'font-size': '16px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});

sIFR.replace({
	selector: '.newsHeadWit'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#ffffff',
					'font-size': '16px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});



sIFR.replace({
	selector: '.newsMore'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#237ac7',
					'font-size': '20px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});

sIFR.replace({
	selector: '.relatedHead'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#0077e1',
					'font-size': '16px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});

sIFR.replace({
	selector: '.listLabel span'
	,src: '/flash/_sIFR/futuramedium.swf'
	,css: {
	'.sIFR-root': { 'color': '#ffffff',
					'font-size': '18px',
					'font-weight': 'bold'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
});


//sIFR.replace({
//	selector: '.breadcrumbTitle'
//	,src: '/flash/_sIFR/futuramedium.swf'
//	,css: {
//	'.sIFR-root': {
//					'color': '#808080',
//					'font-size': '16px',
//					'text-transform': 'lowercase',
//					'text-decoration': 'none',
//					'cursor':'pointer',
//					'font-weight': 'bold'
//				}
//	}
//	,wmode: 'transparent'
//	,fixFocus: true
//	,tuneHeight: 0
//	,modifyCss : getColor
//});
//
//sIFR.replace({
//	selector: '.breadcrumbTitleActive'
//	,src: '/flash/_sIFR/futuramedium.swf'
//	,css: {
//	'.sIFR-root': { 'color': '#e42d29',
//					'font-size': '16px',
//					'text-transform': 'lowercase',
//					'cursor':'pointer',
//					'font-weight': 'bold'
//				}
//	}
//	,wmode: 'transparent'
//	,tuneHeight: 0
//	,modifyCss : getColor
//});


sIFR.replace({
	selector: '.sifr'
	,src: '/flash/_sIFR/dinmittelschrift.swf'
	,css: {
	'.sIFR-root': { 'color': '#bbbbbb', 'font-size': '16px' }
	}
	,wmode: 'transparent'
	,tuneHeight: 0
});

/*
sIFR.replace({
	selector: 'ul.menu li'
	,src: '/flash/_sIFR/dinmittelschrift.swf'
	,css: {
	'.sIFR-root': { 'color': '#FFFFFF' }
	,'a:hover'	: { 'text-decoration':'none',
					'color' : '#00FF00'
				}
	,'a'		: { 'text-decoration':'none',
					'color' : '#FFFFFF'
				}

	}
	,wmode: 'transparent'
	,tuneHeight: 0
});
sIFR.replace({
	selector: 'h2'
	,src: '/flash/_sIFR/DaxOt_medium.swf'
/*	,css: {
	'.sIFR-root': { 'color': '#0046aa' }
	,'a'		: { 'text-decoration':'none',
					'color' : '#0046aa'
				}
	,'a:hover'		: { 'text-decoration':'none',
						'color' : '#0046aa'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});*/



sIFR.replace({
	selector: 'body.geel div.title'
	,src: '/flash/_sIFR/DaxOt_medium.swf'
	,css: {
	'.sIFR-root': { 'color': '#000000' }
	,'a'		: { 'text-decoration':'none',
					'color' : '#000000'
				}
	,'a:hover'		: { 'text-decoration':'none',
						'color' : '#000000'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});

sIFR.replace({
	selector: 'div.title'
	,src: '/flash/_sIFR/DaxOt_medium.swf'
	,css: {
	'.sIFR-root': { 'color': '#ffffff' }
	,'a'		: { 'text-decoration':'none',
					'color' : '#ffffff'
				}
	,'a:hover'		: { 'text-decoration':'none',
						'color' : '#ffffff'
				}
	}
	,wmode: 'transparent'
	,tuneHeight: 0
	,modifyCss : getColor
});
