title: JavaScript: Show / Hide <DIV> based on URL string
body: <p>I need to show a DIV on two pages (URL's) but not on the others.
  (I have jQuery on the pages if that helps.). I'm a complete noob so all help is very much appreciate. Thank's!</p>
  
  <p><strong>Case (1) where I want to show the DIV:</strong></p>
  
  <ul>
  <li>On the start page, when the web browser address field reads 'www.mydomin.com'</li>
  <li>The start page is PHP so I guess the full URL is 'www.mydomin.com/index.php'</li>
  </ul>
  
  <p><strong>Case (2):</strong></p>
  
  <ul>
  <li>'www.mydomin.com/index.php?option=com_myblog&amp;title.html&amp;Itemid=1&amp;lang=en'</li>
  <li><strong>WHERE this part is alway the same</strong></li>
  <li>'www.mydomin.com/index.php?option=com_myblog&amp;'</li>
  <li><strong>AND this part is always unique</strong></li>
  <li>'title.html&amp;Itemid=1&amp;lang=en</li>
  </ul>
  
  <p>Example</p>
  
  <pre><code>    if (url == 'www.mydomin.com' or 'www.mydomin.com/index.php?option=com_myblog&amp;') {
  
   do this
  
      xxxxxxxx
  
   else
  
          nothing
  </code></pre>