//MEDIA PLAYER
function media(filename, width, height, animation, transparent, autostart, autosize, showstatusbar, showcontrols, showdisplay) {
	/*
	filename = arquivo.wmv ............. <- Nome do arquivo
	width = 320px .................... <- Largura do player
	height = 240px ..................... <- Altura do player
	autostart = true/false ............. <- Auto Play do vídeo/audio
	animation = true/false ............. <-Animação LOAD
	showstatusbar = true/false ......... <- Exibe o status
	showcontrols = true/false .......... <- Exibe os controles
	showdisplay = true/false ........... <- Exibe informações adicionais no player (EX: NOME DO AUTOR E TÍTULO)
	*/
	document.write('<OBJECT ID="MediaPlayer1" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject"  width='+width+' height='+height+'>\n');
	document.write('<PARAM NAME="FileName" VALUE='+filename+'>\n');
	document.write('<PARAM NAME="animationatStart" VALUE='+animation+'>\n');
	document.write('<PARAM NAME="transparentatStart" VALUE='+transparent+'>\n');
	document.write('<PARAM NAME="autoStart" VALUE='+autostart+'>\n');
	document.write('<PARAM NAME="autoSize" VALUE='+autosize+'>\n');
	document.write('<PARAM NAME="showStatusBar" VALUE='+showstatusbar+'>\n');
	document.write('<PARAM NAME="showControls" VALUE='+showcontrols+'>\n');
	document.write('<PARAM NAME="showDisplay" VALUE='+showdisplay+'>\n');
	document.write('<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC='+filename+' width='+width+' height='+height+' AutoStart='+autostart+' showControls='+showcontrols+' showDisplay='+showdisplay+'></EMBED>\n');
	document.write('</OBJECT>\n');
}

//SHOW DIV
function showDiv(obj){
	var div = document.getElementById(obj).style.display;
	if (div=='none'){
		document.getElementById(obj).style.display = 'block';
	}else{
		document.getElementById(obj).style.display= 'none';	
	}
}

//SHOW VIDEO
function showVideo(){
	var html = "";
	html = '<div style="font-size:9px; font-weight:bold; color:#CC0000">CLIQUE DUAS VEZES SOBRE O VÍDEO PARA VISUALIZAR EM TELA CHEIA</div>\n'
	html += '<table align="center" border="0"  cellpadding="4" cellspacing="1" bgcolor="#98B0D8">\n'
	html += '<tr>\n'
	html += '<td bgcolor="#E7ECFA" align="center"><TABLE cellspacing="0" cellpadding="0" border="0">\n'
	html += '<tr>\n'
	html += '<td align="center" valign="middle">\n'

	html += '<OBJECT ID="MediaPlayer1" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject"  width="450px" height="350px">\n'
	html += '<PARAM NAME="FileName" VALUE="video/Hicon.asx">\n';
	html += '<PARAM NAME="animationatStart" VALUE="true">\n';
	html += '<PARAM NAME="transparentatStart" VALUE="false">\n';
	html += '<PARAM NAME="autoStart" VALUE="true">\n';
	html += '<PARAM NAME="autoSize" VALUE="false">\n';
	html += '<PARAM NAME="showStatusBar" VALUE="true">\n';
	html += '<PARAM NAME="showControls" VALUE="true">\n';
	html += '<PARAM NAME="showDisplay" VALUE="false">\n';
	html += '<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="video/Hicon.asx" width="450px" height="350px" AutoStart="true" showControls="true" showDisplay="false"></EMBED>\n';
	html += '</OBJECT>\n';
	
	html += '</td>\n'
	html += '</tr>\n'
	html += '</table></td>\n'
	html += '</tr>\n'
	html += '</table>\n'
	html += '<br />\n'
	
	document.getElementById('video').innerHTML=html;
}

//HIDE VIDEO
function hideVideo(){
	document.getElementById('video').innerHTML="";
}