<?php
define('THEME_IS_XHTML10_TRANSITIONAL',1);
define('THEME_HAS_NO_SYS_MENU_BUTTONS', 1);

$template_sys_menu = <<<EOT
<!-- BEGIN home -->
<td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_home.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{HOME_TGT}" onmouseover="JSFX.fadeIn('home')" onmouseout="JSFX.fadeOut('home')" title="{HOME_TITLE}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_home_over.gif" name="home" class="imgFader" id="home" alt="{HOME_TITLE}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END home -->
<!-- BEGIN my_gallery -->
<td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_mygallery.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{MY_GAL_TGT}" onmouseover="JSFX.fadeIn('mygallery')" onmouseout="JSFX.fadeOut('mygallery')" title="{MY_GAL_TITLE}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_mygallery_over.gif" name="mygallery" class="imgFader" id="mygallery" alt="{MY_GAL_TITLE}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
<td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_membres.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{MEMBERLIST_TGT}" onmouseover="JSFX.fadeIn('membres')" onmouseout="JSFX.fadeOut('membres')" title="{MEMBERLIST_TITLE}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_mygallery_over.gif" name="membres" class="imgFader" id="membres" alt="{MEMBERLIST_TITLE}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
<td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_myprof.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{MY_PROF_TGT}" onmouseover="JSFX.fadeIn('myprof')" onmouseout="JSFX.fadeOut('myprof')" title="{MY_PROF_LNK}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_myprof_over.gif" name="myprof" class="imgFader" id="myprof" alt="{MY_PROF_LNK}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END my_profile -->
<!-- BEGIN faq -->
<td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_faq.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{FAQ_TGT}" onmouseover="JSFX.fadeIn('faq')" onmouseout="JSFX.fadeOut('faq')" title="{FAQ_TITLE}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_faq_over.gif" name="faq" class="imgFader" id="faq" alt="{FAQ_TITLE}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END faq -->
<!-- BEGIN enter_admin_mode -->
<td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_adminm.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{ADM_MODE_TGT}" onmouseover="JSFX.fadeIn('adminm')" onmouseout="JSFX.fadeOut('adminm')" title="{ADM_MODE_TITLE}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_adminm_over.gif" name="adminm" class="imgFader" id="adminm" alt="{ADM_MODE_TITLE}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
<td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_userm.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{USR_MODE_TGT}" onmouseover="JSFX.fadeIn('userm')" onmouseout="JSFX.fadeOut('userm')" title="{USR_MODE_TITLE}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_userm_over.gif" name="userm" class="imgFader" id="userm" alt="{USR_MODE_TITLE}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
 <td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_uploadf.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{UPL_PIC_TGT}" onmouseover="JSFX.fadeIn('uploadf')" onmouseout="JSFX.fadeOut('uploadf')" title="{UPL_PIC_TITLE}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_uploadf_over.gif" name="uploadf" class="imgFader" id="uploadf" alt="{UPL_PIC_TITLE}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END upload_pic -->
<!-- BEGIN register -->
  <td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_register.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{REGISTER_TGT}" onmouseover="JSFX.fadeIn('register')" onmouseout="JSFX.fadeOut('register')" title="{REGISTER_TITLE}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_register_over.gif" name="register" class="imgFader" id="register" alt="{REGISTER_TITLE}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END register -->
<!-- BEGIN login -->
  <td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_login.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{LOGIN_TGT}" onmouseover="JSFX.fadeIn('login')" onmouseout="JSFX.fadeOut('login')" title="{LOGIN_LNK}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_login_over.gif" name="login" class="imgFader" id="login" alt="{LOGIN_LNK}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END login -->
<!-- BEGIN logout -->
 <td width="93">
	<table border="0" cellpadding="0" cellspacing="0" width="93">
		<tr>
			<td style="background: rgb(255, 255, 255) url(themes/my_tank/images/bouton_logout.gif) repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><a href="{LOGOUT_TGT}" onmouseover="JSFX.fadeIn('logout')" onmouseout="JSFX.fadeOut('logout')" title="{LOGOUT_LNK}"><img style="opacity: 0;" src="themes/my_tank/images/bouton_logout_over.gif" name="logout" class="imgFader" id="logout" alt="{LOGOUT_LNK}" border="0" height="40" width="93" /></a></td>
		</tr>
	</table>
</td>
<!-- END logout -->
                                        </ul>

EOT;

// HTML template for sub menu
$template_sub_menu = <<<EOT
                                        
<!-- BEGIN custom_link -->
                                            <a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a> :: 
<!-- END custom_link -->
<!-- BEGIN album_list -->
                                            <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> :: 
<!-- END album_list -->
                                            <a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a> :: 
                                            <a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a> ::
                                            <a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a> :: 
                                            <a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a> :: 
                                            <a href="{FAV_TGT}" title="{FAV_LNK}">{FAV_LNK}</a> :: 
                                            <a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        

EOT;

function starttable($width = '-1', $title = '', $title_colspan = '1')
{
    global $CONFIG;

    if ($width == '-1') $width = $CONFIG['picture_table_width'];
    if ($width == '100%') $width = $CONFIG['main_table_width'];
    echo <<<EOT

<!-- Start standard table -->
<table align="center" width="$width" cellspacing="0" cellpadding="0"><tr><td>
<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">

EOT;
    if ($title) {
        echo <<<EOT
        <tr>
                <td class="tableh1" colspan="$title_colspan">$title</td>
        </tr>

EOT;
    }
}

function endtable($width = '-1')
{
    global $CONFIG;

    if ($width == '-1') $width = $CONFIG['picture_table_width'];
    if ($width == '100%') $width = $CONFIG['main_table_width'];
    echo <<<EOT
		</table>
	</td>
</tr>
<tr>
	<td>
		<table cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td class="dcg" width="20"><img src="themes/my_tank/images/dc_gauche.gif" alt="" border="0"/></td><td class="dcc" width="100%"><img src="themes/my_tank/images/dc_centre.gif" alt="" border="0"/></td><td class="dcd" width="20"><img src="themes/my_tank/images/dc_droite.gif" alt="" border="0"/></td>
			</tr>
		</table>
	</td>
</tr>
</table>

<!-- End standard table -->

EOT;
}

function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

	echo <<< EOT
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td valign="top" width="10%">
				Your left column advert goes here
			</td>
			<td valign="top" width="80%">
EOT;
    starttable();
    echo $nav_menu;
    endtable();

    starttable();
    echo $picture;
    endtable();
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }


    echo $votes;



    $picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";

    echo "<div id=\"comments\">\n";
    echo $comments;
    echo "</div>\n";
	echo <<< EOT
			</td>
			<td valign="top" width="10%">
				Your right column advert goes here
			</td>
		</tr>
	</table>
EOT;

}

?>