/** global */
var rtn4p_item          = 3348;
var rtn4p_show_src      = 0;
var rtn4p_show_desc     = 0;
var rtn4p_show_photo    = 0;
var rtn4p_show_align    = 'left';
/** styles */
var rtn4p_class_title   = '';
var rtn4p_class_src     = '';
var rtn4p_class_desc    = '';
var rtn4p_class_photo   = '';
var rtn4p_style_photo   = 'margin-right:10px;';
/** header/footer */
var rtn4p_header        = '<table border="0" cellpadding="5" cellspacing="0" ><tr>';
var rtn4p_footer        = '<'+'/tr><'+'/table><img src="http://nc.redtram.com/px/593.gif" alt="" width="1" height="1" border="0" />';
/** news line */
var rtn4p_line_before   = '<td valign="top" width="50%" style="padding:5px">';
var rtn4p_line_after    = '<'+'/td>';

var rtn4p_title_before  = '';
var rtn4p_title_after   = '';

var rtn4p_src_before    = '';
var rtn4p_src_after     = '';

var rtn4p_desc_before   = '';
var rtn4p_desc_after    = '';

var rtn4p_counter       = 0;
var rtn4p_break_cntr    = 2;
var rtn4p_break_code    = '<'+'/tr><tr valign="top">';

var rtn4p_domain        = 'http://ru.redtram.com/';
var rtn4p_host          = 'http://n4p.ru.redtram.com/';
var rtn4p_photo         = 'http://img2.ru.redtram.com/news/';
var rtn4p_page          = 1;

var rtn4p_data          = '';
var rtn4p_css_styles    = 'td.rtheader{color:#9B9A9A;vertical-align:middle;font: bold 11px Tahoma, Arial, Helvetica, sans-serif;background-image: url(http://img.redtram.com/n4p/ictv_head_bg.gif);background-repeat:no-repeat;width: 543px;height: 25px;}a.rtheader:link,a.rtheader:active,a.rtheader:hover,a.rtheader:visited{color: #656565;font: bold 11px Tahoma, Arial, Helvetica, sans-serif;text-decoration: none;}a.rtheader:hover{color:#ff6600;text-decoration: underline;}a.rttitle:link,a.rttitle:active,a.rttitle:hover,a.rttitle:visited{color: #656565;font:11px Tahoma, Arial, Helvetica, sans-serif;font-weight:normal;text-decoration: none;}a.rttitle:hover{color: #ff6600;text-decoration: underline;}.rtborder2{border-left: 1px solid #f6e6db;border-right: 1px solid #f6e6db;padding-left: 1px;padding-right: 1px;}.rtnews{color: #444444;font: bold 12px Tahoma, Arial, Helvetica, sans-serif;text-decoration: none;}';

var rtn4p_initid        = 'rtn4prr';

var ak = Array();	
var count_ak = 0;	
	
/** do not edit */
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0){return null;}}else{begin += 2;}var end=dc.indexOf(";", begin);if (end==-1){end=dc.length;}return unescape(dc.substring(begin+prefix.length,end));}
function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?";domain="+domain:"")+((secure)?"; secure":"");}
function RedTramCookies(value){var cn="rtn4p";if(value){rtn4p_page=value;}else{var c=getCookie(cn);if(c!=null&&parseInt(c)<=10&&(parseInt(c)+1)<=10){rtn4p_page=parseInt(c)+1;}setCookie(cn,rtn4p_page,"","/");}}RedTramCookies();

var rtn4p_init          = document.getElementById(rtn4p_initid);

function RedTramI(){if(rtn4p_init){rtn4p_init.innerHTML = rtn4p_data;}}
function RedTramH(){rtn4p_data+=rtn4p_header;}
function RedTramF(){rtn4p_data+=rtn4p_footer;RedTramI();}
function RedTramAdd(title,url,src,desc,photo,special){
    rtn4p_counter ++;	
    str=rtn4p_line_before;
    str+=rtn4p_title_before+'<a target="_blank" href="'+rtn4p_domain+'go/'+url+'/n4p/'+rtn4p_item+'/'+ak[count_ak]+'"'+(rtn4p_class_title?' class="'+rtn4p_class_title+'"':'')+'>'+title+'<'+'/a>'+rtn4p_title_after;
    if(rtn4p_show_src){str+=rtn4p_src_before+'<a target="_blank" href="'+rtn4p_domain+'sources/'+src+'/"'+(rtn4p_class_src?' class="'+rtn4p_class_src+'"':'')+'>'+src+'<'+'/a>'+rtn4p_src_after;}
    if(rtn4p_show_photo&&photo!=''){str+='<a target="_blank" href="'+rtn4p_domain+'go/'+url+'/n4p/'+rtn4p_item+'/'+ak[count_ak]+'"><img'+(rtn4p_class_photo?' class="'+rtn4p_class_photo+'"':'')+' src="'+rtn4p_photo+''+photo+'" border=0 align="'+rtn4p_show_align+'"'+(rtn4p_style_photo?' style="'+rtn4p_style_photo+'"':'')+' /><'+'/a>';}
    if(rtn4p_show_desc&&desc!=''){str+=rtn4p_desc_before+'<a target="_blank" href="'+rtn4p_domain+'go/'+url+'/n4p/'+rtn4p_item+'/'+ak[count_ak]+'"'+(rtn4p_class_desc?' class="'+rtn4p_class_desc+'"':'')+'>'+desc+'<'+'/a>'+rtn4p_desc_after;}
    str+=rtn4p_line_after;
    if(rtn4p_counter==rtn4p_break_cntr){str+=rtn4p_break_code;rtn4p_counter=0;}	
    rtn4p_data+=str;

    count_ak = count_ak + 1;
}

if (rtn4p_init) {
    document.write('<style type="text/css">'+rtn4p_css_styles+'<'+'/style>');
    	
    var rt = document.referrer.search('redtram');	
    if(rt != -1) {	
    document.write('<img src="http://rc.redtram.com/'+rtn4p_item+'">');	
    }	
    	    
document.write('<scr'+'ipt language="javascript" type="text/javascript" src="'+rtn4p_host+'?i='+rtn4p_item+'&p='+rtn4p_page+'"><'+'/scr'+'ipt>');
}