<?php
/*
+---------------------------------------------------------------+
|	e107 website system
|
|	Â©Steve Dunstan 2001-2007
|	http://e107.org
|	jalist@e107.org
|
|	Released under the terms and conditions of the
|	GNU General Public License (http://gnu.org).
+---------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
// [multilanguage]
$lan_file = e_THEME."4xA_048/languages/".e_LANGUAGE.".php";
@include_once(file_exists($lan_file) ? $lan_file : e_THEME."4xA_048/languages/German.php");
// [theme]
$themename = "4xA_048";
$themeversion = "1.0";
$themeauthor = "***RuSsE***";
$themeemail = "e107@4xa.de";
$themewebsite = "www.e107.4xa.de";
$themedate = "17.08.2010";
$themeinfo = "<a href='http://www.e107.4xa.de' title=''><img src='http://www.e107.4xa.de/e107_images/e107-templates.png' style='border:0px;float:right;margin:px 5px 0px 0px;padding:2px;' title='' alt='Logo'/></a> Eine dunkle Theme extra für die \"Battlefield: Bad Company 2\"- Clans, mit einem Menübereich auf der linke Seite (Menüs 1) und einem Meübereich auf der rechte Seite (Menüs 2).";
define("STANDARDS_MODE", TRUE);
$xhtmlcompliant = TRUE;
$csscompliant = TRUE;
define("IMODE", "lite");
// [layout]
$layout = "_default";

function theme_head(){
	return "<link rel='stylesheet' href='".THEME."nav_menu.css' />";
	}
/////////////////////////////////////////////////////////
@include_once(e_THEME."4xA_048/header_text.php");
//////////////////////////////////////////////
$HEADER = "
<body style='font-size:0.8em;background: #fff url(".THEME."images/body_bg.jpg) no-repeat;
	text-align:center;font-family:Verdana;color:#555555;text-align:center;margin:0px;padding:0px;leftmargin:0px;
	topmargin:0px;marginheight:0px;marginwidth:0px;'>
						<link rel=\"stylesheet\" href=\"".THEME."css/slide.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\"/>
					<script type=\"text/javascript\" src=\"".THEME."scripts/slider.js\"></script>
					<script type=\"text/javascript\" src=\"".THEME."scripts/jquery-1.4.2.min.js\"></script>
					<script type=\"text/javascript\">
						stepcarousel.setup({
						galleryid: 'mygallery', //id of carousel DIV
						beltclass: 'belt', //class of inner \"belt\" DIV containing all the panel DIVs
						panelclass: 'panel', //class of panel DIVs each holding content
						panelbehavior: {speed:500, wraparound:true, persist:true},
						defaultbuttons: {enable: true, moveby: 1, leftnav: ['".THEME."css/eps2.png', -0, 60], rightnav: ['".THEME."css//eps1.png', -25, 60]},
						statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
						contenttype: ['external'] //content setting ['inline'] or ['external', 'path_to_external_file']
						})
					</script>
	<br/>
	<table cellspacing='0' align='center' cellpadding='0' height='900' width='1000' border='0' style=''>
		<tr>
			<td style='font-family:\"Trebuchet MS\";background:url(".THEME."images/BG-T.png) no-repeat;padding:10px;text-align:left;vertical-align:top;height:108px;border:0px;width:100%;color:#fff;'>

	<table cellspacing='0' align='center' cellpadding='0' height='100%' width='100%' border='0' style=''>
		<tr>
			<td width='25%'>
				{LOGO}
			</td>
			<td width='75%'>
<div id='slider' style='text-align:center'>
<div id='mygallery' class='stepcarousel'>
<div class='belt'>";

for($i=0; $i < 4; $i++)
	{
$HEADER .= "<div class='panel'>
					<h2><a href='".$MYLINK[$i]."' title='".$MYTITLE[$i]."'>".$MYTITLE[$i]."</a></h2>
				<p>".$INHALT[$i]."</p>
				".$IMG[$i]."
			</div>";		

		}

$HEADER .= "
</div>
</div>
<div class='showme'><a href='http://www.lifttechnik-sauerland.de/' target='_blank' title='Senkrechtlifte, Hublifte, Hebeb&uuml;hnen, Behindertenlifte, Schr&auml;gaufzug'>Senkrechtlifte, Hublifte, Hebeb&uuml;hnen, Behindertenlifte, Schr&auml;gaufzug</a>Das ist das Schow</div>
</div>
	<div class='clear'></div>
	
</td>
</tr>
</table>	
	
			</td>
		</tr>
		<tr>
			<td style='background:url(".THEME."images/NAV_BG.png) repeat-x;height:37px;width:100%;color:#fff;text-align:left;'>
				{SITELINKS_ALT=no_icons}
			</td>
		</tr>
		<tr>
			<td style='background:#fff url(".THEME."images/content_bg.png) repeat-x;vertical-align:top;width:100%;padding-top:10px;'>
				<table cellspacing='1' cellpadding='0' width='100%' border='0' style='font-size:100%;'>
					<tr>
						<td style='background:transparent;width:600px;vertical-align:top;text-align:center;padding:10px;border-right:0px solid;'>
						{SETSTYLE=content}
						
						
						";
$FOOTER = "	</td>
						<td style='background:transparent;width:300px;vertical-align:top;text-align:center;padding:1px;'>
							{SETSTYLE=menu1}
							{MENU=1}
							{MENU=2}
							{MENU=3}
							<br />
								<a target='_blank' href='http://www.e107.4xa.de'><img src='http://www.e107.4xa.de/e107_images/e107-templates.png' alt='myLOGO' title='Besuche mich'/></a>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td style='background:url(".THEME."images/BG-B.png) no-repeat;height:243px;text-align:center;vertical-align:top;padding:10px;'>
				<table cellspacing='1' cellpadding='0' width='100%' border='0' style='font-size:100%;color:#fff;'>
					<tr>			{SETSTYLE=menu_bottom}
						<td class='menu_botoom'>
						{SETSTYLE=menu2}
							{MENU=7}
						</td>
						<td class='menu_botoom'>
							{SETSTYLE=menu2}
							{MENU=8}
						</td>
						<td class='menu_botoom'>
							{SETSTYLE=menu2}
							{MENU=9}
						</td>
						<td class='menu_botoom'>
							{SETSTYLE=menu2}
							{MENU=10}
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table><br/>
	{SITEDISCLAIMER}
	";
////////////////////////////////////////////////////////////////////
function news_style($news) {
        $myday  = strftime("%d", $news["news_datestamp"]);
        $mymonth = strftime("%b", $news["news_datestamp"]);
        $myyear = strftime("%Y", $news["news_datestamp"]);
$NEWSSTYLE = "

			<div style='width:100%;vertical-align:top;padding:0px;border-botom: 20px #e2e2e2 solid;text-align:left;'>
				<div style='font-family:\"Trebuchet MS\";width:100%;vertical-align:top;padding:0px;border: 0px;font-size:120%;color:#c70707;text-transform:uppercase;font-weight:bold;'>
					{NEWSTITLE} &nbsp;&nbsp;{ADMINOPTIONS}
				</div>
				<div style='width:100%;vertical-align:top;padding:0px;border: 0px;font-size:75%;color:#9f9f9f;text-transform:uppercase;font-weight:bold;'>
					".LAN_THEME_9."{NEWSAUTHOR} {NEWSDATE} {NEWSCOMMENTS}{TRACKBACK}&nbsp;&nbsp;{EMAILICON}&nbsp;{PRINTICON}&nbsp;{PDFICON}&nbsp;
				</div>
 			</div>
 			<div style='width:100%;text-align:justify;background:#fff;font-size:95%;padding-top:10px;'>
 									";
					if(NEWSIMAGE){$NEWSSTYLE .= "<div id='newsimg'>{NEWSTHUMBNAIL}</div>";}
					$NEWSSTYLE .= "{NEWSBODY}{EXTENDED}
			</div>
		</div><br/><br/>";
	return $NEWSSTYLE;
 }
define('ICONMAIL', 'email_16.png');
define('ICONPRINT', 'print_16.png');
define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", LAN_THEME_2);
define("COMMENTOFFSTRING", LAN_THEME_3);
define("PRE_EXTENDEDSTRING", "<br /><br /><font class='extend_string'>");
define("EXTENDEDSTRING", LAN_THEME_4);
define("POST_EXTENDEDSTRING", "</font>");
define("TRACKBACKSTRING", LAN_THEME_5);
define("TRACKBACKBEFORESTRING", " | ");
///////////////////////////////////////////////////////////////
function linkstyle($sTheStyle)
{

//
// Common to all styles (for this theme)
//
  $aSLinkSet['prelink']          = "";
  $aSLinkSet['postlink']         = "";
  $aSLinkSet['linkclass']        = "link1";
  $aSLinkSet['linkclass_hilite'] = "link2";
  // (see below for linkstart_hilite and linkstart)
  $aSLinkSet['linkend']          = "</div></div>";
  $aSLinkSet['linkdisplay']      = 1;
  $aSLinkSet['linkalign']        = "left";
  $aSLinkSet['linkseparator']    = "";
/////////////////////////////////
  $aSLinkSet['sublinkclass'] = 'mysublink';
  $aSLinkSet['subindent']    = ' ';

//
// Now for some per-style setup
//
  switch ($sTheStyle)
  {
  case 'StyleA':
    $aSLinkSet['linkstart'] = "<li>";
    $aSLinkSet['linkstart_hilite'] = "";
    break;
  case 'StyleB':
    $aSLinkSet['linkstart'] = "| ";
    $aSLinkSet['linkstart_hilite'] = "";
    break;
  default: // if no LINKSTYLE defined
    $aSLinkSet['linkstart'] = "<div  class='link1' onmouseover=\"this.className='link2';\" onmouseout=\"this.className='link1';\"><div class='linktext'> <img src='".THEME_ABS."images/bullet2.gif' alt='' />&nbsp;&nbsp;";
    $aSLinkSet['linkstart_hilite'] = "<div class='link2' onmouseover=\"this.className='link1';\" onmouseout=\"this.className='link2';\"><div class='linktext'><img src='".THEME_ABS."images/bullet2.gif' alt='' />&nbsp;&nbsp;";
    $aSLinkSet['linkclass'] = 'link2'; // Override linkclass for fun-- mark these
    $aSLinkSet['sublinkclass'] = 'link1'; // Override sublinkclass for fun-- mark these
    $aSLinkSet['LINKEND'] = "</div></div>";
		$aSLinkSet['LINKDISPLAY'] = 1;
		$aSLinkSet['LINKALIGN'] =  "left";
  }
  return $aSLinkSet;
}

//	[tablestyle]
function tablestyle($caption, $text, $mode)
	{
	global $style;	
	if($style == "menu1")
		{
		if(!$caption){$RR="padding-top:40px";}else{$RR="padding-top:18px";}
		echo "
				<div style='
				font-size:90%;
				width:100%;
				padding:0px;
				vertical-align:top;
				background: url(".THEME."images/CBT2.png) repeat-x;
				'>
  				<div style='
  				font-size:170%;
  				width:90%;
  				padding:10px;
  				text-align:left;
  				font-family:\"Trebuchet MS\";
  				font-style:italic;
  				font-weight:bold;
  				color:#fff;
  				'>
 						".$caption."
 					</div>
 					<div style='
 					width:90%;
 					text-align:left;
 					padding:15px;".$RR."'>
 					
 						".$text."
					</div>
				</div>";
		}
	elseif($style == "menu2")
		{
		echo "
				<div  style='font-style:italic;font-weight:bold;font-size:170%;padding-bottom:20px;font-family:\"Trebuchet MS\";text-qaling:left;'>
				".$caption."
				</div>
				".$text;
		}
	elseif($style == "content")
		{if(!$caption){$RR="padding-top:40px";}else{$RR="padding-top:18px";}
		echo "
				<div style='font-size:95%;width:100%;vertical-align:top;background: url(".THEME."images/CBT.png) repeat-x;'>
  				<div style='font-size:170%;padding:10px;width:100%;text-align:left;font-family:\"Trebuchet MS\";font-weight:bold;color:#fff;'>
 			".$caption." 
 			</div>
 					<div style='width:96%;text-align:left;padding:0px;".$RR.";padding-bottom:15px;'>
 			".$text."	
 			</div>
		</div>";
		}
else{
	echo "<div class='menu_bottom' style='color:#fff;'><b>".$caption."<b/></div><br/><div class='menu_bottom' >".$text."</div>";
		}
	}
?>