/*
|-------------------------------------------------------
| Add Swf
|-------------------------------------------------------
| @container - player container(DIV)
| @swf - Player URL
| @w   - width of Player
| @h   - height of Player
| @id  - swf Object ID/Name
| @vars- variables send to player
*/
function swf(container, swf, w, h, id, vars)
{
	var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  id="'+id+'"';
	str +=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+w+'" height="'+h+'">';
	str +=' <param name="movie" value="'+swf+'" />';
	str +=' <param name="quality" value="high" />';
	str +=' <param name="wmode" value="transparent" />';
	str +=' <param name="AllowScriptAccess" value="always">';
	str +=' <param name="FlashVars" value="'+vars+'" />';
	str +=' <embed src="'+swf+'"';
	str +=' FlashVars="'+vars+'" wmode="transparent" allowfullscreen="true" quality="high"';
	str +=' AllowScriptAccess="always" name="'+id+'" ';
	str +=' pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"';
	str +=' type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed></object>';
	//document.write(str);	
	$('#'+container).html(str);
}
