function rt_show_movies(t) {
    $('_status').set('text',"Получено "+t.length+" роликов.") ;
    var c = 0;
    var out = '<table id="Thumbs" ';
    $('VideoData').value  = t.toJSON(); 
    if (t.length > 0) {
        for(var i = 0; i < t.length; i++) {
           
           if (c==0) out+="<tr>";
           out +="<td>";
            out += '<a href="' + t[i].movieLink +'" target="_blank"><img src="' + t[i].thumbnailLink + '" border=0 width="250" height="187"></a>';
            //out += '<img src="' + t[i].thumbnailLink + '" border=0 width="250" height="187">';
            out += '<label><input type="checkbox"  name="checked[]" value="'+t[i].playerLink+'" checked />';
            out += '<b>' + t[i].title + '(' + t[i].size + ')</b></label><br />';
            
            if (t[i].downloadSrcLink) {
               // out += '<a href="' + t[i].downloadSrcLink + '" target="_blank">Скачать</a><br />';
            }
            if (t[i].downloadSrcWithoutExtensionLink) {
               // out += '<a href="' + t[i].downloadSrcWithoutExtensionLink + '" target="_blank">Скачать без расширения</a><br />';
            }
            if (t[i].download3GPLink) {
               // out += '<a href="' + t[i].download3GPLink + '" target="_blank">Скачать видео в формате 3gp</a><br />';
            }
            out +="</td>";
            if (++c==4) {
                  out +="</tr>";
                  c=0;
            }
          
        }
    }
    out +="</table>";
    $('Video').set('html',out);
    
    $('Generate').disabled = false ;
}


function rt_show_movie(t) {
    out = '';
    out += '<div class="news"><div class="razdel">Видео</div><div class="bord"><div class="inf">Автор: <b>' + t.author + '</b> |  Дата: <b>' + t.recordDate + '</b></div>';
    title_str = t.title + '(' + t.size + ')'
    out += '<h1>' +title_str+'</h1>';
    out += '<div class="kontent">' + t.description + '<br/><br/>';
    thumbstr = '<img src="' + t.thumbnailLink + '" width="250" height="187" alt="">'
    out += thumbstr+'<br><br>';
    
    out += '<object height="500" width="500"><param name="movie" value="' + t.playerLink + '"><param name="wmode" value="transparent"><embed src="' + t.playerLink + '" type="application/x-shockwave-flash" wmode="transparent" height="500" width="500"></object><p><a href="' + t.movieLink + '">' + t.author + ': ' + t.title + '(' + t.size + ')</a></p><br>--<br/><br/>';
    if (t.downloadSrcLink) {
        out += '<a href="' + t.downloadSrcLink + '" target="_blank">Скачать</a><br />';
    }
    if (t.downloadSrcWithoutExtensionLink) {
        out += '<a href="' + t.downloadSrcWithoutExtensionLink + '" target="_blank">Скачать без расширения</a><br />';
    }
    if (t.download3GPLink) {
        out += '<a href="' + t.download3GPLink + '" target="_blank">Скачать видео в формате 3gp</a><br />';
    }
    out += '</div><div class="end_news"><a href="' + t.movieLink + '">Рассказать другу</a> | <a href="http://forum.webpark.ru/">Наш форум</a> | <a href="http://www.webpark.ru/send.php">Прислать новость</a> | <a href="javascript:window.external.AddFavorite(\'' + t.movieLink + '\',\'' + t.title + '(' + t.size + '\')">Добавить в избранное</a> | <a href="http://gc.gcl.ru/cgi-bin/faac/gc/in.cgi?faac160&amp;1" target="_blank"><font color="#ef089f">Знакомства</font></a> | Разместил: <a href="javascript:ins(\'Уважаемый, ' + t.author + '\')"><b>' + t.author + '</b></a> </div></div></div>';

    code1 = t.description+"\n\n"+thumbstr
    code2 =  '<embed src="' + t.playerLink + '" type="application/x-shockwave-flash" wmode="transparent" height="500" width="500"><p><a href="' + t.movieLink + '">' + title_str + '</a></p>'+"\n"+"--\n\n";
    code2 += '<a href="' + t.downloadSrcLink + '" target="_blank">Скачать</a>'+"\n"
    code2 += '<a href="' + t.downloadSrcWithoutExtensionLink + '" target="_blank">Скачать без расширения</a>'+"\n"
    code2 += '<a href="' + t.download3GPLink + '" target="_blank">Скачать видео в формате 3gp</a>'+"\n"
    
    out += "<center><form action='http://www.webpark.ru/admin.php' method='post' name=edit_news>"
    out += '<input type="hidden" name="topic" value="Бонус""/>'
    out += "Титл : <input size='50' name='title' value='"+title_str+"'> <br/>"
    out += '<textarea cols="80"  name="text" rows="15">'+ code1  + "</textarea><br/><br/>"
    out += '<textarea cols="80" name="text_more" rows="15">'+ code2  + '</textarea><br/>'
    out += '<input type="submit" name="add" value="Создать бонус"></center></form>'
    document.write(out);  
}

