var modern20 = {
  src: '/_includes/flash/modern20.swf'
};

var tradeGothic = {
  src: '/_includes/flash/tradeGothic.swf'
};

sIFR.useStyleCheck = true;
sIFR.activate(tradeGothic);
sIFR.activate(modern20);

sIFR.replace(modern20, {
	selector: 'h1.product',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	      '.sIFR-root { text-align: left; color: #000000; font-size: 30px; margin: 0px; padding:0px; }',
	      '.sIFR-root a { text-decoration:none; color: #000000; }',
	      '.sIFR-root a:hover { text-decoration:none; color: #000000; }'
	],
	tuneWidth: 5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});

/* RUBRIK 1 */
sIFR.replace(modern20, {
	selector: 'h1.rub1black',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	    '.sIFR-root { text-align: left; color: #000000; font-size: 40px; margin: 0px; padding:0px; }',
		'.sIFR-root a { text-decoration:none; color:#000000; }',
		'.sIFR-root a:hover { text-decoration:none; color:#000000; }'
	],
	tuneWidth: 5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});

sIFR.replace(modern20, {
	selector: 'h1.rub1white',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	      '.sIFR-root { text-align: left; color: #FFFFFF; font-size: 40px; margin: 0px; padding:0px; }',
			'.sIFR-root a { text-decoration:none; color:#FFFFFF; }',
			'.sIFR-root a:hover { text-decoration:none; color:#FFFFFF; }'
	],
	tuneWidth: 5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});
/* RUBRIK 1 */

/* RUBRIK 2 */
sIFR.replace(tradeGothic, {
	selector: 'h1.rub2black',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	      '.sIFR-root { text-align: left; color: #000000; font-size: 24px; margin: 0px; padding:0px; }',
			'.sIFR-root a { text-decoration:none; color:#000000; }',
			'.sIFR-root a:hover { text-decoration:none; color:#000000; }'
	],
	tuneWidth: 5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});

sIFR.replace(tradeGothic, {
	selector: 'h1.rub2white',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	      '.sIFR-root { text-align: left; color: #FFFFFF; font-size: 24px; margin: 0px; padding:0px; }',
			'.sIFR-root a { text-decoration:none; color:#FFFFFF; }',
			'.sIFR-root a:hover { text-decoration:none; color:#FFFFFF; }'
	],
	tuneWidth: 5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});
/* RUBRIK 2 */

/* RUBRIK 3 */
sIFR.replace(tradeGothic, {
	selector: 'h1.rub3black',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	      '.sIFR-root { text-align: left; color: #000000; font-size: 18px; margin: 0px; padding:0px; }',
			'.sIFR-root a { text-decoration:none; color:#000000; }',
			'.sIFR-root a:hover { text-decoration:none; color:#000000; }'
	],
	tuneWidth: 5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});

sIFR.replace(tradeGothic, {
	selector: 'h1.rub3white',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	      '.sIFR-root { text-align: left; color: #FFFFFF; font-size: 18px; margin: 0px; padding:0px; }',
			'.sIFR-root a { text-decoration:none; color:#FFFFFF; }',
			'.sIFR-root a:hover { text-decoration:none; color:#FFFFFF; }'
	],
	tuneWidth: 5,
	tuneHeight: -5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});
/* RUBRIK 3 */

/* RUBRIK 4 */
sIFR.replace(tradeGothic, {
	selector: 'h1.rub4black',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	      '.sIFR-root { text-align: left; color: #000000; font-size: 14px; margin: 0px; padding:0px; }',
	      '.sIFR-root a {color:#000000; text-decoration:none;}',
	      '.sIFR-root a:hover {color:#000000; text-decoration:none;}'
	],
	tuneWidth: 5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl); 
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});

sIFR.replace(tradeGothic, {
	selector: 'h1.rub4white',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	    '.sIFR-root { text-align: left; color: #FFFFFF; font-size: 14px; margin: 0px; padding:0px; }',
		'.sIFR-root a { text-decoration:none; color:#FFFFFF; }',
		'.sIFR-root a:hover { text-decoration:none; color:#FFFFFF; }'
	],
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl); 
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});
/* RUBRIK 4 */

/* NEWS RUBRIK */
sIFR.replace(tradeGothic, {
	selector: '.newsTitle h1',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
	    '.sIFR-root { text-align: left; color: #000000; letter-spacing:0.5; font-size: 14px; margin: 0px; padding:0px; }',
		'.sIFR-root a { text-decoration:none; color:#000000; }',
		'.sIFR-root a:hover { text-decoration:none; color:#000000; }'
	],
	tuneWidth: 5,
	tuneHeight:-3,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});
/* NEWS RUBRIK */

sIFR.replace(tradeGothic, {
	selector: 'h1.rubextranet',
	wmode: 'transparent',
	forceSingleLine: true,
	css: [
		'.sIFR-root { text-align: left; color: #000000; font-size: 18px; margin: 0px; padding:0px; position:absolute; z-index:0; }',
		'.sIFR-root a { text-decoration:none; color:#000000; }',
		'.sIFR-root a:hover { text-decoration:none; color:#000000; }'
	],
	tuneWidth: 5,
	modifyContent : function(contentNode,selector) {
		if($(contentNode).children('a:first').attr('class') == 'thickbox') {
			var href = $(contentNode).children('a:first').attr('href');
			var tbUrl = "javascript:tb_show('','"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',tbUrl);
		};
		
		if($(contentNode).children('a:first').attr('class') == 'cboxElement') {
			var href = $(contentNode).children('a:first').attr('href');
			var cBoxURL = "javascript:openCBOX('"+ href +"');";
			
			$(contentNode).children('a:first').attr('href',cBoxURL);
		};
	}
});
