<div id="content">
    <div class="row contentheader">
      	<span class="left"><?php getLanguage(162)?></span>
      	<span class="right">
	      	<a class="toptabs" href="account/points" ><?php getLanguage(838) ?></a>
	        <a class="toptabs" href="account/settings" ><?php getLanguage(30) ?></a>
	      	<a class="toptabs" href="account/profile" ><?php getLanguage(31) ?></a>
	    </span>
  	</div>
  	<div id="centercontent">
    	<div id="topcontainer">
        	<?php
				$arr = array();
				$arr[] = "background";
				$arr[] = "default";
				$arr[] = "agenda";
				$arr[] = "birch";
				$arr[] = "birds";
				$arr[] = "blackcross";
				$arr[] = "blackromb";
				$arr[] = "bluebulles";
				$arr[] = "bluemettal";
				$arr[] = "cyanmettal";
				$arr[] = "greenlines";
				$arr[] = "greenmettal";
				$arr[] = "greymettal";
				$arr[] = "isumrudic";
				$arr[] = "lined_paper";
				$arr[] = "mosaic";
				$arr[] = "noisygrid";
				$arr[] = "notes";
				$arr[] = "orangelines";
				$arr[] = "paper";
				$arr[] = "pink";
				$arr[] = "pinkmettal";
				$arr[] = "pinstripe";
				$arr[] = "redcircle";
				$arr[] = "redmettal";
				$arr[] = "vintage";
				$arr[] = "whitemosaic";
				$arr[] = "whitestripped";
				$arr[] = "wood";
				$arr[] = "yellowmettal";
				for($i=0;$i<30;$i++)
				{ ?>
					<link rel="alternate stylesheet" type="text/css" media="screen" href="media/css/themes/<?php echo $arr[$i]; ?>.css" title="theme_<?php echo $arr[$i]; ?>" disabled="disabled">
		  		<?php } ?>
    		<?php
			    switch(SESSION_MESSAGE)
			    {
			    	case 1: echo('<p class="error"><i class="fa fa-exclamation-circle"></i> <b>'.getLanguage(40, 1).'</b>'.getLanguage(163, 1).'</p>'); break;
			    	case 2: echo('<p class="message"><i class="fa fa-check-circle-o"></i> <b>'.getLanguage(129, 1).'</b>'.getLanguage(164, 1).'</p>'); break;
			    	case 3: echo('<p class="error"><i class="fa fa-exclamation-circle"></i> <b>'.getLanguage(40, 1).'</b>'.getLanguage(165, 1).'</p>'); break;
			    }
			    unset($_SESSION['msg']);
			    ?>
   		 	<form method="post" action="account/design" enctype="multipart/form-data" id="themeForm">
      			<input type="hidden" name="theme" id="theme" value="default">
	  			<center>
				<?php if(BACKGROUND_URL) {?>
					<div id="photoPreview">
						<img src="media/images/backgrounds/<?php echo BACKGROUND_URL ?>" alt="photo" width="75"><br>
						<a id="deletePhotoLink" href="#" onclick="deletePhoto(); return false"><?php getLanguage(132)?></a><br><hr><br>
				  	</div>
				  	<input type="hidden" id="deletephoto" name="deletephoto" value="0">
				  	<div id="photoUpload" style="display:none">
			     		<div class="post">	
					        <input type="file" name="photo" id="photo" size="30" class="w40">
						<br><?php getLanguage(432)?>
						</div>
						<br><hr><br>
					</div><br>
				<?php } else { ?>
					<div id="photoPreview">
						<div class="post">
							<?php getLanguage(433)?><br>
							<a id="deletePhotoLink" href="#" onclick="deletePhoto(); return false"><?php getLanguage(132)?></a><br>
						</div>
			    		<hr><br>
			      	</div>
			      	<input type="hidden" id="deletephoto" name="deletephoto" value="0">
			     	<div id="photoUpload" style="display:none">
			     		<div class="post">	
					        <input type="file" name="photo" id="photo" size="30" class="w40">
						<br><?php getLanguage(432)?>
						</div>
						<br><hr><br>
					</div><br>
				<?php } ?>
	  			</center>
			    <div id="themes">
			      	<?php readparameter(serializethemes); ?>
					<div class="clear"></div>
				</div>
				<center>
					<input type="submit" name="submit" value="<?php getLanguage(137)?>" class="btn btn-primary">
				</center>
    		</form>
    	</div>
  </div>
  </div>
  <div id="footerspace"></div>
</div>