jQuery.noConflict();

jQuery(document).ready(function($)
{
    $('.imagehoverLink:first').attr('id', 'imagehoverCurrent');
    $('.imagehoverText').css('display', 'none');
    loadText(1);
    loadImage(1);
    $('div#imagehoverdiv').css('display', 'block');
    $('.imagehoverLink').mousemove(function ()
    {
        var title = $(this).attr("title");
        var alt = $('img.imagehover').attr("alt");
        if (title != alt)
        {
            $('.imagehoverLink').removeAttr("id");
            $(this).attr('id', 'imagehoverCurrent');
            loadText(title);
            loadImage(title);
        }

    });
});

function loadImage(n)
{
    var img = new Image();
    jQuery('div#loader').addClass('loading');
    jQuery('img.imagehover').remove();
        jQuery(img).load(function ()
    {
        jQuery(this).hide();
            jQuery('div#loader').removeClass('loading').append(this);
            jQuery(this).fadeIn(800);
        })
    .addClass('imagehover')
    .attr
    ({
          src: 'img/hover/'+n+'.gif',
          alt: n
        });
}

function loadText(n)
{
    jQuery('.imagehoverText').css('display', 'none');
    jQuery(".imagehoverText[title='"+n+"']").css('display', 'inline');
}

