//Komunikacja Flasha
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function shop_DoFSCommand(command, args) {

	var shopObj = InternetExplorer ? shop : document.shop;

	var expdate = new Date ();
	expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); // 24 hrs from now

	if(command == "muzyka_akcja") {

		SetCookie ("muzyka_akcja", args, expdate, "/");

	}
	if(command == "muzyka_track") {

		SetCookie ("muzyka_track", args, expdate, "/");

	}
	if(command == "czy_wiesz") {

		SetCookie ("czy_wiesz", args, expdate, "/");

	}
	if(command = "komunikat") {

		//alert(args);

	}
}

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {

	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub shop_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call shop_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');

}
