<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2012 osCommerce

  Released under the GNU General Public License
*/
  $oscTemplate->buildBlocks();
  if (!$oscTemplate->hasBlocks('boxes_column_left')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
  if (!$oscTemplate->hasBlocks('boxes_column_right')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
?>
<!DOCTYPE html>
<html <?php echo HTML_PARAMS; ?> class="no-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="viewport" content="width=device-width, initial-scale=0.83, maximum-scale=0.83, minimum-scale=0.83, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<link rel="icon" type="image/png" href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG.DIR_WS_ICONS; ?>favicon.ico" />
<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.23.css" />
<!-- SIMPLE CHECKOUT START -->
<link rel="stylesheet" type="text/css" href="ext/jquery/qtip/qtip.css" />
<!-- SIMPLE CHECKOUT END -->
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/superfish.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/camera.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/sprinkle.css" />
<link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />
<!--[if IE]><script type="text/javascript" src="ext/jquery/ie.js"></script><![endif]-->	
<link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>1152_24_col.css" />
<script type="text/javascript" src="ext/jquery/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.23.min.js"></script>
<!-- SIMPLE CHECKOUT START -->
<script type="text/javascript" src="ext/jquery/qtip/qtip.js"></script>
<!-- SIMPLE CHECKOUT END -->
<?php
  if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>
<script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script>
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']);
</script>
<?php
  }
?>
<script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script> 
<script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="ext/jquery/xeasyTooltipIMG.js"></script>
<script type="text/javascript" src="ext/jquery/hoverIntent.js"></script> 
<script type="text/javascript" src="ext/jquery/superfish.js"></script>
<script type='text/javascript' src='ext/jquery/jquery.mobile.customized.min.js'></script>
<script type='text/javascript' src='ext/jquery/jquery.easing.1.3.js'></script> 
<script type='text/javascript' src='ext/jquery/jquery.camera.js'></script> 
<script type="text/javascript" src="ext/jquery/jquery.cookie.js"></script>
<script type="text/javascript" src="ext/jquery/jquery.equalheights.js"></script>
<script type="text/javascript" src="ext/jquery/jquery.stringball.js"></script>
<script type="text/javascript" src="ext/jquery/jquery.mousewheel.min.js"></script>
<?php if ($current_page == FILENAME_DEFAULT || $current_page == FILENAME_CATEGORIES_NESTED || $current_page == FILENAME_PRODUCT_INFO)	{ ?>
<script type="text/javascript" src="ext/jquery/jquery-ui-personalized-1.5.2.packed.js"></script>
<?php } ?>
<script type="text/javascript" src="ext/jquery/sprinkle.js"></script>
<script type="text/javascript" src="ext/jquery/jquery.carouFredSel-6.2.0-packed.js" charset="utf-8"></script>
<script type="text/javascript" src="ext/jquery/js.js"></script>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700&amp;subset=latin,cyrillic,cyrillic-ext' rel='stylesheet' type='text/css'>
<?php echo $oscTemplate->getBlocks('header_tags');
			require(DIR_WS_INCLUDES . 'style.css.php');?>
<!--[if lte IE 7]>
<div id="ie_message"><a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." src="images/banner_ie.png"></a></div>
<![endif]-->            
</head>
<?php
  // Discount Code 3.1.1 - start
  if (basename($PHP_SELF) == FILENAME_DISCOUNT_CODES && isset($action) && $action == 'new') {
    echo '<body onload="onload();">';
  } else {
    echo '<body>';
  }
  // Discount Code 3.1.1 - end
?>
<p id="back-top"><a href="#top"><span><?php echo BACK_TO_TOP;?></span></a></p> 
<div id="bodyWrapper" class="<?php echo $index_page.$current_lang_key;?>">
<div id="mainWrapper">
	<div id="wrapper">
		<div class="container">
    		<div class="row row_1 container_<?php echo $containerWidth; ?>">
        		<div class="<?php echo $grid.$containerWidth_value; ?>"><?php require(DIR_WS_INCLUDES . 'header.php'); ?></div>
            	<div class="<?php echo $grid.$containerWidth_value; ?>"><?php require(DIR_WS_MODULES.'cat_navbar.php');?></div>
    		</div>
      <?php if ($oscTemplate->hasBlocks('boxes_under_header')) { ;?>
    		<div class="row row_2 container_<?php echo $containerWidth; ?>">
        		<div class="<?php echo $grid.$containerWidth_value; ?>">						
						<?php echo $oscTemplate->getBlocks('boxes_under_header');?>
            	</div>
    		</div>
			<?php } ?>
<?php if (($current_page != FILENAME_DEFAULT) )	{ ?>       
    		<div class="row row_4 container_<?php echo $containerWidth; ?>">
        		<div class="<?php echo $grid.$containerWidth_value; ?>"><div class="breadcrumb"><?php echo '&nbsp;&nbsp;' . $breadcrumb->trail(' &raquo; '); ?></div></div>
    		</div> 
<?php } ?>              
    		<div class="row row_4 container_<?php echo $containerWidth; ?>">
				<section id="bodyContent" class="col <?php echo $grid.$contentWidth_value; ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'push_' . $columnWidth : ''); ?>">
<?php if (($oscTemplate->hasBlocks('boxes_content_top')))	{ ?>
					<div class="box_top_content"><?php echo $oscTemplate->getBlocks('boxes_content_top'); ?></div>
<?php } ?>              
