
	$(document).ready(function($) {
		$('a[rel=facebox]').facebox()
	}) 

  $(document).ready(function() { 
  
/*  
	$("input[type='image']").hover(
	  function() {
	    $(this).fadeTo("fast", 0.6);
	  },
	  function() {
	    $(this).fadeTo("fast", 1.0);
	  });
*/	  
	  
	$("div[rel=active]").hover(
	  function() {
	    $(this).fadeTo("fast", 0.6);
	  },
	  function() {
	    $(this).fadeTo("fast", 1,		
			function() {
			   if ($.browser.msie) {
  			     this.style.removeAttribute('filter');
			   }
			}		
		);
	  });
	  
  });


  var flgreload = false;
  
  function forceReload() {
    flgreload = true;
  }
  
  $(document).bind('close.facebox', function() {
    if (flgreload) {
	  flgreload = false;
      window.location.reload( true );
	 }
  });
  
  function forceResize() {
  
    e = document.getElementById('faceboxiframe');
		
	if (e.contentDocument) {
	  e.height = e.contentDocument.body.offsetHeight + 35;
	} else {
      e.height = e.contentWindow.document.body.scrollHeight;
	}
		
  }

  function showProdotti() {
    $("#elencoprodotti").slideDown("slow");
	$("#elencocategorie").slideUp("slow");
  }

  function showCategorie() {
    $("#elencoprodotti").slideUp("slow");
    $("#elencocategorie").slideDown("slow");
  }

