function cookieLesespiel(myname) {
	if (myname==0) {
		mycookie = document.cookie.split(";");
		value="Dein Name";
		for (i=0;i<mycookie.length;i++) {
			temp = mycookie[i].split("=");
			if (temp[0].match(/mynameCache/)) {
				value = temp[1];
				break;
			}
		}
		return value;
	}
	else {
		var date = new Date();
		days = 365;
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = date.toGMTString()
		document.cookie = "mynameCache="+myname+"; expires="+expires+"; path=/";
	}
}

//var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//if (plugin) { plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 5; }
//if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) { document.write('<SCRIPT LANGUAGE=VBScript\> \n'); document.write('on error resume next \n'); document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n'); document.write('</SCRIPT\> \n'); }

var FlashVers = 5;
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 PluginVers = words[i]; 
	}
	var FlashOK = PluginVers >= FlashVers;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('FlashOK = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & FlashVers)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
