<!--written by: Aakash Patel
# tested by: Aakash Patel
# debugged by: Aakash Patel-->


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url= index.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Money Machine</title>
<meta name="keywords" content="virtual, stock, market, game, finance">
<meta name="description" content="A Virtual Stock Market Game">
<link href="{{ STATIC_URL }}index_files/templatemo_style.css" rel="stylesheet" type="text/css">


<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}index_files/ddsmoothmenu.css">
<script type="text/javascript" src="{{ STATIC_URL }}index_files/jquery.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}index_files/ddsmoothmenu.js">

/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "templatemo_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>
</head>

<body id="sub_page"><div class="ddshadow toplevelshadow" style="left: 1040px; top: 95px;"></div>
<div id="templatemo_wrapper">
	<div id="templatemo_top">
	{% if not user.is_authenticated %}
	<div id="templatemo_register">
			<input type="submit" name="register" value="" alt="Re" id="searchbutton" title="Register" onclick="window.location='{% url register %}';" class="sub_btn">
		</div>


<!-- AAKASH's VERSION-->

    	<!--div id="templatemo_login">
            <form action="index.html#" method="get">
              <input type="text" value="username" name="q" size="10" id="username" title="username" onfocus="clearText(this)" onblur="clearText(this)" class="txt_field">
              <input type="password" value="password" name="q" size="10" id="password" title="password" onfocus="clearText(this)" onblur="clearText(this)" class="txt_field">
              <input type="submit" name="login" value="" alt="Login" id="searchbutton" title="Login" class="sub_btn">
              
	</form>	
		</div>
<AAKASH's VERSION ENDS-->



<!--Login Background Starts -->
		
<!--Login Area Starts -->

	<div id="templatemo_login">
	<form action="{% url login %}" method="post" name="Login" id="Login">
	{% csrf_token %}
						
 	<input type="text" value="username" name="username" size="10" id="username" title="username" onfocus="clearText(this)" onblur="clearText(this)" class="txt_field">
       	<input type="password" value="password" name="pass" size="10" id="pass" title="password" onfocus="clearText(this)" onblur="clearText(this)" class="txt_field">
	 <input type="submit" name="login" value="" alt="Login" id="searchbutton" title="Login" class="sub_btn">
	<br /><br />{% if state %}<span id="loginErrors" style="color: red; font-size: 10px; position: relative; top: -15px;">{{ state }}</span>{% endif %}
	<br class="spacer" />
	</form>
	</div>
	{% else %}


<!--logout-->
	<div id = "templatemo_logout">		
	<input type="submit" name="logout" value="" alt="Re" id="searchbutton" title="Logout" onclick="window.location='{% url logout %}';" class="sub_btn">
	</div>
	


<!--welcome user-->
<div id="templatemo_login" >
 <font color = "#E5A100"> Welcome, {{ user.first_name }} {{ user.last_name }} </font>
</div>


	{% endif %}
<!--Login Area Ends -->	
</div> <!--end of top-->



<!--Navigation Background Part Starts -->
<div id="navigation-bg">
	<!--Navigation Part Starts -->
		
		{% block subNav %}
		{% endblock %}
	
	<!--Navigation Part Ends -->
</div>
<!--Navigation Background Part Ends -->

    
  	<div id="templatemo_header">
    	<div id="site_title"><h1><a href="{% url home %}">Home</a></h1></div>
        <div id="templatemo_menu" class="ddsmoothmenu">
            <ul>
              	<li><a href="{% url home %}" class="selected">Home</a></li>
          		
          		<li style="z-index: 100;"><a href="{% url portfolio.views.home %}">My Profile</a>
                    <ul style="display: none; top: 35px; visibility: visible;">
                        <li><a href="{% url portfolio.views.home %}">Portfolio</a></li>
                        <li><a href="{% url league.views.home %}">League</a></li>
                        
                  	</ul>
              	</li>
              	
              	<li><a href="{% url about_us %}">About Us</a></li>
		<li><a href="{% url faq %}">FAQ</a></li>
            </ul>
            <br style="clear: left">
        </div> <!-- end of templatemo_menu -->
    </div> <!-- end of header -->

<!--Main Content Begins-->
{% block content %}{% endblock %}


<!--Main Content Ends-->

<!--Footer Part Begins -->
<div id="templatemo_footer_wrapper">
    <div id="templatemo_footer">
        Copyright © 2013 <a href="/index.html#">Money Machine</a> | 
        Designed by <a  target="_parent">The Group 6</a> | 
		<a href="/admin/">Admin Login</a>
        <div class="cleaner"></div>
    </div>
</div> 
<!--Footer Part Ends -->
</body>

{% block scripts %}{% endblock %}

</html>

