
$(document).ready(
function()
{
    $("#movrefmtop>a").click(function(){ShowTab(this);});
    $(".refdl2>dt img").mousemove(function(){ShowIcon(this);});
    $(".refdl2>dt img").mouseout(function(){RemoveIcon(this);});
    $("#picon").mousemove(function(){this.style.display="";});
    $("#picon").click(function(){document.location.href=$(this).attr("href");});
}
);

function ShowTab(obj)
{
    $("#movrefmtop>a").removeClass("acurrent");
    $(obj).addClass("acurrent");
}

function ShowIcon(obj)
{
    var picon = $("#picon");
    picon.css("display","");
    var pos = $(obj).offset();
    var picontop = (pos.top+30)+"px";
    var piconleft = (pos.left+50)+"px";
    picon.css({ top: picontop, left: piconleft });
    picon.attr("href",$(obj).parents("a").attr("href"));
}

function RemoveIcon(obj)
{
    $("#picon").css("display","none");
}