<?php
/**
 * Common Template - tpl_header.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_header = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
 */
?>

<link rel="stylesheet" type="text/css" media="screen" href="<?=$maindir; ?>stylesheet.css">
<style type="text/css">
<!--
.style1 {
	font-size: 9px;
	font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<script>
var message="Right click is disabled";

function clickIE4(){
    if (event.button==2){
        alert(message);
        return false;
    }
}

function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
        if (e.which==2||e.which==3){
            alert(message);
            return false;
        }
    }
}

if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")
</script>

<?php
if ($_REQUEST['main_page']=='' || strstr($_REQUEST['main_page'],'product') || strstr($_REQUEST['main_page'],'shopping') || strstr($_REQUEST['main_page'],'index')|| strstr($_REQUEST['main_page'],'checkout') || strstr($_REQUEST['main_page'],'log') || strstr($_REQUEST['main_page'],'account') || $_REQUEST['cPath'] != "") {$ibase="shop";}
 
else {$ibase=$_REQUEST['main_page'];}
if ($ibase=="page_2") {$ibase="media"; }
?>
