﻿function setSWF(swfName, divName, swfWidth, swfHeight, swfVersion, swfBg, altImg)
{
	swfobject.embedSWF(swfName, divName, swfWidth, swfHeight, swfVersion, swfBg, altImg);
}
function setSWFwithParams(swfName, divName, swfWidth, swfHeight, swfVersion, swfBg, altImg, wmodeString)
{
    {            
            var flashvars = {
              //name1: "hello",
              //name2: "world"
            };
            var params = {
              wmode: "transparent"
            };
            var attributes = {
              //id: "myDynamicContent",
              //name: "myDynamicContent"
            };
            swfobject.embedSWF(swfName, divName, swfWidth, swfHeight, swfVersion, swfBg, altImg,params,attributes);
            //swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);
    }
}


// FLASH + JS
var condition=false;

function setLoaded()
{
	condition=true;
}
	
function windowOnBeforeUnload()
{
	if(condition==false)
	{
		return "Trwa ładowanie danych. Zamknięcie okna przeglądarki w tym momencie może wywołać nieoczekiwany błąd. Proszę spróbować za chwilę.";
	}
}
