﻿/// <reference assembly="System.Web.Extensions" name="MicrosoftAjax.js" />

Sys.Application.add_load(animateMenu);

function animateMenu()
{
    var $j = jQuery.noConflict();

    $j(function()
    {
        
        /*
        $(".MainMenu .Item")
        .css( {backgroundPosition: "-118px 0"})
        .mouseover(function() {
        $(this).stop().animate( {backgroundPosition:"(0 0)"}, {duration:500} );
        })
        .mouseout(function() {
        $(this).stop().animate( {backgroundPosition:"(-118px 0)"}, {duration:500} );
        })
        */

        $j(".NavItem").hover(function()
        {
            $j(this).stop().animate({ backgroundPosition: "(0 0)" }, { duration: 250 });
        }, function()
        {
            $j(this).stop().animate({ backgroundPosition: "(-118px 0)" }, { duration: 250 });

        });
    });



}

