<!--
//funkcja zapisująca ciasteczko
function setCookie(name, value, days) {
 var now=new Date();
 var expTime=now.getTime()+days*24*60*60*1000;
 var expDate=new Date(expTime);
 document.cookie=name+"="+value+"; EXPIRES="+expDate.toGMTString();
}
//funkcja odczytująca ciasteczko
function getCookie(name) {
 var start=document.cookie.indexOf(name+"=");
 if(start==-1) return null;
 var len=start+name.length+1;
 var end=document.cookie.indexOf(";", len);
 if(end==-1) end=document.cookie.length;
 return document.cookie.substring(len, end);
}

function flash_DoFSCommand(command, args) {
	switch (command) {
		case 'pobierzCiastko':
			ciastko=getCookie(args);
			if(ciastko==null) {
			 ciastko=""; }
			document.flash.SetVariable(args, ciastko);
			break;
		case 'zapiszDzwiek':
			setCookie('sound', args, 30);
			break;
	}	
};
if (navigator.appName && navigator.appName.indexOf("Microsoft")!=-1 && navigator.userAgent.indexOf("Windows")!=-1) {
	document.writeln('<script language=VBScript\>');
	document.writeln('on error resume next');
	document.writeln('sub flash_FSCommand(ByVal command, ByVal args)');
	document.writeln('call flash_DoFSCommand(command, args)');
	document.writeln('end sub');
	document.write('</script\> \n');
};
-->