$(document).ready(function(){
    /*
    $("a img").mousedown(function(e){
        e.preventDefault();
    });
    
    $(".button-container .button").mouseover(function(){
        $(this).prev().addClass('on');    
        $(this).prev().removeClass('off');
    }).mouseout(function(){
        $(this).prev().addClass('off');    
        $(this).prev().removeClass('on');
    });

    $(".menu-item-container").click(function () {
        //return true;
    });
    */

    $(".button").live('mouseover', function() {
        if (!$(this).hasClass('button-disabled')){
            $(this).attr('src',$(this).attr('src').replace(/-(a|p|n).png$/,'-a.png'));
        } else {
            $(this).attr('src',$(this).attr('src').replace(/-(a|p|n).png$/,'-p.png'));
        }
    }).live('mouseout', function() {
        $(this).attr('src',$(this).attr('src').replace(/-(a|p|n).png$/,'-p.png'));
    });

    $(".button-i").live('mouseover', function() {
        $(this).attr('src',$(this).attr('src').replace(/-(a|p).png$/,'-a.png'));
    }).live('mouseout', function() {
        $(this).attr('src',$(this).attr('src').replace(/-(a|p).png$/,'-p.png'));
    });
    
    $(".menu-item-current .button").each( function() {
        $(this).attr('src',$(this).attr('src').replace(/-(a|p|n).png$/,'-n.png'));
    });

    $('#scn .scns td').mouseover(function () {
        $(this).addClass('hover');
    }).mouseout(function(){
        $(this).removeClass('hover')
    });
    
    $("a img").mousedown(function(e){
        e.preventDefault();
    });


});

