<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="pl">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex,nofollow">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/css/stylesheet.css">
<link rel="stylesheet" type="text/css" href="includes/css/menu.css">
<link rel="stylesheet" type="text/css" href="popupbox/style.css">
<script type="text/javascript" language="javascript" src="includes/javascript/general.js"></script>
<script type="text/javascript" src="../swfobject.js"></script>
<?php
if (basename($PHP_SELF) == 'admin_account.php' || basename($PHP_SELF) == 'admin_members.php') { require('includes/account_check.js.php'); } ?>
<?php if (basename($PHP_SELF) == 'coupons.php' || basename($PHP_SELF) == 'customers.php') { ?>
<link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css">
<script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>
<?php } ?>
<?php if (basename($PHP_SELF) == 'create_order.php') { require('includes/form_check.js.php'); } ?>
<?php if (basename($PHP_SELF) == 'edit_orders.php') { include('order_editor/css.php'); include('order_editor/javascript.php'); } ?>
<?php if (basename($PHP_SELF) == 'options_images.php' || basename($PHP_SELF) == 'quick_updates.php') { ?>
<script language="JavaScript" type="text/javascript" src="includes/javascript/pick.js"></script>
<?php } ?>
<?php if (basename($PHP_SELF) == 'manufacturers.php' || basename($PHP_SELF) == 'configuration.php' || basename($PHP_SELF) == 'polls.php' || basename($PHP_SELF) == 'banner_manager.php') { ?>
<script language="JavaScript" type="text/javascript" src="includes/javascript/pick.js"></script>
<link type="text/css" rel="stylesheet" href="includes/javascript/tabpane/css/luna/tab.css">
<script type="text/javascript" src="includes/javascript/tabpane/js/tabpane.js"></script>
    <?php if (basename($PHP_SELF) == 'manufacturers.php' || basename($PHP_SELF) == 'polls.php') { ?>
        <?php if (UZYWAJ_GOOGLE == true || !defined('UZYWAJ_GOOGLE')) { ?>
            <script type="text/javascript" src="http://www.google.com/jsapi"></script>
            <script type="text/javascript">google.load("language", "1");</script>
        <?php } ?>
    <?php } ?>
<?php } ?>
<?php if (basename($PHP_SELF) == 'faq.php' || basename($PHP_SELF) == 'page_manager.php') { ?>
<link type="text/css" rel="stylesheet" href="includes/javascript/tabpane/css/luna/tab.css">
<script type="text/javascript" src="includes/javascript/tabpane/js/tabpane.js"></script>
<?php if (UZYWAJ_GOOGLE == true || !defined('UZYWAJ_GOOGLE')) { ?>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">google.load("language", "1");</script>
<?php } ?>    
<?php } ?>
<?php if (basename($PHP_SELF) == 'newsdesk.php' && isset($_GET['action'])) { ?>
	<?php $er = $_GET['action']; if ($er == 'new_product') { ?>
	<script language="JavaScript" type="text/javascript" src="includes/javascript/pick.js"></script>
    <?php if (UZYWAJ_GOOGLE == true || !defined('UZYWAJ_GOOGLE')) { ?>
        <script type="text/javascript" src="http://www.google.com/jsapi"></script>
        <script type="text/javascript">google.load("language", "1");</script>
    <?php } ?>
	<link type="text/css" rel="stylesheet" href="includes/javascript/tabpane/css/luna/tab.css">
	<script type="text/javascript" src="includes/javascript/tabpane/js/tabpane.js"></script>
	<?php } else { ?>
	<script language="JavaScript" type="text/javascript" src="includes/javascript/pick.js"></script>
    <?php } ?>
<?php } ?>

<?php if (basename($PHP_SELF) == 'backup.php') { ?>
<script language="JavaScript" type="text/javascript">
function flagCheckboxes(element) {
  var elementForm = element.form;
  var i = 0;

  for (i = 0; i < elementForm.length; i++) {
    if (elementForm[i].type == 'checkbox' && ( elementForm[i].name == 'dbtable[]' || elementForm[i].name == 'batchFlag')) {
      elementForm[i].checked = element.checked;
    }
  }
}
</script>
<?php } ?>

<?php if (basename($PHP_SELF) == 'categories.php' && isset($_GET['action'])) { ?>
	<?php $er = $_GET['action']; if ($er == 'new_category' || $er == 'edit_category' || $er == 'new_product') { ?>
		<script language="JavaScript" type="text/javascript" src="includes/javascript/pick.js"></script>
        <?php if (UZYWAJ_GOOGLE == true || !defined('UZYWAJ_GOOGLE')) { ?>
            <script type="text/javascript" src="http://www.google.com/jsapi"></script>
            <script type="text/javascript">google.load("language", "1");</script>
        <?php } ?>
		<?php require_once( 'attributeManager/includes/attributeManagerHeader.inc.php' );
		include(DIR_WS_INCLUDES . 'javascript/' . 'webmakers_added_js.php')
		?>
		<link type="text/css" rel="stylesheet" href="includes/javascript/tabpane/css/luna/tab.css">
		<script type="text/javascript" src="includes/javascript/tabpane/js/tabpane.js"></script>
		</head>
		<body onload="menu();goOnLoad()">
	<?php } else { ?>
		<script language="JavaScript" type="text/javascript" src="includes/javascript/pick.js"></script>
		<link type="text/css" rel="stylesheet" href="includes/javascript/tabpane/css/luna/tab.css">
		<script type="text/javascript" src="includes/javascript/tabpane/js/tabpane.js"></script>
		</head>
		<body onload="menu();goOnLoad()">
	<?php } ?>
<?php } else { ?>
	</head>
	<body onload="menu();">
<?php } ?>
