var din = { src: _root+'/swf/DINmitStd.swf' };
sIFR.activate(din);

function renderIndex(sIFR, font) {
	sIFR.replace(font, { selector: '#news h2', forceSingleLine: true, offsetLeft: 5, offsetTop: 6, tuneHeight: 0, tuneWidth: 5, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #FFFFFF; font-size: 17px; line-height: 1em; }' ] });
}

function renderTopMenu(sIFR, font) {
	
	sIFR.replace(font, { selector: '#topmenu ul li span.act-eit', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 10, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.act-die', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 10, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.act-pro', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 10, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.act-odg', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 10, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.act-def', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 10, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.act', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 10, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; }' ] });

	sIFR.replace(font, { selector: '#topmenu ul li span.tm-eit', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 5, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px display: block; } a { cursor: pointer; color: #acca57; text-decoration: none; } a:hover { text-decoration: none; color: #acca57; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.tm-die', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 5, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; color: #fdc600; text-decoration: none; } a:hover { text-decoration: none; color: #fdc600; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.tm-pro', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 5, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; color: #c41967; text-decoration: none; } a:hover { text-decoration: none; color: #c41967; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.tm-odg', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 5, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; color: #0071b7; text-decoration: none; } a:hover { text-decoration: none; color: #0071b7; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span.tm-def', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 5, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; color: #0071b7; text-decoration: none; } a:hover { text-decoration: none; color: #0071b7; }' ] });
	sIFR.replace(font, { selector: '#topmenu ul li span', forceSingleLine: true, fitExactly: true, offsetLeft: 5, offsetTop: 5, tuneHeight: 5, tuneWidth: 5, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 17px; line-height: 22px; display: block; } a { cursor: pointer; color: #8C8C8C; text-decoration: none; } a:hover { text-decoration: none; color: #8C8C8C; }' ] });
}

function renderSidebar(sIFR, font) {
	sIFR.replace(font, { selector: '#sidebar ul li span', forceSingleLine: false, fitExactly: false, offsetLeft: 15, offsetTop: 3, tuneHeight: 3, tuneWidth: 9, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { font-size: 16px; display: block; } a { cursor: pointer; color: #FFFFFF; text-decoration: none; } a:hover { color: #FFFFFF; text-decoration: none; }' ] });
}

function renderHeaders(sIFR, font, page) {

	sIFR.replace(din, { selector: '#content h2', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { cursor: pointer; height: 20px; color: #FFFFFF; padding: 5px; font-size: 17px; display: block; text-decoration: none; }' ] });

	switch( page ) {
		case 'eit':
			sIFR.replace(din, { selector: '#content h3.topic', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #acca57; margin-top: 10px; font-size: 16px; }' ] });
			sIFR.replace(din, { selector: '#content h3', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #acca57; margin-top: 10px; font-size: 15px; }' ] });
		break;
		case 'die':
			sIFR.replace(din, { selector: '#content h3.topic', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #fdc600; margin-top: 10px; font-size: 16px; }' ] });
			sIFR.replace(din, { selector: '#content h3', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #fdc600; margin-top: 10px; font-size: 15px; }' ] });
		break;
		case 'pro':
			sIFR.replace(din, { selector: '#content h3.topic', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #c41967; margin-top: 10px; font-size: 16px; }' ] });
			sIFR.replace(din, { selector: '#content h3', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #c41967; margin-top: 10px; font-size: 15px; }' ] });
		break;
		case 'odg':
			sIFR.replace(din, { selector: '#content h3.topic', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #0071b7; margin-top: 10px; font-size: 16px; }' ] });
			sIFR.replace(din, { selector: '#content h3', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #0071b7; margin-top: 10px; font-size: 15px; }' ] });
		break;
		case 'def':
			sIFR.replace(din, { selector: '#content h3.topic', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #999999; margin-top: 10px; font-size: 16px; }' ] });
			sIFR.replace(din, { selector: '#content h3', forceSingleLine: true, offsetLeft: 0, offsetTop: 0, transparent: true, wmode: 'transparent', css: [ '.sIFR-root { color: #999999; margin-top: 10px; font-size: 15px; }' ] });
		break;
	}

}