	function getCookieVal (offset) {
	  var endstr = document.cookie.indexOf (";", offset);
	  if (endstr == -1)
		endstr = document.cookie.length;
	  return document.cookie.substring(offset, endstr);
	}

	function GetCookie (name) {
	  var arg = name + "=";  
	  var alen = arg.length;
	  var clen = document.cookie.length;
	  var i = 0;
	  while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg) {	 
 			return getCookieVal (j);
		}
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break; 
	  }
	  return null;
	}

	function SetCookie (name, value) {
	  var argv = SetCookie.arguments;
	  var argc = SetCookie.arguments.length;
	  var expires = (argc > 2) ? argv[2] : null;
	  var path = (argc > 3) ? argv[3] : null;
	  var domain = (argc > 4) ? argv[4] : null;
	  var secure = (argc > 5) ? argv[5] : false;
	  document.cookie = name + "=" + escape (value) +
		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
		((path == null) ? "" : ("; path=" + path)) +
		((domain == null) ? "" : ("; domain=" + domain)) +
		((secure == true) ? "; secure" : "");
	}

      function SetSound(aanuit) {
         var expdate = new Date ();     
         expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000)); 
         SetCookie('geluid', aanuit, expdate);
        }

if (GetCookie('geluid') == 0)
{
document.write('<OBJECT type="application/x-shockwave-flash" width="20" height="20" data="soundoff.swf">');
document.write('CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=6,0,79,0"');
//document.write('ID="MyMovie" WIDTH="20" HEIGHT="20">');
document.write('<PARAM NAME="movie" VALUE="soundoff.swf">');
//document.write('<PARAM NAME="quality" VALUE="high">');
//document.write('<PARAM NAME="bgcolor" VALUE="#FFFFFF>"');
//document.write('<PARAM NAME="menu" VALUE="false">');
//document.write('<EMBED SRC="soundoff.swf" WIDTH="20" HEIGHT="20"');
//document.write(' quality="high" bgcolor="#FFFFFF"');
//document.write(' menu="false"');
//document.write(' NAME="MyMovie" ALIGN="" TYPE="application/x-shockwave-flash"');
//document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
//document.write('</EMBED>');
document.write('</OBJECT>');
} else {
document.write('<OBJECT type="application/x-shockwave-flash" width="20" height="20" data="soundon.swf">');
document.write('CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=6,0,79,0"');
//document.write('ID="MyMovie" WIDTH=20 HEIGHT=20 >');
document.write('<PARAM NAME="movie" VALUE="soundon.swf">');
//document.write('<PARAM NAME="quality" VALUE="high">');
//document.write('<PARAM NAME="bgcolor" VALUE= #FFFFFF>');
//document.write('<PARAM NAME="menu" VALUE="false">');
//document.write('<EMBED SRC=main.swf WIDTH=20 HEIGHT=20 ');
//document.write(' quality=high bgcolor=#FFFFFF');
//document.write(' menu="false"');
//document.write(' NAME="MyMovie" ALIGN="" TYPE="application/x-shockwave-flash"');
//document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
//document.write('</EMBED>');
document.write('</OBJECT>');
}
