var gotham = {
	src: 'fileadmin/templates/html/sifr/gotham_bold.swf'
  ,ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
};
sIFR.activate(gotham);


function onElementReplacment(flashInteractor) { 
  $( flashInteractor.getAncestor() ).css('marginTop', '0');
}

function replaceNavi() {
  sIFR.replace(gotham, {
    selector: '#mainNav ul li'
    ,css: [
          '.sIFR-root { letter-spacing: 0.1; font-size: 13px; text-transform: uppercase; color: #2a9209; margin-left: 2px; }'
          ,'a { color: #000000; text-decoration: none; }'
          ,'a:link { color: #2a9209; }'
          ,'a:hover { color: #000000; }'
        ]
     ,fitExactly:true
     ,tuneHeight:-6
     ,tuneWidth:4	
     ,wmode:'transparent'
     ,onReplacement: function(flashInteractor) { onElementReplacment(flashInteractor); }
  });
}

replaceNewsLatest();
function replaceNewsLatest() {
	sIFR.replace(gotham, {
	  selector: '.news-latest-container h1'
	  ,css: [
	        '.sIFR-root { font-size: 28px; text-transform: uppercase; color: #2a9209;  }'
	        ,'em { font-style: normal; color: #ffffff; }'
			  ,'a { font-style: normal; font-size: 28px; text-transform: uppercase; color: #2a9209; text-decoration: none; }'
	        ,'a:link { color: #2a9209; }'
	        ,'a:hover { color: #2a9209; }'
	        ,'em a:hover { color: #ffffff; }'
	      ]
	   ,wmode:'transparent'
	});
}

// replaceNewsMore();
// function replaceNewsMore() {
// 	sIFR.replace(gotham, {
// 	  selector: '.news-latest-container div.more'
// 	  ,css: [
// 	        '.sIFR-root { font-size: 17px; text-transform: uppercase; color: #2a9209; text-align:right; margin-right: 18px;}'
// 			  ,'a { color: #2a9209; text-decoration: none; }'
// 	        ,'a:link { color: #2a9209; }'
// 	        ,'a:hover { color: #ffffff; }'
// 	      ]
// 	   ,wmode:'transparent'
// 	});
// }

sIFR.replace(gotham, {
  selector: '.news-list-container div.more'
  ,css: [
        '.sIFR-root { font-size: 17px; text-transform: uppercase; color: #2a9209; text-align:right; margin-right: 22px;}'
		  ,'a { color: #2a9209; text-decoration: none; }'
        ,'a:link { color: #2a9209; }'
        ,'a:hover { color: #ffffff; }'
      ]
   ,wmode:'transparent'
});
sIFR.replace(gotham, {
  selector: '.news-list-container div.back'
  ,css: [
        '.sIFR-root { font-size: 17px; text-transform: uppercase; color: #2a9209; text-align:left; margin-left: 25px;}'
		  ,'a { color: #2a9209; text-decoration: none; }'
        ,'a:link { color: #2a9209; }'
        ,'a:hover { color: #ffffff; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: '.news-list-container h2'
  ,css: [
        '.sIFR-root { font-size: 13px; text-transform: uppercase; color: #ffffff;  }'
        ,'em { font-style: normal; color: #2a9209; }'
		  ,'a { font-style: normal; font-size: 15px; text-transform: uppercase; color: #ffffff; text-decoration: none; }'
        ,'a:link { color: #ffffff; }'
        ,'a:hover { color: #ffffff; }'
        ,'em a:hover { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: 'p.csc-frame-frame1'
  ,css: [
        '.sIFR-root { font-size: 12px; text-transform: uppercase; color: #ffffff;  }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});
sIFR.replace(gotham, {
  selector: 'span.link'
  ,css: [
        '.sIFR-root { font-size: 11px; text-transform: uppercase; color: #ffffff;  }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'	
   ,fitExactly:true
   ,tuneHeight:-6
});

sIFR.replace(gotham, {
  selector: 'p.csc-frame-frame2'
  ,css: [
        '.sIFR-root { font-size: 13px; line-height:20px; text-transform: uppercase; color: #ffffff;  }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: 'p.csc-frame-frame3'
  ,css: [
        '.sIFR-root { font-size: 14px; leading:3; text-transform: uppercase; color: #ffffff;  }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: 'p.csc-frame-frame4'
  ,css: [
        '.sIFR-root { font-size: 14px; leading:1; text-transform: uppercase; color: #ffffff; text-align:center; }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: 'p.csc-frame-frame5'
  ,css: [
        '.sIFR-root { font-size: 13px; leading:0; text-transform: uppercase; color: #ffffff; text-align:center; }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: 'p.csc-frame-frame6'
  ,css: [
        '.sIFR-root { font-size: 19px; text-transform: uppercase; color: #ffffff; }'
        ,'.detail { color: #2a9209; }'
		  ,'.small-italic {color: #2a9209; font-size:11px; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: 'p.csc-frame-frame7'
  ,css: [
        '.sIFR-root { font-size: 16px; text-transform: uppercase; color: #ffffff;  }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});
sIFR.replace(gotham, {
  selector: 'p.csc-frame-frame8'
  ,css: [
        '.sIFR-root { font-size: 30px; text-transform: uppercase; color: #ffffff;  }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: '#contactform .powermail_check_inner label'
  ,css: [
        '.sIFR-root { font-size: 11px; leading:0; text-transform: uppercase; color: #5b4d43; text-align:left; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: '#contactform label'
  ,css: [
        '.sIFR-root { font-size: 11px; leading:0; text-transform: uppercase; color: #ffffff; text-align:left; }'
		  ,'.detail { color: #2a9209; }'
      ]
	,tuneHeight:-3
   ,wmode:'transparent'
});


sIFR.replace(gotham, {
  selector: '.contactinfo p'
  ,css: [
        '.sIFR-root { font-size: 11px; leading:2; text-transform: uppercase; color: #ffffff; text-align:left; }'
		  ,'.detail { color: #2a9209; }'
		  ,'.big-detail { color: #2a9209; font-size:32px; }'
		  ,'.big { font-size:30px; }'
		  ,'a { color: #2a9209; text-decoration: none; }'
        ,'a:link { color: #2a9209; }'
        ,'a:hover { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: '#headline h1.blatt'
  ,css: [
        '.sIFR-root { font-size: 36px; text-transform: uppercase; color: #ffffff; margin-left:72px; text-align:left; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: '#headline h1.blatt2'
  ,css: [
        '.sIFR-root { font-size: 36px; text-transform: uppercase; color: #ffffff; margin-left:72px; text-align:left; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: '#headline h1.blatt2klein'
  ,css: [
        '.sIFR-root { font-size: 25px; text-transform: uppercase; color: #ffffff; margin-left:751px; text-align:left; }'
      ]
   ,wmode:'transparent'
});

sIFR.replace(gotham, {
  selector: '.csc-menu-1 a'
  ,css: [
        '.sIFR-root { font-size: 14px; leading:1; text-transform: uppercase; color: #ffffff; text-align:center; }'
        ,'.detail { color: #2a9209; }'
      ]
   ,wmode:'transparent'
});

