<!--
var old;
var old2;
var old3;


function Mostra(object) {
    if (document.getElementById && document.getElementById(object) != null) 
    {
         document.getElementById(object).style.visibility='visible';
         document.getElementById(object).style.display='block';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all) 
    {
        document.all[object].style.zIndex = 100;
        document.all[object].style.visibility = 'visible';
    }
}

function Nascondi(object) {
    if (document.getElementById && document.getElementById(object) != null) {
         document.getElementById(object).style.visibility='hidden';
         document.getElementById(object).style.display='none';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
         document.all[object].style.visibility = 'hidden';
}


function MostraVoce(object) {
	//window.status="object="+object+" - old="+old;
	//window.status="object.substring(1,0)="+object.substring(1,0)+" object="+object+" - old="+old;
	//alert ("object="+object+" - old="+old);
    Mostra(object);
    if (old != null) 
    {
      //if (old.substring(1,0) == object.substring(1,0))
      Nascondi(old);
      if(old == object) old=null;else old = object;
    }
    else
      old=object;
    
}


function MostraVoceMenu(object, liv) {
	//window.status="object="+object+" - old="+old;
	//window.status="object.substring(1,0)="+object.substring(1,0)+" object="+object+" - old="+old;
	//alert ("object="+object+" - old="+old);
    var xOld;
    if (liv==1) xOld = old;
    if (liv==2) xOld = old2;
	if (liv==3) xOld = old3;
    
    
    Mostra(object);
    if (xOld != null) 
    {
      //if (old.substring(1,0) == object.substring(1,0)) Nascondi(old);
      Nascondi(xOld);
      if(xOld == object) xOld=null;else xOld = object;
    }
    else
      xOld=object;
    if (liv==1) old = xOld;
    if (liv==2) old2 = xOld;
    if (liv==3) old3 = xOld;

    
}


function attesa()   {
	Mostra('loading')
	document.location="#loading"
}


function share (network){
	TITLE=document.getElementsByTagName("title").item(0).innerHTML;
	//alert(TITLE);
	PERMALINK=document.location;
	EXCERPT="";
	switch(network){
		case "delicious":
		  url = "http://delicious.com/post?url="+PERMALINK+"&amp;title="+TITLE+"&amp;notes="+EXCERPT+"";
		break;
		case "digg":
		  url = "http://digg.com/submit?phase=2&amp;url="+PERMALINK+"&amp;title="+TITLE+"&amp;bodytext="+EXCERPT+"";
		break;
		case "facebook":
		  url = "http://www.facebook.com/sharer.php?u="+PERMALINK+"&amp;t="+TITLE+"";
		break;
		case "friendfeed":
		  url = "http://www.friendfeed.com/share?title="+TITLE+"&amp;link="+PERMALINK+"";
		break;
		case "linkedin":
		  url = "http://www.linkedin.com/shareArticle?mini=true&amp;url="+PERMALINK+"&amp;title="+TITLE+"&amp;source=BLOGNAME&amp;summary="+EXCERPT+"";
		break;
		case "myspace":
		  url = "http://www.myspace.com/Modules/PostTo/Pages/?u="+PERMALINK+"&amp;t="+TITLE+"";
		break;
		case "reddit":
		  url = "http://reddit.com/submit?url="+PERMALINK+"&amp;title="+TITLE+"";
		break;
		case "segnalo":
		  url = "http://segnalo.alice.it/post.html.php?url="+PERMALINK+"&amp;title="+TITLE+"";
		break;
		case "stumbleupon":
		  url = "http://www.stumbleupon.com/submit?url="+PERMALINK+"&amp;title="+TITLE+"";
		break;
		case "technorati":
		  url = "http://technorati.com/faves?add="+PERMALINK+"";
		break;
		case "tumblr":
		  url = "http://www.tumblr.com/share?v=3&amp;u="+PERMALINK+"&amp;t="+TITLE+"&amp;s="+EXCERPT+"";
		break;
		case "twitter":
		  //url = "http://twitter.com/home?status="+TITLE+"%20-%20"+PERMALINK+"";
		  url = "http://twitthis.com/twit?url="+PERMALINK+"";
		break;
		case "wikio":
		  url = "http://www.wikio.it/vote?url="+PERMALINK+"";
		break;
	}
	window.open(url,"_blank");
}




//-->
