<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
<title><?php echo $this->getTitle() ?></title>
<meta name="description" content="<?php echo htmlspecialchars($this->getDescription()) ?>" />
<meta name="keywords" content="<?php echo htmlspecialchars($this->getKeywords()) ?>" />
<meta name="robots" content="<?php echo htmlspecialchars($this->getRobots()) ?>" />
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
<link rel="icon" href="<?php echo $this->getFaviconFile(); ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $this->getFaviconFile(); ?>" type="image/x-icon" />

<link media="all" href="<?php echo $this->getSkinUrl()?>css/styles.css3.php?url=<?php echo $this->getSkinUrl()?>" type="text/css" rel="stylesheet" />

<!--[if lt IE 7]>
<script type="text/javascript">
//<![CDATA[
    var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>';
    var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
//]]>
</script>

<![endif]-->
<?php echo $this->getCssJsHtml() ?>
<?php echo $this->getChildHtml() ?>
<?php echo $this->helper('core/js')->getTranslatorScript() ?>
<?php echo $this->getIncludes() ?>


	<?php $_menu_style = Mage::getStoreConfig('themeoptions/themeoptions_config/menu_style'); ?>
	<?php $_main_color = Mage::getStoreConfig('themeoptions/themeoptions_config/main_color'); ?>
	<?php $_link_color = Mage::getStoreConfig('themeoptions/themeoptions_config/link_color'); ?>
	<?php $_body_background = Mage::getStoreConfig('themeoptions/themeoptions_config/body_background'); ?>

	<?php $_bg_pattern = Mage::getStoreConfig('themeoptions/themeoptions_config/bg_pattern'); ?>
    <?php $_font = Mage::getStoreConfig('themeoptions/themeoptions_config/font') ?>
<?php if ($_font) : ?>


    <link href='http://fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', $_font); ?>:200,300,400,500,600,700,800' rel='stylesheet' type='text/css' />
    <?php endif; ?>
	<style type="text/css">

    /*google font*/
    <?php if ($_font) : ?>
        { font-family: '<?php echo $_font; ?>';}
    <?php endif; ?>
    
    <?php if($_main_color): ?>
        .footer-static-container, .ma-footer-static { background-color:<?php echo $_main_color ?>; }
        .product-view button.btn-cart:hover span { background-color:<?php echo $_main_color ?> !important; }
        /*a:hover, .products-grid .product-name a:hover, .product-name a:hover*/ { color:<?php echo $_main_color ?>; }
        
    <?php endif; ?>
    
    <?php if($_link_color): ?>

         .ma-timer-container .ma-title,.ma-bestseller-products .ma-title,.megamenu-title,.upsellslider-title .fa, .block-group .ma-title .fa, .tab-title .fa,.flex-direction-nav a:hover, .bx-wrapper .bx-controls a:hover,.products-grid .item-inner:hover button.btn-cart span, .tab_container .item-inner:hover button.btn-cart span,#back-top:hover,#sequence-theme .controls a:hover, .nivo-directionNav a:hover,.block-tags .block-content a:hover,.wrapper_box #shopping_cart,.wrapper_box #continue_shopping,.navbar{ background-color:<?php echo $_link_color ?>; }

         button.button:hover span{ background-color:<?php echo $_link_color ?> !important; }

         .pt_custommenu div.pt_menu:hover .parentMenu, .pt_custommenu div.pt_menu .parentMenu a:hover, .pt_custommenu div.pt_menu .parentMenu:hover, .pt_custommenu #pt_menu_link ul li a.act, .pt_custommenu #pt_menu_link ul li a:hover, .pt_custommenu div.pt_menu.act, .pt_custommenu div.pt_menu.act .parentMenu a, .pt_custommenu div.pt_menu.act a, .pt_custommenu div.pt_menu.active .parentMenu a, #pt_menu_pt_item_menu_custom_menu.active span, .pt_custommenu div.pt_menu.act .itemSubMenu .itemMenuName:hover, .pt_custommenu .itemSubMenu a.level2:hover, .pt_custommenu .itemMenu a.level1.nochild:hover, .pt_custommenu .itemMenu h4.level1, .pt_custommenu .itemMenu a.level1, a:hover, .price-box,.pt_vmegamenu .itemMenu h4.level1:hover, .pt_vmegamenu .itemMenu a.level1:hover,.pt_vmegamenu div.popup a.act,.pt_vmegamenu .itemSubMenu h4.level2:hover, .pt_vmegamenu .itemSubMenu a.level2:hover, .pt_vmegamenu .itemSubMenu h4.level3:hover, .pt_vmegamenu .itemSubMenu a.level3:hover, .pt_vmegamenu .itemMenu a.level1.nochild:hover,.drop-lang .sub-lang li a:hover,.menu-recent h3.ma-title:hover,.menu-recent li p a,.drop-currency .sub-currency li a:hover,.footer address a:hover,.header .form-search .bootstrap-select.btn-group .btn .filter-option:hover,.top-cart-wrapper:hover .fa,.bootstrap-select.btn-group:hover .btn .caret,.breadcrumbs li strong,.block .block-title strong,.page-title h1, .page-title h2,.block-account .block-content li.current{ color:<?php echo $_link_color ?>; }

        .pt_custommenu div.popup a.act { color:<?php echo $_link_color ?> !important; }

         .products-grid .item-inner:hover button.btn-cart span, .tab_container .item-inner:hover button.btn-cart span,button.button:hover span,.block-tags .block-content a:hover{ border-color: <?php echo $_link_color ?>; }
    <?php endif; ?>

    <?php if($_body_background): ?>
        body { background-color: <?php echo $_body_background ?>;}
    <?php endif; ?>
    
    <?php if($_bg_pattern): ?>
        body { background-image: url(<?php echo $this->getSkinUrl('images/pattern/').$_bg_pattern.'.png' ?>) ; background-repeat: repeat; }
    <?php endif; ?>   

</style>

