@namespace url(http://www.w3.org/1999/xhtml);

/******************** For Guestbook ********************/
@-moz-document url-prefix(http://www.wretch.cc/guestbook) {
#ad_float, /* float ad */
#ad_flash, /* flash ad*/
.main .title table.small-c table.small-c, /* text ad at top */
body > table, /* ad at top */
body > div > table > tbody > tr > td /* ad at bottom */
{
	display: none !important;
}
td#logo, td#counter {
	display: block !important;
}
}

/******************** For Album ********************/
@-moz-document url-prefix(http://www.wretch.cc/album) {
#ad_banner, /* banner */
#ad_flash,  /* flash */
table.small-c, /* text ad at top */
body > table > tbody > tr > td > div /* ad at bottom */
{
	display: none !important;
}
/* useful elements, should be displayed */
div.small-c, /* function menu at top */
div#banner   /* useful banner at top */
{
	display: block !important;
}
#body_show div p /* "Send to friend" link, useful */
{
	text-align: center !important;
}
}

@-moz-document url-prefix("http://www.wretch.cc/album/show.php?i=") {
/* AD at the bottom of single-view mode */
body#body_show > div:not(:first-child) > table:not(.show) > tbody > tr:first-child > td:not(.side),
body#body_show > div:not(:first-child) > table:not(.show) > tbody > tr > td[height="30"] {
	display: none !important;
}
}

/******************** For Album & Blog Homepage ********************/
@-moz-document url(http://www.wretch.cc/album/), url-prefix(http://www.wretch.cc/album/index.php),
url(http://www.wretch.cc/blog/),  url-prefix(http://www.wretch.cc/blog/index.php) {
#logo_1, #logo_2, #extraDiv2, #extraDiv3, #extraDiv4, #banner_link, #banner_link_II,
td#links, /* ADs and links at sidebar */
td#content > div:first-child, div#content_topAD, div#content_Board, /* Flash ad at top */
#ad_flash /* Flash ad at top */
{
	display: none !important;
}


/*
 * Because I remove the sidebar ADs, the title and background look a bit ugly.
 * I use these rules to fix it.
 */
.title, .innercontent {
	background-image: none !important;
	width: 100% !important;
}
/*
 * The link control for prev./next page at Top and Bottom.
 */
div.linkcontrol {
	clear: both !important;
}
}

/******************** For Homepage ********************/
@-moz-document url(http://www.wretch.cc/), url(http://www.wretch.cc/index.php), url-prefix(http://www.wretch.cc/?) {
#logo_2, #extraDiv1, #extraDiv2, extraDiv3, #banner_link, #wretch_img, /* BIG banner at top */
#textbar, /* text ad at top */
/*.innercontent li:last-child, /* AD in Today's Album block */
div#links > ul > li:not(:first-child), /* AD at sidebar */
#box_channelPortal, /* AD at middle */
div.boxTab_Channels,
#extraDivA, #extraDivB, #extraDivC, #extraDivD,
#box_foursteps /* useless four steps at bottom */
{
	display: none !important;
	height: 0 !important;
}

div.banner_language {
/*top: 0px;*/
}

/* Filled the content to the page */
#content {
	width: 100% !important;
}
div.boxTab_HotRank {
	width: 448px !important;
}
#box_famousperson > div > .news { 
	background-image: none !important;
	min-height: 100px !important;
}
/*
#box_blog ul li, #box_blog table {
	width: 360px !important;
}
#box_blog .grid1, #box_blog .grid1 span {
	width: 260px !important;
}
#box_blog .grid, #box_blog .grid1 {
	background-image: none !important;
}*/

/* Show the login block */
#links {
	position: absolute !important;
	background-color: #ECECEC !important;
	height: 267px !important;
	top: 79px !important;
}
}
/******************** For Blog ********************/
@-moz-document url-prefix(http://www.wretch.cc/blog) {
#scupioSearch {
    display: none !important;
}
}

/******************** For Friend********************/
@-moz-document url-prefix(http://www.wretch.cc/friend) {
#ad_banner {
    display: none !important;
}
}

/******************** For Video ********************/
@-moz-document url-prefix(http://www.wretch.cc/video) {
#topAD,#iAmAD {
    display: none !important;
}
}
/******************** For User ********************/
@-moz-document url-prefix(http://www.wretch.cc/user) {
#ad_banner {
    display: none !important;
}
}
