function ilmenu(atual,qual) {
//	if (1==2) then {
//		submenu1.style.display="none";
//		submenu2.style.display="none";
//		submenu3.style.display="none";
//		submenu4.style.display="none";
//		submenu5.style.display="none";
//		submenu6.style.display="none";
//		submenu7.style.display="none";
//		submenu8.style.display="none";
//		qual.style.display="block";
//	}
}

function ilmenun(qual) {
	qual.className="botao2_n";
}

function ilmenua(qual) {
	qual.className="botao2_a";
}

function ilmenuo(qual) {
	qual.className="botao2_o";
}

function afchat(status) {
	if (status==1) {
		chatligado.style.display="block";
		chatdesligado.style.display="none";
		qmsg.style.display="block";
		qform.style.display="block";
	}
	else {
		chatligado.style.display="none";
		chatdesligado.style.display="block";
		qmsg.style.display="none";
		qform.style.display="none";

	}
	window.open("/look_chat_1.asp?ligado="+status,"mensagens");
}


function abreSlide(site)
{
    var slide = window.open('slide.asp?site='+site, 'slide', 'width=470,height=510,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
    slide.focus();
}

function abreSlide2(perfil)
{
    var slide = window.open('slide2.asp?perfil='+perfil, 'slide', 'width=470,height=510,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
    slide.focus();
}


  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = '#' + clrOver;
	  src.children.tags('a')[0].children.tags('font')[0].color = 'FFFF00';
	}
  }
  function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = '#' + clrIn;
	  src.children.tags('a')[0].children.tags('font')[0].color = 'FFFFFF';
	}
  }
  function mOut2(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = '#' + clrIn;
	}
  }
  function mOvr2(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = '#' + clrOver;
	}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('a')[0].click();
    }
  }
function abre_janela(janela)
{
    var desktop = window.open('janela.asp?foto='+janela, 'janelafoto', 'width=450,height=350,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
    desktop.focus();
}
function abre_semtitulo(nome)
{
    var desktop = window.open( nome, 'fotolog', 'width=600,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
    desktop.focus();
}
	function playvideo(arquivo2)	
	{ 
	var arquivo;
	arquivo = '/images/' + arquivo2;
	arquivo = arquivo.toUpperCase();
	var a=new RegExp( "^/IMAGES/.+\.(AVI|MP3|MID|ASF|MPG|MPEG|WAV)$" );
	var b=new RegExp( "^/IMAGES/.+\.(SWF)$" );
	var c=new RegExp( "^/IMAGES/.+\.(GIF|PGN|JPG|JPEG)$" );
	var d=new RegExp( "^/IMAGES/.+\.(WMV)$" );
	OpenWindow=window.open('', 'playvideo', 'height=350,width=460,toolbar=no,scrollbars=yes,menubar=no,resizable=yes');
	OpenWindow.document.write('<HTML>');
	OpenWindow.document.write('<head>\n');
	OpenWindow.document.write('<' + 'S' + 'cript Language="javascript"><!--\n');
	OpenWindow.document.write('function tamanho() {\n');
		if (c.exec(arquivo) != null )
		OpenWindow.document.write('window.resizeTo(document.MyImagem.width+120,document.MyImagem.height+120);\n');
		OpenWindow.document.write('}\n');
		OpenWindow.document.write('--></' + 'S' + 'cript>\n');
	OpenWindow.document.write('<TITLE>POWERtrix video</TITLE>');
	OpenWindow.document.write('<BODY onload="JavaScript:tamanho();" topmargin=0 leftmargin=0 bgcolor=#000000 link=#FFFFFF text=#FFFFFF vlink=#FFFFFF>');
	OpenWindow.document.write('<table border="0" width="100%" cellspacing="0" cellpadding="2">');
	OpenWindow.document.write('  <tr>');
	OpenWindow.document.write('<td width="15%"><font face="Verdana" size="1"><b>Mídia:</b></font></td>');
	OpenWindow.document.write('    <td width="85%"><font face="Verdana" size="1">' + arquivo + '</font></td>');
	OpenWindow.document.write('  </tr>');
	OpenWindow.document.write('  <tr>');
	OpenWindow.document.write('    <td width="15%"><font face="Verdana" size="1"><b>Formato:</b></font></td>');
	OpenWindow.document.write('    <td width="85%"><font face="Verdana" size="1">Mídia Padrão</font></td>');
	OpenWindow.document.write('  </tr>');
	OpenWindow.document.write('  <tr>');
	OpenWindow.document.write('    <td width="15%">&nbsp;</td>');
	OpenWindow.document.write('    <td width="85%"><a href="JavaScript:window.close();"><font face=Verdana size=1>Fechar Janela</font></a></td>');
	OpenWindow.document.write('  </tr>');
	OpenWindow.document.write('</table>');
	OpenWindow.document.write('<p align=center>');
	if (a.exec(arquivo) != null ) 
		OpenWindow.document.write("<EMBED SRC='" + arquivo + "' AUTOSTART=true width='440'></EMBED>");
	if (b.exec(arquivo) != null ) 
	{
		OpenWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">');
		OpenWindow.document.write('<param name="movie" value="' + arquivo + '">');
		OpenWindow.document.write('<param name="quality" value="high">');
		OpenWindow.document.write('<embed src="' + arquivo + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
		OpenWindow.document.write('</object>');
	}
	if (c.exec(arquivo) != null ) {
		OpenWindow.document.write("<img name='MyImagem' src='" + arquivo+ "'");
	}
	if (d.exec(arquivo) != null )
		{
		OpenWindow.document.write('<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/ en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="256">');
		OpenWindow.document.write('<param name="fileName" value="' + arquivo + '">');
		OpenWindow.document.write('<param name="autoStart" value="false">');
		OpenWindow.document.write('<param name="showControls" value="true">');
		OpenWindow.document.write('<param name="ShowStatusBar" value="true">');
		OpenWindow.document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="' + arquivo + '" name="MediaPlayer1" width=280 height=256 autostart=0 showcontrols=1>');
		OpenWindow.document.write('</object>');
		}

	OpenWindow.document.write('</p>');
	OpenWindow.document.write('</HTML>');
	OpenWindow.document.close();
	}
	function confirmar_link(texto,onde) {
		var volta = confirm(texto);
		if (volta) { 
			window.open(onde,'_self');
		}
	}


