﻿function feed_head(show_border,show_splite,color_border,color_splite,color_bg_head,color_head_title,font_head_title,fontsize_head_title){
    document.write('<table width="100%" align="center"  border="0" cellpadding="0" cellspacing="0">');
    document.write('<tr><td width="100%" ');
    if(show_border!=""){
				document.write('style=\"border: 1px solid '+color_border+';\"')
		};
    document.write('>');
    document.write('<table width="100%" align="center"  border="0" cellpadding="2" cellspacing="0">');
    document.write('<tr><td align=\"center\" style=\"background-color: '+color_bg_head+';');
    if(show_splite!=""){
				document.write(' border-bottom: 1px solid '+color_splite+';');
    };
    document.write('\">');
}

function feed_title_prep(color_head_desc,font_head_desc,fontsize_head_desc){
    rss_title(color_head_desc,font_head_desc,fontsize_head_desc);
}

function feed_title(text,color_head_desc,font_head_desc,fontsize_head_desc){
    document.write('<span style=\"color: '+color_head_desc
									 +'; font-family: '+font_head_desc
									 +'; font-size: '+fontsize_head_desc
									 +';\">'+text+'</span>');
    document.write('</td></tr>');
}

function feed_body_prep(count,show_splite,color_splite,show_desc,color_bg_body,
												color_body_title,font_body_title,fontsize_body_title,
												color_body_desc,font_body_desc,fontsize_body_desc){
    rss_body(count,show_splite,color_splite,show_desc,color_bg_body,
						 color_body_title,font_body_title,fontsize_body_title,
						 color_body_desc,font_body_desc,fontsize_body_desc);
}

function feed_elem(date,text_title,link,text_desc,show_splite,color_splite,show_desc,color_bg_body,
									 color_body_title,font_body_title,fontsize_body_title,
									 color_body_desc,font_body_desc,fontsize_body_desc){
    document.write('<tr><td width=\"100%\" align=\"left\" style=\"background-color: '+color_bg_body+';');
    if(show_splite!=""){
				document.write(' border-bottom: 1px solid '+color_splite+';');
    }
    document.write(' padding: 2px; padding-left: 5px;\">');
		document.write('<span style=\"color: '+color_body_title
									 +'; font-family: '+font_body_title
									 +'; font-size: '+fontsize_body_title+';\">'+date+'&nbsp;</span>');
    document.write('<a href=\"'+link+'\" style=\"color: '+color_body_title
									 +'; font-family: '+font_body_title
									 +'; font-size: '+fontsize_body_title+';\" target=\"_blank\">'+text_title+'</a><br>');
    if(show_desc!=""){
				document.write('<span style=\"color: '+color_body_desc
											 +'; font-family: '+font_body_desc
											 +'; font-size: '+fontsize_body_desc+';\">'
											 +text_desc+'</span>');
    }
    document.write('</td></tr>');
}

function feed_footer(show_splite,color_splite,color_bg_body){
		document.write('<tr><td align=\"center\" style=\"background-color: '+color_bg_body+';');
    if(show_splite!=""){
				document.write(' border-bottom: 1px solid '+color_splite+';');
    }
		document.write(' padding: 2px; \">');
}

function feed_footer_bottom(){
    document.write('</td></tr>');
}

function feed_bottom(){
    document.write('</table></td></tr></table>');
}
 
