<!--
/* User Agent (Browserkennung) auf einen bestimmten Browsertyp prüfen */  
function _checkBrowserName(name){
	var agent = navigator.userAgent.toLowerCase();  
	if (agent.indexOf(name.toLowerCase())>-1) {  
		return true;  
	}  
	return false;  
} 

var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
	// alert("Flash");
} else{
	// alert("noFlash");
	var s_array = window.location.href.split('#');
	// alert(s_array[1]);
	
	if(_checkBrowserName('iphone') || 
						 _checkBrowserName('ipod') || 
						 _checkBrowserName('ipad') || 
						 _checkBrowserName('android') || 
						 _checkBrowserName('BlackBerry') || 
						 _checkBrowserName('Windows CE') || 
						 _checkBrowserName('NetFront') || 
						 _checkBrowserName('Palm OS') || 
						 _checkBrowserName('Blazer') || 
						 _checkBrowserName('Elaine') || 
						 _checkBrowserName('Plucker') || 
						 _checkBrowserName('vodafone') || 
						 _checkBrowserName('nokia') || 
						 _checkBrowserName('symbian') || 
						 _checkBrowserName('Opera Mini') || 
						 _checkBrowserName('j2me') || 
						 _checkBrowserName('midp') || 
						 _checkBrowserName('htc') || 
						 _checkBrowserName('java') || 
						 _checkBrowserName('sony') || 
						 _checkBrowserName('AvantGo')) {
		if (s_array[1] == "/Filme") {
			window.location.replace("http://mobil.mobil-werbung.com/filme.php");
		} else if (s_array[1] == "/TV-Neustadt") {
			window.location.replace("http://mobil.mobil-werbung.com/tv_neustadt.php");
		} else if (s_array[1] == "/TV-Fuerth") {
			window.location.replace("http://mobil.mobil-werbung.com/tv_fuerth.php");
		} else if (s_array[1] == "/TV-Radolfzell") {
			window.location.replace("http://mobil.mobil-werbung.com/tv_radolfzell.php");
		} else if (s_array[1] == "/TV-VfL-Wolfsburg") {
			window.location.replace("http://mobil.mobil-werbung.com/tv_wolfsburg.php");
		} else if (s_array[1] == "/TV-TSG-Jockgrim") {
			window.location.replace("http://mobil.mobil-werbung.com/tv_jockgrim.php");
		} else if (s_array[1] == "/TV-Uniklinik-Freiburg") {
			window.location.replace("http://mobil.mobil-werbung.com/tv_freiburg.php");
		} else {
			window.location.replace("http://mobil.mobil-werbung.com/index.php");
		}
	} else {
		if (s_array[1] == "/Filme") {
			window.location.replace("textvers/Filme.php");
		} else if (s_array[1] == "/TV-Neustadt") {
			window.location.replace("textvers/TV_Neustadt.htm");
		} else if (s_array[1] == "/TV-Fuerth") {
			window.location.replace("textvers/TV_Fuerth.htm");
		} else if (s_array[1] == "/TV-Radolfzell") {
			window.location.replace("textvers/TV-Radolfzell.htm");
		} else if (s_array[1] == "/TV-VfL-Wolfsburg") {
			window.location.replace("textvers/TV-Wolfsburg.htm");
		} else if (s_array[1] == "/TV-TSG-Jockgrim") {
			window.location.replace("textvers/TV_Jockgrim.htm");
		} else if (s_array[1] == "/TV-Uniklinik-Freiburg") {
			window.location.replace("textvers/TV-Uniklinik-Freiburg.htm");
		} else {
			window.location.replace("textvers/index.php");
		}
	}
}
//-->
