var dspeed=50;
var jj=-1;
var kk=0;
var wds=0;
function iens6exp(){jj++;
	if(kk==0&&mesaj.charAt(jj)=="<"){kk=1;wds=0;
	}else if(kk==1&&mesaj.charAt(jj)==">"){
		kk=0;wds=0;
	}else if(kk==1)wds=0;
	if(kk==0&&mesaj.charAt(jj)!=">"&&jj<=mesaj.length){
		wds=1;iens6div.innerHTML=mesaj.substring(0,jj);}
	if(wds>0&&jj<=mesaj.length)setTimeout("iens6exp()",dspeed);
	else if(jj<=mesaj.length)
		iens6exp();}
function ns4exp(){jj++;
	if(kk==0&&mesaj.charAt(jj)=="<"){kk=1;wds=0;
	}else if(kk==1&&mesaj.charAt(jj)==">"){kk=0;wds=0;
	}else if(kk==1)wds=0;
	if(kk==0&&mesaj.charAt(jj)!=">"&&jj<=mesaj.length){wds=1;ns4div.document.write('<div>'+mesaj.substring(0,jj)+'</div>');ns4div.document.close();}
	if(wds>0&&jj<=mesaj.length)
		setTimeout("ns4exp()",dspeed);
	else if(jj<=mesaj.length)ns4exp();}
function startexp(){
	if(document.getElementById){
		alch=document.getElementById('chthis');
		iens6div=document.getElementById('expdiv');
		iens6div.innerHTML='';
		iens6exp();
	}else if(document.all){
		alch=chthis;iens6div=expdiv;
		iens6div.innerHTML='';
		iens6exp();
	}else if(document.layers){
		ns4div=document.ns4expb0.document.ns4expb1;
		ns4div.document.write('');
		ns4div.document.close();
		ns4exp();}}
var no_menu=1;
function js_menu(main){
	if(!no_menu || main){
		m_goticos.style.display='none';
		m_diarios.style.display='none';
		m_obras.style.display='none';
		m_agenda.style.display='none';
		m_user.style.display='none';
		if(main == 'goticos'){new Effect.Appear('m_goticos');no_menu=null;}
		if(main == 'diarios'){new Effect.Appear('m_diarios');no_menu=null;}
		if(main == 'obras'){new Effect.Appear('m_obras');no_menu=null;}
		if(main == 'agenda'){new Effect.Appear('m_agenda');no_menu=null;}
		if(!main){new Effect.Appear('m_user');no_menu=1;}
}}
function opacidad(objeto){
document.votaciones.votar.value=objeto+" punto(s)";
document.votaciones.rvotar.value=objeto;
for (var i=0;i<objeto;i++){
	testObj = document.getElementById('v'+i);
	testObj.style.opacity = 1;
	testObj.style.filter = 'alpha(opacity=100)';}
if(objeto<5){
for (var i=objeto;i<5;i++)	{
	testObj = document.getElementById('v'+i);
	testObj.style.opacity = 0.40;
	testObj.style.filter = 'alpha(opacity=40)';}}
}
		var a=0;
function cargaDatos(bloc, u, bg, stat){
if(a==0){
contenido = document.getElementById(bloc).innerHTML;
conto=contenido;
document.getElementById(bloc).innerHTML = '<table cellpadding="0" cellspacing="0" border="0">'
+'<tr>'
+'	<td valign="top">'+conto+'<\/td>'
+'	<td valign="top" style="padding-left:8px;-moz-opacity:0.9;opacity:.90;filter:alpha(opacity=90);">'
+'	<table cellpadding="0" cellspacing="0" style="border:1px dashed #000;margin-bottom:8px;" width="100">'
+'		<tr>'
+'			<td class="'+bg+'" style="padding:4px;" nowrap>'
+'			<a href="/'+u+'">Mi ficha<\/a><br>'
+'			<a href="/diarios/'+u+'">Mi diario<\/a><br>'
+'			<a href="/obras/'+u+'">Mis obras<\/a><br>'
+'			<a href="/agenda/'+u+'">Mi agenda<\/a><br><br>'
+'				<a href="\/'+u+'#e_com" onmouseover="ddrivetip(\'Enviar comentario\')" onmouseout="hideddrivetip()"><img src="\/img\/Tu_Cuenta\/comentario.gif" alt=""><\/a>'
+'				<a href="javascript:popupWindow(\'\\/Tu_Cuenta\/mensajes\/escribir\/'+u+'.html\')" onmouseover="ddrivetip(\'Enviar mensaje privado\')" onmouseout="hideddrivetip()"><img src="\/img\/Tu_Cuenta\/mp.gif" alt=""><\/a>'
+'				<a href="#" onmouseover="ddrivetip(\'Denunciar usuario\')" onmouseout="hideddrivetip()"><img src="\/img\/Tu_Cuenta\/denunciar.gif" alt=""><\/a>'
+'			<\/td>'
+'		<\/tr>'
+'	<\/table>'
+'	<\/tr>'
+'<\/table>';
a=1;
b=bloc;
bg2=bg;
document.getElementById('n2'+bloc).className="bg3";
setTimeout("desDatos('"+b+"', '"+bg+"');hideddrivetip()", 5000);
}else{
if(b!=bloc){
desDatos(b, bg2);
cargaDatos(bloc, u, bg);
clearTimeout();}}}
function desDatos(bloc, bg){
if((a==1)&&(b==bloc)){
document.getElementById(bloc).innerHTML = conto;
document.getElementById('n2'+bloc).className=bg;
a=0;}}
