function RemoverBordaFlash(nmArquivo, nrLargura, nrAltura)
{
	var obj_str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + nrLargura + '" height="' + nrAltura + '" id="fuckie" align="middle">';
	obj_str += '<param name="allowScriptAccess" value="sameDomain" />';
	obj_str += '<param name="movie" value="../../fotos/publicidades/' + nmArquivo + '" />';
	obj_str += '<param name="quality" value="high" />';
	obj_str += '<param name="wmode" value="transparent" />';
	obj_str += '<embed src="../../fotos/publicidades/' + nmArquivo + '" quality="high" width="' + nrLargura + '" height="' + nrAltura + '" wmode="transparent" name="fuckie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	obj_str += '</object>';
	document.write(obj_str);
}

function RemoverBordaFlashSemURL(nmArquivo, nrLargura, nrAltura)
{
	var obj_str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + nrLargura + '" height="' + nrAltura + '" id="fuckie" align="middle">';
	obj_str += '<param name="allowScriptAccess" value="sameDomain" />';
	obj_str += '<param name="movie" value="' + nmArquivo + '" />';
	obj_str += '<param name="quality" value="high" />';
obj_str += '<param name="wmode" value="transparent" />';
	obj_str += '<embed src="' + nmArquivo + '" quality="high" width="' + nrLargura + '" height="' + nrAltura + '" name="fuckie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	obj_str += '</object>';
	document.write(obj_str);
}

function EstiloMenuLateral()
{
	var tds= document.getElementsByTagName("TD");
	if(tds)
	{
		for(var x=0;x<tds.length;x++)
		{
			if(tds[x].className == "mnItem")
			{
				tds[x].onmouseover = function(){
					this.className = "mnItemOn";
				}
				tds[x].onmouseout = function(){
					this.className = "mnItem";
				}
			}
		}
	}
	
	Buscar();
}

function Buscar()
{
	var oDivCentro = BuscarPorClasse('areaCentro');
    var oDivDir = BuscarPorClasse('areaDir');
    //var oDivFim = BuscarPorClasse('anunciosFim');
    //var oDivAnuncios = BuscarPorClasse('anuncios');
    var oDivMenu = BuscarPorClasse('areaEsq');
    //var adGoogle = document.getElementById("adGoogle");
    if(oDivCentro && oDivDir)
    {
		if(Math.abs(oDivCentro.clientHeight) > Math.abs(oDivMenu.clientHeight) )
		{
			oDivDir.style.height = (oDivCentro.clientHeight - 5) + "px";
		} else 
		{
			if(Math.abs(oDivMenu.clientHeight) > Math.abs(oDivCentro.clientHeight))
			{
				oDivDir.style.height = (oDivMenu.clientHeight - 5) + "px";
				oDivCentro.style.height = (oDivMenu.clientHeight - 1) + "px";
			}
			else
			{
				oDivDir.style.height = (oDivDir.clientHeight - 5) + "px";
				oDivCentro.style.height = (oDivDir.clientHeight - 1) + "px";
			}
		}
    }
}

function BuscarPorClasse(sClasse)
{
    var divs = document.getElementsByTagName("DIV");
    for(var x = 0; x< divs.length;x++)
    {
        if(divs[x].className == sClasse)
        {
        return divs[x];
        }
    }
    
    return null;
}

