function showEnd(contr, nanuncio, ass, seqend, sfig, vis, bg, inibe)
{
	if (vis == 1){

	switch(bg){
	  case "99":
		largura = 440;
	  break;	  
	}
	
	mostralink = " <IFRAME name=\"endereco\" marginWidth=\"0\" marginHeight=\"0\" 	src=\"endereco.asp?ctr=" + nanuncio + "\" frameBorder=\"0\"  height=\"48\" width=\"" + largura + "\" scrolling=\"no\" ></IFRAME>";
	document.getElementById(nanuncio).innerHTML = mostralink;
	document.getElementById(nanuncio).style.display = 'inline';
	document.getElementById(nanuncio + "act").style.display = 'inline';
	document.getElementById(nanuncio + "no").style.display = 'none';

	}else{
		
	document.getElementById(nanuncio).style.display = 'none';
	document.getElementById(nanuncio + "act").style.display = 'none';
	document.getElementById(nanuncio + "no").style.display = 'inline';
	}
}



function showEndNo(contr, nanuncio, ass, seqend, sfig, vis, bg, inibe)
{
	if (vis == 1){

	switch(bg){
	  case "99":
		largura = 440;
	  break;	  
	}
	
	mostralink = " <IFRAME name=\"endereco\" marginWidth=\"0\" marginHeight=\"0\" 	src=\"enderecono.asp?ctr=" + nanuncio + "\" frameBorder=\"0\"  height=\"48\" width=\"" + largura + "\" scrolling=\"no\" ></IFRAME>";
	document.getElementById(nanuncio).innerHTML = mostralink;
	document.getElementById(nanuncio).style.display = 'inline';
	document.getElementById(nanuncio + "act").style.display = 'inline';
	document.getElementById(nanuncio + "no").style.display = 'none';

	}else{
		
	document.getElementById(nanuncio).style.display = 'none';
	document.getElementById(nanuncio + "act").style.display = 'none';
	document.getElementById(nanuncio + "no").style.display = 'inline';
	}
}




function showAnuncio(contr, nanuncio, ass, seqend, sfig, vis, bg, inibe)
{
	if (vis == 1){

	switch(bg){
	  case "99":
		largura = 440;
	  break;	  
	}
	
	mostralink = " <IFRAME name=\"info\" marginWidth=\"0\" marginHeight=\"0\" 	src=\"maisinfofolder.asp?ctr=" + nanuncio + "\" frameBorder=\"0\"  height=\"370\" width=\"" + largura + "\" scrolling=\"no\" ></IFRAME>";
	document.getElementById(nanuncio + "folder").innerHTML = mostralink;
	document.getElementById(nanuncio + "folder").style.display = 'inline';
	document.getElementById(nanuncio + "anuncio_act").style.display = 'inline';
	document.getElementById(nanuncio + "anuncio_no").style.display = 'none';

	document.getElementById(nanuncio + "email").style.display = 'none';
	document.getElementById(nanuncio + "email_act").style.display = 'none';
	document.getElementById(nanuncio + "email_no").style.display = 'inline';

	document.getElementById(nanuncio + "indique").style.display = 'none';
	document.getElementById(nanuncio + "indique_act").style.display = 'none';
	document.getElementById(nanuncio + "indique_no").style.display = 'inline';

	}else{
		
	document.getElementById(nanuncio + "folder").style.display = 'none';
	document.getElementById(nanuncio + "anuncio_act").style.display = 'none';
	document.getElementById(nanuncio + "anuncio_no").style.display = 'inline';
	}
}


function showEmail(contr, nanuncio, ass, seqend, sfig, vis, bg, inibe)
{
	if (vis == 1){

	switch(bg){
	  case "99":
		largura = 440;
	  break;	  
	}
	
	mostralink = " <IFRAME name=\"email\" marginWidth=\"0\" marginHeight=\"0\" 	src=\"maisinfoemail.asp?ctr=" + nanuncio + "\" frameBorder=\"0\"  height=\"260\" width=\"" + largura + "\" scrolling=\"no\" ></IFRAME>";
	document.getElementById(nanuncio + "email").innerHTML = mostralink;
	document.getElementById(nanuncio + "email").style.display = 'inline';
	document.getElementById(nanuncio + "email_act").style.display = 'inline';
	document.getElementById(nanuncio + "email_no").style.display = 'none';

	document.getElementById(nanuncio + "folder").style.display = 'none';
	document.getElementById(nanuncio + "anuncio_act").style.display = 'none';
	document.getElementById(nanuncio + "anuncio_no").style.display = 'inline';

	document.getElementById(nanuncio + "indique").style.display = 'none';
	document.getElementById(nanuncio + "indique_act").style.display = 'none';
	document.getElementById(nanuncio + "indique_no").style.display = 'inline';

	}else{

	document.getElementById(nanuncio + "email").style.display = 'none';
	document.getElementById(nanuncio + "email_act").style.display = 'none';
	document.getElementById(nanuncio + "email_no").style.display = 'inline';
	}
}



function showIndique(contr, nanuncio, ass, seqend, sfig, vis, bg, inibe)
{
	if (vis == 1){

	switch(bg){
	  case "99":
		largura = 440;
	  break;	  
	}
	
	mostralink = " <IFRAME name=\"indique\" marginWidth=\"0\" marginHeight=\"0\" 	src=\"indique.asp?ctr=" + nanuncio + "\" frameBorder=\"0\"  height=\"260\" width=\"" + largura + "\" scrolling=\"no\" ></IFRAME>";
	document.getElementById(nanuncio + "indique").innerHTML = mostralink;
	document.getElementById(nanuncio + "indique").style.display = 'inline';
	document.getElementById(nanuncio + "indique_act").style.display = 'inline';
	document.getElementById(nanuncio + "indique_no").style.display = 'none';

	document.getElementById(nanuncio + "folder").style.display = 'none';
	document.getElementById(nanuncio + "anuncio_act").style.display = 'none';
	document.getElementById(nanuncio + "anuncio_no").style.display = 'inline';

	document.getElementById(nanuncio + "email").style.display = 'none';
	document.getElementById(nanuncio + "email_act").style.display = 'none';
	document.getElementById(nanuncio + "email_no").style.display = 'inline';

	}else{

	document.getElementById(nanuncio + "indique").style.display = 'none';
	document.getElementById(nanuncio + "indique_act").style.display = 'none';
	document.getElementById(nanuncio + "indique_no").style.display = 'inline';
	}
}