title: Get Parent Category Id in Sub Category Page - Magento
body: <p>I need a small line of code. I have a category like </p>
  
  <ul>
  <li>Cat-1
  <ul>
  <li>Sub-Cat-1</li>
  <li>Sub-Cat-2</li>
  </ul></li>
  <li>Cat-2
  <ul>
  <li>Sub-Cat-3</li>
  <li>Sub-Cat-4</li>
  </ul></li>
  </ul>
  
  <p>In Sub-Cats page i need to get Root category's Id. Like In "Sub-Cat-1" i need to get "Cat-1's" ID. You can say in children category page, i need parent category's Id. act i am using short url like "abc.com/Sub-Cat-1", nither index.php nor root category in URL. 
  I am using Magento-1.4.1. Please help me. Thanks in advance.</p>