home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 April / Chip_2003-04_cd1.bin / tema / krypta / server / startfeatures.php@Rand=ddd < prev   
Text File  |  2003-02-02  |  19KB  |  370 lines

  1. // <SCRIPT>
  2. Type="";
  3. //var barsize=153;
  4. ToExecute="";
  5. _n=navigator.appName;
  6. _e="Microsoft Internet Explorer";
  7. restype=0;CP=' CellPadding=0 ';CS=' CellSpacing=0 ';B=' Border=0 ';PR='position:relative';AL='align=left';var ArticlesCount=0;var LinksCount=0;var Blue=0;
  8. TextSpace=800;
  9. SetRes(0,0);
  10. w=WindowWidth;
  11. if (w-203-190-25>468) restype=3;if (w-203-190-25<=468) restype=2;if (w<=640) restype=1;
  12. isTop=0;
  13. ArticleDate = new Date();
  14. if (navigator.appName == "Microsoft Internet Explorer") TextSpace= document.body.offsetWidth - (150*2);
  15. else TextSpace= screen.width - (150*2);
  16.  
  17. var inputsize = 18;
  18. if (navigator.appName!="Microsoft Internet Explorer") inputsize=inputsize+0;
  19. VotingAnswer = new Array();
  20. var VotingID=0;
  21. var lefttitles=0;
  22. var ArticlesBarSize=176;
  23.  
  24.  
  25. function Exec(ExecString) {
  26. eval(ExecString); 
  27. }
  28.  
  29. Now = new Date();Dif = new Date();Date1970 = new Date(1970,0, 1, 0, 0);NewTo = new Date(1970,0, 7, 0, 0);
  30. var FlashNum=0;
  31. var ArticleTypes= new Array();
  32.  
  33. var CommentSize='v110';var LastFixedPos=-1;
  34.  
  35. function Article(ID, Title, Comment, Author, AuthEMail, Date,Time, Sub,ParentID,Type, Respawn,Flags) {
  36.  
  37. ArticleTypes = new(Array);
  38.  
  39. ArticleTypes['Article']='Člßnek';
  40. ArticleTypes['News']='News';
  41. ArticleTypes['HowTo']='Nßvod';
  42. ArticleTypes['Description']='Popis';
  43. ArticleTypes['Product']='Recenze';
  44. ArticleTypes['Interview']='Rozhovor';
  45. ArticleTypes['Essay']='┌vaha';
  46. ArticleTypes['Various']='RůznΘ';
  47. ArticleTypes['WebTip']='WWW strßnka';
  48. ArticleTypes['Book']='Kniha';
  49. ArticleTypes['Firm']='Firma';
  50. ArticleTypes['Download']='Download';
  51. ArticleTypes['Researcher']='V²zkumnφk';
  52. ArticleTypes['Press']='Tiskovß zprßva';
  53. ArticleTypes['PRArticle']='PR člßnek';
  54. ArticleTypes['PRPress']='PR tiskovß zprßva';
  55. ArticleTypes['TipsAndTricks']='Tipy a triky';
  56. ArticleTypes['OldNews']='StarÜφ zprßvy';
  57. ArticleTypes['ShortNews']='Flash';
  58. ArticleTypes['Vurnerability_L']='Vurnerability';
  59. ArticleTypes['Album']='Album';
  60. ArticleTypes['Element']='Udßlost';
  61.  
  62.  
  63. var ArtcileType="";
  64. ArticleType=ArticleTypes[Type];
  65. {
  66. if (Date.charAt(0)=="0") Date=Date.substr(1);
  67. if (Date.charAt(2)=="0") if (Date.charAt(1)==".") Date=Date.substr(0,2)+Date.substr(3);
  68. if (Date.charAt(2)==".") if (Date.charAt(3)=="0") Date=Date.substr(0,3)+Date.substr(4);
  69. Day=Date.substr(0,Date.indexOf('.'));
  70. Month=Date.substr(Date.indexOf('.')+1,(Date.lastIndexOf('.')-Date.indexOf('.')-1));
  71. Year=Date.substr(Date.lastIndexOf('.')+1);
  72. NumNotes=0;
  73. NoteStyle="";
  74. ArticleDate.setDate(Day);
  75. ArticleDate.setMonth(Month-1);
  76. ArticleDate.setYear(Year);
  77. AddStr="";
  78.  
  79. if (isIE()) {
  80. if((Now.getTime()-ArticleDate.getTime()) < (NewTo.getTime()-Date1970.getTime()))
  81. {AddStr="<FONT Color=#00aa00><SPAN Style='font-size:80%;'>NovΘ</SPAN></FONT>";}
  82. }
  83.  
  84. if (LastFixedPos != -1) {
  85. if ((LastFixedPos==0) && (IsFlag(Flags,'FixedPos'))) hr();
  86. }
  87. if ((LastFixedPos==1) && (IsFlag(Flags,'FixedPos')==false)) hr(' style="position:relative;top:-8px;"');
  88.  if (IsFlag(Flags,'FixedPos')==false) {
  89.   o('<SPAN Class=LinkHead>'+ArticleType+'');
  90.   if (Type!='Press') o(' <a href="author.php@ID='+AuthEMail+'">'+Author+'</a> ');
  91.   o('<a href=folders.php@ID='+ParentID+' >'+Sub+'</a> ('+Date+') '+AddStr+'</SPAN><br>');
  92.  }
  93.  
  94.  
  95. if ((ItemName != "Home") && (ItemName != "")) o('<LI><DIV style="margin-right:20px;">');
  96. if (Title!="") {
  97.     o('<A Href="articles.php@ID='+ID+'"><SPAN Class=ArticleLink>');
  98.     if (IsFlag(Flags,'FixedPos')) o('<SPAN Style="font-size:110%">');
  99.     o(Title)
  100.     if (IsFlag(Flags,'FixedPos')) o("</SPAN>");
  101.     o('</b></SPAN></a>');
  102. }
  103.  
  104. o('<TABLE Border=0 '+B+' '+CP+' '+CS+'><TR><TD>');
  105. if (IsFlag(Flags,'TitleImage')) { 
  106.     o('<img Name=TitleImage'+ID+' style="matgin-top:10px;margin-left:15px;" height=75 width=100 align=right '+B+'>');
  107.     ToExecute=ToExecute+'document.TitleImage'+ID+'.src="file.php@ParentID='+ID+'&Name=TitleImage&Rel=new";';
  108. }
  109. if (restype>=3) CommentSize='v100'; else CommentSize='v110';
  110. if (IsFlag(Flags,'Small'))  CommentSize='v100';
  111. if (IsFlag(Flags,'FixedPos')) CommentColor="000000"; else CommentColor="707070";
  112. if (Respawn!="") {
  113.     Comment=Comment+"<SPAN CLASS=RespawnAlert> DOPLNĚNO! </SPAN><SPAN Class=RespawnText>"+Respawn+"</SPAN>";
  114. }
  115. o('<DIV Align=Justify><FONT Face=Arial, Arial CE, Sans-Serif CE, Sans-Serif Size=2 Color=#'+CommentColor+'><SPAN Class=LinkComment><SPAN Class='+CommentSize+'>'+Comment+'');
  116. o('</SPAN></FONT></DIV>');
  117.  
  118. o('<TABLE Border=0 Cellspacing=0 CellPadding=0><TR><TD>');
  119. if (IsFlag(Flags,'Serial')) o('<IMG style="margin-right:5px;" border=0 src=images/morefiles.gif Align=left;><TD><a href=morefiles.php@ArticleID='+ID+'><SPAN Style="Font-face:Arial;Font-size:11px;font-weight:bold;margin-top:-5px;"><FONT Color=#505050>Ostatnφ dφly</FONT></SPAN></a>');
  120. o('</TABLE>');
  121. o('</TABLE>');
  122. if ((ItemName != "Home") && (ItemName != "")) o('</DIV>');
  123. if (IsFlag(Flags,'FixedPos')) LastFixedPos=1; else LastFixedPos=0; 
  124. if (IsFlag(Flags,'NoEndMargin')==0) o('<IMG align=center Src=images/space.gif Height=18 '+B+'Width=120><br>');
  125. ArticlesCount++;
  126. if (ItemName != 'Home') if (ArticlesCount==1) LinkBanner("margin-top:-5px;margin-bottom:10px;");
  127.  
  128. }
  129.  
  130. }
  131.  
  132.  
  133.  
  134. function SetCookie (Jmeno, Hodnota, KolikDni, Cesta, Domena)    {
  135.     var KdyVyprsi = new Date();
  136.     KdyVyprsi.setDate(KdyVyprsi.getDate() + KolikDni);
  137.     var Hodnoty = SetCookie.arguments;
  138.     var PocetHodnot = SetCookie.arguments.length;
  139.     var KolikDni = (PocetHodnot>2) ? Hodnoty[2] : null;
  140.     var Cesta = (PocetHodnot>3) ? Hodnoty[3] : null;
  141.     var Domena = (PocetHodnot>4) ? Hodnoty[4] : null;
  142.     var secure = (PocetHodnot>5) ? Hodnoty[5] : false;
  143.     
  144.     document.cookie = Jmeno + "=" +escape(Hodnota) + ((KdyVyprsi == null) ? "" : ("; expires=" + KdyVyprsi.toGMTString())) + ((Cesta == null) ? "" : ("; path=" + Cesta)) + ((Domena == null) ? "" : ("; domain=" + Domena)) + ((secure == true) ? " ; secure" : "");
  145. }
  146.  
  147. function CopyData() {
  148. if (ItemName != "Původnφ člßnek") {
  149.     if (Blue==0) o('<TD>');
  150.  
  151.     }
  152.  
  153.     if (TableNum=="") {
  154.     }
  155.  
  156.     if (TableNum==2) {
  157.     }
  158.  
  159. }
  160.  
  161.  
  162. function o(Str){document.write(Str)}
  163.  
  164. function SetRes(leftmargin,rightmargin){
  165. //    if (isIE()==true) {
  166. //     WindowWidth=document.body.offsetWidth;
  167. //     }
  168. //    else 
  169.     WindowWidth=document.width;
  170.     TextSpace= WindowWidth - leftmargin - rightmargin;
  171.     if (Type == 'Pure') TextSpace=  TextSpace - 70;
  172. //    alert(TextSpace);
  173. }
  174.  
  175. o('<STYLE>');
  176. o('.v140 {font-size:140%;}');o('.v130 {font-size:130%;}');o('.v120 {font-size:120%;}');o('.v110 {font-size:105%;}');o('.v100 {font-size:100%;}');o('.px10 {font-size:10px;}');o('.px11 {font-size:11px;}');o('.px12 {font-size:12px;}');o('.px13 {font-size:13px;}');o('.px14 {font-size:14px;}');
  177. o('.v90 {font-size:90%;}')
  178. o('.v80 {font-size:80%;}')
  179. o('.Code {Font-family:"Courier New";font-size:100%;color:#990000;text-decoration:none; text-align:left;}')
  180. o('.Cath {font-weight:bold;color:#004474;font-size:110%;}')
  181. o('.Cath:hover {color:#6A9EC6 }');
  182. o('.SubCath {Font-family:"Arial CE", "Arial", "Sans-Serif CE", "Sans-Serif";color:#004474;font-size:');
  183. if (restype<=2) o('110%'); else o('120%'); 
  184. o(';text-decoration:none}');
  185. o('U:hover{color:#6A9EC6;font-size:150%}')
  186. o('.SubCath :hover {color:#6a9EC6 }')
  187. o('.SubCaths {margin-left: 0.em;}')
  188.  
  189.  
  190. //Odkazy na clanky
  191. o('.ArticleLink {Font-family:Arial, Arial CE, Sans-Serif CE, Sans-Serif; color:#004474; font-size:95%; font-weight:bold; text-decoration:underline;}');
  192. o('.LinkComment {Font-family:Arial, Arial CE, Sans-Serif CE, Sans-Serif;color:#505050;font-family:arial;}')
  193. o('.LinkComment A {Font-family: Arial, Arial CE, Sans-Serif CE, Sans-Serif;color:#003484;font-family:arial;}')
  194. o('.LinkHead {Font-family: Arial, Arial CE, Sans-Serif CE, Sans-Serif;font-size:70%;color:#505050; }')
  195. o('.LinkHead A {text-decoration:underline; color:#505050}')
  196. o('.RespawnAlert {Font-family: Arial, Arial CE, Sans-Serif CE, Sans-Serif;font-size:90%;font-weight:bold;color:#00aa00;}')
  197. o('.RespawnText {Font-family: Arial, Arial CE, Sans-Serif CE, Sans-Serif;color:#555555;}')
  198.  
  199. o('.NewsTitle {Font-family:Arial,Arial CE, Arial, Sans-Serif CE, Sans-Serif;font-size:105%; color:#004474; font-weight:bold;}')
  200. /o('A .NewsTitle {font-size:97%;}')
  201. o('.FlashText {Font-family:Arial, Arial CE, Sans-Serif CE, Sans-Serif;font-size:12px;color:#606060; line-height:15px; font-family:arial;}')
  202. o('.FlashText A {Font-family: Arial, Arial CE, Sans-Serif CE, Sans-Serif;font-size:13px;color:#004474;font-weight:bold; line-height:15px;font-family:arial;}')
  203. o('.FlashText A . Source {Font-family: Arial, Arial CE, Sans-Serif CE, Sans-Serif;font-size:13px;color:#004474;line-height:15px;font-family:arial;}')
  204. o('.Banner{border-color:#000000 }')
  205. o('</STYLE>');
  206.  
  207. function IsFlag(FlagStr,Flag){
  208. if (FlagStr.indexOf(Flag)>=0) return true;else return false;
  209. }
  210. var Attachedi=0;
  211. function n(text){ if (_n=="Netscape") o(text)}
  212. function ie(text){ if (_n!= "Netscape") o(text)}
  213. function nie(text){ if (_n!=_e) o(text)}
  214. function isIE(){ if (_n==_e) return true; else return false;}
  215. function sw(ie,n){ if (_n==_e) return ie;else return n;}
  216. var SkipLines=0;
  217. function hr(Style) {
  218. if (SkipLines != 0) SkipLines--; else {
  219.     ie('<hr '+Style+' Color=#e0e0e0 Noshade Size=2>');
  220.     nie('<TABLE '+Style+' Width=100% '+CP+' '+CS+' '+B+'><TR><TD><IMG src=images/space.gif height=9><TR><TD bgcolor=#e0e0e0><IMG src=images/space.gif height=2><TR><TD><IMG src=images/space.gif height=9></TABLE>');
  221. }
  222. }
  223.  
  224. function Flash(ID,Title,TextBegin,Respawn,Logo,Date){
  225.     Bull="<img src=images/bull.gif hspace=5 vspace=1 border=0>";
  226.     BullAtTitle="";
  227.     BullAtText="";
  228.     if (Title!="") BullAtTitle=Bull; else BullAtText=Bull;
  229.     Link1='<SPAN Class=NewsTitle>';
  230.     Link2='</SPAN>';
  231.     Link3='';
  232.     if (Respawn=='Yes') {
  233.         Link1="<a href=news.php@ID="+ID+" target=_parent><SPAN Class=NewsTitle>";
  234.         Link2="</SPAN></a>";
  235.         Link3="(<a href=news.php@ID="+ID+" style=\"font-weight:normal;\" target=_parent>...vφce</a>)";
  236.     }
  237.     if (Title!="") o("<TR><TD VAlign=Top>"+BullAtTitle+"</TD><TD>"+Link1+""+Title+""+Link2+"</TD></TR>");
  238.     o("<TR><TD VAlign=Top>"+BullAtText+"</TD><TD><DIV Align=Justify>"+TextBegin+" "+Link3+""+Date+" </a>");
  239. //    hr("STYLE=\"position:relative; z-index:50; margin-top:0px;margin-bottom:0px;\"");
  240.     o("</DIV></TD></TR>");
  241. }
  242.  
  243.  
  244. function br(){o('<br>')}
  245.  
  246.  
  247. function LinkBoxBegin(Title,Picture,Align){
  248.  
  249. o('<TABLE bgcolor="#FFCC99" cellpadding="0" cellspacing="4" width="96%">'); 
  250. o('<tr><td>');
  251. o('<TABLE cellpadding="0" cellspacing="0" border="0" bgcolor="#ff9900" width="100%">');
  252. o('<tr><td align="left" valign="top"><img src="images/r_lh.gif" width="6" height="6" border="0" alt="" align="top">');
  253. o('</td><td height="22" class="holista" rowspan=2>'+Title);
  254. o('</td><td height="22" class="number" rowspan=2 align="right">');
  255. if (Picture!='') o('<img src="'+Picture+'" width="19" height="19" border="0" alt="NejčtenějÜφ člßnky">');
  256. o('</td><td align="right" valign="top"><img src="images/r_ph.gif" width="6" height="6" border="0" alt="" align="top"></td></tr>');
  257. o('<tr><td width="6" valign=bottom><img src="images/r_ld.gif" width="6" height="6" border="0" alt="" valign="bottom" ></td>');
  258. o('<td width="6"  valign=bottom><img align="right" src="images/r_pd.gif" width="6" height="6" border="0" alt="" hspace=0 valign="bottom" ></td></tr>');
  259. o('</table>');
  260. o('<TABLE cellpadding="0"  cellspacing="0" border="0">');
  261.  
  262. }
  263.  
  264. function LinkBoxItem(Text,URL){
  265.  o('<tr><td class="otext"><img src="images/c_oranz_m.gif" width="9" height="9" border="0" alt="*"> <a href="'+URL+'" style="color: #000000; text-decoration:none">'+Text+'</a></td></tr>');
  266. }
  267.  
  268. function LinkBoxEnd(){
  269. o('</td></tr></table></td></tr></table>');
  270. }
  271.  
  272.  
  273.  
  274. function lefttitle(title)
  275. {
  276. lefttitles=lefttitles+1;
  277.  
  278. if (lefttitles != 1) 
  279. {
  280. o('<TR><TD><IMG '+B+' Src=images/space.gif Width=100%  height=7>');
  281. }
  282.  
  283.  
  284. o('<TR><TD BGColor=#808080><IMG '+B+' Src=images/space.gif Width=100% height=1>');
  285. o('<TR><TD BGColor=#DFDFDF><IMG '+B+' Src=images/space.gif Width=100%  height=1>');
  286. o('<TR><TD><IMG '+B+' Src=images/space.gif Width=100%  height=1>');
  287. o('<TR><TD ALign=Right><SPAN Class=LeftItem>'+title+' </SPAN>');
  288. o('<TR><TD><IMG '+B+' Src=images/space.gif Width=100%  height=2>');
  289. o('<TR><TD BGColor=#808080><IMG '+B+' Src=images/space.gif Width=100%  height=1>');
  290. o('<TR><TD BGColor=#DFDFDF><IMG '+B+' Src=images/space.gif Width=100%  height=1>');
  291. }
  292.  
  293. function leftitem(picture,url,text){o('<TR><TD VAlign=Top><IMG Src=images/'+picture+' '+AL+' valign=top hspace=5 vspace=1><SPAN Class=LeftItem><a Classs=LeftItem href='+url+'><FONT Color=#000000>'+text+'</FONT></SPAN></a>');}
  294. function lon(){o('<TR><TD><IMG '+B+' Src=images/space.gif Width=100%  height=3>');o('<TR><TD VAlign=Top>');}
  295.  
  296. function loff(){o('');o('<TR><TD><IMG '+B+' Src=images/space.gif Width=100%  height=3>');}
  297.  
  298. function WhiteBegin(width) {
  299. o('<TABLE Width=143 '+B+' '+CP+' '+CS+' Align=Center>');
  300. o('<TR>');
  301. o('<TD Valign=Top '+AL+' BackGround=images/tree00.gif><IMG HSpace=0 VSpace=0 height=2 width=2 Src=images/tree00.gif '+AL+' valign=top>');
  302. o('<TD Height=2 Valign=Top '+AL+' BackGround=images/treeup.gif><IMG height=2 width=1 HSpace=0 VSpace=0 Src=images/treeup.gif '+AL+' valign=top>');
  303. o('<TD Width=2 Height=2 Valign=Top '+AL+' BackGround=images/tree10.gif><IMG HSpace=0 VSpace=0 Src=images/tree10.gif height=2 width=2 '+AL+' valign=top>');
  304. o('');
  305. n('<TR><TD Valign=Top '+AL+' BackGround=images/treeleft.gif><IMG height=1 Width=2 HSpace=0 VSpace=1 Src=images/treeleft.gif '+AL+' valign=top><TD Valign=Top '+AL+' BGColor=#ffffff><IMG src=images/space.gif><TD Valign=Top '+AL+' width=2 height=1 BackGround=images/treeright.gif><IMG HSpace=0 VSpace=0 width=2 height=1 Src=images/treeright.gif '+AL+' valign=top>');
  306. o('<TR>');
  307. o('<TD Valign=Top '+AL+' Width=2 BackGround=images/treeleft.gif><IMG HSpace=0 height=1 Width=2 VSpace=0 Src=images/treeleft.gif>');
  308. o('<TD Valign=Top '+AL+' BGColor=#ffffff>');
  309. o('<DIV Style="width='+width+'">');
  310. }
  311.  
  312. function WhiteEnd() {
  313. o('</DIV>');
  314. o('');
  315. o('<TD Valign=Top '+AL+' width=2 BackGround=images/treeright.gif><IMG  width=2 HSpace=0 VSpace=0 Src=images/treeright.gif '+AL+' valign=top>');
  316. o('');
  317. n('<TR><TD Valign=Top '+AL+' BackGround=images/treeleft.gif><IMG HSpace=0 VSpace=1 Src=images/treeleft.gif height=1 width=2 '+AL+' valign=top><TD Valign=Top '+AL+' BGColor=#ffffff><IMG src=images/space.gif><TD Valign=Top '+AL+'  width=2 BackGround=images/treeright.gif><IMG HSpace=0 VSpace=0  width=2 Src=images/treeright.gif '+AL+' valign=top>');
  318. o('<TR>');
  319. o('<TD Valign=Top '+AL+' BackGround=images/tree01.gif><IMG height=2 width=2 HSpace=0 VSpace=0 Src=images/tree01.gif '+AL+' valign=top>');
  320. o('<TD Valign=Top '+AL+' BackGround=images/treedown.gif><IMG height=2 width=1 HSpace=0 VSpace=0 Src=images/treedown.gif '+AL+' valign=top>');
  321. o('<TD Valign=Top '+AL+' BGColor=images/tree11.gif><IMG HSpace=0 VSpace=0 Src=images/tree11.gif height=2 width=2 '+AL+' valign=top>');
  322. o('');
  323. o('</TABLE>');
  324. }
  325.  
  326. function ShowParents()
  327. {
  328.     if (Parent1Title=="")     {
  329.         Parent2Title = 'Home';
  330.         Parent2ID = 1;
  331.     }
  332.     if ((Parent1ID !=1) && (Parent2ID !=1)) {
  333.         o('<TABLE width=144 '+CP+' '+B+' '+CS+'><TR><TD bgcolor=#e0e0e0><IMG hspace=3 vspace=3 src=images/whitesmfold.gif '+AL+'><a href=index.php><FONT Face=Verdana Color=#000000><SPAN Style="font-size:12px;'+PR+';top:2px;">Domů</SPAN></FONT></a>');
  334.         o('<TR><TD bgcolor=#e0e0e0><Img height=2 src=images/space.gif></TD></TR>');
  335.         o('<TR><TD bgcolor=#000000><Img src=images/space.gif></TABLE>');
  336.     } 
  337.     ie('<DIV style="width=144;height=300;overflow: scroll;">');
  338.     if ((Parent1ID !=1) && (Parent2ID !=1)) {o('<TABLE width=100% '+CP+' '+CS+'><TR><TD bgcolor=#ffffff><Img height=2 src=images/space.gif></TABLE>');}
  339.     if (Parent2Title != "Tillda") 
  340.         o('<TABLE '+B+' Width=100% '+CS+' '+CP+'><TR><TD Align=Right VALign=Top><IMG width=15 height=32 Src=images/greytree.gif '+AL+' VAlign=Top HSpace=2><TD Width=100% VALign=Top><FONT Size=1> </font><a href=folders.php@ID='+Parent2ID+'><FONT Face="Verdana CE, Verdana, Arial CE, Arial, Sans Serif" style="font-size:13px" Color=#707070>'+Parent2Title+'</a><IMG Src=images/space.gif width=1 height=25 Align=Right><br>');
  341.  
  342.         if (Parent1Title != "")    o('<TABLE '+AL+' VAlign=Top '+B+' Width=100% '+CS+' '+CP+'><TR><TD Width=2><IMG Src=images/space.gif height=2><TD Width=100%><TR><TD VALign=Top '+AL+'><IMG Src=images/greytree.gif '+AL+' VAlign=Top '+B+' HSpace=0><TD VALign=Top><FONT Size=1> </font><a href=folders.php@ID='+Parent1ID+'><SPAN Class=LeftItem><FONT Face="Verdana CE, Verdana, Arial CE, Arial, Sans Serif" style="font-size:13px" Color=#707070>'+Parent1Title+'</FONT></SPAN></a><br>');
  343.                 o('<TABLE '+AL+' VAlign=Top '+B+' Width=100% '+CS+' '+CP+'>');
  344.                     BrothersCount = BrothersNames.length-1;
  345.                     var x = new String();
  346.                     x=document.location.toString();
  347.                     RemStr="REM";
  348.                     if (x.indexOf('articles.php')==-1) RemStr="";
  349.                     for (i=0;i<(BrothersCount);i++) {
  350.                         if (ItemID != BrothersIDs[i]) o('<TR><TD><IMG Src=images/space.gif height=2><TD><TR><TD Width=1 VALign=Top><IMG Src=images/greyicon'+TabName.toLowerCase()+'.gif '+AL+' VAlign=Top HSpace=2 '+B+' ><TD VALign=Top><a href='+TabName.toLowerCase()+'.php@ID='+BrothersIDs[i]+'><FONT Face=Verdana Size=1 Color=#707070><SPAN Class=px11>'+BrothersNames[i]+'</SPAN></FONT>');
  351.                         if (ItemID == BrothersIDs[i]) o('<TR><TD><IMG Src=images/space.gif height=2><TD><TR><TD Width=1 VALign=Top><IMG Src=images/icon'+TabName.toLowerCase()+'.gif '+AL+' VAlign=Top HSpace=2 '+B+' ><TD VALign=Top><'+RemStr+'a href='+TabName.toLowerCase()+'.php@ID='+BrothersIDs[i]+'><FONT Face=Verdana Size=1 Color=#000000><SPAN Class=px11>'+BrothersNames[i]+'</SPAN></FONT>');                    
  352.                     }
  353.  
  354.                 o('</TABLE>');    
  355.         if (Parent1Title != "") o('</TABLE>');    
  356.             
  357.     if (Parent2Title != "Tillda") o('<TD>  </TABLE>');
  358.     ie('</DIV>');
  359. }
  360.  
  361.  
  362. function MostCArticle(Article) {if (Article[0] !=0 ) 
  363. o('<TR><TD VAlign=Top Width=10><IMG VSpace=2 width=16 height=14 Src=images/forum.gif><TD VAlign=Top><a href=articles.php@ID='+Article[0]+'><FONT Color=#000000 Face=Arial, Arial CE, Sans-Serif CE, Sans-Serif Size=2><SPAN Class=px11><b>'+Article[1]+'</b></font></SPAN></a><FONT Color=#c0c0c0 Face=Arial, Arial CE, Sans-Serif CE, Sans-Serif Size=1>  <xSPAN Class=v80></SPAN></font><br><FONT Color=808080 Face=Arial, Arial CE, Sans-Serif CE, Sans-Serif Size=2><SPAN Class=px11>Komentuje nebo hodnotφ ka₧d² <b>'+Math.round(Article[4])+'</b>.</SPAN></font>');}
  364.  
  365. function ArticleLink(Article) {
  366. if (Article[0] !=0 )
  367. o('<TR><TD VAlign=Top Width=10><a href="default.htm"><IMG Border=0 VSpace=2 height=16 width=16 Src=images/iconarticles.gif></a><TD VAlign=Top><DIV Style="width=100;overflow:clip;"><a href=articles.php@ID='+Article[0]+'><FONT Color=#000000 Face=Arial, Arial CE, Sans-Serif CE, Sans-Serif Size=2><SPAN Class=px11><b>'+Article[1]+'</b></font></SPAN></a><FONT Color=#c0c0c0 Face=Arial, Arial CE, Sans-Serif CE, Sans-Serif Size=1> <xSPAN Class=px11>('+Article[4]+')</SPAN></font><br><FONT Color=#a0a0a0 Face=Arial, Arial CE, Sans-Serif CE, Sans-Serif Size=2><SPAN Class=px11>'+Article[3]+' '+Article[2]+'</SPAN></font></DIV>');
  368. }
  369.  
  370.