/**
 * @author Citta Computing
 * v. 1.11
 */


$(function()
{
    $('#navMenu')
        .mouseover(function()
          {
            $(this).stop().animate(
            {
              left: 580,
            }, 700, function() {  });

          }
        )
        .mouseout(function()
          {
            $(this).stop().animate(
            {
              left: 470,
            }, 700, function() {  });
          }
        );

    $('.navMenuItem')
        .mouseover(function()
          {
            $(this).stop().animate(
            {
              opacity: 0.99,
            }, 300, function() {  });

          }
        )
        .mouseout(function()
          {
            $(this).stop().animate(
            {
              opacity: 0.5,
            }, 600, function() {  });
          }
        );

    $('#anilink a')
        .mouseover(function(){
            var udspX = parseFloat($(this).css('backgroundPosition'), 10);
            var udspY = 39 - parseFloat($(this).css('font-size'), 10);
            var udspIni = udspX + "px -" + udspY + "px";
            $(this).css({backgroundPosition: udspIni});
            var udspOn = "(150px -" + udspY + "px)";
            $(this).stop().animate({backgroundPosition:udspOn}, {duration:1000});
        })
        .mouseout(function(){
            var udspY = 39 - parseFloat($(this).css('font-size'), 10);
            var udspOff = "(0 -" + udspY + "px)";
            $(this).stop().animate({backgroundPosition:udspOff}, {duration:500});
        });
});


function init() {

    $('#glassCover').css('opacity', '0.60');

    $('.navMenuItem').css('opacity', '0.5');



};


window.onload = init;




