function STWD_Embed(htmelement, config)
{
	var STWD_GLOBAL_URL = "http://mars.stanuschtechnologies.pl/aio/bots/player3/";
	var STWD_CATALOG = "selfservice/promoinfo/";
	var STWD_CONFIGFILE ="";
	if (!config) STWD_CONFIGFILE = STWD_GLOBAL_URL + STWD_CATALOG + "avatar.xml";
	else STWD_CONFIGFILE = config;
	var flashvars = {
		configfile: STWD_CONFIGFILE,
		skin: STWD_GLOBAL_URL + STWD_CATALOG + "avatar.swf",
		engine: STWD_GLOBAL_URL + "Common/engine.swf"
	};
	var params = {
		menu: "false",
		wmode: "window",
		allowScriptAccess: "always"
	};
	var attributes = {
		id: "wd",
		name: "wd"
	};
	swfobject.embedSWF(STWD_GLOBAL_URL + STWD_CATALOG + "loader.swf", htmelement, "220", "424", "9", STWD_GLOBAL_URL + "/Common/expressInstall.swf", flashvars, params, attributes);
}

function STWD_OpenData(param)
{
	window.open(param,"wdOpener");
	//alert("WD_OpenData in archideko.js");
}

function STWD_AnswerQuestion(question) 
{
	try {document.getElementById("wd").answerQuestion(question);}
	catch (e) {alert(e);}
}

