Variable scope?

Variable scope?

This may be a simple one....

    function () {
        var oldtext = $("#star").text();
    function () {

Obviously, oldtext is not seen in the hover out action... how do make it visible?

Also, being .single a <li> (part of one of many <ul>), is there a way to get the index number of the ul containing it? The <li> all have the same class (.single)