//******
// 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 
iWidth="1";
function flashObj(DivID, ObjectID, URL, varString, WIDTH, HEIGHT, align, bgcolor, scale, autoSrt, wmode, version)
{
		if (self.innerWidth)
		{
		    WIDTH = self.innerWidth;
			HEIGHT = self.innerHeight;
			//Fire Fox, Mozilla
		}
		else if (document.documentElement && document.documentElement.clientWidth)
		{
		    WIDTH = "100%";
			HEIGHT = "100%";
			//internet explorer";
		}
		else if (document.body)
		{
		    WIDTH = "100%";
			HEIGHT = "100%";
			//IE MAC
		}	
		if( WIDTH != iWidth){
  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='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 + " quality='high' wmode="+ wmode +" width=" + WIDTH + " name="+ ObjectID +" height=" + HEIGHT + " align=" + align + " allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' scale=" + scale + "/></embed></object>";
  }
  iWidth = WIDTH;
  iHeight = WIDTH;
}
