clicado='';
function PreencheFrames(id, cor, frame, engine, link, vaipara )
	{
	//alert(engine + ' - ' + frame + ' - ' + link);
	if(clicado !=''){
		document.getElementById(clicado).style.color=cor;
	}
	clicado=id;
	//window.frames[frame].document.location.href=engine+'?x='+link;
	document.getElementById(frame).scrolling="no";
	if (vaipara) {
		document.getElementById(frame).src=engine+'?vaipara='+vaipara+'&x='+link;
	} else {
		document.getElementById(frame).src=engine+'?x='+link;
	}
	document.getElementById(frame).scrolling="no";
}

function setClicado (id)
{
	clicado = id ;
	mOverHandler(id , '#f60');
}

function mOverHandler(id, cor)
	{
	document.getElementById(id).style.color=cor;
	}


function mOutHandler(id, cor)
	{
	if(id != clicado){
		document.getElementById(id).style.color=cor;
		}
	}

//CARREGA UMA URL EM UM FRAME PASSADOS COMO PAR?METROS
function CarregaFrame(strFrame, strURL)
	{
	window.parent.frames(strFrame).document.location.href = strURL;
	}

//CARREGA DUAS URLS RESPECTIVAMENTE NOS FRAMES ESQUERDO E DIREITO
function CarregaFrames(strURLLeft, strURLRight)
	{
	window.frames("LeftFrame").document.location.href = strURLLeft;
	window.frames("RightFrame").document.location.href = strURLRight;
	}

//AUMENTA A OPACIDADE DO ELEMENTO PASSADO
function st1(a,id)
	{
	i=a;i+=19;
	document.getElementById(id).style.letterSpacing=i/9;
	document.getElementById(id).style.filter='alpha(opacity='+i+')';
	if (i<90){setTimeout('st1('+i+','+id+')',1)}return(i)
	}

//TORNA TRANSL?CIDO O ELEMENTO PASSADO
function st2(a,id)
	{
	i=a;i-=5;
	document.getElementById(id).style.letterSpacing=i/13
	document.getElementById(id).style.filter='alpha(opacity='+i+')';
	if (i>50){setTimeout('st2('+i+','+id+')',1)}
	}

//FUN??O DE INICIALIZA??O
function aus(Qtd){
for (z=1;z<=Qtd;z++){
document.getElementById(z).style.filter='alpha(opacity=70)';
document.getElementById(z).style.letterSpacing=2;
//document.getElementById(7).style.filter='progid:DXImageTransform.Microsoft.Shadow(direction=130,color=gray,strength=5)'
}
}
//document.write("<div style='z-index:500;position:absolute; top:450;left:10'><b>Last Update: </b>"+ document.lastModified +"</div>");

function introLink(id)
{
	if (id == "ver_intro")
	{
		document.getElementById('pular_intro').style.display = 'block'
		document.getElementById('ver_intro').style.display = 'none'
	}
	else
	{
		document.getElementById('pular_intro').style.display = 'none'
		document.getElementById('ver_intro').style.display = 'block'
	}
}
/*
function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName];
    } else {
        return document[movieName];
    }
}
*/

function createAudioPlayer(){
	var so = new SWFObject("media/swf/FernandoJaegerAudioPlayer.swf", "audioplayer", "18", "21", "9", "#ffffff");
	so.addVariable("mp3","media/swf/02.mp3");
	so.write("flashcontent");
}
function removeAudioPlayer(){
	document.getElementById('flashcontent').innerHTML="";
}
function changeSong(value) {
    document.getElementById('audioplayer').changeSong(value);
}

function stop() {
    document.getElementById('audioplayer').stop();
}

