var links = [		
	{url: 'https://favorites.live.com/quickadd.aspx?marklet=1&mkt=pt-br&url=##URL##&title=##TITLE##&top=1',	ico: '/script/img/live_ico.gif', 		title: 'Live', 		column: '1', target: '_blank'},
	{url: 'http://del.icio.us/post?url=##URL##&title=##TITLE##', 						ico: '/script/img/delicio_ico.gif', 	title: 'del.icio.us', 	column: '1', target: '_blank'},
	{url: 'http://myweb2.search.yahoo.com/myresults/bookmarklet?t=##TITLE##&u=##URL##', 			ico: '/script/img/yahoo_ico.gif', 		title: 'Yahoo MyWeb', 	column: '1', target: '_blank'},
	{url: 'http://technorati.com/faves?add=##URL##', 							ico: '/script/img/technorati_ico.gif',	title: 'Technorati', 	column: '1', target: '_blank'},
	{url: 'http://digg.com/submit?url=##URL##&title=##TITLE##',			 			ico: '/script/img/digg_ico.gif', 		title: 'Digg',	 	column: '1', target: '_blank'},
	
	{url: 'http://www.google.com/bookmarks/mark?op=edit&bkmk=##URL##&title=##TITLE##', 			ico: '/script/img/goggle_ico.gif', 		title: 'Google', 	column: '2', target: '_blank'},
	{url: 'http://rec6.via6.com/link.php?url=##URL##&titulo=##TITLE##', 					ico: '/script/img/rec6_ico.gif', 		title: 'Rec6', 		column: '2', target: '_blank'},
	{url: 'http://www.facebook.com/share.php?u=##URL##',				 			ico: '/script/img/facebook_ico.gif', 	title: 'Facebook', 	column: '2', target: '_blank'},
	{url: 'http://www.linkk.com.br/submit.php?url=##URL##&title=##TITLE##',					ico: '/script/img/linkk_ico.gif', 		title: 'Linkk',		column: '2', target: '_blank'},
	{url: 'http://www.netscape.com/submit/?U=##URL##&T=##TITLE##', 						ico: '/script/img/netscape_ico.gif', 	title: 'Netscape', 	column: '2', target: '_blank'},

	{url: 'javascript:window.external.AddFavorite(\'##URL##\',\'##TITLE##\')', 			ico: '/script/img/favoritos_ico.gif', 		title: 'Favoritos', 	column: '3', target: '_self'},
	{url: 'http://reddit.com/submit?url=##URL##&title=##TITLE##', 						ico: '/script/img/reddit_ico.gif', 		title: 'reddit', 	column: '3', target: '_blank'},
	{url: 'http://www.stumbleupon.com/submit?url=##URL##&title=##TITLE##', 					ico: '/script/img/stumbleupon_ico.gif', 	title: 'StumbleUpon', 	column: '3', target: '_blank'},
	{url: 'http://www.newsvine.com/_tools/seed?popoff=0&u=##URL##&title=##TITLE##', 					ico: '/script/img/newsvine_ico.gif', 	title: 'Newsvine', 	column: '3', target: '_blank'},
	{url: 'http://www.hugg.com/node/add/storylink?edit[title]=##TITLE##&edit[url]=##URL##&edit[body]=', 		ico: '/script/img/hugg_ico.gif', 	title: 'Hugg', 	column: '3', target: '_blank'},
	
	{url: 'http://www.myspace.com/Modules/PostTo/Pages/?t=##TITLE##&u=##URL##', 		ico: '/script/img/myspace_ico2.gif', 	title: 'My Space', 	column: '4', target: '_blank'},
	{url: 'http://dihitt.com.br?botao=enviar&url=##URL##&title=##TITLE##', 		ico: '/script/img/dihitt_ico.gif', 	title: 'diHITT', 	column: '4', target: '_blank'},
	{url: 'http://ueba.com.br/NovoLink?url=##URL##&titulo=##TITLE##', 					ico: '/script/img/ico_ueba.gif', 	title: 'Ueba', 	column: '4', target: '_blank'},
	{url: 'http://twitthis.com/twit?url=##URL##&title=##TITLE##', 		ico: '/script/img/ico_twitter.gif', 	title: 'Twitter', 	column: '4', target: '_blank'},
	{url: 'http://www.furl.net/storeIt.jsp?u=##URL##&t=##TITLE##', 		ico: '/script/img/ico_furl.gif', 	title: 'Furl', 	column: '4', target: '_blank'}
];
	//* Compartilhe TWITTER: (C) 2007 Chuug. All rights reserved. twitthis.com */
var titlePage = document.title;

function getLink(index){
	
	var url = links[index]['url']
			.replace('##URL##',escape(window.location.href))
			.replace('##TITLE##', escape(utils.encodeUTF8(titlePage)) );
	return url;
}	

function geraBotoesCompartilhe(destino){
	document.getElementById(destino).innerHTML = '<strong>Compartilhe</strong><a href="'+getLink(18)+'" class="twitter" target="_blank">pelo Twitter</a><a href="'+getLink(7)+'" class="face-book" target="_blank">pelo Facebook</a><a href="'+getLink(1)+'" class="delicious" target="_blank">pelo Delicious</a><a href="javascript:envAmigo();" class="email">por email</a>';
}

function compartilharTwitter(){
	document.loaction = getLink(18);
}
function compartilharFaceBook(){
	document.loaction = getLink(7);
}
function compartilharDelicious(){
	document.loaction = getLink(1);
}

