function writeflash(flashmovie,width,height,flashvars,transparent)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" align="top">');
	document.write('<param name="movie" value="'+flashmovie+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="menu" value="false">');
	if (typeof(flashvars)=="string")
	{
		flashvars+="&jsenabled=yes"
	}
	else
	{
		flashvars="jsenabled=yes";
	}
	if (navigator.userAgent.toLowerCase().indexOf("windows nt 6.0")!=-1)
	{
		flashvars+="&vista=yes";
	}
	document.write('<param name="flashvars" value="'+flashvars+'">');
	if (transparent==true)
	{
		document.write('<param name="wmode" value="transparent">');
	}
	document.write('<embed src="'+flashmovie+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" align="top" menu="false" flashvars="'+flashvars+'"');
	if (transparent==true)
	{
		document.write(' wmode="transparent"');
	}
	document.write('>');
	document.write('</embed>');
	document.write('</object>');
}

function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}

function detectOS()
{
if(navigator.userAgent.indexOf('Win') == -1) {
OS = 'Macintosh';
} else {
OS = 'Windows';
}
return OS;
}

function detectBrowser()
{
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
return browser;
}

function FullScreen(){

var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
adjWidth = 30;
adjHeight = 30;
}
if(detectVersion() < 4) {
self.location.href = 'oldbrowser.html';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open('http://www.andysauerwein.de/flash/index.html', 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}

function MakeItSo(){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open('http://www.andysauerwein.de/flash/index.html','windowname','fullscreen=yes');
} else {
onload=FullScreen();
}
}
// Cancel Event
function noselecta()
{
	return false;
}

// No right click menu
if (document.all)
{
	document.oncontextmenu=noselecta;
	document.onselectstart=noselecta;
}

