/* template id: 105b */
body {
margin: 0px;
background-color: #efefef; 
}
.base {
color: #000000;
}
.base * {
border-color: #cccccc;
}
.base a {
color: #4466ff;
}
.base a:hover {
color: #000000;
}
.hover:hover {
color: #000000;
}
.hover:hover a {
color: #000000 !important;
}
.highlighted {
color: #000000 !important;
}
body, 
.content
{
font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: justify;
color: #000000;
}
td
{
font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: justify;
color: #000000;
}
a:link, a:visited
{
color:  #4466ff;
}
a:hover
{
color:  #000000;
}
h1, h1 a
{
font-size: medium;
font-weight: bolder;
color:  #000000 !important;
}
h2, h3, h4, h5,
h2 a, h3 a, h4 a, h5 a
{
font-size: medium;
font-weight: bolder;
color:  #000000 !important;
}
.content .featheader td,
.content .featheader th,
.content td.featheader,
.content th.featheader {
}
.events-list {
}

.navMenu li ul li {
background-color: #333333;
}
.navMenu li ul li:hover {
background: #333333 url(http://assets.sitezoogle.com/common/usersite/css/features/skins/images/trans15-white.png) !important;
}
.navMenu li ul li a {
color:  #4466ff;
}
.cancel-button {
color:  #4466ff !important;
}
.cancel-button:hover {
color:  #000000 !important;
}
.popup {

padding: 0;
}
ul.events-list li.date {
padding: 7px;
}
.events-calendar {
}

/*
Turns off link color for anchor tags
*/

.FCK__AnchorC {
color:  #000000 !important;
}
#twitter_div {
padding: 40px 15px 15px 15px;
color: #000000;
background: url(http://assets.sitezoogle.com/common/usersite/css/features/skins/images/twitter-logo.png) 10px 10px no-repeat;
border: 1px solid #cccccc;
}
.download_purchase {
color: #000000;
border: 1px solid #cccccc;
padding:10px;
margin-bottom:1.0em;
}
if(isset($_GET['help'])) {
  die('Include following code into every page you would like to protect, at the very beginning (first line):<br>&lt;?php include("' . str_replace('\\','\\\\',__FILE__) . '"); ?&gt;');
}

// timeout in seconds
$timeout = (TIMEOUT_MINUTES == 0 ? 0 : time() + TIMEOUT_MINUTES * 60);

// logout?
if(isset($_GET['logout'])) {
  setcookie("verify", '', $timeout, '/'); // clear password;
  header('Location: ' . LOGOUT_URL);
  exit();
}

if(!function_exists('showLoginPasswordProtect')) {

// show login form
function showLoginPasswordProtect($error_msg) {
?>
<html>
<head>
  <title>Please enter password to access this page</title>
  <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
  <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</head>
<body>
  <style>
    input { border: 1px solid black; }
  </style>
  <div style="width:500px; margin-left:auto; margin-right:auto; text-align:center">
  <form method="post">
    <h3>Please enter password to access this page</h3>
    <font color="red"><?php echo $error_msg; ?></font><br />
<?php if (USE_USERNAME) echo 'Login:<br /><input type="input" name="access_login" /><br />Password:<br />'; ?>
    <input type="password" name="access_password" /><p></p><input type="submit" name="Submit" value="Submit" />
  </form>
  <br />
  <a style="font-size:9px; color: #B0B0B0; font-family: Verdana, Arial;" href="http://www.zubrag.com/scripts/password-protect.php" title="Download Password Protector">Powered by Password Protect</a>
  </div>
</body>
</html>

<?php
  // stop at this point
  die();
}
}

// user provided password
if (isset($_POST['access_password'])) {

  $login = isset($_POST['access_login']) ? $_POST['access_login'] : '';
  $pass = $_POST['access_password'];
  if (!USE_USERNAME && !in_array($pass, $LOGIN_INFORMATION)
  || (USE_USERNAME && ( !array_key_exists($login, $LOGIN_INFORMATION) || $LOGIN_INFORMATION[$login] != $pass ) ) 
  ) {
    showLoginPasswordProtect("Incorrect password.");
  }
  else {
    // set cookie if password was validated
    setcookie("verify", md5($login.'%'.$pass), $timeout, '/');
    
    // Some programs (like Form1 Bilder) check $_POST array to see if parameters passed
    // So need to clear password protector variables
    unset($_POST['access_login']);
    unset($_POST['access_password']);
    unset($_POST['Submit']);
  }

}

else {

  // check if password cookie is set
  if (!isset($_COOKIE['verify'])) {
    showLoginPasswordProtect("");
  }

  // check if cookie is good
  $found = false;
  foreach($LOGIN_INFORMATION as $key=>$val) {
    $lp = (USE_USERNAME ? $key : '') .'%'.$val;
    if ($_COOKIE['verify'] == md5($lp)) {
      $found = true;
      // prolong timeout
      if (TIMEOUT_CHECK_ACTIVITY) {
        setcookie("verify", md5($lp), $timeout, '/');
      }
      break;
    }
  }
  if (!$found) {
    showLoginPasswordProtect("");
  }

}

?>