function HiddenBusca(alvo,valor,botao,imagem,imagem1)
{
	if(document.busca[alvo].value==valor)
	{
	document.busca[alvo].value = '';
	cI(botao,imagem1);
	} else {
	document.busca[alvo].value = valor;
	cI(botao,imagem);
	}
}

function legenda(alvo,legenda,dist)
{
	document.getElementById('mglegenda').innerHTML = '<div style="margin-left:'+dist+'px"><span id="txtLegenda">'+legenda+'</span></div>';
}

function visitar(form)
{
	var onde=form.selectedIndex
	if (form.options[onde].value != 1) window.open(form.options[onde].value,"_top")
}

function PopPortifolio(url)
{
	openPopup(url,'portifolio',599,489,'',true);
}

function pauseNow(alvo){if (document.getElementById(alvo).PlayState == 2) document.getElementById(alvo).Pause();}
function stopNow(alvo){document.getElementById(alvo).Stop();}
function playNow(alvo){document.getElementById(alvo).Play();}

function VideoPlay(alvo)
{
	document.getElementById('video').style.display = 'none';
	document.getElementById('videoHidden').style.display = 'block';
	playNow(alvo);
}
function VideoPause(alvo)
{
	pauseNow(alvo);
}
function VideoStop(alvo)
{
	stopNow(alvo);
	document.getElementById('video').style.display = 'block';
	document.getElementById('videoHidden').style.display = 'none';
}

function VideoPlayPOP(alvo)
{
	playNow(alvo);
}
function VideoPausePOP(alvo)
{
	pauseNow(alvo);
}
function VideoStopPOP(alvo)
{
	stopNow(alvo);
}