/*
Copyright (C) 2007 James Ward
http://www.jamesward.org

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

function embedFlash(id, flashFile, width, height, flashVars)
{
	document.writeln("<object id='"+id+"' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab' width='"+width+"' height='"+height+"'>");
	document.writeln("<param name='flashvars' value='"+flashVars+"'/>");
	document.writeln("<param name='src' value='"+flashFile+"'/>");
	document.writeln("<param name='wmode' value='opaque'/>");
	document.writeln("<param name='allowScriptAccess' value='sameDomain'/>");
	document.writeln("<embed name='"+id+"' pluginspage='http://www.adobe.com/go/getflashplayer' src='"+flashFile+"' width='"+width+"' height='"+height+"' flashvars='"+flashVars+"' wmode='opaque' allowScriptAccess='sameDomain'/>");
	document.writeln("</object>");
}
