function Download(id, tfid, key) {
    $('table').children('tr[class=sleep]').hide();
    $("#list_item_"+key).css('height', '60px');
    $("#download_"+key).hide();
    $("#preloader_"+key).show();
    $("#frame_"+key).show();
    $("#Iframe_"+key).attr('src', 'http://tfile.ru/forum/viewtopic.php?t='+id);
    setTimeout("getFile('"+tfid+"','"+key+"')", 1000);

}
function getFile(tfid, key){
    $("#download_"+key).show();
    $("#preloader_"+key).hide();

    //Если ссылка не на файл - пересылаем на эту страницу
    if (tfid.indexOf('tfile') != -1)
    {
        $("#Iframe_"+key).attr('src', tfid);
        $("#frame_"+key).show();
        $("#warning_"+key).show();
    }
    else
    {
        window.open( tfid, "_blank" );
    }
}
function getView(id, key) {
    $("#list_item_"+key).css('height', '660px');
    $("#Iframe_"+key).css("height", "600px");
    $("#Iframe_"+key).attr('src', 'http://tfile.ru/forum/viewtopic.php?t='+id);
    $("#warning_"+key).hide();
}
