@-moz-document url-prefix("http://www.liveinternet.ru/") {

/*** LI.RU CLEANUP ***/

/* ALL PAGES: thin white toolbar */

#GlHdrNav
{ margin-top: -29px !important }
#GlHdr,
#GlHdrNav,
#GlHdrNavInner,
#GlHdrNavMnu ul li,
#GlHdrNavMnu ul li strong,
#GlHdrNavMnu ul li strong span,
#GlHdrNavMnu ul li strong span em
{ background-image: none !important; background-color: white !important }
#GlHdrNavMnuFrn a,
#GlHdrNavMnuBlog a,
#GlHdrNavMnuPost a,
#GlHdrNavMnuSett a,
#GlHdrNavMnuComm a,
#GlHdrNavMnuPri a 
{ background-color: white !important; margin-top: 5px !important }
#GlAd-IE
{ display: none !important }

/* ALL PAGES: block banners */

#bantop_span,
#banprofile_span,
#banepg_span,
#banmain_span,
iframe[src="/cgi-bin/x160.fcgi*"],
iframe[src="/ad/*"],
iframe[src="http://pb.li.ru/*"],
#PR_REC_H,
#PR_REC,
a[href*="http://www.liveinternet.ru/ad/"],
#HD table[width="100%"]
{ display: none !important }

/* MAIN, FRIENDS, EDIT PAGES: header content and aligns */

#CON .Inner .BAR table td[class="TLE"]
{ display: none !important }
#CON .Inner .BAR table td[class="TRI"]
{ display: table !important; width: 100% !important }
#CON .Inner .BAR table td[class="TRI"] h1[class="ZAG"]
{ display: table-row !important; text-align: center !important }
#CON .Inner .BAR table td[class="TRI"] span[class="GL_TXTS GL_LNXN"]
{ display: table-cell !important; text-align: center !important }

/* MAIN & FRIENDS PAGES: content block align */

#CON
{ margin-left: auto !important; margin-right: auto !important; width: 800px !important }

/* MAIN & FRIENDS PAGES: quotes align */
div[class="QUOT_B"]
{ margin-left: auto !important; margin-right: auto !important; width: 750px !important  }

/* MAIN PAGE: disable some links in posts */

.GL_TXTSM .GL_TXTR a[href*="http://www.liveinternet.ru/member2.php"],
.GL_TXTSM .GL_TXTR a[href*="/journalpostcomments.php"]
{ display: none !important }

/* MAIN PAGE: hide some footer links & search form */

.TRI a[href*="rss"],
.TRI a[href*="calendar"],
.TRI a[href*="export"],
td[class="TLE BlNavSrch"]
{ display: none !important }

/* MAIN PAGE: hide misc rubbish */

#GlHdrTop,
#GlHdrNavTwit,
#GlAllcount,
#GlFtr,
#GlHdrNav h1[class="GlPadMdT GlPadL"],
#GlHdrNavScrch,
#GlHdr .GlDot,
#GlHdr .GlDotT,
#GlHdr .GlDotB,
#Bl-Sidebar,
#ALL_FTR_TLBR,
#SH_MICRO_LREAL_WARNING,
.MNUBANBL, .YANDIR,
.MNUBL .HRMNU,
div[style="margin-left:15px;"]
{ display: none !important }

/* FRIENDS PAGE: navigation bars */

div[class="BAR SORT"]
{ display: block !important; text-align: right !important }
div[class="BAR SORT"] div[style="position:absolute;top:0;left:0;"]
{ display: block !important; width: 100% !important; text-align: right !important }

/* FRIENDS PAGE: content bars */

div[class="BAR SORT"] div[style="position:absolute;top:0;left:80%;width:20%;"],
div[class="BAR SORT"] table
{ display: none !important }

/* FRIENDS PAGE: userpic thumbnails */

div[class="GL_MAR10T  GL_MAR10B MESS"] span[class="GL_MAR5B"]
{ background-image: none !important }
.CONBL img[src*="http://ma.li.ru/"]
{ display: none !important }

/* EDIT PAGE: textboxes size corrections */

.CONBL input[id="headerofpost"],
.CONBL input[id="tags"]
{ margin-left: -1px !important; width: 500px !important }
.CONBL textarea[id="message"]
{ width: 795px !important; height: 250px !important }
.CONBL fieldset
{ width: 350px !important }
.CONBL input[name="attachfile1"]
{ width: 300px !important }
div[class="CONBL"][id="SFORM"] fieldset
{ width: 540px !important }
div[class="CONBL"][id="SFORM"] textarea[class="COMTEXT"][id="post"]
{ width: 530px !important; height: 150px !important }

/* EDIT PAGE: hide annoying smiles */

div[class="GlSmiles GlSmilesHor"]
{ display: none !important }

/* PROFILE PAGE: clear background images for links */

.PR_ADD,
.PR_DEL,
.PR_EDIT,
.PR_P4,
.PR_CAL,
.PR_FRIEND
{ background-image: none !important }

/* PROFILE PAGE: simple headers */

td[id="PSUM"] h3 span
{ display: none !important }
td[id="PSUM"] h3 
{ padding-bottom: 25px !important } 

/* PROFILE PAGE: avatars */

a[class="PR_AVA GlMarSmT"]
{ padding: 0 0 !important; margin: 0 0 !important }
a[class="PR_AVA GlMarSmT"] img
{ width: 90 !important; height: 90 !important }

/* PROFILE PAGE: header */

table[class="TBL"] td[class="PR_ADDALL"],
.PR_STAT td[valign="top"][align="left"][width="160"]
{ display: none !important }

}