/* CSS Document */

var sifrV3 = { src: 'tl_files/art/swf/sifrV3.swf' };		

sIFR.activate(sifrV3);

sIFR.replace(sifrV3, {
  selector: 'h1.sIFR',
  css: '.sIFR-root { background-color:transparent; color:#ffffff; font-size:33px; line-height:42px; }',
  wmode: 'transparent'
});	

//sIFR.replace(sifrV3, {
//  selector: 'h2.sIFR',
//  css: '.sIFR-root { background-color:transparent; color:#113388; font-size:27px; line-height:30px; }',
//  wmode: 'transparent'
//});	

sIFR.replace(sifrV3, {
selector: 'h3.sIFR',
css: '.sIFR-root { background-color:transparent; color:#ffffff; font-size:18px; }',
wmode: 'transparent'
});	

//sIFR.replace(sifrV3, {
//  selector: 'h4.sIFR',
//  css: '.sIFR-root { background-color:transparent; color:#113388; font-size:18px; }',
//  wmode: 'transparent'
//});	


// Teaser 
sIFR.replace(sifrV3, {
  selector: 'h3.sIFR_inactive',
  css: '.sIFR-root { background-color:transparent; color:#ffffff; font-size:18px; }',
  wmode: 'transparent'
});	

//  sIFR.replace(sifrV3, {
//  selector: 'h4.sIFR_inactive',
//  css: '.sIFR-root { background-color:transparent; color:#113388; font-size:18px; }',
//  wmode: 'transparent'
//  });	

function showHoverElemets(teaserid, headline, highlightcolor){
	
	if(!highlightcolor){
		var color = '113388';	
	}else{
		var color = highlightcolor;	
	}
	if(!headline){
		var headline = 'h3';	
	}else{
		var headline = headline;	
	}

	$(teaserid).getElements(headline + '.sIFR_active').show();
	$(teaserid).getElements(headline + '.sIFR_inactive').hide();

   sIFR.replace(sifrV3, {
	  selector: 'div#' + teaserid + ' ' + headline + '.sIFR_active',
	  css: '.sIFR-root { background-color:transparent; color:#' + color + '; font-size:18px; }',
	  wmode: 'transparent'
	});	
}

function hideHoverElemets(teaserid, headline){

	if(!headline){
		var headline = 'h3';	
	}else{
		var headline = headline;	
	}

	$(teaserid).getElements(headline + '.sIFR_inactive').show();
	$(teaserid).getElements(headline + '.sIFR_active').hide();
	
}

// Related teaser
$(document.body).getElements('div.teaser').addEvents({
    'mouseenter': function(){
        showHoverElemets(this.id);
    },
    'mouseleave': function(){
      	hideHoverElemets(this.id);
    }
});


// Teaser for index pages
//  $(document.body).getElements('div.contentTeaser').addEvents({
//  	'mouseenter': function(){
//          showHoverElemets(this.id, 'h4', 'ffffff');
//      },
//      'mouseleave': function(){
//        	hideHoverElemets(this.id, 'h4');
//      }
//  });





