function getObj(nume)
{
	var elObj = null;
	if (document.getElementById)
		elObj = document.getElementById(nume);
	else
		if (document.all)
			elObj = document.all[nume];
		else
			if (document.layers)
			{
				elObj = document.layers[''].document.layers[nume];
				elObj.style = elObj;			// NS4 layers do not have the style property, and some of its style attributes are properties of the layer itself
			}

	return elObj;		
}
function writeSWFs(marca,url,name)
{


	objDivIntro = document.getElementById ? document.getElementById('radia') : null;
	if (objDivIntro)
		objDivIntro.innerHTML = 
			'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">' +
			  '<param name="movie" value="radiatoare.swf?marca='+marca+'&url='+url+'&name='+name+'">' +
			  '<param name="quality" value="high">' +
			  '<param name="salign" value="M">' +
			  '<param name="scale" value="noscale">' +
			  '<param name="wmode" value="transparent">' +
			  '<embed src="radiatoare.swf?marca='+marca+'&url='+url+'&name='+name+'"  scale="noscale"  quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>' +
			'</object>';
}
function playIntro()
{

	introd = getObj("radia");
	introd.style.visibility = "visible";
}
function closeIntro()
{

	introd = getObj("radia");
	introd.style.visibility = "hidden";
}