//******
// DivID
// ObjectID
// WIDTH - swf file width
// HEIGHT - swf file height
// URL - swf file path
// align - left, right, middle
// varString - cariable string to attach to swf file path
// bgcolor -  hexidecimal color
// scale -  noBorder or leave blank
// autStrt -  true, false
// wmode -  transparent, opaque 

function flashObj(DivID, ObjectID, URL, varString, WIDTH, HEIGHT, align, bgcolor, scale, autoSrt, wmode, version)
{
document.getElementById(DivID).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + version + "' width='" + WIDTH + "' height='" + HEIGHT + "' id='" + ObjectID + "' align='" + align + "'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + URL + varString + "' /><param name='menu' value='false' /><param name='quality' value='high' /><param name='SCALE' value='" + scale + "'><param name='autostart' value='"+autoSrt+"' /><param name='bgcolor' value='"+ bgcolor +"' />  <param name='wmode' value='"+wmode+"' /><embed src='" + URL + varString + "' menu='false' quality='high' wmode='"+ wmode +"' width='" + WIDTH + "' height='" + HEIGHT + "' align='" + align + "' allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' scale='" + scale + "'/></embed></object>";
}
