/* ++++ changelog
23-11-06
  - (hopefully) fixed conflict with IMDB Preview extensions. Thanks to Cato62
     for pointing it out.
24-07-06
 - rewrite
*/

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("imdb.com") {

/* block ads */
  form[onsubmit="return submitA9Search(this)"] + tbody,     /* A9 "web search" box    */
  form[onsubmit="return submitA9Search(this)"],
  iframe[src*=".advertising."], iframe[src*="amazon"],      /* ad iframes   */
  iframe[src*="atdmt.com"], iframe[src*="3pads"],
  iframe[src*="/adcom/"],
  [href*=".advertising."],                                  /* ad pics  */
  body > div > iframe,                                      /* top banner ad iframe   */
  td + td[width="171"][align="right"] > table[width="110"], /* amazon shopping links  */
  td[width="1"][bgcolor="#999999"] + td[width="5"] + td     /* message boards right frame  */


    {display: none !important;}
}

@-moz-document url-prefix("http://www.imdb.com/Top/"), 
               url-prefix("http://us.imdb.com/Top/"){
  .lhscol + td + td > table:first-child[width="171"][align="right"],  /* ad on www.imbd.com/top */
  .lhscol > table:last-child
    {display: none !important;}
}