<?php if(imwb_zonpress_get_option('hidefooter') == 'N') { ?>
<div id="footer-wrapper">
 <div id="footer" <?php imwb_zonpress_footer_sidebar_class(); ?>>
 <?php
 	get_sidebar( 'footer' );
 ?>
 </div>
</div> <!-- #footer -->
<?php 
}
wp_footer(); 
?>
<div id="smcf-login-form" style="display:none;">
<form name="loginform" id="loginform" action="<?php bloginfo( 'url' );?>/?action=dosignin" method="post">
   <div class="title"><?php _e('Login', 'imwb_zonpress'); ?></div>
   <div class="smcf-login-fields">
   <p>
   	<label><?php _e('Username', 'imwb_zonpress'); ?><br>
   	<input type="text" name="log" class="user_login input" value="" size="20" tabindex="10" /></label>
   </p>
   <p>
   	<label><?php _e('Password', 'imwb_zonpress'); ?><br>
   	<input type="password" name="pwd" class="user_pass input" value="" size="20" tabindex="20" /></label>
   </p>
   <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" class="rememberme" value="forever" tabindex="90" /> <?php _e('Remember Me', 'imwb_zonpress'); ?></label></p>
   <p class="submit">
   	<input type="submit" name="wp-submit" value="<?php _e('Sign In', 'imwb_zonpress'); ?>" tabindex="100" />
   	<input type="button" class="smcf-close" value="Cancel" tabindex="101" />
   	<input type="hidden" name="testcookie" value="1" />
   </p>
   <p class="nav"><a class="smcf-register" href="<?php bloginfo( 'url' );?>/wp-login.php?action=register"><?php _e('Register', 'imwb_zonpress'); ?></a> | <a class="smcf-forgotpw" href="<?php bloginfo( 'url' );?>/wp-login.php?action=lostpassword" title="Password Lost and Found"><?php _e('Lost your password?', 'imwb_zonpress'); ?></a>
   	</p>
   	</div>
   	<div class="smcf-activity" style="display:none;"></div>
</form>
<form name="registerform" id="registerform" action="<?php bloginfo( 'url' );?>/?action=doregister" method="post">
   <div class="title"><?php _e('Register', 'imwb_zonpress'); ?></div>
   <div class="smcf-login-fields">
   <p>
   	<label><?php _e('First Name', 'imwb_zonpress'); ?><br>
   	<input type="text" name="firstname" class="firstname input" value="" size="20" tabindex="10" /> </label>
   </p>
   <p>
   	<label><?php _e('Last Name', 'imwb_zonpress'); ?><br>
   	<input type="text" name="lastname" class="lastname input" value="" size="20" tabindex="11" /></label>
   </p>
   <p>
   	<label><?php _e('Username', 'imwb_zonpress'); ?><br>
   	<input type="text" name="user_login" class="user_login input" value="" size="20" tabindex="12" /></label>
   </p>
   <p>
   	<label><?php _e('E-mail', 'imwb_zonpress'); ?><br>
   	<input type="text" name="user_email" class="user_email input" value="" size="25" tabindex="13" /></label>
   </p>
   <p>
   	<label><?php _e('Password', 'imwb_zonpress'); ?><br>
   	<input type="password" name="user_pass" class="user_pass input" value="" size="25" tabindex="14" /></label>
   </p>
<?php    
   if(imwb_zonpress_get_option('newmembercaptcha') == '1') {
      $qa_data = imwb_zonpress_get_question();
      $question = $qa_data['question'];
      $answer = $qa_data['answer'];
      $_SESSION['imwbcsb_answer'] = md5(strtolower(trim($answer)));
?>   
   <p>
     <label><?php echo stripslashes($question);?><br>
     <input type="text" name="answer" class="answer input" valiue="" size="20" tabindex="14" /></label>
   </p>
<?php } ?>   
   <p class="submit">
   	<input type="submit" name="wp-submit" value="<?php _e('Sign up!', 'imwb_zonpress'); ?>" tabindex="100" />
   	<input type="button" class="smcf-close" value="Cancel" tabindex="101" />
   	<input type="hidden" name="user-cookie" value="1" />
   </p>
   <p class="nav">
   	<a class="smcf-login" href="<?php bloginfo( 'url' );?>/wp-login.php"><?php _e('Sign In', 'imwb_zonpress'); ?></a> | <a class="smcf-forgotpw" href="<?php bloginfo( 'url' );?>/wp-login.php?action=lostpassword" title="Password Lost and Found"><?php _e('Lost your password?', 'imwb_zonpress'); ?></a>
   </p>
   </div>
   <div class="smcf-activity" style="display:none;"></div>
</form>	
<form name="lostpasswordform" id="lostpasswordform" action="<?php bloginfo( 'url' );?>/wp-login.php?action=lostpassword" method="post">
   <div class="title"><?php _e('Reset Password', 'imwb_zonpress'); ?></div>
   <div class="smcf-login-fields">
   <p>
   	<label><?php _e('Username or E-mail', 'imwb_zonpress'); ?><br>
   	<input type="text" name="user_login" class="user_login input" value="" size="20" tabindex="10" /></label>
   </p>
   <p class="submit">
   	<input type="submit" name="wp-submit" value="<?php _e('Get New Password', 'imwb_zonpress'); ?>" tabindex="100" />
   	<input type="button" class="smcf-close" value="Cancel" tabindex="101" />
   </p>
   <p class="nav">
   	<a class="smcf-login" href="<?php bloginfo( 'url' );?>/wp-login.php"><?php _e('Sign In', 'imwb_zonpress'); ?></a> | <a class="smcf-register" href="<?php bloginfo( 'url' );?>/wp-login.php?action=register"><?php _e('Register', 'imwb_zonpress'); ?></a>
   </p>
   </div>
   <div class="smcf-activity" style="display:none;"></div>
</form>
</div>
</body>
</html>