//Flashplayer

function play(playlist)
{
	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="270" height="130" id="xspf_player_slim" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="allowFullScreen" value="false">');
	document.write('<param name="flashvars" value="playlist_url='+playlist+'"/>');
	document.write('<param name="movie" value="sitedata/beeld/tunes.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="sitedata/beeld/tunes.swf" quality="high" bgcolor="#ffffff" flashvars="playlist_url='+playlist+'" width="270" height="130" name="xspf_player_slim" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</object>');
}

//Ajaxscripts

function getXMLHttp()
{
	var xmlHttp;
	try
	{
		xmlHttp = new XMLHttpRequest();
	}
	catch(e)
	{
		try
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				return false;
			}
		}
	}
	return xmlHttp;
}

function HandleResponse(response)
{
	document.getElementById('tekst').innerHTML = response;
}

function toon(id)
{
	var xmlHttp = getXMLHttp();
	xmlHttp.onreadystatechange = function()
	{
		if(xmlHttp.readyState == 4)
		{
			HandleResponse(xmlHttp.responseText);
		}
	}
	xmlHttp.open('get', 'sitedata/script/interface/'+id, true); xmlHttp.send(null);
}

//Menucreatie

function menu()
{
	document.write('<ul>\n');
	document.write('<li style="width: 52px" onclick="toon(\'blad01.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -000px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 51px" onclick="toon(\'blad02.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -052px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 51px" onclick="toon(\'blad03.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -103px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 93px" onclick="toon(\'blad04.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -154px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 57px" onclick="toon(\'blad05.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -247px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 54px" onclick="toon(\'blad06.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -304px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 51px" onclick="toon(\'blad07.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -358px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 53px" onclick="toon(\'blad08.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -409px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 50px" onclick="toon(\'blad09.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -462px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 57px" onclick="toon(\'blad10.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -512px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('<li style="width: 66px" onclick="toon(\'blad11.php\')" onmouseover="this.style.background=\'url(sitedata/beeld/img/navs2.jpg) no-repeat -569px 0\'" onmouseout="this.style.background=\'none\'"></li>\n');
	document.write('</ul>\n');
}