function TamanoTexto(percent){
	if(document.getElementById("textoampliar").style.fontSize == ""){
		document.getElementById("textoampliar").style.fontSize = "100%";
		document.getElementById("textoampliar2").style.fontSize = "100%";
	}
	var numpercent = document.getElementById("textoampliar").style.fontSize.substring(0,3);
	if((percent + parseInt(numpercent)) <= 140 && (percent + parseInt(numpercent)) >= 100) {
		document.getElementById("textoampliar").style.fontSize = (percent + parseInt(numpercent)) + '%';
		document.getElementById("textoampliar2").style.fontSize = (percent + parseInt(numpercent)) + '%';
	}
}

function EnviarA(type)
{
	var title = encodeURIComponent(window.document.title);
	var href = encodeURIComponent(window.document.location.href);
	var components = window.document.location.href.split('/');
	
	var tags = '';
	
	if(components[6] != '')
	{
		tags += components[6]+' ';
	}
	if(components[7] != '')
	{
		tags += components[7]+' ';
	}
	if(components[8] != '')
	{
		tags += components[8]+' ';
	}		
	
	tags = encodeURIComponent(tags);
	
	switch(type)
	{
		case 'meneame' :
		
			url = 'http://meneame.net/submit.php?url='+href;
			break;
			
		case 'delicious' :
		
			url = 'http://del.icio.us/post?url='+href+'&title='+title;
			break;
			
		case 'technorati' :
		
			url = 'http://www.technorati.com/search/'+tags+'?sub=postcosm';
			break;
			
	}
	
	window.open(url);
}


	

	
	
