$("document").load(function(){
  $.preloadCssImages();
}); 

$("document").ready(function() {
  
  $("#error").hide();
  if($.browser.msie && $.browser.version=="6.0")
    $("#error").fadeIn();
  
  $("#error").click(function() {
    $("#error").fadeOut();
  });
  
  $(".menu").mouseover(function() {
    $(this).css({ "background-position": "0px 41px" });
  });
  $(".menu").mouseleave(function() {
    $(this).css({ "background-position": "0px 0px" });
  });
  
  $(".imgColorBox").colorbox({maxWidth:"90%", maxHeight:"90%"});
  $(".vidColorBox").colorbox({iframe:true, innerWidth: 750, innerHeight: 600});

  $("#boxlingua").toggle(function() {
    $("#lingue").fadeIn();
  },
  function() {
    $("#lingue").fadeOut();
  });
  
});
