/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

tuneBackgroundOffsets = {

    "lateen": "-200px",
    "igotthe": "-160px",
    "tubdub": "-180px",
    "yotto": "-216px"

};

function initTunes()
{
    $("div#tunes a").click(function()
    {
        parent = $(this).parents("p");
        id = $(this).attr("id");

       $("div#tunes p").each(function()
       {
            if ($(this).css("backgroundPosition") != "-300px")
            {
                $(this).animate({
                    backgroundPosition: "-300px"
                });
            }
       });
       
        $(parent).animate({
            backgroundPosition: tuneBackgroundOffsets[id]
        });

        loadVideo(id);
    });
}

