/*
File:			custom.css
Description:	Custom styles for Thesis

BASIC USAGE:

If you have enabled the custom stylesheet in the Thesis options panel, the &lt;body&gt; tag 
will be appended with the "custom" class, like so: <body class="custom">. You can use 
the "custom" class to override *any* CSS declarations contained in the style.css file.

For example, if you wish to change the default link color to green, you would add the 
following declarations to this file:

	.custom a, .custom a:visited { color: #090; }	<--- This makes links green
	.custom a:hover { color: #00f; }	<--- This makes links blue when you mouse over them

WHY THIS WORKS:

By using the "custom" class, you are creating more specific CSS declarations for HTML
elements. CSS styling is applied through rules of specificity, and because declarations
prepended with .custom are more specific, they get applied when the page is rendered!

More information about styling your Thesis installation using this file can be found
in the User's Guide:
	http://diythemes.com/thesis/rtfm/customizing-thesis-with-customcss/
*/


.custom #header {
	padding: 0px;
	margin: 0px;
	border: 0px;
}



/* Header from Widget Me plugin */
.custom #sidebar_header {
	width: 468px;
	float: right;
	margin-top: -82px;
	padding-right: 11px;
}


.menu {
	border-top: 1px solid #DDDDDD;
	border-bottom: 1px solid #DDDDDD;
	padding: 2px;
}

/* If you're using Thesis 1.5.1 or older delete this line
.custom ul#tabs a {
	background: #FFFFFF;
	color: #70A7CC;
	text-decoration: none;
}

.custom ul#tabs a:hover {
	background: #70A7CC;
	color: #FFFFFF;
	text-decoration: none;
}

.custom ul#tabs li.current_page_item a {
	background: #70A7CC;
	color: #FFFFFF;
	text-decoration: none;
}
If you're using Thesis 1.5.1 or older delete this line */

/* Layer of Category navigation */
.catnav {
	border-top: 1px solid #DDDDDD;
	border-bottom: 3px solid #70A7CC;
	list-style: none;
	font-size: 11px;
	height: 30px;
	line-height: 30px;
}

.catnav li {
	line-height: 30px;
	float: left;
	list-style:none;
}
.catnav li a {
	color: #888888;
	display: block;
	padding: 0 13px;
	font-size: 11px;
	border-right:1px solid #DDDDDD;
}

.catnav li a:hover {
	text-decoration: none;
	color: #FFFFFF;
	background: #70A7CC;
}

.catnav li ul {
	display: none;
}

/* Home Page Featured Content Slider */
.hfeed #feature_box {
	padding: 15px 0px;
	background: #FFFFFF;
}

.sidebar h3 {
	color: #FFFFFF;
	background: #70A7CC;
	display: block;
	padding: 2px 5px;
}

.sidebar h3 a {
	color: #FFFFFF;
	background: #70A7CC;
	display: block;
	background: #70A7CC;
	display: block;
	padding: 0px 1px ;
	text-align: left;
}

.sidebar h3 img {
	float: right;
	padding: 0px;
}


.sidebar ul {
	padding: 2px 5px;
}

.under_content h3 {
	color: #FFFFFF;
	background: #70A7CC;
	display: block;
	padding: 2px;
	text-align: center;
	width: 500px;
	float: left;
}

.under_content ul, .sidebar_footer ul, .sidebar_header ul {
	list-style: none;
}

.under_content_list .textwidget {
	padding: 5px 0px;
	width: 500px;
	float: left;
}

/* author comments */
dl#comment_list .bypostauthor {
	background: #EFEEE4;
}

/* Create Footer Border */
.custom #footer {
	border-top: 3px solid #70A7CC;
}

/* Footer from Widget Me plugin */
.custom #content_footer {
	margin: 15px;
	text-align: center;
}

.custom li.search {
	float:right;
        
        margin-right:2em;
	position:relative;
}

.custom li.search input[type="text"],
    .custom li.search input[type="submit"] {
	width:100%;
        height:80%;
        font-size:1.1em;
	line-height:1.2em;
	padding:0.636em 0.818em;
}

function tweet_button_right() { 

if (!is_page()){ ?>

    <div id='twittley_button' style='float:right;margin-left:10px;'>

        <script type="text/javascript">  

        tweetmeme_url = '<?php echo get_permalink($postid); ?>';  

        </script>

        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>  

    </div>

<div style="float:right; padding-left: 5px;"><a name="fb_share" layout="button_count" share_url="<?php echo get_permalink($postid); ?>" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>

<?php } } 

add_action('thesis_hook_before_teaser', 'tweet_button_right');
add_action('thesis_hook_before_headline', 'tweet_button_right');