<?php
 if (!defined("IN_FUSION")) { die("Access Denied"); }

 define("THEME_WIDTH", "100%");
 define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

 require_once INCLUDES."theme_functions_include.php";

 function render_page($license=false) {

    global $settings, $main_style, $theme_width, $userdata, $aidlink, $settings, $db_prefix;

    //Header1
 echo "<table cellpadding='0' cellspacing='0' width='1000' align='center'>

 <tr>

 <td class='header'>
 <div class='naviga'>
 <a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/1.png' width='76' height='67' onmouseover=\"this.src='".THEME."images/11.png'\"  onmouseout=\"this.src='".THEME."images/1.png'\"></a><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/2.png' width='76' height='67' onmouseover=\"this.src='".THEME."images/22.png'\"  onmouseout=\"this.src='".THEME."images/2.png'\"></a><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/3.png' width='76' height='67' onmouseover=\"this.src='".THEME."images/33.png'\"  onmouseout=\"this.src='".THEME."images/3.png'\"></a><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/4.png' width='76' height='67' onmouseover=\"this.src='".THEME."images/44.png'\"  onmouseout=\"this.src='".THEME."images/4.png'\"></a><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/5.png' width='76' height='67' onmouseover=\"this.src='".THEME."images/55.png'\"  onmouseout=\"this.src='".THEME."images/5.png'\"></a>
 </div>
 <div class='serv'>

 <a href='http://www.cancel.lt' target='_blank'><img src='http://monitors.cancel.lt/server_info/zmlive.ax.lt:27015:cs/560x95.png' border='0' alt='CANCEL.LT' width='560' height='95' /></a>



 </div>
 </td>
 </tr>

 </table>\n";


    
    //Content
 echo "<table align='center' cellpadding='0' cellspacing='0' width='987' align='center' class='$main_style'>\n<tr>\n";
    if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
    echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
    if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
    echo "</tr>\n</table>\n";
 echo "</tr>\n</table>\n";
    
    //Footer
    echo "</tr>\n</table>\n";
    echo "<table cellpadding='0' cellspacing='0' width='1000' align='center' class='footer'>\n<tr>\n";
    echo "<td><div class='reklama'><a href='/index.php'><img src='".THEME."images/reklama.png' style='border:0' /></div>\n";
    echo "</tr>\n</table>\n";


 }

 function render_news($subject, $news, $info) {

    echo "<table align='center' cellpadding='0' cellspacing='0' width='540'>\n<tr>\n";
    echo "<td class='capmain'>".$subject."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td class='main-body'>".$news."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td align='center' class='news-footer'>\n";
	echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'><b> Skaityti daugiau... </a>&nbsp; ".newsposter($info," ·").itemoptions("N",$info['news_id'])." </a></td>";
    echo "</td>\n</tr>\n</table>\n";

 }

 function render_article($subject, $article, $info) {
    
    echo "<table align='center' cellpadding='0' cellspacing='0' width='540'>\n<tr>\n";
    echo "<td class='capmain'>".$subject."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td align='center' class='news-footer'>\n";
    echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
    echo "</td>\n</tr>\n</table>\n";

 }

 function opentable($title) {

    echo "<table align='center' cellpadding='0' cellspacing='0' width='540'>\n<tr>\n";
    echo "<td class='capmain'>".$title."</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td class='main-body'>\n";

 }

 function closetable() {

 echo "</td>
 </tr>
 <tr><td><img src='".THEME."images/naujA.png' alt='panele'></td></tr>
 </table>\n";

 }

 function openside($title, $collapse = false, $state = "on") {
    
    global $panel_collapse; $panel_collapse = $collapse;
    
    echo "<table cellpadding='0' cellspacing='0' width='221' class='border'>\n<tr>\n";
    echo "<td class='scapmain'>".$title."</td>\n";
    if ($collapse == true) {
       $boxname = str_replace(" ", "", $title);
       echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
    }
    echo "</tr>\n<tr>\n";
    echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
    if ($collapse == true) { echo panelstate($state, $boxname); }

 }

 function closeside() {

 echo "</td>
 </tr>
 <tr><td><img src='".THEME."images/panA2.png' alt='panele'></td></tr>
 </table>\n";
 tablebreak();

 }
 ?>