problem with slideToggle

problem with slideToggle


Hi,
 
    I am the new one in Jquery. I am getting one problem to implement of Jquery slideToggle. I have two files. on first file I have a drop down menu and through jquery slideToggle I slide down and up. This works fine here. but if I click on the link mention on first file to call 2nd php file I want to grab the previous file slideToggle value that what the user was left this menu hide or display.
 
If the user left the menu hide last time on 2nd php file I want to menu hide in 2nd file or if user left the menu last time display (means slide down) then on 2nd php file i want to show menu display. because I am including this index.html file again.
 
I hope you will understand my point. Please help me I am stuck here.
 
jquery.js
  1. $(document).ready(function()
  2. {
  3.    $("ul#loginMainMenu").click(function()
  4.    {
  5.      $("ul.loginMenu").slideToggle(2000);
  6.    
  7.    });
  8.   
  9. });
    index.html file
  1. <html>
  2. <head>
  3. <script src="js/jquery-1.3.2.min.js"  type="text/javascript"></script>
  4. <script src="js/jquerylogin.js" type="text/javascript"></script>
  5. </head>
  6. <body>   
  7.  
  8.  <div id="header">
  9.  <a href="#">Home</a> | <a href="contact_us.php">Contact us</a> |<a href="send_to_friend.php">Send to Friend</a>
  10.  </div>     <ul id="loginMainMenu">
  11.          <li><a><span class="menuColor">Menu</span></a>
  12.        
  13.          <ul class="loginMenu">
  14.              <li><a href="edit_password.php">Change Password</a></li>
  15.              <li><a href="edit_registration.php">Edit Contact Info</a></li>
  16.              <li><a href="#">Pass Pappers</a></li>
  17.              <li><a href="contact_us.php">Contact us</a></li>
  18.              <li><a href="send_to_friend.php">Send to Friend</a></li>
  19.           </ul>
  20.         </li>
  21.       </ul>
  22. </body>
  23. </html>
  24. contact_us.php file
  25. <script src="js/jquery-1.3.2.min.js"  type="text/javascript"></script>
  26. <script src="js/jquery.js" type="text/javascript"></script>
  27. <script type="text/javascript"> $(document).ready(function()
  28. {   if ($("#loginMainMenu").is(":hidden"))
  29.      {alert("The Menu is hidden");}
  30.      else
  31.      {alert("The Menu is visible");}
  32.  
  33.   
  34. });
  35. </script>
  36. <div id="wrap">
  37. <div id="loginleftside"><?php  include "index.html";  ?></div>
  38. <div id="loginRightSide">    <form action="submit_contactus.php" method="post" id="contact_us">
  39.    <fieldset>
  40.    <ul>
  41.   
  42.      <li class="contact"><span>Contact us</span></li>
  43.  
  44.     <li><label>Your Email: </label>
  45.         <input type="text" name="email" class="email" id="email" />
  46.     </li>
  47.   
  48.     <li><label>Subject: </label>
  49.        <input type="text" name="subject" id="subject">
  50.     </li>
  51.   
  52.     </ul>
  53.     </fieldset>
  54.   
  55.                 <div id="submit_buttonn">
  56.                 <input type="submit" name="submit" class="button" id="submit_btn" value=" Submit " />        
  57.                 <input type="reset" name="reset" class="reset" id="reset" value=" Reset " />
  58.                 </div>
  59.                
  60.     </form>
  61. </div>  
  62. </div>