/*var rockwell = {
  src: 'rockwell.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]
};

var bebas = {
  src: 'sifr.swf'
};
var rockwell = {
  src: 'rockwell.swf'
};
var myriad = {
  src: 'myriad.swf'
};	

// You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
//sIFR.useStyleCheck = true;

//Schriftarten aktivieren
sIFR.activate(rockwell, bebas);

//----------
//Navigation
//----------
sIFR.replace(bebas, {
  selector: 'h5'
  ,wmode:'transparent'
  ,css: [
	'.sIFR-root {text-align:center;font-size:17px;cursor:pointer;color: #a3a4a1;}'
	,'a { text-decoration: none;color: #a3a4a1; }'
	,'a:link { color: #a3a4a1; }'
	,'a:hover { color: #006ab2; }'
	,'a:visited { color: #a3a4a1; }'
	,'a:active { color: #005e9d; }'
]
});

//-----------------------
//head News Überschriften
//-----------------------
sIFR.replace(rockwell, {
  selector: '#head_news_id1_textbox .margin_space'
  ,wmode:'transparent'
  ,css: [
	'.sIFR-root {text-align:left;font-size:17px;color: white;}'
	,'a { text-decoration: underline;color: #f5f5f5;font-weight:normal; }'
	,'a:link { color: #f5f5f5; }'
	,'a:hover { color: #006ab2;text-decoration: underline }'
	,'a:visited { color: #ffffff;text-decoration: underline }'
	,'a:active { color: #c5c5c5; }'
]
});
*/


//basic tags
Cufon.replace('.rudistagebuch', { fontFamily: 'HVD Edding 780' });
Cufon.replace('h5', { fontFamily: 'Bebas',hover: true });
Cufon.replace('.margin_space', { fontFamily: 'Rockwell Std',hover: true  });
Cufon.replace('.margin_space_small', { fontFamily: 'Rockwell Std',hover: true  });
Cufon.replace('.content_infotext', { fontFamily: 'Bebas' });
Cufon.replace('.news_headtext', { fontFamily: 'Rockwell Std',hover: true  });
Cufon.replace('.top_header', { fontFamily: 'Rockwell Std',hover: true  });
Cufon.replace('.top_header_galerie', { fontFamily: 'Rockwell Std',hover: true  });
Cufon.replace('.LigaTeamname', { fontFamily: 'Rockwell Std' });

/*
//Kopf-Navigation. Beim scrollen fixed top:0px
var Browser = {
  Version: function() {
    var version = 999; // we assume a sane browser
    if (navigator.appVersion.indexOf("MSIE") != -1)
      // bah, IE again, lets downgrade version number
      version = parseFloat(navigator.appVersion.split("MSIE")[1]);
    return version;
  }
}

if (Browser.Version() <= 8) {}else{

	$(document).ready(function() {
		var yOffset = 116;
		//Startwerte für fixed
		if ($(window).scrollTop() > yOffset) {
			//Wenn Navigation nicht oben steht
			$("#navigation").css({
				'top': -3,
				'position': 'fixed'
			});
		
			$('#navigation').hover(function() {
				$(this).animate({'opacity':'1'},200);
			}, function() {
				$(this).animate({'opacity':'0.3'},200);
			});
		}else{
		//Wenn Navigation oben steht
			$('#navigation').hover(function() {
				$(this).animate({'opacity':'1'},200);
			});
			$("#navigation").css({
				'top': yOffset + 'px',
				'position': 'absolute'
			});
			//$('#navigation').css({'opacity':'0.2'},400);
		}
		
		
		$(window).scroll(function() {
			if ($(window).scrollTop() > yOffset) {
				$('#navigation').stop().animate({'opacity':'0.3'},200);
				$("#navigation").css({
					'top': -3,
					'position': 'fixed'
				});
			} else {
				$('#navigation').stop().animate({'opacity':'1'},200);
				$("#navigation").css({
					'top': yOffset + 'px',
					'position': 'absolute'
				});
				
			}
		});
		

		
	});
}*/
function winOpen(url, breite, hoehe) {
links = (screen.width/2)-(breite/2);
oben = (screen.height/2)-(hoehe/2);
parent.window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = yes,fullscreen = no,top ="+oben+",left ="+links);
}
