home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 April / Chip_2003-04_cd1.bin / tema / krypta / server / features.php@version=1621 < prev    next >
Text File  |  2003-02-02  |  47KB  |  870 lines

  1. // 
  2. //<comentar>
  3. //
  4.  
  5. EventsCount=0;
  6.  
  7. function TextEnd() {
  8.     o('<DIV Align=Right><i><FONT Size=2 Face=Arial Color=#000000><SPAN Style="font-size:90%"><br>'+AuthorName+'<br>'+AuthorDesc+'</SPAN></FONT></i></DIV><br>');
  9.     Blue=1;
  10.     o('<TR><TD>');
  11. }
  12.  
  13. function Banner(Position, Style) {
  14. }
  15.  
  16. function ArticleBanner_bigres(Style) {
  17. }
  18.  
  19. function ArticleBanner_smallres(Style) {
  20. }
  21.  
  22.  
  23. function LinkBanner(Style) {
  24. }
  25.  
  26. function OtherBanner(Style) {
  27. }
  28.  
  29.  
  30. //!--- <NOFRAMES>
  31.  
  32. // <SCRIPT> 
  33. o('<S'+'TYLE>');
  34. o('    .SeeAlso {font-family:"Verdana","Verdana CE","Arial CE","Arial","Sans-Serif";font-size:80%;color:#004474;text-decoration:underline;}')
  35. o('    .LinkItem {list-style-image: url(images/bull.gif);}')
  36. o('    .ElementItem {list-style-type:circle; }')
  37. o('    .TextOL {margin-top:-7px; color:#226694}')
  38. o('    .LIText {color:#000000}')
  39. o('.AuthorDesc {font-size:11px; color:#000000}');
  40. o('.AuthorDesc A {Color:#000000}');
  41. o('    samp {font-family:"Arial CE, Arial, Sans-Serif CE, Sans-Serif";Font-size:1em;font-weight:bold;}')
  42. o('    .Cite {font-family:"Arial CE","Arial","Sans-Serif";font-size:110%;color:#bb0000;font-weight:bold;}')
  43. o('    .Cite B {color:#000000;}')
  44. o('    .AboutAuthor A {color:#000000;}')
  45. o('    A Code {color:#990000;text-decoration:none;}')
  46. o('    Strong { letter-spacing: 1px;font-family:"Arial CE", "Arial", "Sans-Serif CE"," Sans-Serif";font-weight:900;color:#404040}')
  47. o('    .Strong { letter-spacing: 1px;font-family:"Arial CE", "Arial", "Sans-Serif CE"," Sans-Serif";font-weight:900;color:#404040}')
  48. o('    .Small { letter-spacing: 0px;font-family:"Verdana CE", "Verdana", "Arial CE", "Arial", "Sans-Serif CE"," Sans-Serif";font-size:80%; color:#808080}')
  49. if (Type != 'Pure') o('    .Paragraph { font-family :"Verdana CE", "Verdana", "Arial CE", "Arial", "Sans-Serif CE", "Sans-Serif";color:#000000;margin-top: 1em;}')
  50.     else o('    .Paragraph {font-family :"Verdana CE", "Verdana", "Arial CE", "Arial", "Sans-Serif CE", "Sans-Serif";color:#000000;margin-top: 1em;margin-right: 2em;}')
  51. o('    .Intro A {font-family: "Verdana"," Verdana CE", "Arial CE", "Arial", "Sans Serif";color:#8C0010}')
  52. o('    .Intro A:hover {font-family: "Verdana"," Verdana CE", "Arial CE", "Arial", "Sans Serif";color:#9C0020}')
  53. o('    .Paragraph A {font-family: "Verdana"," Verdana CE", "Arial CE", "Arial", "Sans Serif";color:#004474;}')
  54. o('    .Sign {font-family: "Verdana"," Verdana CE", "Arial CE", "Arial", "Sans Serif";color:#00000;}')
  55. o('    .Sign A {font-family: "Verdana"," Verdana CE", "Arial CE", "Arial", "Sans Serif";color:#000000;}')
  56. o('    .Paragraph Table {font-family: "Verdana"," Verdana CE", "Arial CE", "Arial", "Sans Serif";color:#004474; border: 0px; background-color:#226694; font-size:90%}')
  57. o('    .Paragraph Table THead {font-family: "Verdana", "Arial CE", "Arial", "Sans Serif";color:#FFFFFF; text-weight:normal; border: 0px; background-color:#226694; font-size:100%}')
  58. o('    .Paragraph Table THead TD {background-color:#226694;}')
  59. o('    .Paragraph Table TD {background-color:#F9F9F9; margin-left:10px;margin-right:10px;}')
  60. o('    .Paragraph PRE {font-size:100%; color:#440044;}')
  61. o('    .Question {font-size:100%; color:#115584; font-style:italic;}')
  62. o('    .Paragraph A:hover {font-family: "Verdana"," Verdana CE", "Arial CE", "Arial", "Sans Serif";color:#4387b4;}')
  63. o('    .Intro { font-family: "Verdana"," Verdana CE", "Arial CE", "Arial", "Sans Serif";xfont-size:150%;xfont-weight:700;color:#004474;margin-top: 0em;margin-left: 2px;margin-bottom:-20px;}')
  64. o('    .Comment {font-family: "Verdana, Arial CE, Arial, Sans-Serif CE, Sans-Serif", "Sans-Serif";font-size:12px;'+PR+';}')
  65. o('    .Headline {font-family:"Arial CE", "Arial", "Sans-Serif CE"," Sans-Serif";margin-top: 1.4em;margin-bottom: 0.9em;remmargin-top: 27px;remmargin-bottom: 12px;color:#006A9B;font-weight:900;font-size:90%;}')
  66. o('    .FolderHead {font-family:"Arial CE", "Arial", "Sans-Serif CE", "Sans-Serif";font-weight:bold;font-size:230%;color:#004474;margin-top: 0.5em;}')
  67. o('    .Section {font-family:"Arial CE", "Arial", "Sans-Serif CE", "Sans-Serif";font-weight:normal;font-size:190%;color:#004474;margin-top: 0.5em;}')
  68. o('    .FolderLinkTitle {font-family:"Arial CE", "Arial", "Sans-Serif CE", "Sans-Serif";font-weight:bold;font-size:95%;color:#004474;}')
  69. o('    .Title {font-family:"Arial CE", "Arial", "Sans-Serif CE", "Sans-Serif";font-weight:900;color:#006A9B; font-size:150%; margin-bottom:10px;}')
  70. o('    .Input {font-family:"Arial CE", "Arial", "Sans-Serif CE", "Sans-Serif";color:#000000;font-size:13px;}')
  71. o('    .SystemFont {font-family: "Verdana CE, Verdana, Arial CE, Arial, Sans Serif", "Tahoma CE", "Arial CE, Arial, Sans-Serif CE, Sans-Serif", "Sans-Serif";font-size:100%;color:#F0000;}')
  72. o('    .LighterLinkHead {font-family:"Arial CE, Arial, Sans-Serif CE, Sans-Serif";font-size:80%;color:#a9a9a9;}')
  73. o('    .NaviInfo {font-family:"Arial CE" , "Arial", "Sans-Serif CE", "Sans-Serif";font-size:100%;color:#a0a0a0;margin-top: 0.5em;margin-bottom: 0.5em;}')
  74.  
  75. o('    .DownloadBox {background-color:#909090}')
  76. o('    .DownloadBox TABLE {background-color:#e0e0e0}')
  77. o('    .DownloadBox TABLE TD {font-family:"Verdana", "Arial CE", "Arial"; font-size:60%;}')
  78. o('    .DownloadBox TABLE TD A {font-weight:bold; color:#000000}')
  79.  
  80. o('    .SectionsBox {background-color:#c0c0c0}')
  81. o('    .SectionsBox TD {background-color:#FEFEE1}')
  82.  
  83. o('</STYLE>');
  84.  
  85. urlTop="";
  86. bTop="";
  87. ArticlesBarSize=176;
  88.  
  89. function Exec(ExecString) {
  90. eval(ExecString); 
  91. }
  92.  
  93.  
  94. function BottomBanner() {
  95. /*o('
  96. <TABLE ');
  97. ie(' Align=Center ');
  98. n(' ');
  99. o(' '+B+' '+CP+' '+CS+'><TR><TD><img src=images/advert.gif><TD><a href='+urlBottom+' ><IMG Border=1 Class=Banner Width=468 Name=imgBottomBanner Height=60 Src='+bBottom+'></TABLE>');*/
  100. }
  101.  
  102. function SquareBanner1() {
  103. o('<CENTER><a href='+urlSquare1+' ><IMG Border=1 Class=Banner Name=imgSquareBanner1 Width=125 Height=125 Src='+bSquare1+'></CENTER>');
  104. }
  105.  
  106. function Program(ID, Title, Comment, Date, Info, FileType, Respawn, Flags) {
  107.  
  108. DownloadTypes = new(Array);
  109.  
  110. DownloadTypes['']='Člßnek';
  111.  
  112. //if (isIE()) 
  113. {
  114.  
  115. if ((ItemName != "Home") && (ItemName != "")) o('<LI><DIV style="margin-right:20px;">');
  116. if (Title!="") {
  117.     o('<A Href="downloads.php@ID='+ID+'"><SPAN Class=ArticleLink>');
  118.     o(Title)
  119.     o('</b></SPAN></a>');
  120. }
  121.  
  122.  
  123. o('<TABLE Border=0 width=100% '+B+' '+CP+' '+CS+'><TR><TD>');
  124. if (IsFlag(Flags,'TitleImage')) 
  125.     o('<img Name=TitleImage'+ID+' style="matgin-top:10px;margin-left:15px;" height=75 width=100 align=right '+B+'>');
  126.     ToExecute=ToExecute+'document.TitleImage'+ID+'.src="file.php@ParentID='+ID+'&ParentType=7&Name=TitleImage&Rel=new";';
  127. }
  128. if (restype>=3) CommentSize='v100'; else CommentSize='v110';
  129. //if (IsFlag(Flags,'Small'))  
  130. CommentSize='v100';
  131. if (IsFlag(Flags,'FixedPos')) CommentColor="000000"; else CommentColor="707070";
  132. if (Respawn!="") {
  133.     Comment=Comment+"<SPAN CLASS=RespawnAlert> DOPLNĚNO! </SPAN><SPAN Class=RespawnText>"+Respawn+"</SPAN>";
  134. }
  135. 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+'');
  136. o('</SPAN></FONT></DIV>');
  137. o('</TABLE>');
  138. if ((ItemName != "Home") && (ItemName != "")) o('</DIV>');
  139. //if (IsFlag(Flags,'NoEndMargin')==0) o('<IMG align=center Src=images/space.gif Height=18 '+B+'Width=120><br>');
  140. DownloadsCount++;
  141. //ArticlesCount++;
  142. if (ItemName != 'Home') if (DownloadsCount==1) LinkBanner("margin-top:-5px;margin-bottom:10px;");
  143.  
  144. }}
  145.  
  146.  
  147. function SquareBanner2() {
  148. o('<CENTER><a href='+urlSquare2+' ><IMG Border=1 Name=imgSquareBanner2 Class=Banner Width=125 Height=125 Src='+bSquare2+'></CENTER>');
  149. }
  150.  
  151.  
  152. function AddCommentHead() {
  153.     o('<FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=5 Color=#00447>Komentß° ke Φlßnku</FONT><br><REM hr Color=#dbdbdb Noshade Size=2>');
  154. function FolderHead(Title, Comment) {
  155.     o('<FONT Size=1><DIV Class=FolderHead>'+Title+'</DIV></FONT>');
  156.     if (document.title==WebName) document.title=Title;
  157.      if (ItemID != "") o('<TABLE '+CP+' '+CS+' style="'+PR+';left:'+sw(4,4)+'px;top:'+sw(11,11)+'px;" Align=right '+B+'><TR><TD width=10 xbgcolor=#E7E7E7><img width=14 height=18 src=images/greyleft.gif hspace=0 vspace=0 '+B+' align=right><TD bgcolor=#E0E0E0><a href=folders.php@ID='+Parent1ID+' style="font-size:12px;color:#000000;font-family:Verdana, Arial, Sans-Serif;"><IMG width=15 height=14  src=images/upfold.gif '+AL+' '+B+' vspace=2><SPAN style="font-size:12px;">'+ParentTitle+'</SPAN></a><TD xbgcolor=#E0E0E0 width=10><img src=images/greyright.gif width=17 height=18 hspace=0 vspace=0 '+B+' '+AL+'></TABLE>');
  158.      br();
  159.     hr();
  160.     o('<IMG src=images/wheel1.gif Name=wheel Style="position:absolute;left:175px;top:183px;z-index:-50;">');
  161.         o('<DIV Align=Justify><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#a8a8a8>'+Comment+'</FONT></DIV>');
  162.  
  163. function Section(Str,Comment,Flags) {
  164.     o('<FONT Size=1><DIV Class=Section>'+Str+'</DIV></FONT>');
  165.     if (Comment!="undefined") o('<DIV Align=Justify><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#a8a8a8>'+Comment+'</FONT></DIV>');
  166.  
  167.  
  168. var TitleStr="";
  169.  
  170. function ArticleHead(Title, Author, AuthEMail, Date, Time, Type) {
  171.     if (ItemName != "P∙vodnφ Φlßnek") hr();
  172. if (Date.charAt(0)=="0") Date=Date.substr(1);
  173. if (Date.charAt(2)=="0") if (Date.charAt(1)==".") Date=Date.substr(0,2)+Date.substr(3);
  174. if (Date.charAt(2)==".") if (Date.charAt(3)=="0") Date=Date.substr(0,3)+Date.substr(4);
  175. //if (Type != "Pure") 
  176. if (InIFrame != "Yes") if (ItemID != "") o('<TABLE '+CP+' '+CS+' style="position:relative;top:-9px;'+sw('xright:153px;','xleft:430;')+'zindex:5" Align=right '+B+'><TR><TD width=10 xbgcolor=#E7E7E7><img HEIGHT=18 WIDTH=14 src=images/downgreyleft.gif hspace=0 vspace=0 '+B+' align=right><TD bgcolor=#E0E0E0><a href=folders.php@ID='+Parent1ID+' style="font-size:12px;color:#000000;font-family:Verdana, Arial, Sans-Serif;"><IMG src=images/upfold.gif '+AL+' '+B+' vspace=2>'+ParentTitle+'</font></a><SPAN Style="font-size:12px;color:#000000;font-family:Verdana, Arial, Sans-Serif;"> | '+Type+' | '+Author+' '+Date+'</SPAN><TD xbgcolor=#E0E0E0 width=10><img src=images/downgreyright.gif width=17 height=18  hspace=0 vspace=0 '+B+' '+AL+'></TABLE>');
  177.  
  178.  
  179.  
  180. //if (TextSpace<580) TitleStr=TitleStr+'margin-top:25px;margin-bottom:9px;';
  181. //if (TextSpace>580) TitleStr=TitleStr+'margin-top:11px;margin-bottom:9px;';
  182. TitleStr='<DIV Class=Title>'+Title+'</DIV>';
  183.  
  184. //if (Type=='Pure') if (isIE()) o(''+TitleStr)
  185.  
  186.  
  187. if (document.title==WebName) document.title=Title;
  188.  
  189.  
  190. function ArticleEnd()
  191. {
  192.     o('<TR><TD>');
  193.     o('<TABLE border=0 width=100% '+CP+' '+CS+' '+B+'><TR><TD>');
  194.  
  195.  if (Type != "Pure") {if (ItemID != "") 
  196.  if (InIFrame != "Yes") o('<br><TABLE '+CP+' '+CS+' style="'+PR+';left:-3px;top:-7px;" Align=right '+B+'><TR><TD width=10 xbgcolor=#E7E7E7><img HEIGHT=18 WIDTH=14 src=images/greyleft.gif hspace=0 vspace=0 '+B+' align=right><TD bgcolor=#E0E0E0 valign=top><a style="'+PR+';xtop:-2px;font-size:12px;color:#000000;font-family:Verdana, Arial, Sans-Serif;" href=#top>Nahoru</a><SPAN Style="font-size:12px;color:#000000;font-family:Verdana, Arial, Sans-Serif;"> | </SPAN><TD bgcolor=#E0E0E0><a href=folders.php@ID='+Parent1ID+' style="font-size:12px;color:#000000;font-family:Verdana, Arial, Sans-Serif;"><IMG '+AL+' src=images/upfold.gif '+B+' vspace=2>'+ParentTitle+'</font></a><TD xbgcolor=#E0E0E0 width=10><img src=images/greyright.gif hspace=0 vspace=0 '+B+' '+AL+'></TABLE>');
  197.  if (InIFrame != "Yes") hr();
  198.     }
  199.  
  200.     o('</TABLE>');
  201.     o('<TR><TD>');
  202.  
  203.     CopyData();
  204. }
  205.  
  206. function FoldersBegin(){
  207.     o('<TABLE width='+(TextSpace-20)+' '+B+'><TR><TD VAlign=Top Width=5><IMG Src="images/myfold.gif" '+AL+' VALign=Top><TD>');
  208.     o('<ul Class=LinkItem>');
  209. }
  210.  
  211. var FoldersCount=0;
  212.  
  213. function Source() { 
  214.     hr();
  215.     o('<TABLE '+CP+' '+CS+' style="position:relative;top:-7px;z-index:5" xAlign=left '+B+'><TR><TD width=10><img HEIGHT=18 WIDTH=14 src=images/downgreyleft.gif hspace=0 vspace=0 '+B+' align=right><TD bgcolor=#E0E0E0><SPAN Style=\"font-size:12px;color:#000000;font-family:Verdana, Arial, Sans-Serif;position:relative;top:-2px;\">Originßl a vφce informacφ</SPAN><TD width=10><img src=images/downgreyright.gif width=17 height=18  hspace=0 vspace=0 '+B+' '+AL+'></TABLE>');
  216.     o('<TABLE Border=0><TR><TD VAlign=Top><IMG Src=images/arrow.gif><TD> <TD>');
  217.     o('<a href='+SourceURL+'><FONT Face=Verdana Size=2 Color=#004474>'+SourceName+'</FONT></a><br>');
  218.     if (SourceURL != "") o('<a href='+SourceURL+'><FONT Face=Verdana Size=2 Color=#990000><SPAN Class=Code>'+SourceLink+'</SPAN></FONT></a>');
  219.     o('</TABLE>');
  220. }
  221.  
  222. function Folder(ID, Title, Comment, SubItemsCount) {
  223.     o('<LI><A Href="folders.php@ID='+ID+'"><FONT Color=#004474 Size=3><SPAN Class=FolderLinkTitle>'+Title+'</SPAN></a> ');
  224.     o('<br></b><DIV Align=Justify><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#a0a0a0>'+Comment+'</FONT><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=1 Color=#d0d0d0></font></DIV>');
  225.     o('<IMG align=center Src=images/space.gif Height=6 '+B+'    Width=120><br>');
  226.     FoldersCount++;
  227.     if (FoldersCount==1) LinkBanner("margin-top:0px;margin-bottom:10px;")
  228. }
  229.  
  230. function FoldersEnd() {
  231.     if (FoldersCount !=0) 
  232.     o('</TABLE>');
  233. }
  234.  
  235. function ArticlesBegin(){
  236.     
  237.     if (FoldersCount != 0) hr();
  238.     o('<TABLE  '+CP+' '+B+' xWidth=100% '+CS+'><TR><TD>');
  239.     o('<TABLE   xWidth=100% '+B+'  '+CS+' '+CS+'><TR><TD VALign=Top><br><IMG Src=space.gif width=35 height=2><br><IMG Src="images/file.gif" '+AL+' VALign=Top></TD><TD>');
  240.     o('<ul Class=LinkItem style="margin-top:-20px;">');
  241. }
  242.  
  243. function EventsBegin(){
  244.     if (FoldersCount != 0) hr();
  245.     o('<TABLE  '+CP+' '+B+' xWidth=100% '+CS+'><TR><TD>');
  246.     o('<TABLE  xWidth=100% '+B+'  '+CS+' '+CS+'><TR><TD VALign=Top><rem IMG Src="images/file.gif" '+AL+' VALign=Top><br><IMG Src=space.gif width=38 height=2><TD>');
  247.     o('<ul Class=LinkItem style="margin-top:-20px;">');
  248. }
  249.  
  250. function EventsEnd() {
  251.     o('</UL></DIV></TABLE>');
  252.     if (EventsCount==0) br();
  253.     o('</TABLE>');
  254.     hr('style="position:relative;top:-'+sw(0,10)+'px;"');
  255. }
  256.  
  257. function Event(ID, Title, Comment, DateTime, Manager, Place, Respawn, Flags) {
  258.  
  259. EventTypes = new(Array);
  260.  
  261. EventTypes['']='Člßnek';
  262.  
  263. //if (isIE()) 
  264. {
  265.  
  266. if ((ItemName != "Home") && (ItemName != "")) o('<LI><DIV style="margin-right:20px;">');
  267. if (Title!="") {
  268.     o('<A Href="event.php@ID='+ID+'"><SPAN Class=ArticleLink>');
  269.     o(Title)
  270.     o('</b></SPAN></a>');
  271. }
  272.  
  273.  
  274. o('<TABLE Border=0 '+B+' '+CP+' '+CS+'><TR><TD>');
  275. if (IsFlag(Flags,'TitleImage')) 
  276.     o('<img Name=TitleImage'+ID+' style="matgin-top:10px;margin-left:15px;" height=75 width=100 align=right '+B+'>');
  277.     ToExecute=ToExecute+'document.TitleImage'+ID+'.src="file.php@ParentID='+ID+'&Name=TitleImage&Rel=new";';
  278. }
  279. if (restype>=3) CommentSize='v100'; else CommentSize='v110';
  280. if (IsFlag(Flags,'Small'))  CommentSize='v100';
  281. if (IsFlag(Flags,'FixedPos')) CommentColor="000000"; else CommentColor="707070";
  282. if (Respawn!="") {
  283.     Comment=Comment+"<SPAN CLASS=RespawnAlert> DOPLNĚNO! </SPAN><SPAN Class=RespawnText>"+Respawn+"</SPAN>";
  284. }
  285. 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+'');
  286. o('</SPAN></FONT></DIV>');
  287. o('</TABLE>');
  288. if ((ItemName != "Home") && (ItemName != "")) o('</DIV>');
  289. if (IsFlag(Flags,'NoEndMargin')==0) o('<IMG align=center Src=images/space.gif Height=18 '+B+'Width=120><br>');
  290. EventsCount++;
  291. //ArticlesCount++;
  292. if (ItemName != 'Home') if (EventsCount==1) LinkBanner("margin-top:-5px;margin-bottom:10px;");
  293.  
  294. }}
  295.  
  296. function ElementsBegin(){
  297.     if (FoldersCount != 0) hr();
  298.     o('<TABLE  '+CP+' border=0 '+B+' Width=100% '+CS+'><TR><TD>');
  299.     o('<TABLE  Width=100% border=0 '+B+'  '+CS+' '+CS+'><TR><TD VALign=Top width=40><IMG Src="images/element.gif" '+AL+' VALign=Top hspace=15 vspace=5><br><br><br><br><IMG Src=space.gif width=79 height=2><TD>');
  300.     o('<ul Class=LinkItem style="margin-top:-20px;margin-left:0px;">');
  301. }
  302.  
  303.  
  304. function DownloadsBegin(){
  305.     if (FoldersCount != 0) hr();
  306.     o('<TABLE  '+CP+' border=0 '+B+' Width=100% '+CS+'><TR><TD>');
  307.     o('<TABLE  Width=100% border=0 '+B+'  '+CS+' '+CS+'><TR><TD VALign=Top width=40><IMG Src="images/download.gif" '+AL+' VALign=Top hspace=15 vspace=5><br><br><br><br><IMG Src=space.gif width=79 height=2><TD>');
  308.     o('<ul Class=LinkItem style="margin-top:-20px;margin-left:0px;">');
  309. }
  310.  
  311.  
  312. function NewArticlesBegin(){
  313.     o('<TABLE Border=1 '+CP+' '+CS+'><TR>    <TD>');
  314.     o('<ul Class=LinkItem>');
  315. }
  316.  
  317.  
  318. function ElementsEnd() {
  319.     o('</UL></DIV></TABLE>');
  320.     if (ElementsCount==0) br();
  321.     o('</TABLE>');
  322.     hr('style="position:relative;top:-'+sw(0,10)+'px;"');
  323. }
  324.  
  325. function DownloadsEnd() {
  326.     o('</UL></DIV></TABLE>');
  327.     if (DownloadsCount==0) br();
  328.     o('</TABLE>');
  329.     hr('style="position:relative;top:-'+sw(0,10)+'px;"');
  330. }
  331.  
  332. function ArticlesEnd() {
  333.     if (ArticlesCount ==0) if (FoldersCount ==0) o('<FONT Face=Verdana Size=2 Color=#000000><br>'+NoArticles+'<br></FONT>');
  334.     if (ArticlesCount!=0) o('</DIV></TABLE>');
  335.     if (ArticlesCount==0) br();
  336.     if (ArticlesCount!=0)     o('</TABLE>');
  337.     hr('style="position:relative;top:-'+sw(0,10)+'px;"');
  338. }
  339.  
  340. function LinksBegin() {
  341.     o('<br><TABLE '+CS+' '+B+'><TR><TD VALign=Top><IMG Src="images/ifold.gif" '+AL+' VALign=Top><TD Width=500>');
  342.     o('<ul Class=LinkItem>');
  343. }
  344.  
  345. function Link(ID,SiteTitle,SiteComment,URL){
  346.     o('<LI><A Href="links.php@ID='+ID+'"><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Color=#004474 Size=2>'+SiteTitle+'</a><br>');
  347.     o('<DIV Align=Justify><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#a0a0a0>'+SiteComment+'</FONT><br><rem a href="'+URL+'"><FONT Face=Arial Size=1 Color=#a0a0a0><SPAN Style="font-size:110%;'+PR+';left:1px;top:-2px;">'+URL+'</SPAN></font></a></DIV>');
  348.     LinksCount++;
  349. }
  350.  
  351. function LinksEnd(){
  352.     if (LinksCount != 0) o('</TABLE><br>');
  353. }
  354.  
  355. var CommentsNum=0;
  356. function CommentsBegin(ArticleTitle,Count)
  357. {
  358.     o('');
  359.     o('<TABLE Width=90% Align=Center BgColor=#C4C4C4 '+B+' '+CP+' CellSpacing='+sw(1,1)+' STYLE="x'+PR+';top:-17px;z-index:-1">');
  360.  
  361.     o('<TR><TD BgColor=#E6E6E6>');
  362.     o('<FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=Comment><img src=images/forum.gif width=16 height=14 style="'+PR+';top:2px;margin-left:2px;margin-right:5px;"><b><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif">Diskuze: </b> "'+ArticleTitle+'"</span></font></font>');
  363.     o('');
  364.     o('<TR><TD BgColor=#E6E6E6>');
  365.     o('<FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=v90>');
  366.     if (Count>12) ie('<DIV STYLE="overflow:auto;float:left;width='+(TextSpace-50)+'px;height=250px;">');
  367.     o('<TABLE Width=100% '+B+' rHeight=100% '+CP+' '+CS+' BgCOlor=#F6F6F6>');
  368.     o('<Form Name="com" Style="margin-top:0px;margin-bottom:0px;" Action="comments.php" Method=POST>');
  369.     o('<INPUT Type=Hidden Name=ParentID Value='+ItemID+'>');
  370.     o('<INPUT Type=Hidden Name=TNum Value='+TableNum+'>');
  371. }
  372.  
  373. function Download(ID, Size, Name, Description, Info, MIMEType, TimeStamp, Licence, Downloads, LastDownloads) {
  374.     o('<CENTER><br><TABLE Class=DownloadBOx Width=90% '+B+' CellPadding=0 CellSpacing='+sw(1,1)+' ><TR><TD Width=100%>');
  375.     o('<TABLE CellSpacing=5 Width=100% CellPadding=2><TR><TD width=10>   </TD><TD>');
  376.     o('<b>'+Name+"</b><br>"+TimeStamp+"<br><br>"+Description+"<br><br><a href=getfile.php@ID="+ID+">Download</a> ("+Size+" MB)   Stßhnuto "+Downloads+"x, poslednφ m∞sφc "+LastDownloads+"x.");
  377.     o('</TD></FONT></FORM></TABLE></TABLE></CENTER><br>');
  378.  
  379. }
  380.  
  381.  
  382. function ShowSections(){
  383.     
  384.     
  385.     o('<TABLE Style="margin-bottom:0px;" Class=SectionsBox VAlign=Bottom '+B+' CellPadding=0 CellSpacing='+sw(1,1)+'><TR><TD Width=100% BgColor=#FFFFE1>');
  386.     o('<DIV Style="color:#FFFFE1; line-height:0px;font-size:5px;margin-left:100px;margin-right:100px;">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </DIV>');
  387.     o('<TABLE CellSpacing=0 Width=100% CellPadding=2><TR><TD Width=50><FONT Style="font-size:12px;" Color=#000000 Face=Verdana> Obsah</TD>');
  388.     
  389.     BrothersCount = SectionTitles.length;
  390.     o('</FORM><FORM Method=Get Name=SectionsForm Action=articles.php><TD><SELECT Name=SectionSelect onchange=document.location="articles.php@ID="+document.SectionsForm.SectionSelect.value Style="Font-size:11px;width=100%;font-family:Arial">');
  391.         for (i=0;i<(BrothersCount);i++) {
  392.         o('<OPTION Value='+SectionURLs[i]+' ');
  393.         if (SectionTitles[i].indexOf('tento')>0) o(' Selected ');
  394.         if (SectionTitles[i].indexOf('Dφl')<0) {
  395.             SectionTitles[i]=" "+SectionTitles[i];
  396.  
  397.         } else {
  398.         o('   ');        
  399.         }  
  400.         
  401.         o('  ');
  402.         
  403.         o(' >'+SectionTitles[i]+'</OPTION>'); 
  404.     }
  405.     
  406.     o('</SELECT></TD></FONT></FORM></TABLE></TABLE>');
  407.     
  408. //    }
  409. }
  410.  
  411. function Comment(ID,Title,Author,NumSub)
  412. {
  413.     Bg='';
  414.     if (NumSub==0) {
  415.         if (CommentsNum!=0) o('<TR><TD BgColor=#C4C4C4><IMG src=space.gif height=1 width=1><TD BgColor=#C4C4C4><IMG src=space.gif height=1 width=1><TD BgColor=#C4C4C4><IMG src=space.gif height=1 width=1></TR></TD>');
  416.         Bg=' bgcolor=#FFFFF6 ';
  417.     }
  418.     o('<TR><TD '+Bg+' Width=10 VAlign=Center><INPUT TYPE=CheckBox Name=ToView[] Value='+ID+';'+NumSub+'> </TD><TD '+Bg+' width=300 VAlign=Center><FONT Face=Arial Size=1 Color=#595959><SPAN Style="font-size:110%">'+Title+'</SPAN></FONT>    <TD '+Bg+' Width=100 '+AL+'  VAlign=Center><FONT Face=Arial Size=1 Color=#595959><SPAN Style="font-size:110%">'+Author+' </span></FONT>');
  419.     CommentsNum=CommentsNum+1;
  420. }
  421.  
  422. function NoComments()
  423. {
  424.     o('<TR Height=20><TD Width=10><rem INPUT TYPE=CheckBox Name=ToView[] Value=sd> <TD width=300 VAlign=Center><FONT Color=#000000 Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=Comment>Zatφm ₧ßdnΘ komentß°e.</i></span></FONT>    <TD Width=150 '+AL+'><FONT Color=#000000 Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=Comment> </span></FONT>');
  425. }
  426.  
  427.  
  428. function CommentsEnd()
  429. {
  430.     o('</FORM></TABLE>');
  431.     ie('</DIV>');
  432.     o('</span> </font>');
  433.     o('</FORM>');
  434.     o('</TABLE>');
  435.     ie('<DIV STYLE="'+PR+';top:-1px;">');
  436.     o('<TABLE Width=90% Border=0 Align=Center '+CP+' '+CS+' '+B+' style="font-size:13px;" ><TR><TD BgColor=#B9B9B9><IMG Src=images/space.gif height=1><TD BgColor=#B9B9B9><IMG Src=images/space.gif height=1><TR><TD Width=100% BgColor=#ffffff><IMG Src=images/space.gif height=20>');
  437.  
  438.     o('<TD VAlign=Top BackGround=images/commentsbar.gif Width=1><SPAN style="font-family:arial;font-size:12px">            <A HREF="javascript: for (i=0;(i-1)<=(CommentsNum);i++) { document.com.elements[i].checked=true;} document.com.submit()"><FONT Color=#000000>');
  439. if (CommentsNum == 0 )o('</a><FONT Face=Arial Color=#595959>');
  440. o('<SPAN style="font-size:12px">Vypsat vÜe</a></span>          <A HREF="javascript: ok=0;for (i=0;(i-1)<=(CommentsNum);i++) { if (document.com.elements[i].checked==true) ok=1;} if (ok==1) document.com.submit();if (ok==0) alert(\'ÄßdnΘ komentß°e nejsou oznaΦeny.\');"><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN style="font-size:12px">');
  441. if (CommentsNum == 0 )o('</a><FONT Color=#595959><SPAN style="font-size:12px">');
  442. o('<SPAN style="font-size:12px">Vypsat oznaΦenΘ</font></a>           <A HREF=addcomment.php@ID='+ItemID+'&ParentTableNum='+TableNum+'&TextItemID='+ItemID+'&TextItemTabNum='+TableNum+'&ParentComment=0><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Color=#000000><SPAN style="font-size:12px"><b>P°idat komentß°</span></font></a><SPAN style="font-size:12px">      </SPAN>');
  443.     o('');
  444.     o('');
  445.     o('<TR><TD><TD><IMG Src=images/space.gif width=309 height=15></TABLE>');
  446.     ie('</DIV>');
  447. }
  448.  
  449. function ViewComment(Name,Date, Time, Author,AuthEMail,Data,ID,Depth,Flags)
  450. {
  451.     if (Depth>6) Depth=6;
  452.     
  453.     
  454.     for (i=1;i<=(Depth);i++)    {
  455.     }
  456.     xWidth = '100% Align=Center';
  457.     if (Type != 'Pure') xWidth=(TextSpace-(Depth*40))+30;
  458.     if  (IsFlag(Flags,'Full')==1) xWidth="100%";    
  459.     o('<br><TABLE  '+B+'  c'+xWidth+'><TR><TD>');
  460.     for (i=1;i<=(Depth);i++)    {
  461.         o('       ');
  462.     }
  463.     o('</TD><TD><DIV Style="color:#FFFFE1; line-height:0px;font-size:5px;margin-left:200px;margin-right:100px;">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </DIV>');
  464.  
  465.     o('<TABLE Border=0 BgColor=#dbdbdb '+CP+' CEllSpacing='+sw(1,0)+' '+B+' Width=100%><TR><TD VAlign=Top BgColor=#e6e6e6><TABLE Align=right '+B+' VALign=Top '+CS+' '+CP+'><TR><TD> <FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2>'+Date+', '+Time+' <a href="mailto:'+AuthEMail+'"><FONT Color=#000000>'+Author+'</a> </TABLE><TABLE '+CP+' '+CS+' '+B+'><TR><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><b> '+Name+'</TABLE><TR><TD BgColor=#f8f8f8><TABLE '+B+' CellSpacing=5><TR><TD><FONT Face=Courier Size=2>'+Data+'</TABLE>');
  466.     o('</TABLE>');
  467.     if (Type != 'Pure')
  468.         if (IsFlag(Flags,'NoReply')==0)
  469.             o('<TABLE Align=Right '+B+' CEllPadding=2 '+CS+'><TR><TD Width=90%><TD '+AL+' VALign=Top Background=server/images/reply.gif><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN style="position:relative; top:-5px;" Class=v90>           <a href=addcomment.php@ID='+ID+'&ParentTableNum=4&TextItemID='+ItemID+'&TextItemTabNum='+TableNum+'&ParentComment='+ID+'><FONT Color=#000000><rem b>Reagovat</a></b>  |   <INPUT Value='+ID+' Name=ReactionsTo'+ID+' Type=Checkbox Style="position:relative;top:2px;"> Odebφrat reakce  </TD></TR><TR><TD></TD><TD><IMG Src=space.gif height=1 width=227></TD></TR></TABLE>');
  470.     
  471.     o('</TABLE>');
  472.  
  473. }
  474.  
  475.  
  476. function ViewForumNote(Name, ForumID, Date, Time, Author,AuthEMail,Data,ID,Depth,Flags)
  477. {
  478.     if (Depth>6) Depth=6;
  479.     
  480.     
  481.     for (i=1;i<=(Depth);i++)    {
  482.     }
  483.     xWidth = '100% Align=Center';
  484.     if (Type != 'Pure') xWidth=(TextSpace-(Depth*40))+30;
  485.     if  (IsFlag(Flags,'Full')==1) xWidth="100%";    
  486.     o('<br><TABLE  '+B+'  c'+xWidth+'><TR><TD>');
  487.     for (i=1;i<=(Depth);i++)    {
  488.         o('       ');
  489.     }
  490.     o('</TD><TD><DIV Style="color:#FFFFE1; line-height:0px;font-size:5px;margin-left:200px;margin-right:100px;">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </DIV>');
  491.  
  492.     o('<TABLE Border=0 BgColor=#dbdbdb '+CP+' CEllSpacing='+sw(1,0)+' '+B+' Width=100%><TR><TD VAlign=Top BgColor=#e6e6e6><TABLE Align=right '+B+' VALign=Top '+CS+' '+CP+'><TR><TD> <FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2>'+Date+', '+Time+' <a href="mailto:'+AuthEMail+'"><FONT Color=#000000>'+Author+'</a> </TABLE><TABLE '+CP+' '+CS+' '+B+'><TR><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><b> '+Name+'</TABLE><TR><TD BgColor=#f8f8f8><TABLE '+B+' CellSpacing=5><TR><TD><FONT Face=Courier Size=2>'+Data+'</TABLE>');
  493.     o('</TABLE>');
  494.     if (Type != 'Pure')
  495.         if (IsFlag(Flags,'NoReply')==0)
  496.             o('<TABLE Align=Right '+B+' CEllPadding=2 '+CS+'><TR><TD Width=90%><TD '+AL+' VALign=Top Background=server/images/reply.gif><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN style="position:relative; top:-5px;" Class=v90>           <a href=addforumnote.php@ID='+ID+'&ParentTableNum=4&TextItemID='+ForumID+'&TextItemTabNum='+TableNum+'&ParentForumNote='+ID+'><FONT Color=#000000><rem b>Reagovat</a></b>  |   <INPUT Value='+ID+' Name=ReactionsTo'+ID+' Type=Checkbox Style="position:relative;top:2px;"> Odebφrat reakce  </TD></TR><TR><TD></TD><TD><IMG Src=space.gif height=1 width=227></TD></TR></TABLE>');
  497.     
  498.     o('</TABLE>');
  499.  
  500. }
  501.  
  502.  
  503. function Message(Text)
  504. {
  505.     P(Text);
  506. }
  507.  
  508. function Error(Text)
  509. {
  510.     P('Pozor!');
  511.     P(Text);
  512. }
  513.  
  514.  
  515. function FolderEnd()
  516. {
  517.  
  518. }
  519.  
  520. function AdditionalTablesBegin()
  521. {
  522.  
  523. function AdditionalTablesEnd()
  524. {
  525.  
  526. function Vote(ID)
  527. {
  528.     if (VotingAnswer[ID]==0) {
  529.         alert('Musφte vybrat odpov∞∩.');
  530.     } else {
  531.         VoteWindow='vote.php@VotingID='+ID+'&VotingAnswer='+VotingAnswer[ID];
  532.     var new_window = window.open(VoteWindow,null, "height=100,width=500,status=no,toolbar=no,menubar=no,location=no");
  533.     if (new_window != null) 
  534.  window.status = new_window.document.title;
  535.     VotingAnswer[ID]=0;
  536.     }
  537. }
  538.  
  539. function YesNoVoting(Question, YesAnswers, NoAnswers,ID, Possible)
  540. {
  541.     DisableStr = '';
  542.     if (Possible==0) DisableStr=' DISABLED ';
  543.     VotingAnswer[ID] = 0;
  544.     TotalWidth=232;
  545.     TotalAnswers = YesAnswers + NoAnswers;
  546.     YesPercent=Math.round((YesAnswers/(TotalAnswers))*100);
  547.     NoPercent=Math.round((NoAnswers/(TotalAnswers))*100);
  548.     YesSize= Math.round((TotalWidth/(TotalAnswers))*YesAnswers);
  549.     NoSize= Math.round((TotalWidth/(TotalAnswers))*NoAnswers);    
  550.  
  551.     o('<CENTER><TABLE Align=Center '+CS+' '+CP+' Width=90% '+B+'><TR><TD>');
  552.     o('<TABLE Width=100% BgColor=#C4C4C4 '+B+' CellPadding=1 CellSpacing='+sw(1,0)+'><TR><FORM Name=Voting Action=vote.php Method=post><TD BgColor=#E6E6E6>');
  553.     o('<FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=px12> <b>Anketa: </b>'+Question+'</span> </font>');
  554.     o('<Font Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=1 Color=#a4a4a4> <SPAN Class=px11>(Ano: '+YesPercent+'%, Ne:'+NoPercent+'%, celkem '+TotalAnswers+' hlas∙)</SPAN></font><TR><TD BgColor=#F6F6F6><CENTER>');
  555.     o('<IMG VSpace=1 HSpace=3 Src=images/true.gif><INPUT Type=Button '+DisableStr+ ' onclick="javascript: VotingAnswer['+ID+']=1;Vote('+ID+')" Value=Ano> <IMG Src=images/blackbar.gif vspace=3>')
  556.         if (YesAnswers != 0) o('<IMG vspace=3 Src=images/truebar.gif height=12 width='+YesSize+'>');
  557.     o('<IMG Src=images/slider.gif '+B+'>');
  558.         if (NoAnswers != 0) o('<IMG VSpace=3 Src=images/falsebar.gif height=12 width='+NoSize+'>');
  559.     o('<IMG Src=images/blackbar.gif vspace=3> <INPUT Type=Button '+DisableStr+ ' onclick="javascript: VotingAnswer['+ID+']=2;Vote('+ID+')" Value=" Ne "><IMG HSpace=3 Src=images/false.gif>');
  560.     o('</CENTER>');
  561.     o('</TABLE></FORM></TABLE><br>');
  562.  
  563. }
  564.  
  565. function MultiVoting(Question, Answer1, Num1, Answer2, Num2, Answer3, Num3, Answer4, Num4, Answer5, Num5,ID, Possible)
  566. {
  567.     VotingAnswer[ID] = 0;
  568.  
  569.     DisableStr = '';
  570.     if (Possible==0) DisableStr=' DISABLED ';
  571.     
  572.     TotalAnswers=Num1+Num2+Num3+Num4+Num5;
  573.     TotalWidth=200;
  574.  
  575.     Width1=Math.round((TotalWidth/TotalAnswers)*Num1);
  576.     Percent1=Math.round((Num1/TotalAnswers)*100);
  577.  
  578.     Width2=Math.round((TotalWidth/TotalAnswers)*Num2);
  579.     Percent2=Math.round((Num2/TotalAnswers)*100);
  580.  
  581.     Width3=Math.round((TotalWidth/TotalAnswers)*Num3);
  582.     Percent3=Math.round((Num3/TotalAnswers)*100);
  583.  
  584.     Width4=Math.round((TotalWidth/TotalAnswers)*Num4);
  585.     Percent4=Math.round((Num4/TotalAnswers)*100);
  586.  
  587.     Width5=Math.round((TotalWidth/TotalAnswers)*Num5);
  588.     Percent5=Math.round((Num5/TotalAnswers)*100);
  589.     
  590.     o('<TABLE Align=Center '+CS+' '+CP+' Width=90% '+B+'><TR><TD>');
  591.     o('<TABLE Width=100% BgColor=#C4C4C4 '+B+' CellPadding=1 CellSpacing='+sw(1,0)+'><TR><FORM Name=Voting><TD BgColor=#E6E6E6>');
  592.     o('<FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=v90> <b>Anketa: </b>'+Question+'</span> </font>');
  593.     o('<TR><TD BgColor=#F6F6F6>');
  594.  
  595.  
  596.     o('<TABLE '+CP+' '+CS+' '+B+' Width=100%><FORM Name=MultiVoting>');
  597.     if (Answer1 != "") o('<TR><TD><INPUT Type=Radio Name=Answer Value=1 onclick="javascript: VotingAnswer['+ID+']=1;    "><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Answer1+'</span></font><TD><IMG Src=images/bar.gif height=12 width='+Width1+'><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Percent1+'%</span></font>');
  598.     if (Answer2 != "") o('<TR><TD><INPUT Type=Radio Name=Answer Value=2 onclick="javascript: VotingAnswer['+ID+']=2;    "><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Answer2+'</span></font><TD><IMG Src=images/bar.gif height=12 width='+Width2+'><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Percent2+'%</span></font>');
  599.     if (Answer3 != "") o('<TR><TD><INPUT Type=Radio Name=Answer Value=3 onclick="javascript: VotingAnswer['+ID+']=3;    "><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Answer3+'</span></font><TD><IMG Src=images/bar.gif height=12 width='+Width3+'><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Percent3+'%</span></font>');
  600.     if (Answer4 != "") o('<TR><TD><INPUT Type=Radio Name=Answer Value=4 onclick="javascript: VotingAnswer['+ID+']=4;    "><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Answer4+'</span></font><TD><IMG Src=images/bar.gif height=12 width='+Width4+'><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Percent4+'%</span></font>');
  601.     if (Answer5 != "") o('<TR><TD><INPUT Type=Radio Name=Answer Value=5 onclick="javascript: VotingAnswer['+ID+']=5;    "><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Answer5+'</span></font><TD><IMG Src=images/bar.gif height=12 width='+Width5+'><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90>'+Percent5+'%</span></font>');
  602.     o('</table>');
  603.  
  604.     o('<TABLE '+B+' Align=Right><TR><TD><DIV Align=Right><INPUT Type=Button '+DisableStr+ 'onclick="javascript: Vote('+ID+');" Value=Hlasuj></DIV></form></TABLE><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#bdbdbd><SPAN Class=v90><br> Celkem hlasovalo '+TotalAnswers+' lidφ.</span></font>');
  605.     o('</FORM>');
  606.     o('</TABLE>');
  607.     o('</TABLE><br>');
  608. }
  609.  
  610. function _Image(URL,Title,ID,Pos)
  611. {
  612.     if (ItemName != "P∙vodnφ Φlßnek") {
  613.     Attachedi++;
  614.     if (Type != 'Pure')
  615.     {
  616.     if (Pos=="Left") ie('<TABLE '+B+' '+AL+' Width=1 style="'+PR+';margin-right:0.6em;left:-3 px;margin-top:-0px;margin-bottom:0px;"><TR><TD>');
  617.      if (Pos=="Right") ie('<TABLE '+B+' align=Right Width=1 style="'+PR+';left:+12 px;margin-top:-0px;margin-bottom:0px;"><TR><TD>');
  618.      if (Pos=="Center") ie('<TABLE '+B+' align=Center Width=1 style="'+PR+';left:0px;margin-top:-0px;margin-bottom:0px;"><TR><TD>');
  619.     if (Pos=="None") ie('<TABLE '+B+' Width=1 style="'+PR+';left:0px;margin-right:0.6em;margin-left:-7px;margin-bottom:0px;"><TR><TD>');
  620.     }
  621.     else
  622.     ie('<TABLE '+B+' '+AL+' Width=1 style="margin-top:-0px;margin-right:1em;margin-bottom:0px;"><TR><TD>');
  623.     n('<TABLE '+B+' Width=1 style="margin-top:-0px;margin-right:1em;margin-bottom:0px;"><TR><TD>');
  624.     hr();
  625.     o('<TR><TD>');
  626.     o('<IMG Alt="'+Title+'" Src='+URL+' xname=img3>');
  627.     o('<TR><TD ID=ImgDesc><FONT Face=Arial Size=1>');
  628.     o('<FONT Color=#000000>Obr. '+Attachedi+'</FONT> <FONT Color=#909090>');
  629.     o(Title);
  630.     o('</FONT> ');
  631.     hr();
  632.     o('</FONT></TABLE>');
  633.     if (Pos=="None") o('<br>');
  634.     nie('<br><br><br>');
  635.     }
  636. }
  637.  
  638. function Cite(Text,Pos)
  639. {
  640.     if (Pos=="Left") o('<TABLE '+B+' '+AL+' Width=30% style="'+PR+';left:-6 px;margin-top:-0px;margin-bottom:0px;"><TR><TD>');
  641.      if (Pos=="Right") o('<TABLE '+B+' align=Right Width=30% style="'+PR+';left:+12 px;margin-top:-0px;margin-bottom:0px;"><TR><TD>');
  642.      if (Pos=="Center") o('<TABLE '+B+' align=Center Width=30% style="'+PR+';left:0px;margin-top:-0px;margin-bottom:0px;"><TR><TD>');
  643.     if (Pos=="None") o('<TABLE '+B+' Width=30% style="'+PR+';left:0px;margin-left:-10px;margin-bottom:0px;"><TR><TD>');
  644.  
  645.     hr();
  646.     o('<TR><TD>');
  647.     o('<FONT Size=2><SPAN Class=Cite><CENTER>'+Text+'</CENTER></SPAN></FONT>');
  648.     o('<TR><TD>');
  649.     hr();
  650.     o('</FONT></TABLE>');
  651.     if (Pos=="None") o('<br>');
  652. }
  653.  
  654.  
  655. function ArticleFunctions() {
  656.  
  657.     Result = new Array(5);
  658.     Result[0]="";
  659.     Result[1]="<FONT Face=\"Wingdings\" Size=6>ü</FONT>";
  660.     Result[2]="<FONT Face=\"Wingdings\" Size=6>é</FONT>";
  661.     Result[3]="<FONT Face=\"Wingdings\" Size=6>ƒ</FONT>";
  662.     Result[4]="<FONT Face=\"Wingdings\" Size=6>ä</FONT>";
  663.     Result[5]="<FONT Face=\"Wingdings\" Size=6>à</FONT>";
  664.     
  665. if (navigator.appName=="Netscape") {
  666.     Result[1]="<FONT Face=\"Arial\" Size=6>1</FONT>";
  667.     Result[2]="<FONT Face=\"Arial\" Size=6>2</FONT>";
  668.     Result[3]="<FONT Face=\"Arial\" Size=6>3</FONT>";
  669.     Result[4]="<FONT Face=\"Arial\" Size=6>4</FONT>";
  670.     Result[5]="<FONT Face=\"Arial\" Size=6>5</FONT>";
  671. }    
  672.  
  673. Name="";
  674.  
  675.     o('<TABLE  VAlign=Top  '+CS+' '+CP+' Width=100% '+B+'><TR><TD>');
  676.     o('<TABLE Width=100% BgColor=#C4C4C4 Align=Right VAlign=Bottom '+B+' '+CP+' CellSpacing=1><TR><TD BgColor=#E6E6E6>');
  677.     o('<IMG Src=images/functions_img.gif '+B+' hspace=0 height=15 '+AL+'><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><TABLE '+B+' '+CP+' '+CS+'><TR><TD Width=95%><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=px12> <b>Funkce</b><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90></TABLE></span> </font>');
  678.     o('<TR><TD BgColor=#F6F6F6>');
  679.     o('<TABLE '+B+' Width=100% '+CS+' CellPadding=1><TR><TD><SPAN Class=px14>');
  680.         if (TableNum!=7) o('  <IMG Src=images/blackbull.gif height=5 width=5 vspace=2>  <a href=articles.php@ID='+ItemID+'&Type=Pure><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=px12><b>Formßt pro tisk </span></a></b></font><br>');
  681. //        o('  <IMG Src=images/blackbull.gif height=5 width=5 vspace=2>  <a href=mailarticle.php@ID='+ItemID+'><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=px12><b>Poslat člßnek</a></b><br></font>');
  682.     o('</SPAN></TABLE>');
  683.     o('');
  684.     o('</TABLE>');
  685.     o('');
  686.     o('</TABLE><br>');
  687.  
  688.  
  689.  
  690.     if (Ref1URL != "") { 
  691.     o('<TABLE Width=100% BgColor=#C4C4C4 '+B+' '+CP+' CellSpacing='+sw(1,1)+'><TR><TD BgColor=#E6E6E6>');
  692.     o('<IMG Src=images/references_img.gif height=15 '+B+' hspace=0 '+AL+'><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><TABLE '+B+' '+CP+' '+CS+'><TR><TD Width=95%><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=px12> <b>Reference</b><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90> </TABLE></span> </font>');
  693.     o('<TR><TD BgColor=#F6F6F6>');
  694.  
  695.     o('<TABLE '+B+' '+CP+'>');
  696.     
  697.     if (Ref1URL != "") { Reference(Ref1URL,Ref1Link,Ref1Desc);}
  698.     if (Ref2URL != "") { Reference(Ref2URL,Ref2Link,Ref2Desc);}
  699.     if (Ref3URL != "") { Reference(Ref3URL,Ref3Link,Ref3Desc);}
  700.     if (Ref4URL != "") { Reference(Ref4URL,Ref4Link,Ref4Desc);}
  701.     if (Ref5URL != "") { Reference(Ref5URL,Ref5Link,Ref5Desc);}
  702.     
  703.     o('</TABLE>');
  704.     o('');
  705.     o('</TABLE><br>');}
  706.     if (Action!='press') {
  707.         o('<TABLE Width=100% BgColor=#C4C4C4 '+B+' '+CP+' CellSpacing='+sw(1,1)+'><TR><TD BgColor=#E6E6E6>');
  708.         o('<IMG height=15 Src=images/grading_img.gif '+B+' hspace=0 '+AL+'><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><TABLE '+B+' '+CP+' '+CS+'><TR><TD Width=95%><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=px12> <b>Hodnocenφ</b><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=v90> </TABLE></span> </font>');
  709.         o('<TR><TD BgColor=#F6F6F6>');
  710.         o('<TABLE '+B+' CellPadding=2><TR><TD>');
  711.             o('<FONT Size=2 Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Color=#a0a0a0><SPAN Class=px11>Jako ve Ükole: <b><A Href=javascript:grade(1)><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Color=#000000 Class=px12>1</a> | <A Href=javascript:grade(2)><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Color=#000000 Size=2><SPAN Class=px12>2</SPAN></a><SPAN Class=px12> | </SPAN><A Href=javascript:grade(3)><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Color=#000000 Size=2><SPAN Class=px12>3</SPAN></a><SPAN Class=px12><SPAN Class=px12> | </SPAN></SPAN><A Href=javascript:grade(4)><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Color=#000000 Size=2><SPAN Class=px12>4</SPAN></a><SPAN Class=px12> | </SPAN><A Href=javascript:grade(5)><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Color=#000000 Size=2><SPAN Class=px12>5</SPAN></a></b></font><br>');
  712.                     if (NumVotes != 0) o('<TABLE><TR><TD VAlign=Top><FONT Size=2 Color=#000000><SPAN Class=px11>'+NumVotes+' z vßs hodnotφ průměrem '+Average+', tj. :</font><TD VAlign=Bottom><DIV Align=Right>'+Result[Math.round(Average)]+' </DIV></TABLE>');
  713.                     else o('<TABLE><TR><TD VAlign=Top><FONT Size=2 Color=#000000><SPAN Class=px11>Zatφm nikdo nehodnotil.</font><TD VAlign=Bottom><DIV Align=Right> </DIV></TABLE>');
  714.         o('</TABLE>');
  715.         o('');
  716.         o('<TR><TD BGColor=#f6f6f6> <FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#b0b0b0><SPAN Class=px11> Celkem '+Views+' shlΘdnutφ.');
  717.         o('');
  718.         o('</TABLE><br>');
  719.     }
  720.     
  721.     o('<TABLE Width=100% BgColor=#C4C4C4 '+B+' '+CP+' CellSpacing='+sw(1,1)+'><TR><TD BgColor=#E6E6E6>');
  722.     o('<IMG height=15 Src=images/author_img.gif '+B+' hspace=0 '+AL+'><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><TABLE '+B+' '+CP+' '+CS+'><TR><TD Width=95%><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Style="font-size:12px;"> <b>Autor</b><TD><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=px12>'+Name+' </TABLE></span> </font>');
  723.     o('<TR><TD BgColor=#F6F6F6>');
  724.     o('<TABLE '+B+' CellPadding=1><TR><TD>');
  725.         o('<FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=px12><b>'+AuthorName+'<br></b>');
  726.         o('<a href="mailto:'+AuthorEMail+'"><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#bdbdbd><SPAN Class=px11>'+AuthorEMail+'</a><br>');
  727.     o('<TR><TD>');    
  728.         o('<FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=AuthorDesc>'+AuthorDesc+'</SPAN>');
  729.     o('<TR><TD><SPAN Class=px12>');
  730.         o('  <IMG Src=images/blackbull.gif height=5 width=5 vspace=2> <a href=author.php@ID='+AuthorID+'> <FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=px11><b>Vφce o autorovi</a></b><br></font>');
  731.         if (TableNum!=7) o('  <IMG Src=images/blackbull.gif height=5 width=5 vspace=2> <a href=all.php@ID='+AuthorID+'> <FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#000000><SPAN Class=px11><b>VÜechny člßnky autora</a></b><br></font>');
  732.     o('</TABLE>');
  733.     o('');
  734.     o('</TABLE>');
  735.  
  736. }
  737.  
  738. function grade(Num)
  739. {
  740.     GradeWindow='grade.php@VotingID='+ItemID+'&VotingAnswer='+Num;
  741.     var new_window = window.open(GradeWindow,null, "height=100,width=500,status=no,toolbar=no,menubar=no,location=no");
  742.     if (new_window != null) 
  743.  window.status = new_window.document.title;
  744. }
  745.  
  746.  
  747. function Reference(URL,Link, Desc) {
  748.     o('<TR><TD><IMG Src=images/blackbull.gif height=5 width=5 hspace=5>');
  749.     o('<TD><a href='+URL+'><FONT Color=#000000 Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=px11><b>'+Link+'</b></span><TR><TD><TD>');
  750.     o('<FONT Color=#a8a8a8 Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=px11>'+Desc+'</b></span>');
  751. }
  752.  
  753. function Recommend(Article) {
  754. if (Article[0] !=0) {
  755. o('<TR><TD BgColor=#F6F6F6>');
  756. o('<TABLE Width=100% '+B+'>');
  757. o('<TR><TD VAlign=Top Width=10><IMG VSpace=2 Src=images/article.gif><TD VAlign=Top><DIV Style="width=100;overflow:clip;"><a href=articles.php@ID='+Article[0]+'><FONT Color=#000000 Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=px11><b>'+Article[1]+'</b></font></SPAN></a>');
  758. if (Article[2] !=0) o('<TR><TD VAlign=Top Width=10><IMG VSpace=2 Src=images/morefiles.gif><TD VAlign=Top><a href=morefiles.php@ArticleID='+Article[0]+'><FONT Color=#000000 Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2><SPAN Class=px10><b>Cel² serißl</b></font></SPAN></a>');
  759. o('</TABLE>');
  760. }
  761. }
  762.  
  763.  
  764. function AuthorData()
  765. {
  766.  
  767. Name="";
  768.  
  769. if ((Type != "Pure")){
  770.  
  771.     if (restype==2)    o('<TABLE xSTYLE="'+PR+';top:3px;margin-top:-30px;margin-bottom:5px;" ');
  772.     else o('<TABLE STYLE="'+PR+';top:3px;xmargin-top:-70px;margin-bottom:5px;" ');
  773.     
  774.     o('VAlign=Top Align=Right '+CS+' '+CP+' Width='+ArticlesBarSize+' '+B+'><TR><TD><IMG src=images/space.gif width=15><TD>');
  775.     if (restype<=2) o('<TD><TD>');
  776.     ArticleFunctions(); 
  777.  
  778.     if (isIE()) hr('style="margin-top:10px;margin-bottom:10px;"'); else  o('<br>');
  779.  
  780.  
  781.     o('</TABLE>');
  782. //    ArticleBanner_bigres("margin-top:18px;margin-bottom:-5px;");
  783.     }
  784. }
  785.  
  786. function Headline(text)
  787. {
  788.     document.write('<b><SPAN Class=Headline>'+text+'</SPAN></font></b><br><br>');
  789. }
  790.  
  791. function P(text)
  792. {
  793.     if (text != "") document.write('<FONT Color=#000000 Face="Verdana CE, Verdana, Arial CE, Arial, Sans Serif" Size=2><DIV Align=Justify>'+text+'</DIV></font><br>');
  794. }
  795.  
  796. function Intro(text)
  797. {
  798. if (InIFrame=="Yes") text=sw(text,text+"<br><br>");
  799. o(TitleStr);
  800. if (Type !='Pure')
  801.     
  802.     o('<TABLE style="margin-bottom:6px;position:relative;top:-6px;"  '+CS+' '+CP+' '+B+' Width=100%><TR><TD VAlign=Top Width=100%><FONT Size=2><P Class=Intro style="margin-bottom:3px;" Align=Justify><FONT Face=Arial Size=1><SPAN Style="font-family:Arial; font-size:7px;">');
  803.     o('</SPAN></FONT>'+text+'</P></FONT></TABLE>');
  804. //    ArticleBanner_smallres("margin-bottom:10px;");
  805. }
  806.     
  807. else 
  808.     P('<DIV Class=Intro Style="margin-right=2em" Align=Justify>'+text+'</DIV>');
  809. }
  810.  
  811. function ShortLink(URL,Text)
  812. {
  813.     o('<FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#bdbdbd><A HREF='+URL+'><FONT Face="Arial CE, Arial, Sans-Serif CE, Sans-Serif" Size=2 Color=#004474><b>'+Text+'</b></font></a></font>');
  814. }
  815.  
  816. ElementsCount=0;
  817. DownloadsCount=0;
  818.  
  819. function Element(ID, Title, Comment, DateTime, Manager, Place, Respawn, Flags) {
  820.  
  821. ElementTypes = new(Array);
  822.  
  823. ElementTypes['']='Člßnek';
  824.  
  825. //if (isIE()) 
  826. {
  827.  
  828. if ((ItemName != "Home") && (ItemName != "")) o('<LI><DIV style="margin-right:20px;">');
  829. if (Title!="") {
  830.     o('<A Href="element.php@ID='+ID+'"><SPAN Class=ArticleLink>');
  831.     o(Title)
  832.     o('</b></SPAN></a>');
  833. }
  834.  
  835.  
  836. o('<TABLE Border=0 '+B+' '+CP+' '+CS+'><TR><TD>');
  837. if (IsFlag(Flags,'TitleImage')) 
  838.     o('<img Name=TitleImage'+ID+' style="matgin-top:10px;margin-left:15px;" height=75 width=100 align=right '+B+'>');
  839.     ToExecute=ToExecute+'document.TitleImage'+ID+'.src="file.php@ParentID='+ID+'&Name=TitleImage&Rel=new";';
  840. }
  841. if (restype>=3) CommentSize='v100'; else CommentSize='v110';
  842. //if (IsFlag(Flags,'Small'))  
  843. CommentSize='v100';
  844. if (IsFlag(Flags,'FixedPos')) CommentColor="000000"; else CommentColor="707070";
  845. if (Respawn!="") {
  846.     Comment=Comment+"<SPAN CLASS=RespawnAlert> DOPLNĚNO! </SPAN><SPAN Class=RespawnText>"+Respawn+"</SPAN>";
  847. }
  848. 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+'');
  849. o('</SPAN></FONT></DIV>');
  850. o('</TABLE>');
  851. if ((ItemName != "Home") && (ItemName != "")) o('</DIV>');
  852. if (IsFlag(Flags,'NoEndMargin')==0) o('<IMG align=center Src=images/space.gif Height=18 '+B+'Width=120><br>');
  853. ElementsCount++;
  854. //ArticlesCount++;
  855. if (ItemName != 'Home') if (ElementsCount==1) LinkBanner("margin-top:-5px;margin-bottom:10px;");
  856.  
  857. }}
  858.  
  859.  
  860.