$(document).ready(function(){ 
        $(document).pngFix(); 

$("#contenuti").toggle(
    function(){
      $("#divcontenuti").animate({ height: 'hide', opacity: 'hide' }, 'slow');   
    },
    function(){
      $("#divcontenuti").animate({ height: 'show', opacity: 'show' }, 'slow');   
    }
  );

$("#pagamento").toggle(
    function(){
      $("#divpagamento").animate({ height: 'hide', opacity: 'hide' }, 'slow');   
    },
    function(){
      $("#divpagamento").animate({ height: 'show', opacity: 'show' }, 'slow');   
    }
  );

$("#recensione").toggle(
    function(){
      $("#divrecensione").animate({ height: 'hide', opacity: 'hide' }, 'slow');   
    },
    function(){
      $("#divrecensione").animate({ height: 'show', opacity: 'show' }, 'slow');   
    }
  );
$("#procontro").toggle(
    function(){
      $("#divprocontro").animate({ height: 'hide', opacity: 'hide' }, 'slow');   
    },
    function(){
      $("#divprocontro").animate({ height: 'show', opacity: 'show' }, 'slow');   
    }
  );
  
  $("#commenti").toggle(
    function(){
      $("#divcommenti").animate({ height: 'hide', opacity: 'hide' }, 'slow');   
    },
    function(){
      $("#divcommenti").animate({ height: 'show', opacity: 'show' }, 'slow');   
    }
  );
  
});


function form_check(myForm){
  var myVar = myForm.cerca.value
  
  if (myVar.length < 4){
  alert("Immettere  un valore di almeno 4 caratteri !")
  return  (false);
  }
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

