<?php include_once APP_PATH.'template/wood/header.php';?>

		<div class="content">
        
        <div class="content-right-details">
        <div class="prod-details">
         <a href="<?php echo $backtoshop;?>" class="button" title="Back To Products">Back To Products</a>
        </div>
        
        <h2 class="prodtitle"><?php echo $PAGE_TITLE;?></h2>
        
        <div class="padder">
        
		
		<?php if (!PAGE_ACTIVE) { ?>
		<div class="status-failure"><?php echo $tl["errorpage"]["ep"];?></div>
		<?php } ?>
		
		<article class="post">
			
			<div class="entry-content shop-product">
			
				<figure class="shop_item_nb">
                 <div class="left-holder">
					
					<?php if ($row['previmg']) { ?>
					<a href="<?php echo BASE_URL.$row["img"];?>" class="ilightbox">
					<?php } ?>
					<img class="product-image" src="<?php echo BASE_URL.$row["previmg"];?>" alt="product thumbnail" id="p_<?php echo $row["id"];?>" />
					<?php if ($row['previmg']) { ?>
					</a>
					<?php } ?>
				
					
					<div class="add-option">
					
					<?php if ($row['product_options']) { ?>
					<select name="product-option" class="product-option" id="po_<?php echo $row["id"];?>">
						<option value=""><?php echo $tl["shop"]["m54"];?></option>
						<?php $poptarray = explode(',', $row['product_options']); for ($i = 0; $i < count($poptarray); $i++) { 
						
							$optearray = explode('::', $poptarray[$i]);
							
							if ($_SESSION['ECOMMERCE_CURRENCY'] != JAK_CURRENCY && $optearray[1] != "0.00") {
							
								$optearray[1] = $convert->Convert($optearray[1], $_SESSION['ECOMMERCE_CURRENCY']);
							}
						
						?>
						
						<option value="<?php echo $poptarray[$i];?>"><?php echo $optearray[0]; if ($optearray[1] != "0.00") { echo ' ('.$optearray[1].'&nbsp;'.$JAK_CURRENCY.')'; }?></option>
						
						<?php } ?>
					</select><br />
					<input type="hidden" name="pop_<?php echo $row["id"];?>" id="pop_<?php echo $row["id"];?>" value="" />
					<?php } ?>
					
					<?php if ($row['product_options'] && $row['product_options1']) { ?>
					<select name="product-option1" class="product-option1" id="po1_<?php echo $row["id"];?>">
						<option value=""><?php echo $tl["shop"]["m54"];?></option>
						
						<?php $poptarray1 = explode(',', $row['product_options1']); for ($i = 0; $i < count($poptarray1); $i++) { 
						
							$optearray1 = explode('::', $poptarray1[$i]);
							
							if ($_SESSION['ECOMMERCE_CURRENCY'] != JAK_CURRENCY && $optearray[1] != "0.00") {
							
								$optearray1[1] = $convert->Convert($optearray1[1], $_SESSION['ECOMMERCE_CURRENCY']);
							}
						
						?>
						
						<option value="<?php echo $poptarray1[$i];?>"><?php echo $optearray1[0]; if ($optearray1[1] != "0.00") { echo ' ('.$optearray1[1].'&nbsp;'.$JAK_CURRENCY.')'; }?></option>
						
						<?php } ?>
					</select><br />
					<input type="hidden" name="pop1_<?php echo $row["id"];?>" id="pop1_<?php echo $row["id"];?>" value="" />
					<?php } ?>
					
					<?php if ($row['product_options'] && $row['product_options1'] && $row['product_options2']) { ?>
					<select name="product-option2" id="po2_<?php echo $row["id"];?>" class="product-option2">
						<option value=""><?php echo $tl["shop"]["m54"];?></option>
						<?php $poptarray2 = explode(',', $row['product_options2']); for ($i = 0; $i < count($poptarray2); $i++) { 
						
							$optearray2 = explode('::', $poptarray2[$i]);
							
							if ($_SESSION['ECOMMERCE_CURRENCY'] != JAK_CURRENCY && $optearray[1] != "0.00") {
							
								$optearray2[1] = $convert->Convert($optearray2[1], $_SESSION['ECOMMERCE_CURRENCY']);
							}
						
						?>
						
						<option value="<?php echo $poptarray2[$i];?>"><?php echo $optearray2[0]; if ($optearray2[1] != "0.00") { echo ' ('.$optearray2[1].'&nbsp;'.$JAK_CURRENCY.')'; }?></option>
						
						<?php } ?>
					</select>
					<input type="hidden" name="pop2_<?php echo $row["id"];?>" id="pop2_<?php echo $row["id"];?>" value="" />
					<?php } ?>
					
					</div>
					
					<p><?php echo $tl["shop"]["m46"].'<strong>'.$instock;?></strong> <?php if ($row["digital_file"]) echo $tl['shop']['m90'];?></p>
					
					<p><?php if ($row["onsale"]) { echo $tl["shop"]["m31"]; } else { echo $tl["shop"]["m"]; } echo '<span class="pprice_'.$row["id"].'">'.$row["price"].'</span>&nbsp;'.$JAK_CURRENCY;?></p>
						
						<?php if ($row['stock']) { ?>
						<div class="clear"></div>
						<button class="button_big" onclick="addlist(<?php echo $row['id'];?>);return false;"><?php echo $tl["shop"]["m76"];?></button>
						<?php } ?>
                        
                </div>
                <div class="right-holder">
                <h3><?php echo $PAGE_TITLE;?></h3>
                <p><?php echo $PAGE_CONTENT;?></p>
                </div>
                 <div class="clear"></div>
					
				</figure>
				
				
			    
			    
			    
			</div>
			
			<div class="clear"></div>
		
		</article>
		
		<div class="fnp">
		 <?php if ($JAK_NAV_NEXT) { ?> <a href="<?php echo $JAK_NAV_NEXT;?>"><img src="<?php echo BASE_URL;?>template/wood/img/previcon.png" alt="prev" /> <?php echo $JAK_NAV_NEXT_TITLE;?></a> - <?php } ?><a href="<?php echo $backtoshop;?>"><?php echo $tl['general']['g'];?></a><?php if ($JAK_NAV_PREV) { ?> - <a href="<?php echo $JAK_NAV_PREV;?>"><?php echo $JAK_NAV_PREV_TITLE;?> <img src="<?php echo BASE_URL;?>template/wood/img/nexticon.png" alt="next" /></a><?php } ?>
		</div>
        </div>
        </div>
		
		
		
		</div><!-- #content -->
        
        <div class="content-left">
          <div class="shopping-cart drop-here" id="shopping-cart">
		
			<div class="inside">
			
				<h2><?php echo $tl["shop"]["m26"];?></h2>
							
						<div id="drag-product-info"><?php echo $tl["shop"]["m27"];?></div>
						
						<div id="item-list" class="item-list"></div>
						
						<!--<div id="trash">
						<h3><?php echo $tl["shop"]["m28"];?></h3>
						<a href="#"><img src="/img/trash.png" alt="shopping cart" width="74" height="80" /></a>
						</div>-->
						
						<div id="total">
						<p>
						<span class="pricehead"><?php echo $tl["shop"]["m"];?></span>
                         <span id="total-amount"></span> 
						  <span id="total-amount"><?php echo $JAK_CURRENCY;?></span>
						<a href="<?php echo $shopcheckout;?>" class="checkout block"><?php echo $tl["shop"]["m29"];?></a>
						</p>
						</div>
						
			</div>
		  </div>       
		</div>
		
		<script type="text/javascript">
		$(document).ready(function() {
		
			$("#inner_replace").addClass("gradient-down");
			
		});
		</script>
		
<?php include_once APP_PATH.'template/wood/footer.php';?>