function renderFlash(name,w,h) {
	var sObjPart = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\"";
	var sEmbPart1 = "<param name=\"quality\" value=\"high\">";
	var sEmbPart2 = "pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed></object>";
	document.write(sObjPart + " width=\"" + w + "\" height=\"" + h + "\"> <param name=\"movie\" value=\"" + name + "\">" + sEmbPart1 + "<embed src=\"" + name + "\" width=\"" + w + "\" height=\"" + h + "\"" + sEmbPart2); 
}

function renderFlashInsideWindow(name) {
	var w = 0;
	var h = 0;
	if (self.innerWidth)
	{
		w = self.innerWidth;
		h = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}
	w-=40;
	h-=50;
	renderFlash(name,w,h);
}	


