

function flash(width,height,url) {
	document.writeln("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"mojprofil\">"); 
	document.writeln("	<PARAM NAME=\"movie\" VALUE=\""+url+"\">"); 
	document.writeln("    <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
	document.writeln("    <EMBED src=\""+url+"\" bgcolor=\"#FFFFFF\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" NAME=\"flash_dekoration\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>");
	document.writeln("  </OBJECT>");
}

function flash_transparent(width,height,url) {
	document.writeln("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"flash\">"); 
	document.writeln("	<PARAM NAME=\"movie\" VALUE=\""+url+"\">"); 
	document.writeln("    <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
	document.writeln('    <PARAM NAME="wmode" VALUE="transparent" />');	
	document.writeln("    <EMBED src=\""+url+"\" bgcolor=\"#FFFFFF\" wmode=\"transparent\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" NAME=\"flash_dekoration\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>");
	document.writeln("  </OBJECT>");
}

function flash_transparent_with_flash_vars(width,height,url,flash_vars) {
	document.writeln("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"flash\">"); 
	document.writeln("	<PARAM NAME=\"movie\" VALUE=\""+url+"\">"); 
	document.writeln("    <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
	document.writeln("    <PARAM NAME=\"FlashVars\" VALUE=\""+flash_vars+"\" />");
	document.writeln('    <PARAM NAME="wmode" VALUE="transparent" />');	
	document.writeln('    <PARAM NAME="scale" VALUE="noscale" />');
	document.writeln('    <PARAM NAME="salign" VALUE="lt" />');
	document.writeln('    <PARAM NAME="menu" VALUE="false"/>');
	document.writeln('    <PARAM NAME="allowScriptAccess" VALUE="sameDomain" />');
	
	document.write('    <EMBED src="'+url+'"');
	document.write(' bgcolor="#FFFFFF"'); 
	document.write(' wmode="transparent"');
	document.write(' width="'+width+'"');
	document.write(' height="'+height+'"');
	document.write(' FlashVars="'+flash_vars+'"'); 
	document.write(' name="flash_decoration"');
	document.write(' scale="noscale"');
	document.write(' salign="lt"');
	document.write(' menu="false"');
	document.write(' allowScriptAccess="sameDomain"');
	document.write(' type="application/x-shockwave-flash"');
	document.write(' pluginspage="http://www.macromedia.com/go/getflashplayer"');
	document.writeln(' ></EMBED>');
	
	document.writeln("  </OBJECT>");
}

function flash_transparent_with_flash_vars_ssl(width,height,url,flash_vars) {
	document.writeln("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"flash\">"); 
	document.writeln("	<PARAM NAME=\"movie\" VALUE=\""+url+"\">"); 
	document.writeln("    <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
	document.writeln("    <PARAM NAME=\"FlashVars\" VALUE=\""+flash_vars+"\" />");
	document.writeln('    <PARAM NAME="wmode" VALUE="transparent" />');	
	document.writeln('    <PARAM NAME="scale" VALUE="noscale" />');
	document.writeln('    <PARAM NAME="salign" VALUE="lt" />');
	document.writeln('    <PARAM NAME="menu" VALUE="false"/>');
	document.writeln('    <PARAM NAME="allowScriptAccess" VALUE="sameDomain" />');
	
	document.write('    <EMBED src="'+url+'"');
	document.write(' bgcolor="#FFFFFF"'); 
	document.write(' wmode="transparent"');
	document.write(' width="'+width+'"');
	document.write(' height="'+height+'"');
	document.write(' FlashVars="'+flash_vars+'"'); 
	document.write(' name="flash_decoration"');
	document.write(' scale="noscale"');
	document.write(' salign="lt"');
	document.write(' menu="false"');
	document.write(' allowScriptAccess="sameDomain"');
	document.write(' type="application/x-shockwave-flash"');
	document.write(' pluginspage="https://www.macromedia.com/go/getflashplayer"');
	document.writeln(' ></EMBED>');
	
	document.writeln("  </OBJECT>");
}

function flash_fully_configured(width,height,url,flash_vars,protocol,wmode,bgcolor,name) {
	
	document.write("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\""+protocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\""+name+"\" name=\""+name+"\">"); 
	document.write("	<PARAM NAME=\"movie\" VALUE=\""+url+"\">"); 
	document.write("    <PARAM NAME=\"bgcolor\" VALUE=\""+bgcolor+"\">");
	document.write("    <PARAM NAME=\"FlashVars\" VALUE=\""+flash_vars+"\" />");
	document.write("    <PARAM NAME=\"wmode\" VALUE=\""+wmode+"\" />");	
	document.write("    <PARAM NAME=\"scale\" VALUE=\"noscale\" />");
	document.write("    <PARAM NAME=\"salign\" VALUE=\"lt\" />");
	document.write("    <PARAM NAME=\"menu\" VALUE=\"false\"/>");
	document.write("    <PARAM NAME=\"allowScriptAccess\" VALUE=\"sameDomain\" />");
	document.write("    <EMBED src=\""+url+"\"");
	document.write(" bgcolor=\""+bgcolor+"\""); 
	document.write(" wmode=\""+wmode+"\"");
	document.write(" width=\""+width+"\"");
	document.write(" height=\""+height+"\"");
	document.write(" FlashVars=\""+flash_vars+"\""); 
	document.write(" name=\""+name+"\"");
	document.write(" scale=\"noscale\"");
	document.write(" salign=\"lt\"");
	document.write(" menu=\"false\"");
	document.write(" allowScriptAccess=\"sameDomain\"");
	document.write(" type=\"application/x-shockwave-flash\"");
	document.write(" pluginspage=\""+protocol+"://www.macromedia.com/go/getflashplayer\"");
	document.write(' ></EMBED>');
	document.write('</OBJECT>');
}

function flash_no_resize(url) {
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="100%" height="100%"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="'+url+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#000033" />'
    + '<embed src="'+url+'" loop="false" menu="false" quality="high" scale="noscale" bgcolor="#000033" '
    + 'width="100%" height="100%" name="zyczenia" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
}

function flash_player_mp3(width,height,player,musicFile,title) {
	document.writeln("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"playerMP3a\" align=\"middle\">"); 
	document.writeln("    <PARAM NAME=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.writeln("    <PARAM NAME=\"FlashVars\" value=\"componentTitle="+title+"&componentData="+musicFile+"?fname="+title+"\" />");
	document.writeln("	  <PARAM NAME=\"movie\" VALUE=\""+player+"\">"); 
	document.writeln("	  <PARAM NAME=\"quality\" value=\"high\" />");
	document.writeln("    <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
	document.writeln("	  <EMBED SRC=\""+player+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\""+width+"\" height=\""+height+"\" FlashVars=\"componentTitle="+title+"&componentData="+musicFile+"?fname="+title+"\" name=\"playerMP3a\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.writeln("  </OBJECT>");
}

function flash_player_flv(width,height,player,movieFile,title) {
	document.writeln("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"playerMovie\" align=\"middle\">"); 
	document.writeln("    <PARAM NAME=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.writeln("    <PARAM NAME=\"FlashVars\" value=\"componentTitle="+title+"&componentData="+movieFile+"?fname="+title+"\" />");
	document.writeln("	  <PARAM NAME=\"movie\" VALUE=\""+player+"\">"); 
	document.writeln("	  <PARAM NAME=\"quality\" value=\"high\" />");
	document.writeln("    <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
	document.writeln("	  <EMBED SRC=\""+player+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\""+width+"\" height=\""+height+"\" FlashVars=\"componentTitle="+title+"&componentData="+movieFile+"?fname="+title+"\" name=\"playerMP3a\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.writeln("  </OBJECT>");
}
function flash_transparent_player_flv(width,height,player,movieFile,title) {
	document.writeln("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"playerMovie\" align=\"middle\" style=\"z-index:0;\">"); 
	document.writeln("    <PARAM NAME=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.writeln("    <PARAM NAME=\"FlashVars\" value=\"componentTitle="+title+"&componentData="+movieFile+"?fname="+title+"\" />");
	document.writeln("	  <PARAM NAME=\"movie\" VALUE=\""+player+"\">"); 
	document.writeln("	  <PARAM NAME=\"quality\" value=\"high\" />");
	document.writeln('    <PARAM NAME="wmode" VALUE="transparent" />');	
	document.writeln("    <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
	document.writeln("	  <EMBED SRC=\""+player+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\""+width+"\" height=\""+height+"\" wmode=\"transparent\" FlashVars=\"componentTitle="+title+"&componentData="+movieFile+"?fname="+title+"\" name=\"playerMovie\" style=\"z-index:0;\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.writeln("  </OBJECT>");
}

function flash_transparent_player_mp3(width,height,player,musicFile,title) {
	document.writeln("  <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"playerMP3a\" align=\"middle\">"); 
	document.writeln("    <PARAM NAME=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.writeln("    <PARAM NAME=\"FlashVars\" value=\"componentTitle="+title+"&componentData="+musicFile+"?fname="+title+"\" />");
	document.writeln("	  <PARAM NAME=\"movie\" VALUE=\""+player+"\">"); 
	document.writeln("	  <PARAM NAME=\"quality\" value=\"high\" />");
	document.writeln("    <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
	document.writeln('    <PARAM NAME="wmode" VALUE="transparent" />');	
	document.writeln("	  <EMBED SRC=\""+player+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\""+width+"\" height=\""+height+"\" wmode=\"transparent\" FlashVars=\"componentTitle="+title+"&componentData="+musicFile+"?fname="+title+"\" name=\"playerMP3a\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.writeln("  </OBJECT>");
}
