function GetEmbed(url,width,height,id,vars) {
	var txt = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle">';
	txt+= '<param name="allowScriptAccess" value="sameDomain" />';
	txt+= '<param name="flashVars" value="'+vars+'"/>';
	txt+= '<param name="movie" value="' + url + '" />';
	txt+= '<param name="quality" value="high" />';
	txt+= '<param name="wmode" value="transparent"/>';
	txt+= '<embed src="'+url+'" quality="high" wmode="transparent" style="width:'+width+'px; height:'+height+'px;" id="'+id+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashVars="'+vars+'"></embed></object>';
	document.write(txt);
}


function GetEmbedMsg(url,width,height,id,vars) {
	var txt = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle">';
	txt+= '<param name="allowScriptAccess" value="always" />';
	txt+= '<param name="flashVars" value="'+vars+'"/>';
	txt+= '<param name="movie" value="' + url + '" />';
	txt+= '<param name="quality" value="high" />';
	txt+= '<param name="wmode" value="transparent" />';
	txt+= '<embed src="'+url+'" quality="high" wmode="transparent" style="width:'+width+'px; height:'+height+'px;"  align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashVars="'+vars+'"></embed></object>';
alert(txt);
	document.write(txt);
}

function GetKeyCode(e) {
	if (e.keyCode) {
		var pressKey = e.keyCode;
	} else {
		var pressKey = e.which;
	}

	return pressKey;
}
