/*
Copyright (c) 2009 Nathan Hammond
Nathan Hammond | http://www.nathanhammond.com/

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("facebook.com") {

	/** Default frameworks. **/
	.UIStandardFrame_Container { padding-right: 20px !important; width: 940px !important; }
	.UIStandardFrame_Content { margin: 0 auto !important; float: none !important; }
	.UIStandardFrame_SidebarAds { display: none !important; }
	.UIStandardFrame_FooterAds { display: none !important; }

	.UICompatibilityFrame_Container { padding-right: 20px !important; width: 940px !important; }
	.UICompatibilityFrame_Frame { margin: 0 auto !important; float: none !important; }
	.UICompatibilityFrame_SidebarAds { display: none !important; }
	.UICompatibilityFrame_FooterAds { display: none !important; }

	.UIWashFrame_Content { margin: 0 auto !important; float: none !important; }
	.UIWashFrame_SidebarAds { display: none !important; }
	.UIWashFrame_FooterAds { display: none !important; }

	.UINarrowFrame_Container { margin: 0 auto !important; }

	/** Page-by-Page fixes. **/

	/* home.php */
	#home_sponsor_nile { display: none !important; }
	.hp_connect_box { display: none !important; }

	/* profile.php */
	.profile .right_column_container .profile_sidebar_ads { display: none !important; }
	.profile .right_column { margin-right: 90px !important; }
	.profile_two_columns .right_column { width: 720px !important; margin-right: 0px !important; }
	.profile .info_tab .info_section .profile_info dl.info dd { width: 520px !important; }

	/* inbox/ */
	.gb_muffin_area { display: none !important; }
	#gb_content_and_toolbar { width: 780px !important; }
	.GBThreadMessageRow_Body { width: 704px !important; }

	/* video.php */
	.video_permalink #main_column { width: 504px !important; }

	/* video.php - high quality */
	.video_permalink .info_bottom + #main_column { width: 393px !important; }

	/* edittopic.php */
	.post_editor .inputtext { width: 517px !important; }

	/* topic.php */
	.post_editor textarea { width: 517px !important; }
	.topic .post_editor.post_inline { margin-left: 64px !important; }

	/* walltowall.php */
	#wall { width: auto !important; }


	/** Comment Handling. **/
	/* The below two rules handle most of the work. All that is left is to set the textarea width for each page. */
	.commentable_item .ufi_section { width: auto !important; }
	.like_box .like_users { width: auto !important; }

	/*
	1. This is the default case, in the event that the profile photo is always displayed:
	2. This is the default case when the profile photo is only displayed on focus.
	3. This is the case where the textarea is focused:

	.comments_add_box textarea { width: +0px !important; }
	.one_row_add_box .comments_add_box textarea { width: +0px !important; }
	.one_row_add_box .comments_add_box textarea.DOMControl_placeholder { width: +40px !important; }
	*/

	/* home.php */
	#home_stream .one_row_add_box .comments_add_box textarea { width: 412px !important; }
	#home_stream .one_row_add_box .comments_add_box textarea.DOMControl_placeholder { width: 452px !important; }

	/* profile.php links */
	.profile .comments_add_box textarea { width: 422px !important; }
	.profile .one_row_add_box .comments_add_box textarea { width: 422px !important; }
	.profile .one_row_add_box .comments_add_box textarea.DOMControl_placeholder { width: 462px !important; }

	/* profile.php */
	.profile_two_columns .comments_add_box textarea { width: 602px !important; }
	.profile_two_columns .one_row_add_box .comments_add_box textarea { width: 602px !important; }
	.profile_two_columns .one_row_add_box .comments_add_box textarea.DOMControl_placeholder { width: 642px !important; }

	/* note.php */
	.note_footer .comments_add_box textarea { width: 474px !important; }

	/* notes.php */
	.profile_thumb + .note_body .note_footer .comments_add_box textarea { width: 414px !important; }

	/* album.php */
	#album_container + .footer .comments_add_box textarea { width: 432px !important; }

	/* photo.php */
	#photocomment { width: 501px !important; }
	#photocomment .comments_add_box textarea { width: 443px !important; }

	/* posted.php */
	#shareitems .comments_add_box textarea { width: 422px !important; }

	/* video.php */
	.video_permalink .comments_add_box textarea { width: 446px !important; }

	/* video.php - high quality */
	.video_permalink .info_bottom + #main_column .comments_add_box textarea { width: 335px !important; }

	/* wall.php */
	body.wall #inline_wall_post textarea { width: 757px !important; }

	/* walltowall.php */
	#wall .one_row_add_box .comments_add_box textarea { width: 642px !important; }
	#wall .one_row_add_box .comments_add_box textarea.DOMControl_placeholder { width: 682px !important; }

	/** Fixes for Facebook's broken pages. **/

	/* home.php */
	/* Prevent the alt tag in a rendered element from expanding into the main column. */
	.UIIntentionalStory_Pic { display: block; width: 50px; }

	/* event.php & group.php */
	/* Properly remove border-spacing on wall posts. */
	table.wallpost { border-spacing: 0; }

	/* event.php */
	#event .thewall .posts { padding-left: 0px !important; padding-right: 0px !important; }

	/* group.php */
	/* Fix their math for textarea width. */
	.fbpage_is_group #inline_wall_post textarea { width: 532px !important; }

	/* events.php */
	/* Properly includes Facebook's css/profile/tabs/events.css file and patches up a couple other blemishes on the page. */
	/* CSS Modified From: http://b.static.ak.fbcdn.net/rsrc.php/zEDDJ/hash/ea495lrc.css */
	/* Example: http://www.facebook.com/events.php?oid=2212231253 */

	.UIWashFrame_MainContent { overflow: visible !important; }
	.UIWashFrame_Container .events_tab .creation_buttons { overflow: hidden; margin-top: -10px; }
	.UIWashFrame_Container .events_tab .creation_buttons .dh_new_media { float: right !important; }

	.UIWashFrame_Container .events_tab .empty_message{border:1px solid #ccc;margin-top:7px;padding:37px 20px 39px !important}
	.UIWashFrame_Container .events_tab #partylist .empty_message{border:1px solid #ccc;margin-bottom:5px;padding:13px 20px 12px !important}
	.UIWashFrame_Container .events_tab .more_link{background:#ECEFF5 none repeat scroll 0 0;border-top:1px solid #d8dfea;margin-top:8px;padding:3px 7px 4px 0}
	.UIWashFrame_Container .events_tab .more_link a{margin-left:5px;padding:2px 12px 3px 5px}
	.UIWashFrame_Container .events_tab .more_link.page_loading{background:#ECEFF5 url(http://www.facebook.com/rsrc.php/z57QP/hash/6nr0un50.gif) no-repeat 518px 4px}
	.UIWashFrame_Container .events_tab #events_show_past_link a{background:transparent url(http://www.facebook.com/rsrc.php/zACDD/hash/1n3y8ict.gif) no-repeat scroll right 4px}
	.UIWashFrame_Container .events_tab #events_show_future_link a{background:transparent url(http://www.facebook.com/rsrc.php/zACDD/hash/1n3y8ict.gif) no-repeat scroll right -12px}

	/* mobile/ */
	.MobileHub_Content_Container { width: 900px !important; margin-left: -100px; }
	
}