function widgets(nomeLista){
	var montaLista = document.getElementById(nomeLista);
		
	for(var i=0; i<sites.length; i++){
		if(sites[i] == "Reddit"){
			montaLista.innerHTML += '<li><img src="/images/sabesp_memoria_reddit.gif" width="18" height="18" alt="Reddit" border="0"><a target="_blank" href="http://www.reddit.com/login?dest=%2Fsubmit%3Furl%3Dhttp%253A%252F%252F' + endereco + '%252F%26title%3D' + titulo + '">Reddit</a></li>'
		}
		if(sites[i] == "Facebook"){
			montaLista.innerHTML += '<li><img src="/images/sabesp_memoria_facebook.gif" width="16" height="16" alt="Facebook" border="0"><a target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2F' + endereco +'">Facebook</a></li>'
		}
		if(sites[i] == "Delicious"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_delicius.gif" width="16" height="16" alt="Delicious" border="0"><a target="_blank" href="http://del.icio.us/andre_assis?url=' + endereco +'&title=' + titulo +'&notes=' + descricao +'&tags=' + tags +'">Delicious</a></li>'
		}
		if(sites[i] == "Technorati"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_technorati.gif" width="16" height="16" alt="Technorati" border="0"><a target="_blank" href="http://www.technorati.com/faves/?show=blogs&add=' + endereco +'">Technorati</a></li>'
		}
		if(sites[i] == "Yahoo Bookmarks"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_yahoo_bookmark.gif" width="18" height="18" alt="Yahoo Bookmarks" border="0"><a target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&u=' + endereco +'%2F&t=' + titulo +'">Yahoo Bookmarks</a></li>'
		}
		if(sites[i] == "Digg"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_digg.gif" width="16" height="16" alt="Digg" border="0"><a target="_blank" href="http://digg.com/submit?url=' + endereco +'&title=' +  titulo +'">Digg</a></li>'
		}
		if(sites[i] == "MySpace"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_my_space.gif" width="20" height="17" alt="MySpace" border="0"><a target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&u=' + endereco +'&t=' + titulo +'&c=' + descricao +'">MySpace</a></li>'
		}
		if(sites[i] == "Google BookMark"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_goog.gif" width="16" height="16" alt="Google BookMark" border="0"><a target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&bkmk=' + endereco +'&title=' + titulo +'">Google BookMark</a></li>'
		}
		if(sites[i] == "Yahoo MyWeb"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_yahoo_bookmark.gif" width="18" height="18" alt="Yahoo MyWeb" border="0"><a target="_blank" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?Fu=' + endereco +'&t=' + titulo +'">Yahoo MyWeb</a></li>'
		}
		if(sites[i] == "Blog"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_blogger.gif" width="16" height="16" alt="Blogger" border="0"><a target="_blank" href="http://www.blogger.com/add-widget?&infoUrl=' + endereco +'&logoUrl=' + logotipo + '&widget.title=' + titulo +'&widget.content=' + descricao +'">Blogger</a></li>'
		}
		if(sites[i] == "Twitter"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_twitter.gif" width="16" height="16" alt="Twitter" border="0"><a target="_blank" href="http://twitter.com/home/?status=' + titulo +'+' + endereco +'+via+' + descricao +'">Twitter</a></li>'
		}
		if(sites[i] == "Orkut"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_orkut.gif" width="16" height="17" alt="Orkut" border="0"><a target="_blank" href="http://www.orkut.com.br/Scrapbook.aspx">Orkut</a></li>'
		}
		if(sites[i] == "Indique"){
			montaLista.innerHTML +='<li><img src="/images/sabesp_memoria_envie_amigo.gif" width="14" height="10" alt="Envie para um amigo" border="0"><a target="_self" href="/indique_o_site/indique_o_site.asp">Envie para um amigo</a></li>'
		}
	}
}

function abreCompartilhe(nome){
	document.getElementById(nome).style.display = "block";
}

function fechaCompartilhe(nome){
	document.getElementById(nome).style.display = "none";
}
